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. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Unity Hub cannot install Unity when it needs to elevate privileges on Mac

Discussion in 'Unity Hub' started by pbhogan, Jan 24, 2018.

  1. BenjaminWalbrook

    BenjaminWalbrook

    Joined:
    Mar 13, 2019
    Posts:
    2
    If it helps anyone with this in the future, I did the following to resolve the same problem:

    System: Installing 2019.3 via hub 2.2.2 on MacOS Sierra (on a mac mini late 2014).

    Renamed the install folder to "Unity", located outside my Applications folder (Documents).
    I ensured Documents folder was read & write for admin and everyone as per usual.

    Thanks for earlier suggestions.
     
  2. Fantastic_Balage

    Fantastic_Balage

    Joined:
    Dec 12, 2019
    Posts:
    10
    Guys, this is seriously starts to become a joke.
    • Unity Hub does not ask for any permission (Unity Hub fault)
    • nor can I explicitly set any permission in System Preferences > Security & Privacy (OSX fault, lol)
    • If I move Unity Hub to the Bin, and launch Unity and play a projectt in editor which uses camera, it asks for permission (great hack...)
    • I have to move Unity Hub from Bin each time I want to test the camera in editor mode,
    • I have to restore Unity Hub each time I want to use collab...
    This is not the best user experience so far.

    I however congratulate to Unity to develop and maintain such a great platform since such a long time, but these small things just makes developers scream.
     
  3. pbhogan

    pbhogan

    Joined:
    Aug 17, 2012
    Posts:
    341
    Yeah, it's a pain when apps do this. JetBrains Toolbox suffers from the same issue.

    My workaround for Unity Hub is to set the Unity Editors Folder in the preferences to /Users/USERNAME/Applications/Unity

    Any user writeable folder would work, of course.
     
  4. Fantastic_Balage

    Fantastic_Balage

    Joined:
    Dec 12, 2019
    Posts:
    10
    @pbhogan thanks for your reply. I tried to install Unity editor via Hub to:
    • /Applications
    • /Users/USERNAME/Applications
    • /Users/USERNAME/Documents
    • /Users/USERNAME/Downloads
    The load bar goes to approx 1/3rd, then it vanishes completely. For me this indicates permission problems. So in System Settings > Security & Privacy I have added Unity and Unity Hub to:
    • Full disk access
    • Files & folders
    • Developer Tools
    No success. OSX Catalina.
     
  5. Fantastic_Balage

    Fantastic_Balage

    Joined:
    Dec 12, 2019
    Posts:
    10
    Continuing this thread in here.
     
  6. leeprobert

    leeprobert

    Joined:
    Feb 12, 2015
    Posts:
    28
    Same issue today installing latest version of hub 2.3.1 and trying to install latest Unity. 2019.3.13 - install downloads but doesn't complete.
     
  7. gabearts

    gabearts

    Joined:
    Jun 30, 2014
    Posts:
    10
    This worked for me but will add that you can also choose your user account from the dropdown list of permissions and then add read/write permissions. Thank you!
     
    sika_js likes this.
  8. PuzzleEmptyM

    PuzzleEmptyM

    Joined:
    Jul 9, 2020
    Posts:
    1
    Still a problem. I tried installing Unity through Unity Hub and it failed at 100%. No explanation. I am doing this through a non administrator account, so that may be the problem. I will try again on an administrator account. Still a very annoying inconvenience to those who don't have the ability to download on an administrator account.
     
  9. VirginiaMSimpson

    VirginiaMSimpson

    Joined:
    Sep 3, 2020
    Posts:
    1

    Hello, I'm having a similar problem with Unity and installing it. It will download about 70%-80% and then it will say it failed to install. It does not give an error code or anything that would give me a clue as to why it won't install all of the way. What do I do?
     
  10. firstuser

    firstuser

    Joined:
    May 5, 2016
    Posts:
    147
    ROBYER1 likes this.
  11. EnergizedDane

    EnergizedDane

    Joined:
    Dec 7, 2020
    Posts:
    1
    This isn't only on Mac but also on Windows when using an office laptop where you don't have admin rights
     
  12. GunLengend

    GunLengend

    Joined:
    Sep 24, 2014
    Posts:
    53
    It's also happening with Unity Hub 2.4.2 on my Office PC running with Windows. I know it's blocked by permission but at least the Hub needs to show notification or something instead of fail in silent.
     
  13. fabischn_ethz

    fabischn_ethz

    Joined:
    Jan 18, 2021
    Posts:
    2
    Same issue on my Mac running macOS Catalina 10.15.7. Can install UnityHub as root user but cannot use or install any Unity version as non-root user.
     
    ROBYER1 likes this.
  14. ROBYER1

    ROBYER1

    Joined:
    Oct 9, 2015
    Posts:
    1,382
    Is there still not a fix for this? Unbelievable.
     
  15. led789zxpp

    led789zxpp

    Joined:
    Jun 26, 2017
    Posts:
    1
    Ok, I finally found how to activate Unity Hub on mac. By the log, the Unity Hub tries to write temporary license file into the root location /Library/Application Support/Unity/Unity_lic.ulf, which not allowed(I think It's bug, the Unity Hub should ask me an access). So I manually moved into there, and done. The Unity_lic.ulf is from the manual license activation page.
     
  16. andreifilip

    andreifilip

    Joined:
    Feb 14, 2018
    Posts:
    2
    This worked for me too, thank you!
     
  17. DuchyofTheDutch

    DuchyofTheDutch

    Joined:
    Aug 10, 2022
    Posts:
    1
    4 years since the first post on this thread and it is still not working properly, my non-admin account is downloading but not installing.
     
  18. EdenSavings

    EdenSavings

    Joined:
    Jun 15, 2020
    Posts:
    1
    Just ran into this problem installing 2021.3.9f1 (Apple Silicon).

    How I worked around it:
    1. Navigate to /Applications/Unity/Hub/Editor in finder
    2. Right click > "Get Info"
    3. Click the small lock in bottom right to allow admin changes
    4. Under "Sharing & Permissions" change "everyone" from "Read Only" to "Read & Write"
    5. Click lock again
    6. Retry install in Unity Hub
    Worked for me, but would be nice if Unity fixed this.
     
    ebelkin likes this.
  19. EMP_Playz

    EMP_Playz

    Joined:
    Sep 8, 2022
    Posts:
    1
    How?
     
  20. quackStudio

    quackStudio

    Joined:
    Apr 14, 2020
    Posts:
    1
    I solved it by running the install in a folder in the desktop
     
  21. zoereichert1010

    zoereichert1010

    Joined:
    Nov 12, 2022
    Posts:
    1
    Installation fehlgeschlagen: Berechtigung verweigert, mkdir '/Applications/Unity/Hub'

    ich habe versucht unity hub mer rechte zu geben bringt nichts