问题
I noticed an issue with the new XCode 8, that makes it impossible to archive on XCode 7 with bitcode. So for example if I'm trying to develop a library on XCode 8, when using on Xcode 7 and enabling bitcode I'm getting this error:
Invalid bitcode version (Producer: '800.0.38.0_0' Reader: '703.0.29_0')
Is there any workaround for that when developing libraries on Xcode 8 (objective c)?
回答1:
In my case, the problem came when i add new pod library which change bitcode compress. So changing bitcode in Build Setting resolve my problem.
Note that for projects using CocoaPods you should set ENABLE_BITCODE = NO
on both the project and the Pods container project targets.
回答2:
If anyone is still trying to solve this, at the end we created a new binary using Xcode 7 (You can download older versions of Xcode form here). There's no way to make Xcode 8 to create a build using an older version of bitcode.
来源:https://stackoverflow.com/questions/39466051/xcode-8-bitcode-compatibility