MonoGame supports many platforms, including MacOSX, but there are some traps you can walk into when developing on Apple’s platform.
- If you get strange exceptions during compiling, make sure you to remove all shader files from your contents (both the files and the references in .mgcb file itself). If build works without the shaders, it means your project works on Mac, you just have to install Wine to be able to compile the shaders during normal the compilation process.
- MGCB Editor from the repository does not work on Mac. Extract and run this version of the editor, it should work. However, you can only open, edit and save content files with this, building probably won’t work.
- To build contents on Mac, you have to use the command line tools the way it’s written on MonoGame’s website.
- run ‘dotnet tool install -g dotnet-mgcb’
- once it’s ready, cd into your contents folder, and you can use the command ‘~/.dotnet/tools/mgcb /rebuild Content.mgcb’ (or however your .mgcb file is called) to build your contents for the project
- Once the contents are built, you can compile and run your project without any issues
If you are developing on a Mac, chances are you want to run your game on an iPhone. If you experience UI freezes on the phone, look at this article for a possible solution.
Email : email@example.com
Website : https://lajbert.github.io