eattoenails Posted November 14, 2005 Share Posted November 14, 2005 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? Link to comment Share on other sites More sharing options...
nixim Posted December 14, 2005 Share Posted December 14, 2005 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 Link to comment Share on other sites More sharing options...
nixim Posted December 14, 2005 Share Posted December 14, 2005 (edited) 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 December 14, 2005 by nixim Link to comment Share on other sites More sharing options...
ralleria Posted December 15, 2005 Share Posted December 15, 2005 After installing Xcode 2.2 on build 8f1111, there are several PPC processes running in backgroung (seen in Activity monitor). Did anyone notice that? Link to comment Share on other sites More sharing options...
39thRonin Posted December 15, 2005 Share Posted December 15, 2005 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 More sharing options...
Recommended Posts