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

  1. 861a5475eafbc3480ca0cf579a307d4b?d=mm

    schema_unity

    Mar 18, 2022 15:37

    NOT fixed.

    Issue is still happening on 2021.1.11f and 2021.2.13f1.

    I upgraded from 2019.4.16f1, which did NOT have the issue. I did not make any changes to the code. There is no OnPostProgress in my code.

  2. 58c673e21cfa5921a59d552d6ff6e1b7?d=mm

    mustafa_d

    Mar 02, 2022 09:55

    Why the hell do they say fixed when it's not FIXED!!!

  3. 4f51c6e739b7f1bed187906769dd67a4?d=mm

    tahers_unity

    Oct 21, 2021 15:59

    I'm using 2020.3.18f1 and I'm still facing this issue. This is not fixed.

  4. E8f3c6e4be7ab7c2e240aae57d76c2f1?d=mm

    asya_unity

    Sep 20, 2021 14:43

    I'm still seeing this issue in latest 2020.3.0 :(
    Especially after building unity in CI.

  5. E4677cffa1ebc3af403270aa8d4dda14?d=mm

    KimZigbang

    Sep 17, 2021 02:41

    Still present in unity 2020.3.18f1

  6. C2babde71a8efe3dcb0c9936dc06cf64?d=mm

    z3nbstrd

    Jul 06, 2021 08:42

    Got it my problem figured out for now. Turns out it was caused by having "app store validation" turned on in the build settings.

  7. C2babde71a8efe3dcb0c9936dc06cf64?d=mm

    z3nbstrd

    Jul 05, 2021 06:25

    I'm going to say not fixed on 2020.3.12f1, though I'm not totally sure I'm having exactly the same problem. I'm building on a Mac for Mac, and when I try to run my game on that same Mac it asks me to log into the app store, saying that the app was purchased on another computer. I log in, and get the message '"app" is damaged and can't be opened. Delete "app" and download it again from the App Store.' The problem showed up after I went through all the registration nonsense to try and produce an iOS build.

  8. Dcd15d9174e1bc4b677e7a70fd1ed85e?d=mm

    bbyford

    May 07, 2021 15:49

    not fixed for 2020.2.6f1

  9. 335eff0d453a4c72740399949d09bad3?d=mm

    x70x

    May 01, 2021 20:56

    I updated to 2020.3.0f1 but I'm still experiencing this issue.

  10. 7fd630127a2ccfc75f8abca4e43d6e3b?d=mm

    Tautvydas-Zilys

    Apr 16, 2021 16:08

    Hi everyone, as far as we are aware, this issue is fixed in all known cases. If you're still running into "<Unity app> is damaged and can't be opened. You should move it to the Trash" error in Unity versions where it's listed as fixed, please either report a bug, or post to our macOS forum (https://forum.unity.com/forums/macos.95/) and we'll make sure to investigate/help you!

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.