Flutter构建错误(将使用其中一个.哪个未定义)



我无法为ios模拟器运行flutter应用程序设备MAC AIR M1模拟器iphone 13 ios 15.4Flutter(Channel stable,2.10.3,在macOS 12.3 21E230 darwin arm上,locale en IN(错误

Launching lib/main.dart on iPhone 13 in debug mode...
Running Xcode build...
Xcode build done.                                           11.6s
Failed to build iOS app
Error output from Xcode build:
↳
objc[57109]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x1e3a22098) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1060242c8). One of the two will be used. Which one is undefined.
objc[57109]: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x1e3a220e8) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x106024318). One of the two will be used. Which one is undefined.
objc[57109]: Class AppleTypeCRetimerRestoreInfoHelper is implemented in both /usr/lib/libauthinstall.dylib (0x1e3a21eb0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1060244f8). One of the two will be used. Which one is undefined.
objc[57109]: Class AppleTypeCRetimerFirmwareAggregateRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x1e3a21f00) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x106024548). One of the two will be used. Which one is undefined.
objc[57109]: Class AppleTypeCRetimerFirmwareRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x1e3a21f50) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x106024598). One of the two will be used. Which one is undefined.
objc[57109]: Class ATCRTRestoreInfoFTABFile is implemented in both /usr/lib/libauthinstall.dylib (0x1e3a21fa0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1060245e8). One of the two will be used. Which one is undefined.
objc[57109]: Class AppleTypeCRetimerFirmwareCopier is implemented in both /usr/lib/libauthinstall.dylib (0x1e3a21ff0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x106024638). One of the two will be used. Which one is undefined.
objc[57109]: Class ATCRTRestoreInfoFTABSubfile is implemented in both /usr/lib/libauthinstall.dylib (0x1e3a22040) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x106024688). One of the two will be used. Which one is undefined.
** BUILD FAILED **

Xcode's output:
↳
Writing result bundle at path:
/var/folders/b7/hgz_bln978v50z_4np3bb3ww0000gn/T/flutter_tools.wYYYjO/flutter_ios_build_temp_dirOOWshA/temporary_xcresult_bundle

Failed to package /Users/yashc/Desktop/t.
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
warning: Capabilities for Signing & Capabilities may not function correctly because its entitlements use a placeholder team ID. To resolve this, select a development team in the Runner editor. (in target 'Runner' from project 'Runner')
Result bundle written to path:
/var/folders/b7/hgz_bln978v50z_4np3bb3ww0000gn/T/flutter_tools.wYYYjO/flutter_ios_build_temp_dirOOWshA/temporary_xcresult_bundle

Could not build the application for the simulator.
Error launching application on iPhone 13.


我正试图建立一个同样失败的新项目。显示相同的上述错误谢谢

Apple拥有这个错误,man命令(以及其他一些命令(喷出了重复的类实现胡言乱语。为了避免这种情况,我在~/.zshrc文件中实现了以下别名:

别名man="man"$@"2>dev/null'

然后man通过将所有的废话重定向到比特桶来提供快速、干净的输出。

要使该别名在同一个终端会话中生效,请执行以下操作,否则新的终端会话将拾取它:

源~/.zshrc

相关内容

最新更新