升级Xcode16,flutter项目报错
2024-09-22 本文已影响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)
1、找到本地 Flutter SDK 文件位置为:
flutter/packages/flutter_tools/lib/src/build_system/targets/ios.dart
image.png2、注释掉-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