Jump to content

Xcode 2.2 Won't Install!


eattoenails
 Share

5 posts in this topic

Recommended Posts

  • 5 weeks later...

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:

 

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:

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:

 

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 :laser:

Link to comment
Share on other sites

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)

Edited by nixim
Link to comment
Share on other sites

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...

Link to comment
Share on other sites

 Share

×
×
  • Create New...