Apple Developer Support

Xcode

Downloading Xcode and SDKs

The latest version of Xcode is available as a free download from the Mac App Store. If you're registered as an Apple Developer, you can download previous versions of Xcode.

If you're a member of the iOS Developer Program or Mac Developer Program, you can access pre-release versions of the Xcode, SDKs, and software. To view downloads available to members, visit the Xcode page.

What version of Xcode can I use to submit my apps?

You should use the latest version of Xcode available on the Mac App Store to submit your apps. New iOS apps and app updates submitted to the App Store must be built with release versions of Xcode 5 and iOS 7.1 SDK. New Mac apps and app updates submitted to the Mac App Store must be built with release versions of Xcode 5 and OS X, using SDKs for OS X 10.9 Mavericks and OS X 10.8 Mountain Lion.

Do not submit apps built using beta software, as beta versions of Xcode, Operating Systems, and SDKs are for development and testing only.

I've installed the latest version of Xcode from the Mac App Store, but a previous version of Xcode (4.2.1 or earlier) keeps launching. What should I do?

To run the latest version of Xcode, make sure you are launching Xcode.app from the Applications folder. Xcode 4.3 and later is packaged on the Mac App Store as a single application and installs in your Applications folder as Xcode.app.

Previous versions of Xcode placed the tools and frameworks in the Developer folder. You can delete the older version of Xcode by dragging the Developer folder to the trash.

I've installed Xcode 4.3 or later. Where can I find the updated command line tools?

Xcode now provides an interface for downloading and installing the latest command line tools, such as Apple LLVM compiler and system headers. To install these tools, go to the Downloads tab within the Xcode Preferences menu and click "Install" next to the Command Line Tools entry.

I have OS X Mountain Lion running on my Mac. When I try to install Xcode from the Mac App Store, the install doesn't complete because "the version of OS X is too new."

This is a rare issue that occurs primarily on Macs with previously installed pre-release versions of OS X Mountain Lion. To remove this error, first quit the App Store application. Then open Terminal and enter the following command:

rm `getconf DARWIN_USER_CACHE_DIR`/com.apple.appstore/497799835/preflight.pfpkg

Re-launch the App Store and install Xcode.

I received an error message saying, "Xcode could not find a valid private-key/certificate pair for this profile in your keychain." What should I do?

This error message indicates that your Mac's Keychain is missing either the public or private key for the certificate you are using to sign your app.

This often happens when you are trying to sign and build your app from a different Mac than the one you originally used to request your code signing certificate. It can also happen if your certificate has expired or has been revoked. Ensure that your app's provisioning profile contains a valid code signing certificate, and that your Mac's Keychain contains that certificate, the private key originally used to generate that certificate, and the WWDR Intermediate Certificate.

For instructions on how to resolve this and other code signing erros, review the Code Signing Support webpage.

Get answers to other Xcode FAQs.

Where can I get more information about developing with Xcode?

The Apple Developer website contains a wealth of documentation, videos, and community-based information to help you develop with Apple technologies.

 

For information on the security content of this update, please visit: support.apple.com/kb/HT1222