error: Invalid bitcode version (Producer: '800.0.24.1_0' Reader: '703.0.31_0')

I got the error when archive my app.

error: Invalid bitcode version (Producer: '800.0.24.1_0' Reader: '703.0.31_0')


I'm using XCode 7.3.1

Target 8.0

Enabled Bitcode


I was successed to archived last week but I got this issue today.

I don't know where is the bitcode version come from.

Could anyone family with this?

What is the reason for this kind of error.I also saw this error.But I could not find out why this error is happening.If I know the root cause then I can resolve this.


Is it because you build your library in Xcode 8 by enabling BITCODE and then you use this library in XCode 7 to release the app?

We were blighted with this message too. We were compiling with XCode 7.3.1 and had the same message when archiving. At the time of writing we had the latest XCode 8 beta 3 also installed. We tried deleteing XCode 8 and reinstalling Xcode 7.3.1. We tried to delete all the build files and derived data. We tried moving the project files to a Mac that has never had Xcode 8 installed and cleaned all the build files again.


Non of the above worked.


What finally did work was changing library dependencies. We were using CocoaPods and by adding a version restriction on the PayPal SDK, i.e:


pod 'PayPal-iOS-SDK', '<= 2.14.3'


the problem went away. We are not 100% certain and don't want to cast blame but it seemed version 2.14.4 was the issue. Maybe you have a 3rd party dependency too that was at fault - perhaps they worked on it with XCode 8.

I'm also getting this error. Is there any other way to fix it?


I was also able to archive last week, but not this week now.


If I disable bitcode I can archive, but I can not upload to the App Store in order to publish to my TestFlight beta testers.

So I managed to solve this problem. It turned out at some point I had compiled SQLCipher when I had the current command-line tools set to be Xcode 8's tools. I had included the libsqlcipher.a static library in my project. That caused the error. So I finally got past that part. Phew!


On to the next problem trying to uploda to the App Store which is failing with a "Found an unexpected Mach-O header code" error.

I fixed it by changing the Build Settings to Enable Bitcode = NO


- Chris

www.popstand.com

error: Invalid bitcode version (Producer: '800.0.24.1_0' Reader: '703.0.31_0')
 
 
Q