How to export games for MacOs from Windows?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By adib003

I’m trying to export a game for macOs using standard export template of Godot. It results in a .zip file which contains an .app folder. But when I share it with my friend (who has macOs) to test it isn’t working. It shows that,
“XYZ Game” is damaged and can’t be open. You should move it to the trash.
Screenshot of the error message.

Now what can I do to fix this. Windows and web exports are working fine. Do I need a MacOs to export the game for macOs?

Should work. Just google for the error “is damaged and can’t be open macos” .

There should be a cli tool called “xattr” for macos to remove attributes from the .app file.

juppi | 2021-12-04 18:37

Thanks @juppi . But is there any other options so that it doesn’t happen on the client’s computer?
'cause I can’t tell a client that if you want to play the game, you need to download this tool.

adib003 | 2021-12-04 19:14

I dont believe you can do that. Apple has proprietary exporting libraries which cannot be added legally to windows or Linux. Apple wants people to buy a mac if they want to export to a mac. Not a godot thing you will find thats the case on all game engines. Thats a major part of the reason there arent all that many games released for MacOS

Gluon | 2021-12-04 23:02

:bust_in_silhouette: Reply From: Calinou

This is expected, as your app needs to be signed and notarized to avoid those warnings on macOS. The notarization step in particular can only be run from a macOS machine, so you will need access to a Mac somehow to initiate the process.