//报错: flutter含i386和x86_64(支持模拟器运行的)
20190425172458482.png
但是xcode11 打包时不需要,所以要删除
//删除方法
(1)找到Run Script Phase
20190425173054873.png
(2)添加脚本
2019042517513221.png
if [[ "$CONFIGURATION" =~ "Release" ]];then
# Release环境删除Flutter.framework "x86_64" 框架
lipo -remove "x86_64" "$SOURCE_ROOT/Flutter/Flutter.framework/Flutter" -output "$SOURCE_ROOT/Flutter/Flutter.framework/Flutter"
fi
参考:
https://blog.csdn.net/qq_30903139/article/details/89521358
https://www.jianshu.com/p/667cbd9ac38d
网友评论