Problems Launching Exported Game on Mac

Hey folks,

I've just released a demo of my game for people to start playtesting, and so far there are no issues on the Windows side of things, but all of the players on Mac that have been playing have not been able to launch the game.

I own an old Macbook Air myself, and can launch the game just fine. They have tried all of the common permissions-related workarounds for "application cannot be accessed" sorts of problems that you find on google, but nothing is fixing it.

Is there anything I can be doing to make the Mac version more compatible, or some "best practices" for Mac exports to follow? It has just been a straight-forward export process, with no re-naming of any files or folders, and distributed in a .zip.

This is the game, if anyone wants to give it a shot on their Mac: https://www.patreon.com/welcometoelderfield

Thanks!
My friend had the same problem, he couldn't test my game on Mac, and we didn't found the solution, sadly... I'm leaving a comment because I'm curious if anyone knows what this is about.
Did a bit a fiddling around. I'm no expert in this field so if there are any smarter folks that me, please chime in. I'm just a casual hobbyist trying things through experimentation, trial, error and sheer stubbornness.

Bit of a process to get it to run:
  • From the official NWJS website, download the NWJS SDK (nwjs-sdk-v0.49.0-osx-x64.zip).
  • Extract the files into a temporary folder.
  • Inside the temp folder, select the "nwjs.app" file.
    • Control-Click/Right Mouse Click and choose "Show Package Contents".
  • In a separate window, go to your deployed "Game.app" file.
    • Again, Control-Click/Right Mouse Click and choose "Show Package Contents".

The next part will be replacing various files in your Game.app Package with the files from the downloaded NWJS SDK:
  • File: /Contents/MacOS/nwjs
  • File: /Contents/Frameworks/nwjs Framework.framework/Versions/86.0.4240.75/nwjs Framework
  • Folder: /Contents/Frameworks/nwjs Framework.framework/Versions/86.0.4240.75/Helpers/
  • File: /Contents/Frameworks/nwjs Framework.framework/Versions/86.0.4240.75/Internet Plug-Ins/pnacl/pnacl_public_x86_64_ld_nexe
  • File: /Contents/Frameworks/nwjs Framework.framework/Versions/86.0.4240.75/Internet Plug-Ins/pnacl/pnacl_public_x86_64_pnacl_llc_nexe
  • File: /Contents/Frameworks/nwjs Framework.framework/Versions/86.0.4240.75/Internet Plug-Ins/pnacl/pnacl_public_x86_64_pnacl_sz_nexe

Now the final part.
  • Run your "Game.app" file.
    • If it crashes, wait a few seconds then try again.
  • Get the error message "Please move the Game.app to a different folder."
  • Quit the game.
  • Move "Game.app" file outside of its current folder.
  • Move the same file back to the previous folder.
And that should do it. I walked through the process a couple of times to confirm I had it correct.

After doing this, I was able to get the game to run on my personal Mac (M2 Max, Sonoma 14.4). I copied the updated game folder to two other Macs (M1, Sonoma 14.2) and it ran fine on those, too.

Depending on the security settings of one's Mac, it may not run from the Desktop or Downloads folder. I had to move the game folder to my Documents folder to get it to run. For the two other Macs, I was able to run it from the Downloads folder and a flash drive without issue.

Would recommend running additional tests to ensure there are not any issues that may arise during gameplay. I tested the game launching and if save files would load properly. This was just from the very beginning of the game.

Once all is well, compress that updated Game folder and distribute that instead.

The only thing I can't really answer is why this happened.


Process and Notes
First thing first I had to see what happened without messing with files. So I downloaded the game from the website and launched it as is. Get the system error message "The application “Game.app” can’t be opened.". Okay. Cool.

So, I deployed my game in its current state so I would have something to compare against. Diving into the Package Contents, I noticed certain files in the downloaded game were showing different icons against my deployed game despite being the same exact file (date and size). Like it wasn't be recognized as the file it is suppose to be.

I tried the permission reset on the files in question but that didn't work for me. NWJS would immediately crash. Fun!

My next idea was to replace the files with the original NWJS files. Found out MZ is using v.0.49.0 so downloaded the x64 Mac SDK to match up. Then it was trial and error to see which files needed to be replaced and which didn't until i was able to finally get it running.

Again, no expert here. Just a tinkering who is stubborn to get things to work.
As someone who has been using Macs for work since the PowerPC days, you might be in for an uphill battle with this kind of thing, as @suxatgames outlined via his process. They're great machines, but for this type of application, they require ongoing attention from the developer, and I'm not super checked-into the Mac version right now so I can't say whether or not MZ has received that.

(Edit for clarity: by "the developer", I am referring to MZ's developers, not you as a game dev).

MZ's advertised system requirements for Mac at this time state:
  • Mac OS 10.13 or better
  • Intel Core i3-4340 or better
... However, the current version of MacOS is 14.4, and most new Macs have not utilized Intel CPUs in years. So, you might be able to see the problem there in terms of things being outdated.

I haven't launched MZ on my Mac in several months, but even then, I was on an Apple CPU and at least MacOS 13.x and playtesting worked properly, so I'm not sure what the current problem might be. If I get the chance, I might try to run a non-playtest demo (or your demo) on my Mac and see whether or not it works.

Original thread: https://forums.rpgmakerweb.com/threads/problems-launching-exported-game-on-mac.167883/