I have been using Dropbox Core API in my iOS app for quite a while now. After updating to Xcode 7 I received the following error when I try to compile my project:
ld: '.../Frameworks/Dropbox/iOS/DropboxSDK.framework/DropboxSDK' 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.
I know what Bitcode is and what it is good for. The error can be solved by simply setting the Enable Bitcode
option to No
in the targets Build Settings. After this everything compiles without any error and the app runs without any problem.
So far so good, but is this the "right" solution? I checked the Dropbox page for an updated Version of the SDK, but I already use the latest version.
The Project contains some other target for an App Widget, Watch Extension, etc. which do not use the Dropbox SDK. What option for Enable Bitcode
should be used here? Is is (for some reason) better use the same value (No
in my case) for all targets? Does it make any sense to enable Bitcode for Watch and Widget targets if the the main app target does not use Bitcode?
What is the best practice here?