Help - Search - Members - Calendar
Full Version: Xcode 2.2 Won't Install!
InsanelyMac Forum > Apple World > Applications
eattoenails
After downloading Xcode 2.2 on my newly updated to 10.4.3 x86 PC, the installer says "You cannot install Xcode Tools on this volume. A valid version of Mac OS X was not found."

What to do? Anyone have any ideas? Where are the hackers? tongue.gif
nixim
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 Contents
In 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/postflight

scroll 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 biggrin.gif
nixim
Unfortunately, even after successfully installing, Xcode 2.2 won't run (at least on build 8B1025).
Trying to run it on the command line gives this error:

$ /Developer/Applications/Xcode.app/Contents/MacOS/Xcode
-bash: ./Xcode.app/Contents/MacOS/Xcode: Bad executable (or shared library)
ralleria
After installing Xcode 2.2 on build 8f1111, there are several PPC processes running in backgroung (seen in Activity monitor). Did anyone notice that?
39thRonin
QUOTE (ralleria @ Dec 14 2005, 07:24 PM) *
After installing Xcode 2.2 on build 8f1111, there are several PPC processes running in backgroung (seen in Activity monitor). Did anyone notice that?


I've only noticed one process, but with five threads. It does strike me as a bit strange - I suppose I'll have to check my data stream to see what's (if anything) is happening...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.