一、Xcode14.3的问题
添加了fluttertoast库后,执行flutter run后会报错如下
flutter run
Launching lib/main.dart on iPhone 14 Pro in debug mode...
Running pod install... 2,039ms
Running Xcode build...
Xcode build done. 12.1s
Failed to build iOS app
Error (Xcode): File not found:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a
Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)
Could not build the application for the simulator.
Error launching application on iPhone 14 Pro.
解决办法:
1、下载一个旧的xcode包。https://download.developer.apple.com/Developer_Tools/Xcode_14.2/Xcode_14.2.xip
2、将旧xcode中的arc/libarclite_iphonesimulator.a文件夹整体复制到新的xcode里。