ld: '[removed]/ios/Pods/DJI-SDK-iOS/iOS_Mobile_SDK/DJISDK.framework/DJISDK' 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 '[removed]/ios/Pods/DJI-SDK-iOS/iOS_Mobile_SDK/DJISDK.framework/DJISDK' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Steps to reproduce:
Link the DJI SDK to the application via Cocoapods
Set "Enable Bitcode" to "Yes" for our application's target.
Build the application.
Compiler error:
ld: '[removed]/ios/Pods/DJI-SDK-iOS/iOS_Mobile_SDK/DJISDK.framework/DJISDK' 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 '[removed]/ios/Pods/DJI-SDK-iOS/iOS_Mobile_SDK/DJISDK.framework/DJISDK' for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have seen other issues here discussing bitcode (e.g. https://github.com/dji-sdk/Mobile-SDK-iOS/issues/11) where the ffmpeg lib was blocking this library from being compiled with bitcode enabled. There are options to compile ffmpeg for ios with bitcode enabled (e.g. https://github.com/kewlbear/FFmpeg-iOS-build-script).
Either way, it would be nice to have the DJI SDK no longer blocking us from enabling bitcode for our application.