The last (hopefully) last step of my migration to Lion was installing the latest public release of Xcode. Again I hit some snags. On first (and subsequent) launches, Xcode crashes with some undefined references to the iPhone SDK private plugin. The issue was finally resolved by re-installing iTunes 10.5 beta.

It was Xcode 4.1.1 and sadly looks like it’s available only from the Mac App Store. Which means I can’t use any of the download managers that can accelerate the 3GB download. Sometimes I just miss the regular .dmg or .zip downloads.
I don’t have the Xcode crash log handy right now (writing this post on my iPad during commute to day job). But I’ll see whether my mac’s System Log still have it.
Here is an excerpt from Xcode’s crash log:
Encountered multiple assertions. First assertion was: UNCAUGHT EXCEPTION (NSInternalInconsistencyException): Couldn't load plug-in 'com.apple.dt.IDE.IDEiPhoneSupport' while firing fault for extension 'Xcode.Device.iPhoneSimulator'
UserInfo: {
NSUnderlyingError = "Error Domain=DVTPlugInErrorDomain Code=2 \"Loading a plug-in failed.\" UserInfo=0x400d9a9a0 {DVTPlugInIdentifierErrorKey=com.apple.dt.IDE.IDEiPhoneSupport, DVTPlugInExecutablePathErrorKey=/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/PrivatePlugIns/IDEiPhoneSupport.ideplugin/Contents/MacOS/IDEiPhoneSupport, NSLocalizedRecoverySuggestion=The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled., NSLocalizedDescription=Loading a plug-in failed., NSFilePath=/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/PrivatePlugIns/IDEiPhoneSupport.ideplugin, NSLocalizedFailureReason=The plug-in \U201ccom.apple.dt.IDE.IDEiPhoneSupport\U201d at path \U201c/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/PrivatePlugIns/IDEiPhoneSupport.ideplugin\U201d could not be loaded. The plug-in or one of its prerequisite plug-ins may be missing or damaged., NSUnderlyingError=0x40031d940 \"The bundle \U201cIDEiPhoneSupport\U201d couldn\U2019t be loaded because it is damaged or missing necessary resources.\"}";
}
This reminds me — it looks like whenever I install Xcode there were often issues with the iPhone SDK that was resolved by reinstalling iTunes. The problem often shows up when installing Xcode “from scratch” or when upgrading Xcode between iOS major version releases.
Apple – you really need to work on your “just works” mantra. You’re becoming too arrogant and its showing.
0 thoughts on “Lion "Production" Day One: Xcode snafu”
You must log in to post a comment.