Uninstalling XCode can interrupt MacPorts? - xcode

I have Xcode 4.5 Developer Preview 1 and now I want to download Xcode 4.6. Before downloading the latest Xcode, I want to clean uninstall the old one. Not sure yet how to do that. But I'm afraid it will interrupt the MacPorts functions. MacPorts needs Xcode Command Line Tools. So is it possible to completely uninstall the old one first and then download the latest version later? I also want to upgrade Xcode 4.5 DP1 to Xcode 4.6 if possible. I installed Xcode 4.5 DP1 from DMG file. I'll install Xcode 4.6 from App Store.

You should upgrade XCode via App Store.

You should be able to upgrade Xcode and the command line tools without problems. MacPorts might not work while you don't have a version of Xcode (and the command line tools) installed, but will start working again after the update.

Related

xcode 6.1 installation process

I installed Yosemite a couple of days ago. It really broke quite a lot of things - broke my favorite game which won't start, broke my php installation, my wordpress installation, and now Homebrew! But the spotlight feature is nice, not that it makes up for it lol.
Nonetheless I'm trying to fix Homebrew which is telling me to update to XCode 6.1. I've run software update and it says the XCode 6.1 has been installed (sort of). It has:
Command Line Tools (OSX 10.10) - Version 6.1 Installed Oct 17, 2014 (twice actually)
Xcode Version 6.0.1 - Installed Oct 17, 2014
And no pending updates.
But when I check the locations tab in Xcode preferences - it says it's using Command Line Tools 6.0.1. And when I run brew doctor it tells me to upgrade to 6.1 CLT.
How do I update the CLT to 6.1? (note I'm not on Apple Developer program)
The link that #richard-g provided doesn't seem to work anymore, but I just found the dmg file on
https://developer.apple.com/downloads/
using an appleID that has only a free developer login.
On that page I found both Xcode 6.1 and the command line tools for OS X 10.10 for Xcode 6.1.
Before finding that, on the first machine that I upgraded from Maverick to Yosemite that already had Xcode installed on it, I was able to upgrade Xcode in the App Store and then run Xcode and from within it download and upgrade the command line tools, but App Store continues to show Xcode as one update available with just an "Open" button. I'll see if installing the downloaded dmg takes care of that, and in any case I have other machines to upgrade and could use the offline install package. The download site seems very very slow, though, the 2.5GB download is taking all day.
It worked - installing the 6.1 XCode from this download https://developer.apple.com/downloads/download.action?path=Developer_Tools/xcode_6.1/xcode_6.1.dmg
and it worked fine. I just had to go to Xcode -> Locations and select the 6.1 CLT, then open a new command prompt.
brew doctor
Your system is ready to brew.
========================================================
Sorry as per comments - the link to XCode is no longer working
As you have Xcode 6.1 installed, you can run xcode-select --install from a shell to download the correct CLT.
This link works without without requiring login:
https://developer.apple.com/downloads/index.action

Uninstall Previous XCode and Install XCode 4.5

Is it safe to completely uninstall previous version of XCode and Install the XCode 4.5? because...
I just uninstalled XCode 4.2, and it mostly removed all the files in the Developer Folder, now I installed the 4.5, but it scares me since there is nothing in the Developer Folder.
Would XCode still be working even if that's the case? Thanks
Xcode 4.4+ was designed to be installed via the App Store and now stores everything in the Xcode.app bundle in your /Applications directory.
Make sure you use xcode-select to select the new path for your Xcode installation, and you install the command line tools from within Xcode 4.5.
From the Xcode 4.5 release notes:
Starting in Xcode 4.3, the Xcode.app file package contains all the Xcode developer tools. The man pages for the command-line tools Xcode uses are also placed in this package.
yes It's totally safe to completely uninstall the previous Xcode and install new Xcode4.5. I have done it and all works fine for me.
Just have to install the command line tools after installing the Xcode4.5 from it's preference just as show in below image :)

Can't install XCode 4.0 - 4.1 on MacOSX Lion

At first I was installed XCode 4.3. Then, I needed to install an older version of XCode, such as 4.1, to be able to test applications on the simulator iOS 4.1. The operating system MacOSX Lion.
At first I just tried to install XCode 4.1 in the folder Developer, like I did before. But as was to begin the installation I got an error message.
Then, I tried to uninstall XCode 4.3 Application of the folder by moving it to the Trash, and clearing. After rebooting, I tried again to install XCode 4.1 and got this problem again.
I tested it on another computer, which also was installed XCode 4.3, and encountered the same problem.
Maybe you know where to XCode 4.3 leaves their roots? I also cleaned the temp files using CleanMyMac.
Thank you.

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