Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MoarFonts broken in Xcode 5.1.1

For the past 4 months, I've been using Moarfonts, a Build Phase Run Script that allows you to use custom fonts in Interface Builder.

Today, when trying to build my app, the compiler thew a bunch of errors like this:

error: Failed to install Brandon Grotesque Bold: The file “Brandon_bld.otf” couldn’t be opened because there is no such file.

Not sure if these are related, but today, before building and failing, I:

  • Upgraded to Xcode 5.1.1 from 5.1
  • Opened up a copy of Xcode 4.6 to build and run an older project of mine
  • Back in Xcode 5.1.1, ran the following commands in the terminal at Xcode's request:
    • sudo chmod a+w /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/System/Library/.lilid
    • sudo chmod a+w /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/System/Library/.lilid/.lilic

I've removed all the fonts from the Copy Bundle Resources Build Phase, and everything else looks sane.

Any ideas?

like image 700
djibouti33 Avatar asked Mar 20 '23 21:03

djibouti33


1 Answers

I had the same problem. Running /usr/local/bin/moarfonts reset in a build phase once, then restarting Xcode again helped me. Afterwards you should remove the build phase again.

like image 146
Alfonso Avatar answered Apr 01 '23 01:04

Alfonso