[英]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我尝试过但没有运气的事情
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还是不行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.