VSTS Build Generation throwing Invalid bitcode version error

Found a solution for the problem that i was facing. As the issue reads, the VSTS server was having Xcode 9.2 which has 900.0.39.2_0 and hence updating the xcode version in the vsts server fixed the issue. The thing we need to take care is when we update the xcode version in local machine its better to update the xcode version in VSTS server to avoid such issues in future.


It happened to me when I was trying to create an archive of a project with a binary framework (in my case Crashlytics/Fabric). The framework was compiled using Xcode 9.4, but I was using Xcode 9.2 (looks like 900.0.39.2_0 is Xcode 9.2 and 902.0.39.2_0 is Xcode 9.4). I solved it by temporarily setting Enable Bitcode to No in Build Settings.

Note: Bitcode is not mandatory to submit an iOS app to the App Store. (However it is mandatory for Apple Watch apps.)

Another solution would be to downgrade the binary framework to an older version (built with a compatible version of Xcode).


In my case I disabled bitcode from Target enter image description here

but I did not disable bitcode from My Project enter image description here

I just change my project's settings bitcode to "No" and it's work....