Flutter会不会编译我的应用程序的发布版本?

发布于 2025-01-24 09:44:17 字数 3633 浏览 1 评论 0原文

处理此应用程序后,我尝试使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

只涨不跌 2025-01-31 09:44:17

1。执行

Flutter Clean

然后

  1. 从Xcode中删除模拟器,然后重新添加新的模拟器

然后

  1. 将您的应用重新运行,这将是

进一步的解决方案:

  • 打开iOS模块在xcode中。

1. execute

Flutter Clean

then

  1. Remove the simulator from Xcode and re-add a new simulator

then

  1. Re-run your app in flutter and it would be

further solution :

  • Open iOS module in Xcode.
最冷一天 2025-01-31 09:44:17

我终于找到了解决方案!

问题最终是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 ran flutter clean and followed that with flutter run and it signed the app and launched it on my iPhone!

Thanks for ideas and helping me figure this out!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文