Search Issue Tracker

Fixed

Fixed in 6000.2.0b13, 6000.3.0a4

Votes

0

Found in

6000.2.0a1

6000.2.0b10

6000.3.0a2

Issue ID

UUM-111730

Regression

Yes

[iOS][Beta] Building app fails when Metal Toolchain 26.0 is installed

-

Steps to reproduce:

  1. Create a new project
  2. Go to File > Build Settings and switch to the iOS Platform
  3. Export Xcode project
  4. Open Xcode and go to Xcode > Settings > Components
  5. Make sure that "Metal Toolchain 26.0" is installed
  6. Build app to the device

Actual results: Build fails with error - "Command Ld failed with a nonzero exit code
"

Expected results: Build is successful 

Reproducible with versions: 6000.2.0a1, 6000.2.0b10, 6000.3.0a2

Not reproducible with versions: 6000.0.54f1, 6000.1.12f1

Can’t test with versions: 

Tested on (OS): MacBook Pro, Apple M1 Max, OS: Tahoe 26.0 (beta dev 2)

Notes:

  • Looks like it fails on IL2CPP build - 

{code:java}
Unity.IL2CPP.Compile.CompileFailedException: Failed: at Unity.IL2CPP.Compile.CompilationDriver.Run(TinyProfiler2 tinyProfiler, Il2CppCommandLineArguments il2CppCommandLineArguments, String il2CppInvocationString, String directoryHoldingIl2Cpp, String distributionDirectory) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Compile/CompilationDriver.cs:line 62{code}

  1. Resolution Note:

    Workaround 1: modify script in Build Phases for GameAssembly target and set SELECT_TOOLCHAIN_SDK_AUTOMATICALLY variable to true. A bit risky if more than one Xcode is installed.
    Workaround 2: modify the same script to use DT_TOOLCHAIN_DIR variable instead of TOOLCHAIN_DIR. Some older versions of Xcode reportedly don't have it though.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.