在原生的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一下,直接打包就行了)
网友评论