Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Cloud compilation errors on different ARFoundation versions

Discussion in 'AR' started by StefanoCecere, Apr 26, 2020.

  1. StefanoCecere

    StefanoCecere

    Joined:
    Jun 10, 2011
    Posts:
    210
    i'm really struggling:

    online Cloud Build has Xcode 11.3.1 and locally i have Xcode 11.4.1

    the Unity Cloud builds only with these ARKit versions:
    "com.unity.xr.arfoundation": "3.0.1",
    "com.unity.xr.arkit": "3.0.4",
    "com.unity.xr.arkit-face-tracking": "3.0.1",

    any other version (2.1, 3.1 and 4.preview) fails with link problems:

    Code (csharp):
    1. 3864: ▸ ❌;  ld: could not reparse object file in bitcode bundle: 'Invalid bitcode version (Producer: '1103.0.32.29.0_0' Reader: '1100.0.33.17_0')', using libLTO version 'LLVM version 11.0.0, (clang-1100.0.33.17)' for architecture arm64
    2. 3865: ▸ ❌;  clang: error: linker command failed with exit code 1 (use -v to see invocation)
    but locally it builds and runs perfectly
     
    Last edited: Apr 26, 2020
    Fangh likes this.
  2. Numasun

    Numasun

    Joined:
    Nov 27, 2014
    Posts:
    2
    I have a similar problem.
    Locally with Xcode 11.4.1, it builds normally.
    But in UCB, for some reason, I don’t have XCode 11.4.1.
    How to choose Xcode 11.4.1 in Unity Cloud Build?
     
  3. StefanoCecere

    StefanoCecere

    Joined:
    Jun 10, 2011
    Posts:
    210
    Unity Cloud Build doesn't have Xcode 11.4.1 (yet) :(
     
  4. Finer_Games

    Finer_Games

    Joined:
    Nov 21, 2014
    Posts:
    33
    Bumped into this issue today as well.
     
  5. Fangh

    Fangh

    Joined:
    Apr 19, 2013
    Posts:
    274
    I have the same issue with ARfoundation 3.1.3 + ARKit 3.1.3.
    How do you know we need XCode 11.4.1 ?
     
  6. vadimtihonyuk

    vadimtihonyuk

    Joined:
    Feb 26, 2018
    Posts:
    32
    Same problem
     
  7. vadimtihonyuk

    vadimtihonyuk

    Joined:
    Feb 26, 2018
    Posts:
    32
  8. AngelusDarkness

    AngelusDarkness

    Joined:
    Jul 8, 2015
    Posts:
    5
    I could solve this, installing the latest beta of Xcode 12. It's not ideal, but was the workaround that worked for me.

    My configuration is:

    Unity 2019.4.1
    AR Foundation preview.2 4.1.0

    Also this is a good source of information about different Xcode and clang versions: https://gist.github.com/yamaya/2924292
     
    Last edited: Jul 7, 2020