How to Update Xcode From Terminals


Apple's Xcode integrated development environment lets developers develop apps using a mixture of code and graphical user interface tools. Unlike most applications on the OS X operating system, Xcode is not updated through the Mac app store. Instead, whenever a new update is released, a new .dmg file for Xcode is released. If you want to update Xcode via the Terminal utility, you can do so by installing the most recent version of Xcode.

  • Open a Web browser and navigate to Apple's Developer page. Click the Resources tab, followed by the Xcode 4 Download link.

  • Click the Sign In link, type your login credentials in the spaces provided and click the "Sign In" button to sign into your account. Click the Download link to download the latest Xcode DMG file.

  • Click the Finder icon in the computer's dock, followed by the Applications folder. Click the Utilities folder and double-click the Terminal icon to launch the Terminal.

  • Type "hdiutil mount XXX.dmg" without quotes in the Terminal window, replacing "XXX.dmg" with the name of the Xcode DMG file you downloaded in Step One. Press the "Return" key to mount the DMG file.

  • Locate the last line of output in the Terminal window. This last line of output will show exactly where the disk image is mounted.

  • Type "sudo cp -R "mount/location/" /Applications" without quotes in the Terminal window, replacing "mount/location" with the disk image mount location you obtained in Step Five and "" with the name of the application file.

  • Press the "Return" key to execute the command and install the updated version of Xcode.

Related Searches


  • Photo Credit Justin Sullivan/Getty Images News/Getty Images
Promoted By Zergnet



Related Searches

Check It Out

Geek Vs Geek: Robot battles, hoverboard drag race, and more

Is DIY in your DNA? Become part of our maker community.
Submit Your Work!