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. 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.

  2. E4677cffa1ebc3af403270aa8d4dda14?d=mm

    KimZigbang

    Sep 17, 2021 02:41

    Still present in unity 2020.3.18f1

  3. 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.

  4. 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.

  5. Dcd15d9174e1bc4b677e7a70fd1ed85e?d=mm

    bbyford

    May 07, 2021 15:49

    not fixed for 2020.2.6f1

  6. 335eff0d453a4c72740399949d09bad3?d=mm

    x70x

    May 01, 2021 20:56

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

  7. 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!

  8. 1fcaff6efc88129327e38c27522ef9bf?d=mm

    botta-naverz

    Apr 16, 2021 06:10

    2021.1.3 also.

  9. 1fcaff6efc88129327e38c27522ef9bf?d=mm

    botta-naverz

    Apr 16, 2021 06:08

    2020.3.3 2020.3.4 2021.1.1 still has this bug

  10. 1836f0259a0f1d3c4a477f09e31d5bd9?d=mm

    bcapdevila

    Apr 07, 2021 07:59

    Any word on this issue from Unity Team? Still present in 2020.3.2f1

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.