文档

通过 Pod 接入的项目编译时出现 APOpenSSL' does not contain bitcode 错误

更新时间:

错误描述

通过 Pod 方式接入的 mPaaS iOS 工程项目,在编译时遭遇错误:

  1. ld: '/Users/xxx/Documents/xxx_project/Pods/APOpenSSL/APOpenSSL.framework/APOpenSSL' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file '/Users/donglei/Documents/mPaaSiOSArchive/RayiOSDemo/SelectedDemos/101-mPaaS-CannotSetStatusBarIssue_pod/Demo/Pods/APOpenSSL/APOpenSSL.framework/APOpenSSL' for architecture arm64
  2. clang: error: linker command failed with exit code 1 (use -v to see invocation)

error

解决方法

APOpenSSL.framework 库不支持启用 BITCODE 模式的编译,因此需要在 Target > Build Settings > Build Options 中将 Enable Bitcode 设置为 NO

disable bitcode

修改设置后,项目可以编译通过。

  • 本页导读 (0)
文档反馈