Take the 2-minute tour ×

Details: This is a very very strange issue. I have added a custom font to my ipad app. The font is a modified times new roman font that the company that enlisted me to make this app provided. The font and the size is set in code in the app and is updated on a timer (as the font size changes) and applied to 5 different labels. When run from xcode onto an iPad or in the iPad emulator the font displays correctly, proper size and font type. However, after publishing to the app store the company contacted me and told me that the fonts were totally wrong. I downloaded the update from the app store onto my iPad and low and behold the font was completely different. The font had returned to Arial 12pt, when it should have been Modified Times New Roman 50pt (which had been demonstrated on my iPad).

What I tried and specs: I tried changing the compiler type to see if it was an error there but that didn't help. My xcode is fully updated and running iOS sdk beta for iOS 7 (that isn't the issue since I released this version when I was running the iOS 6 SDK). My workstation is a Black Macbook from 2008 (I know terrible specs but it works) with 2gb of RAM and an Intel Core 2 Duo. The only other program running at the same time (to eliminate write errors as the issue).

My question: Does anyone have any ideas about what could be causing this problem? And how I could fix it?

Thank you!!! Been struggling with this for several days and could find nothing on it anywhere.

share|improve this question
Note: the font is added in the plist (since it's working on provisioned devices), so that isn't the issue either. –  tucker2121 Jul 15 '13 at 22:07
Are you sure that the font is in the resource bundle? If you accidentally removed it from your target or source, it may not have copied over to your archived build but still been in your build products for your simulator build. You may want to wipe out your Dervived Data, delete the apps from your simulator and try building again. –  Brian Nickel Jul 15 '13 at 22:15
Thanks! That fixed it! (sorry took so long to reply, had to wait for it to get reviewed and all) –  tucker2121 Jul 21 '13 at 22:57
add comment

1 Answer

up vote 0 down vote accepted

As mentioned in my comment, the issue is likely that the font was not bundled in the app. It may have been attached at the target or source at some point, getting it in your DerivedData, and later accidentally removed. This would make it appear in your app when you built it for the simulator or your phone but not when you archived it.

You should be able to see the actual behavior by deleting your DerivedData from your Mac and deleting the apps from your simulator/phone. Your next build will show the wrong font. Adding the fonts back into your target will get it to build correctly.

share|improve this answer
add comment

Your Answer


