调用百度地图第三方库造成bitcode错误(bitcode bundle could not be generated)

编译遇到bitcode bundle could not be generated because 调用第三方库造调用百度地图第三方库造成bitcode错误(bitcode bundle could not be generated)_第1张图片

 

解决办法:

右键这个错误提示,选择reaval in log (在日志中显示)

1、在Build Settings中搜索Enable Bitcode-> 设置No

2、Project-> Targets-> Build Settings-> Custom Compiler Flags-> Other C Flags-> 

“-fembed-bitcode”

如果静态库的工程有 -Werror的选项,需要去掉。应为在编译的时候有一个警告。 clang: warning: argument unused during compilation: '-fembed-bitcode-marker’, 如果不去掉就会报错
 

你可能感兴趣的:(调用百度地图第三方库造成bitcode错误(bitcode bundle could not be generated))