美文网首页iOS 技术分享
iOS - bitcode bundle could not b

iOS - bitcode bundle could not b

作者: Joh蜗牛 | 来源:发表于2021-01-26 16:50 被阅读0次

运行时正常,打包编译时报错:

bitcode bundle could not be generated because '/Users/wulianxinxizhongxin/Desktop/(项目名称)/Pods/UMCCommon/UMCommon_7.2.4/UMDevice.framework/UMDevice(UMDevice99999999.o)' was built without full bitcode. All object files and libraries for bitcode must be gene

错误:linker command failed with exit code 1 (use -v to see invocation)

报错原因:引入的第三方库不支持bitcode。
解决办法是:
1.联系第三方框架的提供者, 让他们支持bitcode,这个执行起来有难度。
2.要么在项目中将bitcode设为No,可以在”Build Settings”->”Enable Bitcode”选项中看到这个设置。
如下图所示:


设置bitcode

(如果我们的工程需要支持bitcode,则需要求所有引入的第三方库都支持bitcod。)

相关文章

网友评论

    本文标题:iOS - bitcode bundle could not b

    本文链接:https://www.haomeiwen.com/subject/rcagzktx.html