Building under OS X Lion: Oolite still requires Xcode 3.2 (with the 10.4 SDK) to build, in order to support PowerPC targets. It is possible to use Xcode 3.2.6 under Lion, although this is unsupported, and as of r4584 Oolite will build.
In my experience, Xcode 3.2.6 works under Lion if it is installed before the OS is update. If you try to install 3.2.6 on a Lion system, it will apparently not allow you to install the “Core Tools” package, which includes the Xcode application itself. My correspondent worked around this by running the installer and then copying the applications from a machine running Snow Leopard.
It may be possible to skip the “Core Tools” package and build Oolite using the
xcodebuild
command line tool. In order to do this, one must specify which version of Xcode to use with the
xcode-select
tool. For instance, if Xcode 3.2.6 is installed at /Xcode3 and Xcode 4.1 is in /Developer, you’d do something like:
Code: Select all
sudo xcode-select -switch /Xcode3
svn update
xcodebuild build -target "Build All" -configuration TestRelease
sudo xcode-select -switch /Developer
Note on side-by-side installs: Both Xcode 3 and Xcode 4 can be installed at arbitrary locations. However, for Xcode 4 from the App Store, you must directly run the actual installer package, which is bundled inside the “Install Xcode” application, in Contents/Resources. People seem to have trouble finding it, but on the screen where you select which packages to install, there’s a destination column which, for the Core Tools package, has a pop-up menu where you can select “Other…”.