Mac os how to install xcode
Over time, as tools have improved, and with new releases of OS X, I've updated this tutorial.
In fact, the whole process can now be automated via the laptop script that I wrote for you. Whether you use my script that does everything for you, or set everything up manually, it's best that you start with a clean installation of OS X. If you've already tried to install a development environment, I can't guarantee that you won't run into any issues. Certain tools used in this tutorial might not be compatible with whatever you might have installed. Up until February , 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.
There is also a third-party option, the osx-gcc-installer by Kenneth Reitz, that supports both Snow Leopard and Lion. However, it is not updated as often as the official Apple tools, and I personally ran into issues with it on Lion. As of August 6, , 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. I've written an open source script that can set everything up for you , including configuring your Mac to work with GitHub.
Macworld Categories
Most of the work you'll be doing in this tutorial will be in the "Terminal" application. The easiest way to open an application in OS X is to search for it via Spotlight. The default keyboard shortcut for invoking Spotlight is command-Space. Once Spotlight is up, just start typing the first few letters of the app you are looking for, and once it appears, select it, and press return to launch it.
See the animated GIF below for an example:. Inside the Terminal window, copy and paste or type the following command, and press the return key on your keyboard:. Your computer will then attempt to find the software, and then will start downloading it. The following popup will appear:. Once the software is installed, click Done.
That's it! You're now ready to go to Step 2. Go to http: 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. Once the. This will mount the disk image and open a window in your Finder that looks like this:. It should automatically launch the "App Store" app on your Mac and take you the Xcode page.
Installing Xcode
Click on the "Free" button, then click on "Install App. Once the installation is complete, go to your Applications folder and double-click on Xcode, then install any required components if asked to. When prompted to log in, you should be able to use the same email and password you use for iTunes and app purchases.
A kind reader P. Martin pointed out that the Xcode 4. I confirmed that the latest version of Xcode for Snow Leopard available to me while signed in with a free account is 3. I have not tested this setup with Xcode 3. Otherwise, I recommend that you upgrade to a newer version of OS X. Otherwise, search for "xcode 3. As mentioned at the beginning of this section, I have not tested this tutorial with Xcode 3.
Double-click on the "Xcode" package installer. Once the installer launches, make sure all the checkboxes are checked, as shown in the screenshot below:. Click "Continue," and go through the rest of the installation.
Installing Xcode | Macworld
If the installation fails, quit the installer, then run Software Update and install any updates that it finds. If no new updates are available, restart your computer and try installing Xcode again. Once Xcode is successfully installed, you can move on to Step 2. Homebrew , "the missing package manager for OS X," allows you to easily install hundreds of open-source tools. The full instructions are available on the Homebrew Wiki , but you should only need to run the command that's listed at the top of the Homebrew site:.
Note that the command listed on the Homebrew site could change, so please make sure that what I have listed above is the same. If it isn't, please let me know and I'll update it. Copy and paste the command into your Terminal window, press return , then follow the instructions when prompted, as highlighted in the screenshot below. Note that Terminal does not provide visual feedback when you type your password.
Shine in the Dark
Just type it slowly and press return. If you get Your system is ready to brew , you can move on to Step 3. Otherwise, go to the Troubleshooting section to learn how to fix errors and warnings you might run into. Git is the version control system of choice among many web developers. With Homebrew, installing Git is as easy as this:. Since we just installed Homebrew, we could have skipped brew update , but it's a good habit to run it before installing anything with Homebrew because Homebrew is updated regularly.
Run brew doctor to make sure everything is still working. If your system is ready to brew, you can move on to Step 4.
I highly recommend that you turn on two-factor authentication for your GitHub account. To see this setup in action, go to the 1: RVM stands for Ruby Version Manager, and is one of the most popular tools that allow you to install and manage multiple versions of Ruby and Rails on the same computer. RVM has come a long way since I originally published this tutorial. However, because RVM installs documentation for every gem that Rails depends on, which takes forever, I recommend disabling documentation first:.
Now you can install everything with one command. If you're not interested in Rails, just replace --rails with --ruby in the command below:. Read the RVM installation documentation to see all the different options you can use. The Unix shell command whoami returns your username. You only need the full Xcode package if you are doing development of applications for the Apple operating systems.
However, you may have previously installed the full Xcode package. You will need to update Xcode to the newest version Xcode 8 or newer. If you intend to install Ruby using RVM , and you see a file location that contains spaces in the path:. You can either install only the Xcode Command Line Tools instructions below or reinstall the full Xcode package. For example, you can enter gcc or make. Alternatively, you can use a command to install Xcode Command Line Tools. It will produce a similar alert box. Note the double hyphen:. The instructions in the alert box are confusing.
If you have a slow Internet connection, it may take many minutes.
- inizializzare mac leopard senza cd;
- MacOS Sierra.
- multiple email accounts in mac mail.
- Installing Xcode on a Mac!
If the download takes a very long time over an hour or fails, you can try an alternative. Go to https: You'll be asked to agree to the terms of the Apple Developer Program. You'll see a list of software packages you can download. Look for the latest version of Command Line Tools and click to download the. Downloading the. Install the. It required a huge download of the full Xcode package from the Mac App Store or registration as an Apple developer for a smaller Command Line Tools package.
With the GCC compiler installed, you can install any Unix system tools you need for software development. Want to learn Ruby on Rails? See What is Ruby on Rails? Is this helpful? Your encouragement fuels the project. Please tweet or add a comment.