美文网首页
升级Xcode16,flutter项目报错

升级Xcode16,flutter项目报错

作者: 一只搬运工的自我修养 | 来源:发表于2024-09-22 11:11 被阅读0次

    最近更新升级xcode16后发现原来的项目运行不了了,flutter的版本是3.3.1
    保错:[ +304 ms] Could not build the precompiled application for the device. [ +16 ms] Error (Xcode): linker command failed with exit code 1 (use -v to see invocation)

    921727058132_.pic.jpg

    1、找到本地 Flutter SDK 文件位置为:

    flutter/packages/flutter_tools/lib/src/build_system/targets/ios.dart
    image.png

    2、注释掉-fembed-bitcode-marker
    3、删除本地 Flutter SDK 中

    flutter/bin/cache/flutter_tools.snapshot
    flutter/bin/cache/flutter_tools.stamp

    4、执行 flutter doctor 重新编译 flutter_tools ,
    5、再次运行项目flutter run

    感谢:[Flutter Candies] 大佬:法的空间 https://juejin.cn/user/254742428916408

    相关文章

      网友评论

          本文标题:升级Xcode16,flutter项目报错

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