Default 3D URP Project iOS Build with 7 Errors

Hi, I found 7 errors (they are all same logs) with default 3D URP project building in iOS platform.

7 errors with xcrun: error: SDK “iphoneos” cannot be located

and build success with

Build completed with a result of ‘Succeeded’ in 37 seconds (36862 ms)

Unity 2021.2.14f1 Apple Silicon
macOS Meterey 12.2.1
Xcode 13.2.1

1 Like

Any updates? getting same thing.

1 Like

Is there a workaround for this? Other than not making it a URP project?

Ok, I MIGHT have figured out a workaround, but need to confirm…

The workaround was to Disable the options in Project Settings > Burst AOT Settings >

[ OFF ] Enable Burst Compilation
[ OFF ] Enable Optimizations.

After disabling and relaunching, the project built without errors…

5 Likes

I had to Update to 2022.3.29f1 and Mac OS Sonoma and Xcode 15 to make everything work again.

This is happening after installing/updating xcode command line tools. Unity does not know where the newly installed version is and to fix that you just need to run the following command in the terminal:

sudo xcode-select --switch /Applications/Xcode.app

source: react native - xcrun: error: SDK "iphoneos" cannot be located - Stack Overflow

4 Likes