This is very annoying, every time I\'m trying to debug on the simulator with \"all exception break point\", app stops for no reason on this line:
return UIAp
An exception is being thrown, but the caller (e.g. in libFontParser and libTrueTypeScaler) is handling it and it is not reaching your program.
Unless you see other evidence of a problem (such as a log message) or the exception reaches your program, assume that the implementation is handling it. You can continue past these instances in the debugger without worry.
If you didn't find a problem in .plist file maybe the problem is in your .storyboard file..
Open it as source code from Xcode or in textView from Finder -
search for <customFonts key="customFonts">
I had there some old irrelevant array/font inside...:) just deleted it and it stopped
I was just experiencing the same exact problem and tracked down the issue.
Make sure that all fonts that you specify in your Info.plist
under Fonts provided by this application
are actually in your application bundle.
As the backtrace shows, the app didn't stop for no reason. It stopped because an exception was thrown, and it looks like a C++ exception.
Unlike Objective-C, where exceptions should only be thrown as the result of programming errors and therefore are very rare, there is a lot of C++ code around that throws and catches lots of exceptions. In that situation, probably best to only set a breakpoint on Objective-C exceptions, not all exceptions.
In my case the reference was inside xcuserdata
:
user$ grep -R "HelveticaNeue" ./
Binary file .//MyProject.xcworkspace/xcuserdata/user.xcuserdatad/UserInterfaceState.xcuserstate matches
I solved this issue by combining nmock's answer with DaNLtR's answer.
So at first i looked for <customFonts key="customFonts">
and there was Montserrat-Light
present in it.
But it wasn't neither present in info.plist nor was it added to the project.
The problem vanished once i bundled Montserrat-Light.ttf
into the project and added an entry for this font under Fonts provided by this application
in info.plist
.
So following is the summary of above mentioned solution:
Storyboard
or Xib
files for any Custom Fonts.<customFonts key="customFonts">
Fonts provided by this application
.<customFonts key="customFonts">
doesn't contain any Custom Font (e.g: Helvetica-Neue etc), then try deleting the <customFonts key="customFonts">
entry in Stroyboard
or Xib
file as stated in DaNLtR's answer I know its very late to answer but hope this helps someone.