MoarFonts corrupted in Xcode 5.1.1

Over the past 4 months, I have been using Moarfonts , a phase of the Script build phase that allows you to use custom fonts in Interface Builder.

Today, trying to create my application, the compiler has a bunch of bugs like this:

Error: Failed to install Brandon Grotesque Bold: the file "Brandon_bld.otf" could not be opened because there is no such file.

Not sure if they are connected, but today, before building and crashing, I:

  • Updated to Xcode 5.1.1 from 5.1
  • Opened a copy of Xcode 4.6 to create and run the old my project
  • Back in Xcode 5.1.1, executed the following commands in the terminal at the request of Xcode:
    • 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 removed all the fonts from the build phase of the Bundle copy resources, and everything else looks reasonable.

Any ideas?

+4
source share
1 answer

I had the same problem. Performing /usr/local/bin/moarfonts resetonce in the build phase, restarting Xcode helped me again. After that, you should remove the build phase again.

+7
source

Source: https://habr.com/ru/post/1536506/


All Articles