Issues deploying for macOS from macOs

Hi everyone,

I am trying to deploy my game to for macOs. I even bought a mac and downloaded rmmz for mac from steam.

The playtest works well but every time I deploy, I can't launch the game. I always get a message "The application Game can't be opened".

I managed to allow opening of apps from anywhere, and also tried to change the application rights from the terminal, but nothing works (this is what I read on the other threads).

I get the same result with my game and the base example project of rmmz. I always the same message "The application Game can't be opened". So I suppose it doesn't come from the plugins I am using either.

my mac is a brand new M2 (tried on an M1 too, same issue) and I upgraded the nwjs to the last version (I tried both SDK and normal version, same result). As I said before, playtest runs well, so I don't think the nwjs version is the issue. It looks like macOS won't even try to launch the game.

EDIT: The Game also runs perfectly on Mac via Steam (I uploaded the build with Steamworks from windows, and can test it on Steam maOsc before it is available to the public).

EDIT 2: I am getting this error code when trying to open t from terminal.
Project1 % open Game.app

The application cannot be opened for an unexpected reason, error=Error Domain=RBSRequestErrorDomain Code=5 "Launch failed." UserInfo={NSLocalizedFailureReason=Launch failed., NSUnderlyingError=0x600003d6b120 {Error Domain=NSPOSIXErrorDomain Code=153 "Unknown error: 153" UserInfo={NSLocalizedDescription=Launchd job spawn failed}}}


EDIT 3: I Found a way to get my game running outside of Steam by... copying my game files from the Steam folder. I am still interested to know why the normal deployement dno't make app that can be launched.


Does someone know what to do?

Thanks

Original thread: https://forums.rpgmakerweb.com/threads/issues-deploying-for-macos-from-macos.173402/