Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

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

Discussion in 'macOS' started by theserkai, Feb 7, 2021.

  1. theserkai

    theserkai

    Joined:
    Jan 6, 2021
    Posts:
    9
    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:

    Code (CSharp):
    1. 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.
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,504
    Can you paste the whole editor log please?
     
  3. theserkai

    theserkai

    Joined:
    Jan 6, 2021
    Posts:
    9
    Code (CSharp):
    1. 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.
    2.   at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002be] in /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:190
    3.   at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:95
    4. UnityEngine.StackTraceUtility:ExtractStackTrace () (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs:37)
    5. UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    6. UnityEngine.Logger:Log (UnityEngine.LogType,object)
    7. UnityEngine.Debug:LogError (object)
    8. UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions) (at /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:100)
    9. UnityEditor.BuildPlayerWindow:BuildPlayerAndRun (bool) (at /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPlayerWindow.cs:129)
    10. UnityEditor.BuildPlayerWindow:BuildPlayerAndRun () (at /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPlayerWindow.cs:123)
    11.  
    12. (Filename: /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs Line: 37)
    13.  
    14. EditorHelper: Unable to use the external script editor. Trying the internal script editor now.
    15. EditorHelper: Unable to use the external script editor. Trying the internal script editor now.
    16. EditorHelper: Unable to use the external script editor. Trying the internal script editor now.
    17.  
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,504
    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?
     
    Polyfemos likes this.
  5. theserkai

    theserkai

    Joined:
    Jan 6, 2021
    Posts:
    9
    In terminal type:

    Code (CSharp):
    1. xcode-select -p
    Terminal prints the path to command line tools:

    Code (CSharp):
    1. /Library/Developer/CommandLineTools
     
  6. theserkai

    theserkai

    Joined:
    Jan 6, 2021
    Posts:
    9
    That directory doesn't appear to contain anything
     
  7. theserkai

    theserkai

    Joined:
    Jan 6, 2021
    Posts:
    9
    I'll see if there is something missing and will reinstall, thanks!
     
  8. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,504
    You should be able to do "sudo xcode-select --reset" to fix it.
     
    resequenced, Polyfemos and theserkai like this.
  9. theserkai

    theserkai

    Joined:
    Jan 6, 2021
    Posts:
    9
    I ran:

    Code (CSharp):
    1. xcode-select --install
    Rebooted my mac, can now build fine - thanks for your help!