繁体   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