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

    Aug 31, 2023 20:13

    2022.3.7f1 not fixed.

    Workaround :
    Open Terminal
    Goto App Folder
    xattr -rc <yourappicatin>.app

    you can run after that.

  2. wasifalmeem789

    Jul 18, 2023 18:44

    Didnt fixed on 2021.3.24f1

  3. unitj75

    Sep 02, 2022 18:33

    Not fixed in 2021.3.8f1

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

  5. mustafa_d

    Mar 02, 2022 09:55

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

  6. tahers_unity

    Oct 21, 2021 15:59

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

  7. asya_unity

    Sep 20, 2021 14:43

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

  8. KimZigbang

    Sep 17, 2021 02:41

    Still present in unity 2020.3.18f1

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

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

Add comment

Log in to post comment