在iOS设备上运行Flutter项目时出现:
ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
,这是混编C++导致的,需要Xcode中的项目配置如下:
1.Build Setting->Other Link Flags添加-lc++
2.Build Phases->Link Binary With Libraries添加libc++.tbd包
然后执行
flutter clean
flutter run
就可以看到项目能跑起来了。