Updated to macOS Big Sur 11.2, Xcode 12.4, can't build 2020.2.1f1 HDRP projects

After updating macOS to Big Sur 11.2 and Xcode 12.4 I can no longer build for 64bit or silicon macOS with any 2020.2.1f1 HDRP projects. This is the error message I receive:

Error building Player: IL2CPP scripting backend requires macOS 11 SDK (Xcode 12.2) or newer to be installed when targeting Apple silicon devices. macOS SDK is not installed on this machine.

Can you paste the whole editor log please?

UnityEditor.BuildPlayerWindow+BuildMethodException: Error building Player: IL2CPP scripting backend requires macOS 11 SDK (Xcode 12.2) or newer to be installed when targeting Apple silicon devices. macOS SDK is not installed on this machine.
  at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002be] in /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:190
  at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:95
UnityEngine.StackTraceUtility:ExtractStackTrace () (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs:37)
UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
UnityEngine.Logger:Log (UnityEngine.LogType,object)
UnityEngine.Debug:LogError (object)
UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions) (at /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:100)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun (bool) (at /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPlayerWindow.cs:129)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun () (at /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPlayerWindow.cs:123)

(Filename: /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs Line: 37)

EditorHelper: Unable to use the external script editor. Trying the internal script editor now.
EditorHelper: Unable to use the external script editor. Trying the internal script editor now.
EditorHelper: Unable to use the external script editor. Trying the internal script editor now.

What does “xcode-select -p” print on your machine? Could it be pointing to an invalid path? Does Xcode open properly if you try to open it?

1 Like

In terminal type:

xcode-select -p

Terminal prints the path to command line tools:

/Library/Developer/CommandLineTools

That directory doesn’t appear to contain anything

I’ll see if there is something missing and will reinstall, thanks!

You should be able to do “sudo xcode-select --reset” to fix it.

3 Likes

I ran:

xcode-select --install

Rebooted my mac, can now build fine - thanks for your help!