Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Build failed after Firebase Analytics added - Invalid bitcode version

Discussion in 'iOS and tvOS' started by bngames01, May 28, 2022.

  1. bngames01

    bngames01

    Joined:
    Apr 26, 2021
    Posts:
    28
    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.

    How can I solve the problem?
     
  2. bngames01

    bngames01

    Joined:
    Apr 26, 2021
    Posts:
    28
    There was an update to xcode, so I updated it, and finally it works. Magic things... :D
     
  3. bngames01

    bngames01

    Joined:
    Apr 26, 2021
    Posts:
    28
    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'."
     
  4. shant1010

    shant1010

    Joined:
    Mar 19, 2022
    Posts:
    1
    Last edited: May 30, 2022
  5. pushok_leha

    pushok_leha

    Joined:
    Nov 17, 2017
    Posts:
    6
    firebase 8.10 works fine.
    so we have downgraded firebase sdk from 9.0 to 8.1
     
    bngames01 likes this.
  6. bngames01

    bngames01

    Joined:
    Apr 26, 2021
    Posts:
    28
    You are genius! Thx! It works with 8.1
     
  7. bngames01

    bngames01

    Joined:
    Apr 26, 2021
    Posts:
    28
    andersemil likes this.
  8. andersemil

    andersemil

    Joined:
    Feb 2, 2015
    Posts:
    113
    joseGuate97 and MyEngineer like this.
  9. joseGuate97

    joseGuate97

    Joined:
    Mar 1, 2018
    Posts:
    57

    Yes.

    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:

    upload_2022-12-21_19-56-15.png

    Configuration options for Unity Cloud Build iOS (13.3.1 is still experimental):
    upload_2022-12-21_19-58-46.png

    The logs when Unity Cloud Build was using Xcode 13.2.1:
    upload_2022-12-21_20-1-32.png
    ```
    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:
    upload_2022-12-21_20-17-10.png