美文网首页
2021-08-18 ios flutter 打包bitcode

2021-08-18 ios flutter 打包bitcode

作者: 有情人终成眷属_Banana | 来源:发表于2021-08-18 10:06 被阅读0次

在原生的iOS工程里面,包含了flutter模块,直接对原生项目打包时报了下面这个错误:
/ios/Flutter/Flutter.framework/Flutter’ was built without full bitcode. All frameworks and dylibs for bitcode must be generated from Xcode Archive or Install build file ‘/Users/—r/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.
将Enable Bitcode设置为NO没用,cd-flutter项目里面,依次执行以下命令:
flutter clean
flutter build ios
执行完成后在原生项目打包(ps:千万不要在xcode build一下,直接打包就行了)

相关文章

网友评论

      本文标题:2021-08-18 ios flutter 打包bitcode

      本文链接:https://www.haomeiwen.com/subject/erfgbltx.html