MGCB can't build SpriteFont (Workaround)

Hi guys, I’m a Mac user and just had some hard time getting Spritefonts to work on my game. As I couldn’t find a fix, I started to search for any fixes/workarounds.

The error happens when trying to build Spritefonts through MGCB-Editor, it suddenly stops, giving me a dotnet error. Cliked on report and noticed this error:

“Dyld Error Message:
Symbol not found: ____chkstk_darwin
Referenced from: /Users/USER/*/libfreetype6.dylib (which was built for Mac OS X 10.15)
Expected in: /usr/lib/libSystem.B.dylib”

From what I can understand, I wonder if the freetype lib that’s currently installed on my Mac was actually built from source in another Mac with an OS version (10.15) higher than what I’m currently using (10.13.6 - High Sierra), which could explain this incompatibility?

I could download the source of freetype lib from their official website and build it against High Sierra to see if can fix this issue but I’m really afraid to mess up with the system so instead I was able to find a workaround: is one of them, but I couldn’t make it work yet :frowning:

Another one was just downloading an already built “Font.xnb” file (found one here in this github page):

You can find it specifically on:

And just place it in your


folder. Now just follow this tutorial (Just go straight to “Using the Sprite Font” part):

And just build/run your game. You can’t change its size, but it works, as I’m interested for debugging purposes. But I’m yet to find how to fix this issue with MGCB + Spritefonts so I appreciate if anyone can help ˆ_ˆ

Here is the repository where MonoGame has it’s thirdParty libraries.
Going back in history you might be able to find an older version that works.

Also, you could try to install an an older version of MG SDK and grab the native libraries from there.
And of course, if that previous version of MG works, you can use it as is… until you upgrade to OS 10.15.

1 Like