The Xcode 2.2 installer runs a check on the build number to make sure it isn't the leaked 10.4.1 build!
It's easy enough to fix though...
Mount the Xcode 2.2 disk image and copy all the data to a folder so the files are editable.
Right-click
XcodeTools.mpkg and choose
Show Package ContentsIn the Contents folder, open
XcodeTools.dist with TextEdit
Scroll down the file till you get to this part:
QUOTE
function checkProductBuild() {
try {
// must not be Intel
if ( system.sysctl('hw.machine') == 'x86' || system.sysctl('hw.byteorder') == '1234')
{
// greater than 8F1099
if(-1 == system.compareVersions(my.target.systemVersion.ProductBuildVersion, '8F1100')) {
my.result.message = system.localizedStringWithFormat('ERR_INVALID_BUILD');
my.result.type = 'Fatal';
return(false);
}
}
} catch(err) {return (false);}
return(true);
}
That's the code that checks the build and stops it installing!
Edit the function so it just reads:
QUOTE
function checkProductBuild() {
return(true);
}
The second problem is with the
DeveloperTools.pkg package.
It fails trying to install the distcc (distributed compiling) service.
To work around it, open up the package like before, and edit
Contents/Resources/postflightscroll down and comment out the lines which run the installer to end up with:
QUOTE
INSTALLER_UTILITY=/Developer/Tools/.Xcode_distcc_rule_installer
#$INSTALLER_UTILITY
#
#RESULT=$?
#
#if [ $RESULT != 0 ]; then
# echo "Unable to install Xcode distcc authorization rule due to error $RESULT"
#fi
And it should install fine