Custom fonts not detected in Xcode

In my MacApp I am using custom fonts. These fonts are stored in /Resourcese/Fonts folder and Copy phase is written for the same.

I noticed that, if I have used these fonts in Xib and I run the app from Xcode. UI does not show up these fonts unless it is installed in Font Book.

However, same build if I have published to AppStore and I download from AppStore, custom fonts does show up.

My question is that why does Custom font not show up while we run through Xcode?


-Srinivas

Replies

Did you found solution? Im facing same issue.
Suppose you are copying the custom fonts to the Bundle's Resources folder directly (without subfolder), add the key "Application fonts resource path" to your Info.plist with empty value. Please check if this solves the problem.
  • YOU ARE GENIUS INDEED! THANKS!

Add a Comment
Deepa Pai your a genius.
  • Thank you so much Deepa Pai !!!

    I've been embedding fonts with Xcode for years without problems and today I've been struggling for ages with a new font. I just couldn't understand why this particular font wouldn't show up on the device when the others do. Now with your advice - problem solved!

Add a Comment