Fraser Speirs ([info]fraserspeirs) wrote,
@ 2007-06-30 16:23:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Dissecting an iPhone Crash Log
Since we in the UK aren't getting the iPhone until October or so, I've been watching the frenzy across the Atlantic with some detachment. As a developer, though, I'm at no more of a disadvantage than anyone else, thus far. So, when John Gruber posted an application crash log from his new iPhone, it was easily the most interesting part of the whole coverage for me.

Here's the link to his 'first impressions' post, and this is the actual crash log file.

Here are some of the main points of interest:

  • Foundation and CoreFoundation are there.
  • New frameworks:

    • UIKit which, at a guess, is probably the iPhone's version of AppKit.
    • AddressBookUI, presumably some kind of shared contact picker.
    • MobileMail, which I guess is a mail framework.
    • CoreTelephony - phone functions, perhaps? It would be cool if this were made available, particularly to game developers.
    • CoreSurface, which I suppose is the multi-touch driver framework.

  • There appears to be a traditional file system - images and applications are listed by their slash-separated paths.
  • All the frameworks and applications appear to have a UUID associated with them. I suspect this might be part of the mechanism by which Apple maintains the integrity of the software set installed on the device.
  • There's an image called liblockdown.dylib, whose name seems very interesting.
  • The crash report lists the OS Version as "OS X 1.0 (1A543a)" - notice it's not "Mac OS X"
  • Applications appear to be bundles, but simplified bundles. MobileMail's binary is listed at /Applications/MobileMail.app/MobileMail. Notice there's no MobileMail.app/Contents/MacOS/ substructure in that bundle.


Very interesting!


(Post a new comment)


[info]balatro
2007-06-30 03:38 pm UTC (link)
I'll be posting my Flickr photos shortly (though my pictures, of course, suck). :)

So far it's great. I've had a few issues:

Once on EDGE it locked up loading large images in an email from my friend who was with me.
Once coverflow wouldn't initiate and I had to restart the phone.

Otherwise it's been brilliant.

Oh and 7.3 still blows on Vista. Took a few HOURS to optimize 393 photos.

(Reply to this)


[info]ydna
2007-06-30 04:20 pm UTC (link)
Is the exception code (0x8badf00d) a standard joke or is that new? It cracked me up.

(Reply to this)(Thread)


[info]indeyets
2007-06-30 06:33 pm UTC (link)
http://en.wikipedia.org/wiki/Hexspeak

(Reply to this)(Parent)(Thread)


[info]ydna
2007-06-30 06:39 pm UTC (link)
I'm familiar with hexspeak and the more popular magic numbers. But this 0x8badf00d was a new one for me. Googling wasn't as helpful as I was hoping. I was wondering if it (this particular one) is a well-known inside joke or are we seeing something new and specific to the iPhone.

(Reply to this)(Parent)(Thread)


[info]tpirman
2007-06-30 10:00 pm UTC (link)
"Bad food" is an old joke and is the second example in the linked Wikipedia article. "0x8badf00d" is Apple's slight variation on this chestnut. It has appeared pre-iPhone.

(Reply to this)(Parent)


[info]spride
2007-06-30 11:40 pm UTC (link)
I can get you the hardware, but it's probably sod-all use offline.

(Reply to this)(Thread)

(Reply from suspended user)

Create an Account
Forgot your login?
Login w/ OpenID
English • Español • Deutsch • Русский…