Uninstalling Xcode 3.2.6 from Lion 10.7.2 - xcode

I've installed xCode 3.2.6 on my Lion 10.7.2.
After install I can't find the xCode icon to launch it. I've got to know 3.2.6 doesn't support Lion.
However, the worst thing happen when I tried to uninstall it with
sudo /Developer/Library/uninstall-devtools --mode=all
Unfortunately uninstall-devtools wasn't there. I'm stuck middle of nowhere.
Does anybody have any idea how to uninstall it and install xCode 4.2?

Following command fire on terminal and remove the all files and folder of xcode
sudo /Developer/Library/uninstall-devtools --mode=all
also more information and show log of the uninstal so go refrence link here

If /Developer/Library/uninstall-devtools does not exist skip that step.
Delete the /Develop folder if it exists.
Install xCode 4.2. Th eXcode icon will be in /Developer/Applications
The Xcode latest beta is even easier to install, get it if you have access.

If you install Xcode 3 from the GUI on Lion, you'll end up with a bunch of random tools but not the actual Xcode Toolset. In that case, you can use the uninstall-dev-tools located in /Library/Developer/Shared (rather than /Developer/Library).
You can fully install XCode 3 on Lion via the Terminal with the following commands:
export COMMAND_LINE_INSTALL=1
open "/Volumes/Xcode and iOS SDK/Xcode and iOS SDK.mpkg"

careful: if you work in ruby, you better stay with xCode 4.1

Related

How do I eliminate multiple versions of Xcode?

I installed homebrew, and it keeps complaining that:
Warning: Your Xcode (4.2) is outdated
Please install Xcode 4.6.2.
As I learned there is no way to update Xcode so I just downloaded / installed the latest version.
The warning did not go away, and as I learned, I now have 2 versions installed:
and the warning did not go away
How do I now eliminate the old version? I just wanted to update it really.
The /Developer location is now obsolete. Xcode now runs entirely from the application bundle in /Applications/Xcode.app.
To remove it properly, run this from Terminal:
sudo /Developer/Library/uninstall-devtools --mode=all
Although, I've simply moved /Developer it to the Trash in the past and that seemed to work fine.
You'll need to go into Xcode.app's preferences afterwards and install Command Line Tools from Downloads->Components. I came across a tutorial for setting up homebrew for new Xcode installations.

Uninstall Xcode 4.2.1 after installing 4.3.1

I begrudgingly updated to Lion from snow leopard. I then updated XCode to 4.3.1 which as part of the update uninstalled 4.2 from snow leopard. I then realized that one of my other dev tools does not work with 4.3.1 at all, so I installed 4.2.1 along side it in the hopes of fixing things. It didn't. How do I remove 4.2.1 so I'm just left with 4.3.1?
I tried deleting 4.3.1 and re-installing hoping it would detect 4.2.1 and remove it like it did when I first upgraded but no dice.
Searching the web shows I need to run uninstall-devtools however I can't find it anywhere, /Developer doesn't exist...
Trying to re-install 4.2.1 in the hopes there was an uninstaller buried in there says "Xcode install assistant can't be installed because xcode is already installed" (it didn't say this the first time obviously) so I can't re-install without 4.3.1 in place in the hopes of getting a /Developer folder...
There appears to be no uninstall-devtools burried in 4.3.1 (and I have command line tools installed as well).
I can't find 4.2.1, maybe it didn't install (I forgot to check disc capacities before/after) but then why can't I try to install it again without any xcode installed?
Install Xcode 4.2.1 again and then uninstall it:
sudo /Developer/Library/uninstall-devtools --mode=all
It turns out that 4.2.1's installer actually installs an Xcode installer into your applications folder, which in turn actually installs Xcode. The solution is find the installed installer (makes so much sense...) and install Xcode an things behave as expected.
The versions of Xcode that support installation into /Applications instead of /Developer in theory support being removed just via dragging to the trash.
In practice, I'm not sure I trust the process, and I wish there was still a more robust cleanup script.
Search "Xcode 4.2" in spotlight or in finder it will find you the app then move it to trash .But dont forget to check version.

Installing xcode 4.1 for Lion after OSX Lion update?

I just finished downloading the osx lion update on my snow leopard install.
Xcode 4.1 won't run now because it wants the Lion version to be running instead. However wen I go to the app store to install Xcode 4.1 lion it tells me it's already installed.
How can I uninstall Xcode 4.1 snow leopard so I can install lion?
The app store doesn't detect that you have Xcode installed, it detects that you have the Xcode installer installed. That must still be around somewhere.
Uninstall XCode 4: How to fully remove Xcode 4
After the uninstall, you go to the App Store and re-download/re-install XCode 4.1.
You should uninstall Xcode first,
in a terminal window,
sudo /Developer/Library/uninstall-devtools --mode=all

How do i install additional packages for Xcode on OSX Lion to allow MacPorts to work

When I try and install MacPorts it complains
'Xcode is not installed, or was installed with UNIX Development (10.5+) or Command Line Support (10.4) deselected.'
I do have Xcode installed from the Appstore so I guess I just have to install these extra parts but how ?
Ive read a couple of questions on Stack Overflow about this but I think the answers must be outdated as they do notmake sense for me, I do not have an Xcode dmg I can reinstall from, and I can't see anything useful in /Developer either, or any preferences within Xcode itself.
I only want Xcode for the purposes of using Macports so I'm not familiar with it.
You probably got Xcode 4.1 from the Mac App Store. In that case, you haven't got Xcode 4.1 installed. However, you now have an Xcode installer in your Applications directory.
Spotlight should find it in any case.
The command line tools aren't included in the default install of Xcode anymore.
Goto the Xcode Preferences --> Downloads Pane --> click the Install button beside "Command Line Tools".
If you don't have Xcode installed you can get the command line tools separately as explained here..
http://osxdaily.com/2012/07/06/install-gcc-without-xcode-in-mac-os-x/
The App Store installs the XCode installer, not Xcode itself. The installer is in your applications folder. Run that.
Today, 16 Feb 2012, when I installed Xcode 4 from the App Store, there was no Setup. Just the app installed, because it was Xcode 4.3 !
Make sure that you install Xcode 4.2 with UNIX Devel. to MacPorts works!
To get the Xcode 4.2 go to https://developer.apple.com.

Going back to XCode 4.1 after installing XCode 4.2 beta 7

I've installed XCode 4.2 beta but I realize I can't deploy applications on my iOS 3.1.3 device. The previous XCode 4.1 was able to, but it seems I can't install it back.
What I've tried so far:
install XCode 4.1 directly on top of 4.2. XCode 4.2 persisted
delete the Developer folder, install XCode 4.1. Nothing happened, altho the installation went thru
What am I missing ?
I had the same problem and had to run this in Terminal:
sudo /Library/uninstall-devtools --mode=all
This will remove your Development folder and the other bits around your system, so that you can install Xcode from scratch.
I just went through this. "Installing" XCode 4.1 on top of the 4.2 beta doesn't actually do anything other than creating a 4GB "Install Xcode" file in /Applications. Running THAT shows a prompt that the newer version of XCode will be moved to /Developer-4.2 and the old version will be installed in /Developer.
I found the process confusing because I didn't realize right away that I was supposed to run /Applications/Install Xcode.
try to install it in the other directory ie. Developer/Xcode_old/ but then you have to run proper application(from the correct path).
I have currently both versions installed, so that's definitely can be done.
The problem I had was that I downloaded the 4.1 installer from Apple, but the 4.1 installer doesn't actually install XCode 4.1, it installs an installer for XCode 4.1 called "Install XCode"--BUT "Install XCode" already existed for the 4.2 install and it would not apparently overwrite it.
I renamed "Install XCode" to "Install XCode 4.2", reran the XCode 4.1 "installer" which installed a new "Install XCode", this time for 4.1.
(Who came up with this installer for an installer madness?)
I'm just ran the installer for XCode 4.1 (after mv'ing /Developer to /XCode-4.2) and it seems to have worked.

Resources