Xcode
First, download the installer
MacOS 10.7
Mount the installer, then in Terminal, copy and paste these lines:
export COMMAND_LINE_INSTALL=1 open "/Volumes/Xcode and iOS SDK/Xcode and iOS SDK.mpkg"
MacOS 10.8 and later
You have to be paying VERY close attention during the install, or you will bluescreen your mac. Yes, a kernel panic so you can't even boot! See below about "kernel panic" if you get stuck there. Read the entire list BEFORE starting so you know the steps AHEAD of time.
- Mount the installer
- Go to /System/Library/CoreServices
- Get info on "Installer"
- check "Open in 32-bit mode"
- Go to /System/Library/Extensions
- start to type "AppleProfileFamily.kext", and your selection will then land on the existing .kext by that name, OR the next file alphabetically.
- if it exists, trash it. you may need to enter your PW for that.
- Quit iTunes if it's running
- open "Activity Monitor" and kill "iTunes Helper"
- During installation (after next step) you must watch for the file "AppleProfileFamily.kext" appearing and IMMEDIATELY delete it. If you wait too long and it starts to run, you will get a kernel panic. (see below in case of kernel panic)
- Paste this into terminal:
export COMMAND_LINE_INSTALL=1
open "/Volumes/Xcode and iOS SDK/Xcode and iOS SDK.mpkg" - when you get to the "Installation Type" screen, you should "customize", turn OFF the "System Tools" check box so that is not installed. (Also, under "Essential", probably also turn off "iOS SDK")
- start the install
- watch the Extensions folder like a hawk, do not take your eyes off of it: the instant you see "AppleProfileFamily.kext", select it and do command-delete! note you may need to type your password real fast too!
- empty the trash! QUICK!!
- switch "Installer" back to NON-32-bit mode
- you're good!
In case of kernel panic
- hold down the power button to shut down
- power on and immediately hold the SHIFT key (safe mode)
- when you get to the finder, go to /System/Library/Extensions
- trash the file "AppleProfileFamily.kext"
- if you accidentally also installed the "System Tools" or if CHUD somehow got installed, then you'll need to throw that stuff out too. eg search for "com.apple.iokit.ChudKernLib" and chuck all the stuff with "chud" in it that's nearby.
- empty trash
- reboot
- you're good!