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 (19)

  1. Cea7ef89e352e7a9b1537576e51f11f5?d=mm

    Ninad_Jagdish

    Mar 24, 2021 06:09

    Still seeing this in 2020.3.0f1 and 2020.3.1f1.

  2. 1836f0259a0f1d3c4a477f09e31d5bd9?d=mm

    bcapdevila

    Mar 23, 2021 17:49

    Same problem still in 2020.3.1f1

  3. 5518849f3ff7f9e1b8e348e4dfe06380?d=mm

    yuli_volta

    Mar 19, 2021 17:56

    Also not fixed in 2021.1.0b12

  4. 657db0dc0e11a138f629f06fac3e672f?d=mm

    poliman

    Mar 19, 2021 10:52

    I also use 2020.3.0f1 and the BUG is NOT FIXED.

  5. 5518849f3ff7f9e1b8e348e4dfe06380?d=mm

    yuli_volta

    Mar 18, 2021 23:33

    Ditto - still getting this on 2020.3.0f1

  6. E512dc6510fbc20b2994b4131ec4e5f0?d=mm

    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"

  7. E512dc6510fbc20b2994b4131ec4e5f0?d=mm

    pamelacook

    Mar 13, 2021 00:56

  8. 7d3946fda8c4c4bf79995fe444d0cfcd?d=mm

    ab_unity726

    Mar 12, 2021 11:09

    same here the bug still present in unity 2020.3

  9. D40e18572a0d31e92986eec1b18bc5a7?d=mm

    beevik_unity

    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.