I added methods to the UIFont .h file class
@interface UIFont (UIFont_CustomisedFont) +(UIFont*)bold11; +(UIFont*)bold12; +(UIFont*)bold13;
.m file
+(UIFont*)bold11{ return [UIFont boldSystemFontOfSize:11]; } +(UIFont*)bold12{ return [UIFont boldSystemFontOfSize:12]; } +(UIFont*)bold13{ return [UIFont boldSystemFontOfSize:13]; }
Similarly, I added so many methods to the UIFont category
For the above methods, I wrote Unit test cases using OCUnitTest
-(void)testBold11 { @try { UILabel *lbl = [[UILabel alloc] init]; lbl.font = [UIFont bold11]; } @catch (NSException *exception) { NSLog(@"main: Caught %@: %@", [exception name], [exception reason]); STFail(@"testBold11 failed"); } }
Similar UnitTestCases for other functions also
When I run UnitTest , it does not crash, but stops at one breakpoint, and this message comes Thread 1: EXC_BREAKPOINT(code=EXC_1385_BPT,subcode=0*0
I did not set breakpoints, and I run the release mode, but not in debug mode.

please help me fix this problem.
source share