'Invalid bitcode version (Producer: '902.0.39.2_0' Reader: '900.0.37_0')'

This could also happen if you have two different Xcode versions installed side by side and then building with one that points to wrong command line tools. I experienced this problem after installing Xcode 10.1 next to (updated) Xcode 10.2. My Xcode 10.1 was pointing to Xcode 10.2 command line tools, so linking failed with invalid bitcode version, same as in your case. The fix was:

  • Change Command Line Tools in Xcode Preferences -> Locations -> Command Line Tools: XCode Preferenes -> Locations

  • Clean build folder and hit Archive.

The above is also valid for other Xcode versions.


Steps to solve this issue:

  • Build Setting
  • Search Enable Bitcode option in Build Options category.
  • Select no.

This is because you have some dependencies in your project (frameworks) that is built with a newer version of Xcode.

You have to update your Xcode version, or disable bit code in your project (Project > Build Settings > Enable Bitcode = NO)

enter image description here