简体   繁体   English

无法生成位码包,因为

[英]bitcode bundle could not be generated because

Basically I have built a compiled released framework and distributed it with cocoaPods. The problem is that then archiving this framework application gets the following error:基本上我已经构建了一个编译发布的框架并使用 cocoaPods 分发它。问题是归档这个框架应用程序会出现以下错误: 在此处输入图像描述

ld: bitcode bundle could not be generated because '/Users/cagrialtay/Desktop/mucbirsebepler/ios/Flutter/Flutter.framework/Flutter' was built without full bitcode. ld:无法生成位码包,因为“/Users/cagrialtay/Desktop/mucbirsebepler/ios/Flutter/Flutter.framework/Flutter”是在没有完整位码的情况下构建的。 All frameworks and dylibs for bitcode must be generated from Xcode Archive or Install build file '/Users/cagrialtay/Desktop/mucbirsebepler/ios/Flutter/Flutter.framework/Flutter' for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation) Search for Enable Bitcode setting and set it to YES for Debug and Release modes.位码的所有框架和 dylib 必须从 Xcode 存档或安装构建文件 '/Users/cagrialtay/Desktop/mucbirsebepler/ios/Flutter/Flutter.framework/Flutter' 架构 armv7 clang 生成:错误:linker 命令失败,退出代码 1 (使用 -v 查看调用)搜索 Enable Bitcode 设置并将其设置为 YES 用于 Debug 和 Release 模式。

Things I tried but had no luck我尝试过但没有运气的事情

  • Enable Bitcode' set to 'YES' Adding '-fembed-bitcode' to 'Other C启用位码”设置为“是”将“-fembed-bitcode”添加到“其他 C”
  • Flags' Adding 'BITCODE_GENERATION_MODE' with the value 'bitcode' set Flags' 添加 'BITCODE_GENERATION_MODE' 并设置值 'bitcode'
  • skip install to yes跳过安装到是

I only need release version, so I did not built an universal framework, just release version... I would genuinely like to solve this issue, because it has been a nightmare for me..我只需要发布版本,所以我没有构建通用框架,只是发布版本......我真的很想解决这个问题,因为这对我来说是一场噩梦......

I finally solved this.This error happened because of me.我终于解决了这个问题。这个错误是因为我而发生的。 I develop my iOS application with flutter, so if you develop your iOS app in Flutter firstly you must build with flutter not Xcode我用 flutter 开发我的 iOS 应用程序,所以如果你首先在 Flutter 中开发你的 iOS 应用程序,你必须使用 flutter 而不是 Xcode 来构建

flutter clean
flutter build ios

then go然后 go

Xcode -> Product -> Destination -> Any iOS Device Xcode -> 产品 -> 目的地 -> 任何 iOS 设备

Xcode-> Product -> Scheme -> choose scheme -> Runner Xcode->产品->方案->选择方案->亚军

Xcode-> Product -> Archive Xcode->产品->存档

or要么

flutter clean
flutter build ipa 

then然后

Xcode-> Product -> Archive Xcode->产品->存档

That happened to me too.这也发生在我身上。 Xcode 11, Flutter. I tried deleting the App on Simulator still did not work. Xcode 11、Flutter。我试过删除模拟器上的App还是不行。

  1. Open project folder打开项目文件夹
  2. Go to ios file Go 到 ios 文件
  3. Go to Runner Folder Go 到 Runner 文件夹
  4. Right click on "Launch Screen.storyboard"右键单击“Launch Screen.storyboard”
  5. Open with Xcode.用 Xcode 打开。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 由于框架,无法生成位码包 - bitcode bundle could not be generated because of a framework 无法生成位码包,因为 iOS 图表 - bitcode bundle could not be generated because iOS Charts 无法生成 Bitcode 包(在归档时),因为静态框架 (.framework) 是在没有完整位码的情况下构建的 - Bitcode bundle could not be generated (while archiving) because Static Framework (.framework) was built without full bitcode 如何解决“无法生成位码包,因为'AFNetworking framework/paytabs-iOS(UIColor+Helpers.o)'是在没有完整位码的情况下构建的” - How to resolve "bitcode bundle could not be generated because 'AFNetworking framework/paytabs-iOS(UIColor+Helpers.o)' was built without full bitcode" iOS - 无法生成存档“bitcode bundle” - Flutter - iOS - Archiving "bitcode bundle" could not be generated - Flutter 无法为arm64生成Bitcode包 - Bitcode bundle could not be generated for arm64 错误 - 无法在 iOS 中生成位码包 - Error - bitcode bundle could not be generated iOS Bitrise,Xcode9(beta6):无法生成位码包 - Bitrise, Xcode9 (beta6): bitcode bundle could not be generated iOS 构建失败并出现“ld:无法生成位码包” - iOS build failed with `ld: bitcode bundle could not be generated` 无法重新解析位码包中的目标文件:'无效的位码版本 - could not reparse object file in bitcode bundle: 'Invalid bitcode version
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM