I added Firebase Analytics to the game and now I can build it in xcode. I get an error:
could not reparse object file in bitcode bundle: ‘Invalid bitcode version (Producer: ‘1316.0.21.2.3_0’ Reader: ‘1300.0.29.30_0’)’, using libLTO version ‘LLVM version 13.0.0, (clang-1300.0.29.30)’ for architecture arm64
I tried to set to NO the Enable Bitcode. After it the build was success, but then I could not uploaded to the app store.
Oh it builds, but now I can’t upload it to the App Store Connect…
ERROR ITMS-90206: “Invalid Bundle. The bundle at ‘Game.app/Frameworks/UnityFramework.framework’ contains disallowed file ‘Frameworks’.”
I was using Unity Cloud Build and just realized that the configuration was using Xcode 13.2.1 since I had selected “latest compatible version.” My local builds on my machine were working for I have installed Xcode 13.4.1. Right now Unity Cloud Build marks version 13.3.1 as experimental (see screenshot), but after selecting 13.3.1 my builds started working again.
And yes, all this happened after integrating Firebase (push notifications).
Unity Cloud Build logs when using “latest compatible version” for Xcode:
Configuration options for Unity Cloud Build iOS (13.3.1 is still experimental):
The logs when Unity Cloud Build was using Xcode 13.2.1:
358: [2022-12-22T01:33:04.101Z] - 7.2.4.2.4.2 - INFO: ❌; ld: could not reparse object file in bitcode bundle: 'Invalid bitcode version (Producer: '1316.0.21.2.3_0' Reader: '1300.0.29.30_0')', using libLTO version 'LLVM version 13.0.0, (clang-1300.0.29.30)' for architecture arm64
359: [2022-12-22T01:33:04.101Z] - 7.2.4.2.4.2 - INFO: ❌; clang: error: linker command failed with exit code 1 (use -v to see invocation)
360: [2022-12-22T01:33:04.102Z] - 7.2.4.2.4.2 - INFO: ▸ clang: error: linker command failed with exit code 1 (use -v to see invocation)
361: [2022-12-22T01:33:04.126Z] - 7.2.4.2.4.2 - ERROR: xcode build failed
362: RuntimeError (Build Failure):
363: Finished: FAILURE
The logs when Unity Cloud Build was using Xcode 13.3.1: