簡體   English   中英

Xcode 構建完成。 無法構建 iOS 應用程序 - Flutter 項目

[英]Xcode build done. Failed to build iOS app - Flutter project

將 flutter 升級到最新的穩定版本后出現以下錯誤。 執行所有可能的命令以清除捕獲並安裝 pod。

Xcode build done.                                           12.1s
Failed to build iOS app
Error output from Xcode build:
↳
    objc[3394]: Class AppleTypeCRetimerRestoreInfoHelper is implemented in both /usr/lib/libauthinstall.dylib (0x1f5995eb0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1063384f8). One of the two will be used. Which one is undefined.
    objc[3394]: Class AppleTypeCRetimerFirmwareAggregateRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x1f5995f00) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x106338548). One of the two will be used. Which one is undefined.
    objc[3394]: Class AppleTypeCRetimerFirmwareRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x1f5995f50) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x106338598). One of the two will be used. Which one is undefined.
    objc[3394]: Class ATCRTRestoreInfoFTABFile is implemented in both /usr/lib/libauthinstall.dylib (0x1f5995fa0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1063385e8). One of the two will be used. Which one is undefined.
    objc[3394]: Class AppleTypeCRetimerFirmwareCopier is implemented in both /usr/lib/libauthinstall.dylib (0x1f5995ff0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x106338638). One of the two will be used. Which one is undefined.
    objc[3394]: Class ATCRTRestoreInfoFTABSubfile is implemented in both /usr/lib/libauthinstall.dylib (0x1f5996040) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x106338688). One of the two will be used. Which one is undefined.
    2022-03-20 16:20:58.949 xcodebuild[3394:27451] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
    2022-03-20 16:20:58.949 xcodebuild[3394:27451] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
    ** BUILD FAILED **
Xcode's output:
↳
    Writing result bundle at path:
        /var/folders/p3/k59gspbd78s4bpfvpwpz4ct80000gn/T/flutter_tools.a1tf9R/flutter_ios_build_temp_dir0CdVEj/temporary_xcresult_bundle
In file included from /Users/aravindganesh/.pub-cache/hosted/pub.dartlang.org/webview_flutter_wkwebview-2.7.1/ios/Classes/JavaScriptChannelHandler.m:5:
/Users/aravindganesh/.pub-cache/hosted/pub.dartlang.org/webview_flutter_wkwebview-2.7.1/ios/Classes/JavaScriptChannelHandler.h:5:9: fatal error: 'Flutter/Flutter.h' file not found
    #import <Flutter/Flutter.h>
            ^~~~~~~~~~~~~~~~~~~
    1 error generated.
In file included from /Users/aravindganesh/.pub-cache/hosted/pub.dartlang.org/webview_flutter_wkwebview-2.7.1/ios/Classes/FLTWKProgressionDelegate.m:5:
/Users/aravindganesh/.pub-cache/hosted/pub.dartlang.org/webview_flutter_wkwebview-2.7.1/ios/Classes/FLTWKProgressionDelegate.h:5:9: fatal error: 'Flutter/Flutter.h' file not found

某處相同的符號 / class 被定義了兩次。

  • 檢查鏈接的框架以查看是否有任何重復項。 如果是這樣刪除重復
  • 清理構建文件夾(Command + Shift + K)
  • 如果是模擬器,則重置模擬器並嘗試
  • 如果設備,請重新啟動設備並嘗試

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM