Flutter会不会编译我的应用程序的发布版本?
处理此应用程序后,我尝试使用flutter Run -Release
命令将我的应用程序构建为iOS。但是,每当我收到此错误**都无法构建设备的预编译应用程序
。 。我已经切换了颤动的分支。我对此迷失了!
这是终端输出:
Building com.example.projectqr for device (ios-release)...
Automatically signing iOS for device deployment using specified development team in Xcode project: HRCH36A6AR
Running pod install... 872ms
Running Xcode build...
Xcode build done. 3.7s
Failed to build iOS app
Error output from Xcode build:
↳
objc[9606]: Class AppleTypeCRetimerRestoreInfoHelper is implemented in both /usr/lib/libauthinstall.dylib (0x1fde65eb0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1085f84f8).
One of the two will be used. Which one is undefined.
objc[9606]: Class AppleTypeCRetimerFirmwareAggregateRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x1fde65f00) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice
(0x1085f8548). One of the two will be used. Which one is undefined.
objc[9606]: Class AppleTypeCRetimerFirmwareRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x1fde65f50) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice
(0x1085f8598). One of the two will be used. Which one is undefined.
objc[9606]: Class ATCRTRestoreInfoFTABFile is implemented in both /usr/lib/libauthinstall.dylib (0x1fde65fa0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1085f85e8). One of
the two will be used. Which one is undefined.
objc[9606]: Class AppleTypeCRetimerFirmwareCopier is implemented in both /usr/lib/libauthinstall.dylib (0x1fde65ff0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1085f8638).
One of the two will be used. Which one is undefined.
objc[9606]: Class ATCRTRestoreInfoFTABSubfile is implemented in both /usr/lib/libauthinstall.dylib (0x1fde66040) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1085f8688). One of
the two will be used. Which one is undefined.
2022-04-26 18:57:12.964 xcodebuild[9606:80050] 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-04-26 18:57:12.964 xcodebuild[9606:80050] 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/4v/gxt19vmx267662mjsmfhf8mc0000gn/T/flutter_tools.WkwIsq/flutter_ios_build_temp_dirgZNqVy/temporary_xcresult_bundle
Failed to package /Users/adamjackson/Documents/Github/projectQR/Flutter.
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
Result bundle written to path:
/var/folders/4v/gxt19vmx267662mjsmfhf8mc0000gn/T/flutter_tools.WkwIsq/flutter_ios_build_temp_dirgZNqVy/temporary_xcresult_bundle
Encountered error while building for device.
感谢您看!
After working on this app I tried to build my app to iOS using the flutter run --release
command. But whenever I do I get this error *Could not build the precompiled application for the device.*
I've tried flutter clean
then flutter upgrade
. I've switched flutter branches. I'm so lost on this one!
Here's the terminal output:
Building com.example.projectqr for device (ios-release)...
Automatically signing iOS for device deployment using specified development team in Xcode project: HRCH36A6AR
Running pod install... 872ms
Running Xcode build...
Xcode build done. 3.7s
Failed to build iOS app
Error output from Xcode build:
↳
objc[9606]: Class AppleTypeCRetimerRestoreInfoHelper is implemented in both /usr/lib/libauthinstall.dylib (0x1fde65eb0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1085f84f8).
One of the two will be used. Which one is undefined.
objc[9606]: Class AppleTypeCRetimerFirmwareAggregateRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x1fde65f00) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice
(0x1085f8548). One of the two will be used. Which one is undefined.
objc[9606]: Class AppleTypeCRetimerFirmwareRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x1fde65f50) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice
(0x1085f8598). One of the two will be used. Which one is undefined.
objc[9606]: Class ATCRTRestoreInfoFTABFile is implemented in both /usr/lib/libauthinstall.dylib (0x1fde65fa0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1085f85e8). One of
the two will be used. Which one is undefined.
objc[9606]: Class AppleTypeCRetimerFirmwareCopier is implemented in both /usr/lib/libauthinstall.dylib (0x1fde65ff0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1085f8638).
One of the two will be used. Which one is undefined.
objc[9606]: Class ATCRTRestoreInfoFTABSubfile is implemented in both /usr/lib/libauthinstall.dylib (0x1fde66040) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1085f8688). One of
the two will be used. Which one is undefined.
2022-04-26 18:57:12.964 xcodebuild[9606:80050] 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-04-26 18:57:12.964 xcodebuild[9606:80050] 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/4v/gxt19vmx267662mjsmfhf8mc0000gn/T/flutter_tools.WkwIsq/flutter_ios_build_temp_dirgZNqVy/temporary_xcresult_bundle
Failed to package /Users/adamjackson/Documents/Github/projectQR/Flutter.
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
Result bundle written to path:
/var/folders/4v/gxt19vmx267662mjsmfhf8mc0000gn/T/flutter_tools.WkwIsq/flutter_ios_build_temp_dirgZNqVy/temporary_xcresult_bundle
Encountered error while building for device.
Thanks for taking a look!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
1。执行
然后
然后
进一步的解决方案:
1. execute
then
then
further solution :
我终于找到了解决方案!
问题最终是Cocoapod未正确安装。
挖掘一生的感觉!我再次安装了自制的家务,然后使用
brew nastal cocoapods
命令重新安装了Cocoapod。之后,我运行了flutter Clean
,然后用flutter Run
进行签名,并在我的iPhone上启动了应用程序!感谢您的想法,并帮助我解决这个问题!
I finally found a solution!
The problem ended up being that CocoaPod wasn't installed correctly.
After digging for what felt like a lifetime! I installing HomeBrew again, then reinstalled cocoapod using
brew install cocoapods
command. After that I ranflutter clean
and followed that withflutter run
and it signed the app and launched it on my iPhone!Thanks for ideas and helping me figure this out!