Mac Standalone mark .app as executable

Hi,

I’m writing a simple launcher for my PC-Mac game. It checks for updates and either downloads new version or starts the last one.

After downloading a zip with Unity build file I save it locally and extract using this plugin (Zip / gzip Multiplatform Native Plugin. | Input Management | Unity Asset Store).

On Windows everything works well, but on Mac when I launch it I get The application “” can’t be opened.

(in case of manual unzipping using default Mac unzip tool everything works well).

People on forums say that this .app file has to be marked as executable.

.

What are the options to mark it as an executable or to launch the .app file?

1 Answer

1

Hello,

Thanks to the asset support (Zip / gzip Multiplatform Native Plugin. | Input Management | Unity Asset Store) who solved my issue:

In order for the .app to launch I had to set ‘rwx’ (maybe execute would be enough) permissions to both .app file and .app/Contents/MacOS/yourApp.

Hope this might help someone.

Did you check if the mainTemplate.gradle file is at the specified location mentioned in the error or you can also check the Custom Main Gradle Template in Project Settings - Player - Publishing Settings, and it will generate the mainTemplate.gradle file. If it still gives you file not found exception, then you can move that generated mainTemplate.gradle file to the specified location mentioned in the error

–