All Products
Document Center

How to solve the "APOpenSSL' does not contain bitcode" error

Last Updated: Apr 08, 2021

Problem description

An error occured in the process of compiling the mPaaS iOS project accessed through Pod.

  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)



The APOpenSSL.framework library does not support the compilation with BITCODE mode enabled, so you need to set Enable Bitcode to NO in Target > Build Settings > Build Options.

disable bitcode

After modifying the settings, the project can be compiled successfully.