简体   繁体   中英

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

安装Xcode 6.1后,可以从shell运行xcode-select --install来下载正确的CLT。

This link works without without requiring login:

https://developer.apple.com/downloads/index.action

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM