Search Issue Tracker

Fixed in 2021.2.X

Fixed in 2020.3.X, 2021.1.X

Votes

10

Found in

Issue ID

1304455

Regression

Yes

macOS builds no longer run when with a quarantine attribute due to incorrect codesigning

MacOS

-

macOS builds no longer run when with a quarantine attribute due to incorrect codesigning

Repro Steps:
1. Download a mac editor (2021.1.x for instance)
2. Once downloaded, build a mac player
3. Move mac player to a different mac and try to run

Actual Result
A new error shows up (it started to happen around mi-December 2020 for me an a colleague) : "<Unity app> is damaged and can't be opened. You should move it to the Trash"

Expected Result
Before it started happening, another dialog was showing up and I could still open the app: "macOS cannot verify the developer of "<Unity app>. Are you sure you want to open it?"

Workarounds (you only need to apply one):
- After exporting the game on a path, resign the whole app bundle: "codesign --deep -s - -f path/to/game.app"
- Remove the quarantine attribute from the command line: "xattr -r -d com.apple.quarantine path/to/game.app"
- User an GUI app to strip the flag: xattred

Comments (25)

  1. yuli_volta

    Mar 18, 2021 23:33

    Ditto - still getting this on 2020.3.0f1

  2. pamelacook

    Mar 13, 2021 09:40

    I did the following workaround to successfully open the app files on my M1 computer.

    Remove the quarantine attribute from the command line: "xattr -r -d com.apple.quarantine path/to/game.app"

  3. pamelacook

    Mar 13, 2021 00:56

  4. ab_unity726

    Mar 12, 2021 11:09

    same here the bug still present in unity 2020.3

  5. beevik_

    Mar 12, 2021 00:43

    The release notes for 2020.3.0f1 say this bug was fixed. (https://unity3d.com/unity/whats-new/2020.3.0)

    But even after updating to 2020.3.0f1, I am still seeing this bug.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.