![]() I confirmed that the latest version of Xcode for Snow Leopard available to me while signed in with a free account is 3.2.6. Martin) pointed out that the Xcode 4.2 download for Snow Leopard is only available to those registered in the $99/year developer program. IMPORTANT NOTE: If you upgraded to Mountain Lion from Lion, and you already had Xcode installed on Lion, and you updated to Xcode 4.4 and updated the Command Line Tools while still on Lion, you will have to go back to Xcode and download the Command Line Tools again after upgrading to Mountain Lion. Once the Command Line Tools are installed, you can quit Xcode and move on to Step 2. When prompted to log in, you should be able to use the same email and password you use for iTunes and app purchases. Go to Xcode’s Preferences via the menu bar, or by pressing the command and comma keys.Ĭlick on the “Downloads” icon, then click on the “Install” button next to “Command Line Tools.” Once the installation is complete, go to your Applications folder and double-click on Xcode, then install any required components if asked to. Click on the “Free” button, then click on “Install App.” It should automatically launch the “App Store” app on your Mac and take you the Xcode page. Installing Xcode on Lion or Mountain LionĬlick on this link to Xcode on the Mac App Store, then click on “View in Mac App Store.” Once the CLT are installed, go to Step 2. This will mount the disk image and open a window in your Finder that looks like this:ĭouble-click on the “Command Line Tools (Mountain Lion).mpkg” installer and go through the installation. dmg has finished downloading, double-click on it (if it didn’t already open automatically). Search for “command line tools” (in the search field on the left), then click on the latest version of “Command Line Tools (OS X Mountain Lion) for Xcode,” and click on the the. Go to and sign in with your Apple ID (the same one you use for iTunes and app purchases). Installing the standalone Command Line Tools on Mountain Lion That’s it! You’re now ready to go to Step 2. Once the software is installed, click Done. Your computer will then attempt to find the software, and then will start downloading it. ![]() Click Install when it appears.Ĭlick Agree when the License Agreement appears: ![]() You should see the pop up below on your screen. Inside the Terminal window, copy and paste (or type) the following command, and press the return key on your keyboard: Launch the “Terminal” application, which you can find in the “Utilities” folder in “Applications”. Installing the standalone Command Line Tools on Mavericks Here’s a quick link to the Xcode instructions. Step 1 starts with the standalone CLT instructions, as that’s the easiest and fastest way to get started. Step 1: Download and Install the Command Line Tools (via Xcode or the standalone installer) Until I do, I recommend getting the CLT from Xcode if you’re on Lion, as explained in this tutorial. Path at this time if you have *only* installed the Command Line Tools for Xcode.Īs of August 6, 2012, the issue above is no longer present with the latest CLT for Mountain Lion, and I believe that’s the case on Lion as well, but I haven’t confirmed that yet. You should change it to the correct path. Warning: Your Xcode is configured with an invalid path. ![]() When I tried Apple’s CLT for Lion back in March 2012, they weren’t compatible with Homebrew: However, it is not updated as often as the official Apple tools, and I personally ran into issues with it on Lion. There is also a third-party option, the osx-gcc-installer by Kenneth Reitz, that supports both Snow Leopard and Lion. Since then, Apple started offering the Command Line Tools (CLT) as a separate, much smaller download (~118MB), which benefits those who don’t plan on writing Mac or iOS apps. Up until February 2012, the only way you could get the Command Line Tools required for web development was via the full Xcode package, which is almost 2 GB in size. If you run into an issue, or find an error in this tutorial, please let me know and I’ll update it.Ĭlick on your OS X version below to get started: I started with a clean system, and the following are the steps that worked for me. With Mavericks, setting up a development environment on a Mac with Apple’s standalone Command Line Tools, Homebrew, Git, RVM, Ruby, and Rails is a fairly stress-free process that’s no longer fraught with the issues from two years ago. Over time, as tools have improved, and with new releases of OS X, I’ve updated this tutorial. ![]() After following many outdated and incomplete instructions for setting up a web development environment on a Mac (back in March 2012), and spending a lot of time finding solutions to the problems I encountered along the way, I decided to put together this detailed tutorial. ![]()
0 Comments
Leave a Reply. |