Compressed .APP becomes corrupted on other devices

  • on different mac devices, we create a macOSX build (Unity 2020.2.1f1)
  • Compress it
  • AirDrop or AWS S3 or GDrive it to someone else
  • They unzip it
  • Right click open
  • App is corrupt

On all the macs: Unity 2020.2.1f1 running on macOS Big Sur 11.1

Tried this on macbook Pro, mac mini, 2 different iMac’s.

1 Like

This happens because the browser puts a quarantine attribute on the app. We’re actually looking at how to get around this, but a temporary workaround is to do “xattr -r -d com.apple.quarantine /path/to/game.app” on the command line after downloading and unzipping it.

3 Likes

@Taut

Thanks mate, that solves it!

Another workaround: after exporting the app from Unity, you can do “codesign --deep -s - -f path/to/game.app” and it will not have this problem on another machine.

We’re tracking the issue here: Unity Issue Tracker - macOS builds no longer run when with a quarantine attribute due to incorrect codesigning

3 Likes

Awesome, thanks, this is a much better solution

I was having the same issue and it solved it Thanks.