In my last post I gave a set of simple steps that allowed one to install Xcode 3.2.6 on Lion. In looking through the isDevToolsCompatible function again, I noticed that it would return true if the COMMAND_LINE_INSTALL environment variable was set no matter what version Mac OS X you are running.
It’s now possible to greatly simplify the installation process:
- Mount the Xcode 3.2.6 DMG
- Open Terminal
- Enter the commands:
export COMMAND_LINE_INSTALL=1 open "/Volumes/Xcode and iOS SDK/Xcode and iOS SDK.mpkg"
The open command will launch the installer app and allow you to install Xcode 3.2.6 on Lion with no package modifications.
The same caveats as my last post apply. Use at your own risk.