PrideChung / FontAwesomeKit

Icon font library for iOS. Currently supports Font-Awesome, Foundation icons, Zocial, and ionicons.
MIT License
2.81k stars 308 forks source link

Font file doesn't exist #105

Closed ptlCoder closed 3 years ago

ptlCoder commented 6 years ago

Font file doesn't exist

divide-by-fish commented 5 years ago

I just had this issue - in my case it happens when using FAKOcticons.

A close look at the FAKOcticons.m shows that as of v2.2.1, it's the only resource to be loaded from mainBundle, not bundleForClass. see FAKOcticons.m -> registerIconFontWithURL

To solve this, for now, I copied resource "FontAwsomeKit/Octicons/Resources/octicons.ttf" to my main bundle, and it worked.