ios集成时 使用pod报警导致工程编译失败
下面是pod的信息:
[!] A license was specified in podspec flutter_boost but the file does not exist - /Users/liheng/Desktop/车联网项目/ios_jicheng/my_flutter/.ios/Flutter/.symlinks/flutter_boost/LICENSE
[!] Unable to read the license file ../LICENSE for the spec flutter_boost (0.0.1)
[!] Unable to read the license file ../LICENSE for the spec flutter_boost (0.0.1)
下面是工程编译的报错信息: Undefined symbols for architecture arm64: "___cxa_guard_acquire", referenced from: getLimit() in libflutter_boost.a(FLBMemoryInspector.o) "___cxa_guard_release", referenced from: getLimit() in libflutter_boost.a(FLBMemoryInspector.o) "___cxa_guard_abort", referenced from: getLimit() in libflutter_boost.a(FLBMemoryInspector.o) "___gxx_personality_v0", referenced from: -[FLBMemoryInspector deviceMemory] in libflutter_boost.a(FLBMemoryInspector.o) -[FLBMemoryInspector currentCondition] in libflutter_boost.a(FLBMemoryInspector.o) isHighterThanIos9() in libflutter_boost.a(FLBMemoryInspector.o) getLimit() in libflutter_boost.a(FLBMemoryInspector.o) _memoryWarningLimit() in libflutter_boost.a(FLBMemoryInspector.o) +[Service_NavigationService load] in libflutter_boost.a(Service_NavigationService.o) +[Service_NavigationService onNativePageResult:uniqueId:key:resultData:params:] in libflutter_boost.a(Service_NavigationService.o) ... ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
将libc++加入链接即可