How to install Xcode 3 on Mountain LionNov 13, 2012 · 1 minute read · Comments
Unlike with Mac OS X Lion, installing Xcode 3 on OS X Mountain Lion is not problem-free: the kernel extensions render the system unbootable and you will have to repair it. Also, Interface Builder plugins from iOS platform won’t load, so you can’t use iOS SDK with Xcode 3 anymore.
Make sure you know how to boot into single-user mode (hit Cmd+S on boot).
Save a repair script somewhere (e.g.
fsck -fy mount -uw / rm -rf /System/Library/Extensions/AppleProfileFamily.kext rm -rf /System/Library/Extensions/CHUD*.kext
If Xcode 3 is on a DMG, mount it.
Open Terminal and
cdto whereever the installation package is.
$ cd "/Volumes/Xcode and iOS SDK" $ ls -1 About Xcode and iOS SDK.pdf Packages Xcode and iOS SDK.mpkg
Run the installation package like this:
$ COMMAND_LINE_INSTALL=1 open "Xcode and iOS SDK.mpkg"
Uncheck iOS SDK option, or the Interface Builder will not be able to start.
You get kernel panic and your system won’t boot anymore. Hooray. Turn the power off.
Turn the power back on and hit Cmd+S once gray screen appears, then run the repair script:
# . /Users/my-user-name/repair-script # exit