Search Unity

Error building Player: Currently selected scripting backend (Mono) is not installed.

Discussion in 'Editor & General Support' started by jerome-lacoste, Jun 23, 2022.

  1. jerome-lacoste

    jerome-lacoste

    Joined:
    Jan 7, 2012
    Posts:
    206
    We're trying to migrate our builds to 2021.LTS but we're getting unexpected build failures on our CI platform.

    We tried installing unity using our internal tool, u3d, the Unity installation assistant or the Unity Hub. Unity fails in the same way.

    Code (CSharp):
    1. /Applications/Unity/Hub/Editor/2021.3.4f1/Unity.app/Contents/MacOS/Unity
    2. -logFile
    3. (hidden)
    4. -projectPath
    5. (hidden)
    6. -quit
    7. -batchmode
    8. -accept-apiupdate
    9. -buildTarget
    10. linux64
    11. -executeMethod
    12. Internal.PerformLinux64Build
    13. -username
    14. (hidden)
    15. -password
    16. (hidden)
    17. -ignoreCompilerErrors
    18.  
    19. [...]
    20.  
    21. Error building Player: Currently selected scripting backend (Mono) is not installed.
    22.  
    Found one post about this but the context was different. Any idea what is going on?

    Reported as IN-8139
     
    Last edited: Jun 23, 2022
  2. cristianm_unity

    cristianm_unity

    Unity Technologies

    Joined:
    Oct 16, 2018
    Posts:
    259
  3. jerome-lacoste

    jerome-lacoste

    Joined:
    Jan 7, 2012
    Posts:
    206
    @cristianm_unity it is a regular build. I can't even start the build. The editor complains in the Editor window as well.

    And I've tried installing Unity in different ways (with the Hub, the Download Assistant and u3d our internal tool).
     
  4. cristianm_unity

    cristianm_unity

    Unity Technologies

    Joined:
    Oct 16, 2018
    Posts:
    259
    @jerome-lacoste First thing I'd look for is the PlaybackEngines folder in your Unity Editor install directory.
    See if LinuxStandaloneSupport/Variations contains both linux64_player_development_mono and linux64_player_nondevelopment_mono.

    This could help us identify if the issue is in the installation of the linux support or at the build validation.
     
  5. jerome-lacoste

    jerome-lacoste

    Joined:
    Jan 7, 2012
    Posts:
    206
    upload_2022-7-1_10-51-13.png

    None install properly.

    u3d https://github.com/DragonBox/u3d/ reproduces similar issues. We've never had issues prior to installing 2021 versions.

    There's something fishy with your package installation: from /var/log/install.log

    PKInformSystemPolicyInstallOperation failed with error:An error occurred while registering installation with Gatekeeper.

    Code (CSharp):
    1. 2022-06-30 19:03:06+02 JenskinsAgent-02 package_script_service[12347]: ./preinstall: Good version
    2. 2022-06-30 19:03:06+02 JenskinsAgent-02 package_script_service[12347]: Responsibility set back to self.
    3. 2022-06-30 19:03:06+02 JenskinsAgent-02 installd[71237]: PackageKit: Using trashcan path /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/PKInstallSandboxTrash/5F943E46-7F3C-4C14-AA9D-B89B257471D3.sandboxTrash
    4. for sandbox /Library/InstallerSandboxes/.PKInstallSandboxManager/5F943E46-7F3C-4C14-AA9D-B89B257471D3.activeSandbox
    5. 2022-06-30 19:03:06+02 JenskinsAgent-02 installd[71237]: PackageKit: PKInformSystemPolicyInstallOperation failed with error:An error occurred while registering installation with Gatekeeper.
    6. 2022-06-30 19:03:06+02 JenskinsAgent-02 installd[71237]: PackageKit: Shoving /Library/InstallerSandboxes/.PKInstallSandboxManager/5F943E46-7F3C-4C14-AA9D-B89B257471D3.activeSandbox/Root (1 items) to /
    7. 2022-06-30 19:03:06+02 JenskinsAgent-02 installd[71237]: PackageKit (package_script_service): Preparing to execute script "./postinstall" in /private/tmp/PKInstallSandbox.FPwH4e/Scripts/com.unity3d.LinuxStandaloneSupportIL2CPP.vpe3vI
    8. 2022-06-30 19:03:06+02 JenskinsAgent-02 package_script_service[12347]: PackageKit: Executing script "postinstall" in /tmp/PKInstallSandbox.FPwH4e/Scripts/com.unity3d.LinuxStandaloneSupportIL2CPP.vpe3vI
    9. 2022-06-30 19:03:06+02 JenskinsAgent-02 package_script_service[12347]: Set responsibility to pid: 95907, responsible_path: /Volumes/Unity Download Assistant 1/Unity Download Assistant.app/Contents/MacOS/Unity Download Assistant
    10. 2022-
    How can I check why GateKeeper causes these issues?
     
    Last edited: Jul 1, 2022
  6. colindegen1996

    colindegen1996

    Joined:
    Nov 10, 2020
    Posts:
    3
    Have you found the error?
    I have got the same..
     
  7. ozgehanozen

    ozgehanozen

    Joined:
    Nov 17, 2021
    Posts:
    2
    I have the same error with MACOS - Unity 2022.1.11f1 build number. Could someone please help?
     
  8. ozgehanozen

    ozgehanozen

    Joined:
    Nov 17, 2021
    Posts:
    2
    Just solved by installing the editor with the version number 2022.1.14 fyi...
     
  9. SpoonFox

    SpoonFox

    Joined:
    Feb 2, 2022
    Posts:
    1
    Hi All,

    Had the same issue just now, the unity version I have 2022.2.0b1.2674 spontainuslly switched to dedicated server build.
    How ever I don't use the server build and do not have it installed.
    Reslecting my installed building options by switch platform did the trick (note the dedicate Severs still shows as a valid installed platform even as I did not install it, I only have UWP, WebGL and Windows correctly reported in the Hub).