IOS 5.1 application error when starting with Symbol not found: _NSFontAttributeName

I get below errors when launching an application on iPad with iOS 5.1.1

dyld: Symbol not found: _NSFontAttributeName
  Referenced from: /var/mobile/Applications/9471D711-BCA7-4529-A584-9747C2E03DBC/egnyteMobileIOSUniversal.app/egnyteMobileIOSUniversal
  Expected in: /System/Library/Frameworks/UIKit.framework/UIKit
 in /var/mobile/Applications/9471D711-BCA7-4529-A584-9747C2E03DBC/egnyteMobileIOSUniversal.app/egnyteMobileIOSUniversal

Where, as in my code, now I use the NSFontAttributeName constant. As I know, it is supported for iOS equal to or higher than 6.0. None of my code uses the NSAttributedString Class. Is it possible that some other methods or user interface controls are called inside this method internally?
Stack-trace does not give me any information about which code or method is getting this problem.
Is there a way in which I can properly debug trace character errors? My application supports min 5.0 iOS

+4
source share
2 answers

Change the type for UIKit from required to weak and rebuild the goal of your application. This should take care of runtime errors.

+6
source

NSFontAttributeName can be used to calculate text size. If you cannot find it in your <iOS 6 Project from CMD + Shift + F, maybe it is used in an external library.

+3
source

All Articles