iPhone SDK: Assertion failure in -[UILabel setFont:] -


i have iphone app compiles , runs fine in simulator on laptop. now, try build , run same code in simulator on imac, , starts , lets me click button, assertion failure.

here in console:

*** assertion failure in -[uilabel setfont:], /sourcecache/uikit/uikit-738/uilabel.m:438 *** terminating app due uncaught exception 'nsinternalinconsistencyexception', reason: 'invalid parameter not satisfying: font != nil' stack: ( 2493366603, 2432871995, 2493366059, 2459146836, 817183141, 817926218, 837317240, 837317032, 837315376, 837314643, 2492860866, 2492867620, 2492869880, 85304, 85501, 816175835, 816221412, 9096, 8930 ) 

here's stack trace:

#0  0x949dbff4 in ___terminating_due_to_uncaught_exception___ #1  0x9102ae3b in objc_exception_throw #2  0x94962ad3 in cfrunlooprunspecific #3  0x94962cf8 in cfrunloopruninmode #4  0x00014d38 in gseventrunmodal #5  0x00014dfd in gseventrun #6  0x30a5dadb in -[uiapplication _run] #7  0x30a68ce4 in uiapplicationmain #8  0x00002388 in main @ main.m:16 

my code not make direct calls setfont:. however, point in program's execution buttons made visible first time.

i've googled. few people similar problems gets magically fixed when edit nib, or change time zone, or other weirdness.

any ideas real cause is?

(please no whining nda's.)


update: if change font of of buttons "timesnewromanps-boldmt" "times", assertion failure no longer occurs. why can't use desired font, exists on iphone, installed on new machine, , selectable in interface builder?

if you've got uilabels in xib file, may somehow corrupt, or may have set font them doesn't exist on both machines (you can use command-t when editing uilabel bring font picker; not sure it's possible set non-iphone font, may be). otherwise, try removing uilabels xib file until runs, , there's culprit.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -