views:

163

answers:

2

As usual I typed sudo Library/uninstall-devtools --mode=all

It uninstalled the first version (Beta) properly. Tried the same thing on the older Stable Version which I have installed to "XCode Stable"

Getting this error Use of uninitialized value $dir_name in substitution (s///) at Library/uninstall-devtools line 153. Use of uninitialized value $developer_dir in concatenation (.) or string at Library/uninstall-devtools line 120

Anyone else facing this problem? Can I just trash the installation folder?

+4  A: 

I got that same error message this morning as well.

It doesn't seem to want to cooperate if run from the same folder it lives, /Developer/Library/; running it from another location, such as /, will allow the script to complete the uninstallation without further incident.

lowell
A: 

That's true - it's strange and annoying. The solution is change to the root directory (ie ... "cd /"). Then enter the command like this

sudo /Developer/Library/uninstall-devtools --mode=all

it will take about 90 seconds to run the whole thing with feedback.

THEN RESTART YOUR MAC.

This is all essential due to the new (Aug 2010) "iPad simulator problem" where you quite often have to resinstall XCode et al, to get the simulator working properly.

Joe Blow