There are a couple of older questions concerning Bitcode support in LinkedIn's SDK. They seem to concur with LinkedIn's documentation that version 1.0.7 of their SDK supports Bitcode.
However, when I attempt to archive our app (using Xcode 7.3.1, and including that SDK), I get this error during the linking stage:
ld: bitcode bundle could not be generated because '/Users/…redacted…/linkedin-sdk.framework/linkedin-sdk(Pods-dummy.o)' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Inspecting the framework (per an earlier question) seems to show Bitcode in both arm64 and armv7 slices:
otool -arch arm64 -l linkedin-sdk | grep '__bitcode'
otool -arch armv7 -l linkedin-sdk | grep '__bitcode'
Does anyone else see this result? Is there any way to fix it, other than turning off Bitcode support for the app?
On a tangentially related note, if I do turn off Bitcode, and get a successful build, I get about 10 of these warnings (that look to me like misconfiguration of their CI system):
while processing /Users/…redacted…/linkedin-sdk.framework/linkedin-sdk(LISDKAccessToken.o): warning: /export/home/tester/hudson/data/workspace/MP_TRUNKDEV_POSTCOMMIT/ios-sdk_3939eff14f36b69f3fa38c9db85f0b182a1fc733/build/linkedin-sdk/ModuleCache/22OID7V7UWIA2/Foundation-73OMMCO56G8Z.pcm: No such file or directory
note: Module debugging should be disabled when shipping static libraries.