Installing xcode 4.1 for Lion after OSX Lion update? - xcode

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

Related

Unable to install Xcode 5 under Yosemite

I've installed Yosemite (developer preview) on my mac. After that, I'm not able to install Xcode from App Store. Error message:
"Xcode can not be installed because your OSX version is too new."
Is there any way to avoid that ?
Download any version of Xcode 5 from the Apple Developer Downloads website and install it from .dmg

Multiple xcode versions in Lion OSX

I want to install xcode 4.1 in my iMac OSX Lion. But in my iMac, I have Xcode 4.2.1. How to install iOS 4.1 but not override Xcode 4.2.1?
First download and install Xcode 4.1, then go the the Mac App Store and download version 4.3.2. When installing 4.3.2 you will be prompted to delete the older version, select no. You will be able to do this because older versions of Xcode (4.1) install to /Developer whereas this newest release (4.3.2) is a .app bundle that installs to /Applications.

"The installed version of Xcode (3.1.4) is too old" error in port after installing Xcode 4.3

A have freshly checked-out from svn, built and installed MacPorts. I have installed Xcode4.3. I get the following error when trying to call "sudo port install X":
Error: The installed version of Xcode (3.1.4) is too old to use on the installed OS version. Version 4.1 or later is recommended on Mac OS X 10.7.
"xcodebuild -version" returns:
XcodeComponent versions: DevToolsCore-1809.0; DevToolsSupport-1806.0
BuildVersion: 10M2518
I have recently updated MacOS to Lion and I used to have an older version of xCode in SnowLeopard, which didn't work in the new system. I didn't uninstall it explicitly, but I also don't find any trace of the old Xcode on my system.
Any ideas? Please, help!
Xcode 4.3 should prompt you to remove any older versions when you run it for the first time, but check to make sure you don't have a /Developer directory anyway.
Have you run sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer? What does xcode-select -print-path tell you?
I just encountered the same problem as the OP and found this thread in a search. Installing Xcode 4.3 today didn't prompt for removal of older version (at least that I recall seeing), and /Developer hierarchy is still present. Renaming to /Developer.ex solved MacPort's problem. Can I safely delete /Developer completely?

Uninstalling Xcode 3.2.6 from Lion 10.7.2

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

Which version of xcode install on lion

Which version of xcode install on lion ? i use 4.0.2 but doesn't install and says should install snow leopard 10.6.6
You need XCode 4.1 for Lion.
Message when running XCode 4.2:
Xcode 4.2 requires Mac OS X 10.6 Snow Leopard
Install the Xcode Tools version that supports Mac OS X 10.7 Lion.
If you have 4.2 on Lion run this:
sudo /Developer/Library/uninstall-devtools –mode=all
How about the latest? Xcode 4.1
If you aren't using the beta version (registered developers only) you have to get the version of XCode from the Mac App Store which is 4.1. That is the only version that will work with Lion.
I think you need to install directly from the App Store, not from the install disc.

Resources