出现场景:

正常调试是没有问题的,但是在Archive的时候,报出了这个错误。

问题详情:

(null): URGENT: all bitcode will be dropped because ‘xxxx’ was built without bitcode. You must rebuild it with bitcode enabled (Xcode settingENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. Note: This will be an error in the future.

问题分析:

从上述的错误中应该可以看出,这是因为一个第三方的库不兼容,我的工程中开启了 ENABLE_BITCODE (应该是升级之后自动转换的),而这个第三方的库在编译的时候没有 enable bitcode,所以导致上诉问题.

解决方法:

应该是有两种吧,一种就是换成 enable bitcode 的第三方库,再有一种就是将工程的 ENABLE_BITCODE 设置为 false 就可以了。

因为我这里不太方便换库,所以,就把工程的设置给改了一下。

具体操作方法如下:

You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE)

上面解决方法是把工程的设置给改了,但是改了之后有什么影响现在还没有发现。如果以后发现了会更新本文。

相关文章:

  • 2021-06-24
  • 2021-12-07
  • 2021-10-17
  • 2022-12-23
  • 2021-09-25
  • 2022-12-23
  • 2021-09-20
  • 2021-12-09
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-07
  • 2021-04-13
  • 2021-10-06
  • 2021-11-06
  • 2021-04-30
相关资源
相似解决方案