macOS unity build won't open after being exported on Windows PC then transferred to Mac

Hi there,

I have an issue with exporting Mac builds on Unity 2022.3.4f1 Windows Editor.
When transferring the .app folder over to Mac, when trying to execute the .app file, it displays an error message : “(appname) can’t be opened.”

The macOS version the build was trying to run on is macOS 13 running on Silicon, which is well beyond the macOS 11 requirement limit explicited in one of the official unity posts for Unity versions 2022.2 and higher.
As of my knowledge this has been a recurring issue for years and it apparently was never fixed.

I’ve seen some workarounds which require the END USER to execute a command in the mac Terminal, but not everyone will bother to do that.

Has this issue ever been fixed?

Hi, seems you are facing an executable file attribute flag being missed on {YOURAPP}.app/Contents/MacOS/{EXECUTABLE} file.

The root cause of this issue is that in the Windows file system, there is no executable file attribute flag. When you move your .app to Mac you need to set it manually with chmod.

There are other nuances covered here

Hey, thanks for the reply! I managed to fix it by executing the chmod command using the git terminal directly on Windows before transferring it over to macOS, and it worked!

Hey, I know this has been a few years, but I’m a hobbyist developer and pretty unfamiliar with using the terminal in any capacity, but I am trying to get my (otherwise working) game to a Mac friend, if you happen to see this and could explain how this works in a bit more detail I would be forever in your debt lol