Lion "Production" Day One: Xcode snafu

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.

Xcode Internal Error

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:

ProductBuildVersion: 4B110
Encountered multiple assertions. First assertion was: UNCAUGHT EXCEPTION (NSInternalInconsistencyException): Couldn't load plug-in '' while firing fault for extension 'Xcode.Device.iPhoneSimulator'
UserInfo: {
NSUnderlyingError = "Error Domain=DVTPlugInErrorDomain Code=2 \"Loading a plug-in failed.\" UserInfo=0x400d9a9a0 {, 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 \\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.

Avoid App Review rules by distributing outside the Mac App Store!

Get my FREE cheat sheets to help you distribute real macOS applications directly to power users.

* indicates required

When you subscribe you’ll also get programming tips, business advices, and career rants from the trenches about twice a month. I respect your e-mail privacy.

0 thoughts on “Lion "Production" Day One: Xcode snafu