Update: The App Store doesn’t install Xcode. It installs an app called “Install Xcode”. I had to search for this app and found multiple copies as I’d previously downloaded Xcode from the App Store. Right click to check the version. It should be 4.1. The install went smoothly after that.
****
I had the misfortune of paying $4.99 for Xcode just 2 weeks before Apple made reduced the price to “Free” in the App Store.
After upgrading to Lion, I received message that I needed to install the Xcode tools version for OS X Lion. So I fired up the App Store. Clicked install. And waited. (Actually, I did alot of other stuff while Xcode downloaded.) This process differed from typical App Store updates in that no progress bar was displayed beneath the app icon.
Eventually the App Store told me that I had successfully downloaded Xcode, but I received the same error. I still had the wrong version of Xcode for OS X Lion.
A search suggested uninstalling Xcode and then reinstalling using the “Install Xcode” app (which appears to function similarly to the “Install OS X Lion” app.
Alas, no luck. Not even after a reboot.
Here’s the error:
****
UNCAUGHT EXCEPTION (NSInternalInconsistencyException): Couldn’t load plug-in ‘com.apple.dt.IDE.IDEiPhoneSupport’ while firing fault for extension ‘Xcode.Device.iPhonePlaceholder’
UserInfo: {
NSUnderlyingError = “Error Domain=DVTPlugInErrorDomain Code=2 \”Loading a plug-in failed.\” UserInfo=0x400db8a80 {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=0x4003a0b80 \”The bundle \U201cIDEiPhoneSupport\U201d couldn\U2019t be loaded because it is damaged or missing necessary resources.\”}”;
}
Hints: None
Backtrace:
0 0x00007fff8f10596a __exceptionPreprocess (in CoreFoundation)
1 0x00007fff8de52d5e objc_exception_throw (in libobjc.A.dylib)
2 0x000000010a6edc98 -[DVTExtension _fireExtensionFault] (in DVTFoundation)
3 0x000000010a6d87f9 __38-[DVTDispatchLock performLockedBlock:]_block_invoke_0 (in DVTFoundation)
4 0x00007fff92f58afd _dispatch_barrier_sync_f_invoke (in libdispatch.dylib)
5 0x000000010a6d87a9 -[DVTDispatchLock performLockedBlock:] (in DVTFoundation)
6 0x000000010a6eda45 -[DVTExtension _valueForKey:inParameterData:usingSchema:] (in DVTFoundation)
7 0x000000010a6ed9ab -[DVTExtension valueForKey:] (in DVTFoundation)
8 0x000000010a6ed167 +[DVTDevice _knownDeviceLocators] (in DVTFoundation)
9 0x000000010a6eccea -[DVTDeviceManager startLocating] (in DVTFoundation)
10 0x000000010ac1d07a IDEInitialize (in IDEFoundation)
11 0x000000010af8fc0b -[IDEApplicationController applicationWillFinishLaunching:] (in IDEKit)
12 0x00007fff8b405716 __-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke_1 (in Foundation)
13 0x00007fff8f0ae51a _CFXNotificationPost (in CoreFoundation)
14 0x00007fff8b3f19cb -[NSNotificationCenter postNotificationName:object:userInfo:] (in Foundation)
15 0x00007fff932c46c8 -[NSApplication finishLaunching] (in AppKit)
16 0x00007fff932c427d -[NSApplication run] (in AppKit)
17 0x00007fff9354252a NSApplicationMain (in AppKit)
18 0x000000010a6cfeec (in Xcode)
I’m not alone in this issue https://discussions.apple.com/message/15662283#15662283.
It’s always something. (Of course, I upgraded asap knowing some problem would turn up. Sue me.)