Archiving in Xcode leads not possible with bitcode on (UnityFramework)

When I try to archive my game to send it to the app store, I get:

ld: could not reparse object file in bitcode bundle: ‘Invalid bitcode version (Producer: ‘1103.0.32.62.0_0’ Reader: ‘1100.0.33.12_0’)’, using libLTO version ‘LLVM version 11.0.0, (clang-1100.0.33.12)’ for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

When switching off bitcode for the unity framework, it works.
What is going on here?
Unity 2019.4, Xcode 11.2.1
I have no plugins and am using the following packages:

PS: why is UnityAds included!??!

6082992--660222--Screenshot 2020-07-12 at 23.34.30.png

3 Likes

I have the same issue. Thanks for your solution. I turned off bitcode and it worked for my project too. How did you guess this? Is it possible to turn off bitcode option in Unity project or this option is available only in xCode project settings?

It’s not a bug. Here is the explanation of the issue:
https://discussions.unity.com/t/741337

Anyway, it would be nice to understand what to expect from such solution.

1 Like

Turning off bitcode is not a good solution: I found out now that you must just update Xcode and all works again :slight_smile:

In my situation it’s not possible. I had to downgrade Xcode because main station which builds application for release is old and Xcode can’t be updated on it.

What do you mean by “switching off bitcode for the unity framework”, how do you do that, is it in unity or xcode?