Need help with Apple Developer tools and technologies? Want to share information with other developers and Apple engineers? Visit Developer Forums at Apple.
Need help with Apple Developer tools and technologies? Want to share information with other developers and Apple engineers? Visit Developer Forums at Apple.
Looks like no one’s replied in a while. To start the conversation again, simply
ask a new question.
[IPhone] Interface Builder crashes and missing font
I just installed 10.5.6 and the latest IPhone SDK, but IB crashes when opening any xib file. If I can get past the initial crash by hitting continue, but adding any control to any empty view crashes with missing font. Even sample code provided by apple crashes. Also crashes if I sent SDK to older version.
Error:
IBUIViewImageRequester failed to rasterize a UISearchBar.
Exception name: NSInternalInconsistencyException
Exception reason: [NOTE: this exception originated in the server.]
Invalid parameter not satisfying: font != nil
Exception backtrace:
0. CoreFoundation 0x9620d10b _NSExceptionSetRubyToken
1. libobjc.A.dylib 0x9674fe3b objc
exceptionthrow
2. CoreFoundation 0x9620ceeb [NSException copyWithZone:]
3. Foundation 0x93e8e6a4 [NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
4. UIKit 0x30b4ae0b [UILabel setFont:]
5. UIKit 0x30b496e2 [UILabel _commonInit]
6. UIKit 0x30b49803 [UILabel initWithFrame:]
7. UIKit 0x30ab94ae [UITextField createTextLabelWithTextColor:]
I am having this exact problem as well.
It started right after I tried to open a tutorial project from the iphone dev center - MediaPlayer.
Nothing I do seems to solve it - I tried to uninstall and install the sdk - nothing...
Any help?????
Some similar cases reported in this forum were solved by cleaning out an older version of the SDK. That might work for you if you installed over any previous version of the SDK (even if it was only for OS/X). You'll want to uninstall as much as you can, new and old. Then rename the Developer folder so the next installation will make a new one. Your objective should be to prepare your Mac for a clean install, as if it had never hosted any development software in the past. After you've hosed out as much as you can, install the SDK again. Of course, by "latest" SDK I'm assuming you don't mean the 3.0 beta.
That said, I'm only guessing based on similar reports. I've never seen your particular stack trace before, so you might want to put off all the work I'm recommending for a day or two to see if someone else recognizes your specific problem.
Thanks for the quick response.
I will try your suggestion.
My Error Report is:
Assertion Message: Interface Builder encountered an error communicating with the iPhone Simulator. If you choose to file a crash report or radar for this issue, please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" and include their content in your crash report.
IBUIViewImageRequester failed to rasterize a UINavigationBar, UINavigationItem, UIToolbar, UIBarButtonItem, UITabBar, UITabBarItem, UITabBarItem, UISearchBar, and UILabel.
Hi yuvalkesten - I don't understand your crash report, but now that it's posted maybe someone else will be able to tell us what's going on. Your problem seems to be different from what engenus reported, and my advice to him may be less likely to help in your case. Still, if your system is ok, there are few problems that a good clean install won't fix, so yes, it's certainly worth a try.
Now it's working.
1. Uninstalled the previous SDK using sudo /Developer/Library/uninstall-devtools --mode=all from the terminal.
2. Changed the name of the Developer dir.
3. Changed my time zone to USA and my language to English from Hebrew.
4. Installed the 10.5.6 combo update from Apple's site.
5. Restarted
6. Reinstalled the SDK
7. ALL IS GOOD
I had the same problem and until I removed the old 'Developer' directory and renamed the new one nothing helped (including several installs).
BTW - I found that it still created some samples directories under 'Developer' even with the new directory in place but at least now it's working.
Do you also have the default directory 'recreated' for you?
Not a quick reply, but I ran into this same problem two days ago and spent all night and all day rebuilding my /Developer directory (3 times; it hung for some reason 75% through the 2nd time), and also uninstalling developer-tools twice.
In my case, and possibly yours, did you happen to have any non-english characters in your directory path? I had my /Developer directory on an external disk named "Olórin" which is a name of a wizard from The Lord of The Rings. The "option-e o" character showed up in the path as "o%C3%85%C3%85", which I, of course, ignored and typed the correct path and saw that the font cache file was indeed there and readable.
That ONE crash log entry among hundreds of lines of log messages was the key to solving it.
To test it, I changed the disk name to "Olorin" and Interface Builder worked just fine!
Yay! ! ! But I lost 2 whole days tracking this down. At least I can start fresh tomorrow!