Unity 2022.3.44f1 Mac build is damaged and can’t be opened. You should move it to the Trash

I build program in Unity 2022.3.44f1 for my Mac. The program runs in the editor, and I can build it, and it runs on my Mac.

But when I try to distribute to other Mac users in my office, they get the following message when they try and open… is damaged and can’t be opened. You should move it to the Trash.

This link has an answer to try: “Unity” is damaged and can’t be opened. You should move it to the Trash.

Thank you, Phil.

I did also lave a response there, but it does not help.
Also my issue is NOT that UNITY is damaged, but rather a MAC app file built with UNITY is showing as damaged.

Thanks again for your help.
Jim

So the issue is that you built the app on your system, but it is damaged when another user opens it? That could be due to macOS thinking it’s a virus and tricking you to not even open it. It happens to us all the time!

Here’s a guide on how to fix this:

To do this, open a new Terminal window and type (or paste the following command):

xattr -d com.apple.quarantine /path/to/app.app

You’ll need to replace /path/to/app.app with the target location of the file you want to release from quarantine. One easy way of doing this is to drag the file into the Terminal window, right after the initial command.

This is a good solution for when you’re just sending the game to test, but how do I prevent this prompt from ever coming up? Like for a release.

For a release, you will need to Notarize your application. Instructions on how to do that can be found here: Unity - Manual: Code sign and notarize your macOS application

To do this properly as of this writing, you need to be an Apple Developer, and it is most likely on a paid tier: Choosing a Membership - Support - Apple Developer

As far as I can remember, you don’t have to do any of those things if you’re shipping the game on Steam. Which, idk, my impression is that there’s somewhere in the ballpark of 3 people in the world that buys video games on the MacOS app store instead of Steam.