美文网首页Flutter
Xcode11 打包(flutter项目的iOS打包)

Xcode11 打包(flutter项目的iOS打包)

作者: ChaosHeart | 来源:发表于2020-09-12 14:57 被阅读0次

    //报错: 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

    相关文章

      网友评论

        本文标题:Xcode11 打包(flutter项目的iOS打包)

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