构建项目时出现此错误。所有目标和 pod 的启用位码均设置为 yes。
\n\n\nld:无法生成位码包,因为\n'...app/ios/Flutter/Flutter.framework/Flutter'是在没有完整\n位码的情况下构建的。bitcode 的所有框架和 dylib 都必须从\nXcode Archive 或 Install build file\n'...app/ios/Flutter/Flutter.framework/Flutter' 生成,适用于架构 arm64
\n
如何确保 flutter 框架是使用完整的位码构建的?
\nDoctor summary (to see all details, run flutter doctor -v):\n[\xe2\x9c\x93] Flutter (Channel unknown, 1.22.4, on macOS 11.2.3 20D91 darwin-x64, locale en-US)\n \n[\xe2\x9c\x93] Android toolchain - develop for Android devices (Android SDK version 30.0.0)\n[\xe2\x9c\x93] Xcode - develop for iOS and macOS (Xcode 12.5)\n[!] Android Studio (version 4.1)\n \xe2\x9c\x97 Flutter plugin not installed; this adds Flutter specific functionality.\n \xe2\x9c\x97 Dart plugin not installed; this adds Dart specific functionality.\n[\xe2\x9c\x93] Connected device (1 available)\n\n! Doctor found issues in 1 category.\nRun Code Online (Sandbox Code Playgroud)\n
找到了解决方案,codemagic slack 频道中的某人不久前发布了它 \xe2\x80\x93 这就是为什么你不应该使用 Slack 来获得支持:不可能通过网络搜索找到。而是使用论坛。
\n包含config.build_settings['ENABLE_BITCODE'] = 'NO'在构建设置中。
post_install do |installer|\n installer.pods_project.targets.each do |target|\n flutter_additional_ios_build_settings(target)\n target.build_configurations.each do |config|\n config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0'\n config.build_settings['ENABLE_BITCODE'] = 'NO'\n end\n end\nend\nRun Code Online (Sandbox Code Playgroud)\n
| 归档时间: |
|
| 查看次数: |
1268 次 |
| 最近记录: |