Hello all. I can't believe this is actually an issue (GameMaker 2, 2020). It is incredibly stupid that it hasn't been fixed. I'm replying to all the duplicate posts with two actual solutions (rather than just saying "the dmg method" as all the posts do).
Option 1. Once you unzip the file on the mac you downloaded it on, if you then move the app to a different folder, it will open (you can also then move it back to the original folder and it will work too).
Option 2. If you take the app, and create a .dmg instead of a .zip from it, it will work. You do this by doing the following:
a. Generate the executable in GameMaker, which makes a .zip
b. Extract the .zip to get the app
c. Place the app in a folder by itself (unless you want to include other files/documentation)
d. Open Disk Utility, and do File -> New Image -> New Image From Folder (or cmd+shift+N), and choose that folder
e. Distribute the generated .dmg instead of the .zip generated by GameMaker
And I have a solution for YoYo: If this has literally been an issue for YEARS and YEARS, why not just make the generate executable option generate a dmg instead of a zip?
Ridiculous...
I think I'm getting crazy, but I cannot get this to work no matter what in runtime 2.3.2.426.
My app (compiled through YYC) is correctly code signed and notarized (following YoYo's
instructions). According to Xcode everything is alright ("accepted", "Ready for distribution").
If I run
spctl -v -a MyApp.app, I get:
MyApp.app: accepted
source=Notarized Developer ID
There aren't any extensions (as far as I can tell) messing around with the notarization. Xcode is notarizing the app itself and libYoYoGamepad.dylib.
However, if I pack my app using ZIP or DMG, upload it to my web server and download it on my second Mac (test machine, no dev certificates etc). I get the "Unable to find game!!" error no matter what.
The only way of getting rid of the error if by moving the app to a different directory.
Does anyone know any other trick or something I should check? I've tried literally all the tips found in the forum (including the DMG pack) and nothing seems to work... Ask players to move the executable to a different directory isn't really a professional nor proper solution (as Mac users expect things just to work, they won't check out the readme.txt first).