Reputation: 592
ld: could not reparse object file in bitcode bundle: 'Invalid bitcode version (Producer: '902.0.39.2_0' Reader: '900.0.39.2_0')', using libLTO version 'LLVM version 9.0.0, (clang-900.0.39.2)' for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Note: - Enable Bitcode to No in Build Settings. Apple Reject on uploading build to itune.
Upvotes: 10
Views: 11678
Reputation: 83
I had the same problem and my workaround was:
To set "Enable Bitcode" to "No" in XCode project Build Settings.
Upvotes: 0
Reputation: 34
I got this error while I compiled my code with Xcode 11.2.1 and later tried to make the build file (.ipa) for distribution by using Xcode 10.3.
So making the build file by using Xcode 11.2.1 fixed the issue.
Upvotes: 0
Reputation: 27221
Due to this is the first question about such error in the web I have to say that such a problem may occur when you implement Google Firebase without exact version.
E.g. for Carthage
:
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAnalyticsBinary.json"
use
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAnalyticsBinary.json" == 5.20.0
Upvotes: 1
Reputation: 3028
I've never seen this error before, but it looks to me like you are linking against a library that was pre-build with a newer, and unfortunately incompatible, compiler version.
The only options I can think of are to update your compiler or rebuild the library.
I would imagine this library isn't building by you, or you'd have tried that already. So, your only option seems to be updating your version of Xcode to be at least the same as was used for this library.
Upvotes: 3