If I attempt to launch XCode from the dock (as a standard user), I simply get an error message (see end of his message). The same happens regardless of the way XCode is launched, ie, from Spotlight, from the Applications folder, from the Applications stack. However, if I switch to an administrators account, I can launch XCode successfully but ony if I launch from the dock; Spotlight launch fails with the same message.
I tried to redownload XCode from the App store but the App store version only supports Lion. What can I do about this apart from the obvious upgrade to Lion which I don't want to do just for the sake of XCode and am concerned about corrupting my bootcamp partition which is vital for me. I can't risk the upgrade to Lion if there is even an outside chance of losing my bootcamp partition as I have heard of from various forums.
Although I am an experienced windows developer, this is my first foray into developing for OS-X/iOS platform so I haven't got off to a great start.
Error message is as follows:
|Code Type:||X86-64 (Native)|
Parent Process: launchd 
|Date/Time:||2012-08-03 19:58:59.516 +0100|
|OS Version:||Mac OS X 10.6.8 (10K549)|
Report Version: 6
|Interval Since Last Report:||338200 sec|
|Crashes Since Last Report:||5|
Per-App Crashes Since Last Report: 4
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread: 0
Dyld Error Message:
Library not loaded: @rpath/DVTFoundation.framework/Versions/A/DVTFoundation
Referenced from: /Applications/Xcode.app/Contents/MacOS/Xcode
Reason: image not found
|0x7fff5fc00000 -||0x7fff5fc3bdef dyld 132.1 (???) <486E6C61-1197-CC7C-2197-82CE505102D7> /usr/lib/dyld|
Model: MacBookPro5,2, BootROM MBP52.008E.B05, 2 processors, Intel Core 2 Duo, 2.66 GHz, 8 GB, SMC 1.42f4
Graphics: NVIDIA GeForce 9600M GT, NVIDIA GeForce 9600M GT, PCIe, 512 MB
Graphics: NVIDIA GeForce 9400M, NVIDIA GeForce 9400M, PCI, 256 MB
Memory Module: global_name
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8D), Broadcom BCM43xx 1.0 (188.8.131.52.4)
Bluetooth: Version 2.4.5f3, 2 service, 19 devices, 1 incoming serial ports
Network Service: AirPort, AirPort, en1
Serial ATA Device: WDC WD7500BPKT-75PK4T0, 698.64 GB
Serial ATA Device: MATSHITADVD-R UJ-868
USB Device: Built-in iSight, 0x05ac (Apple Inc.), 0x8507, 0x24400000 / 2
USB Device: iPhone, 0x05ac (Apple Inc.), 0x1297, 0x26400000 / 2
USB Device: Apple Internal Keyboard / Trackpad, 0x05ac (Apple Inc.), 0x0237, 0x04600000 / 3
USB Device: IR Receiver, 0x05ac (Apple Inc.), 0x8242, 0x04500000 / 2
USB Device: SG-Lock USB Key, 0x1547, 0x1000, 0x06200000 / 3
USB Device: BRCM2046 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0x06100000 / 2
USB Device: Bluetooth USB Host Controller, 0x05ac (Apple Inc.), 0x8217, 0x06110000 / 4
I managed to download 4.2 from my purchases history and then installed from there. However, when I launched XCode again in the same manner I was still getting crashes. Upon further investigation and stumbling upon a getting started document, I found that I had 2 xcodes. One was in /Applications and the other in /Developer/Applications. The .app in /Applications was just 4K, and was effectively hiding the one /Dev... so I just removed it. This then solved my crashing problems. The /Dev... version (4.2) launches successfully, so happy days and theres no need to upgrade to Mountain Lion which is a huge relief.
I must say, getting to 4.2 which I had previously paid for was extremely convoluted and pretty much misleading and unnecessarily complicated. Anyway, nuff said, thanks.