In OS X 10.9, the Downloads pane of Xcode Preferences does not supportĭownloading command-line tools. From Technical Note TN2339, Building from the Command Line with Xcode FAQ:ĭownloading command-line tools is not available in Xcode for OS X 10.9. The Command Line Tools are bundled with Xcode. How do I get the command line builds tools installed with Xcode 4.4 / Mac OS X v10.8 (Mountain Lion) or later?įor OS X 10.9, you simply install Xcode. $ rm ~/Downloads/command_line_tools_for_osx_mountain_lion_april_2014.dmg I see no purpose keeping it around, but you can if you want. Unmount the dmg file $ hdiutil detach /Volumes/Command\ Line\ Tools\ \(Mountain\ Lion\)ĭelete the dmg file from the remote optional $ sudo installer -pkg Command\ Line\ Tools\ \(Mountain\ Lion\).mpkg -target / Here, installer must be run with sudo because this package needs to be installed on the root file system $ cd /Volumes/Command\ Line\ Tools\ \(Mountain\ Lion\) Here, I'm using hdiutil to mount the image $ hdiutil attach ~/Downloads/command_line_tools_for_osx_mountain_lion_april_2014.dmg In the following command, I'm using scp to securely copy the file from my local computer to the remote named remote $ scp ~/Downloads/command_line_tools_for_osx_mountain_lion_april_2014.dmg remote:Downloads/ If you don't have a free Apple developer account, register for oneĭownload the "Command Line Tools for Xcode" appropriate for your version of OSXįor me, that was "Command Line Tools (OS X Mountain Lion) for Xcode - April 2014" Just make sure you get your paths correct. Notice: I imagine this process would work identically for any version of Xcode or OSX. I recently had to install Xcode command line tools on Mountain Lion over SSH. Here is my Console log: 15:41:54.258 Xcode: DVTDownloadable: Download failed. If you take a look into "Console" while trying to pull the Command Line Tools, you will find out that there is actually an "unofficial" link to the Mountain Lion Command Line Tools! In the pane on the left, search for "command line tools" and choose the package appropriate to your version of OS X. Go to /downloads/index.action, and sign in with your Apple ID (the download's free). If you do not have Xcode, they are available as a separate download from Apple: To open this pane click the "Xcode" button in the top left of the screen near the Apple logo, then click "Preferences", then click "Downloads". Xcode includes a new "Downloads" preference pane to install optional components such as command line tools, and previous iOS Simulators. Running the command in terminal produces the following GUI: Inside Xcode (5.0) For earlier versions, continue to use the in-app download in Xcode. Or via terminal (from the release docs): The Command Line Developer Tools package can be installed on demand using " xcode-select -install” and the installed tools will be automatically updated using Software Update. This requires signing in with a developer account. Instead they must be downloaded from the Apple Developer Tools site. With Xcode 5.0.1 and Mavericks 10.9 the command line tool is no longer available through Xcode. The solution is to download directly, see "Separate Download" below. In late February 2014 the command started only displaying help. In early February 2014 xcode-select -install has been reporting that "Can't install the software because it is not currently available from the Software Update server". So, try xcode-select -install and if that does not work download as described below. Xcode-select -install worked with version 2333, failed with version 2003. (also works with Xcode 5.1.1 OSX 10.10) As long as everything worked, I'd clone that to my main drive or repeat the wipe/reinstall process - whichever is easier for you to perform.Xcode 5.1 and OSX 10.9. I'd make a junk admin user that I'll delete and use that user to install Xcode and the command line tools and then finally restore from Time Machine. If this happened to me, I'd simply change my Time Machine to exclude system files and then install a new OS onto a spare volume. This URL is fairly open (even the search engines can index it) but you might need to make a free Safari or free Mac developer account to log in and get this package. Rather than mess with that, why not just download the stand alone installer and wait for a new version of Xcode to clean up your receipts database for you? The command line tools are installed like other OS X packages, so you may need to delete the receipt file from the receipts database (which used to be trivial since you could delete the file from /Library/Receipts but now is more complicated and needs a short article on the receipts database).
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |