How do I download Xcode, and the OS X and iOS SDKs?
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 webpage.
What version of Xcode can I use to submit my apps to the App Store?
You should use the latest version of Xcode available on the Mac App Store. New apps and app updates submitted to the App Store must be built with release versions of Xcode 5 and iOS 7 SDK. Do not submit apps built with beta software, as beta versions 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.
- I cannot archive my application in Xcode.
- Xcode Organizer shows the "Could not support development" message.
- How do I rename my application in Xcode?
- How do I resolve the "Base SDK Missing" issue?
- "Xcode cannot find the software image to install this version" message.
- How do I resolve the "The version of iPhone OS on 'My iPhone' is not supported by this copy of Xcode" error message?
- iPhone/iPod Touch: application executable is missing a required architecture. At least one of the following architecture(s) must be present: armv6
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.
iOS Dev Center and Mac Dev CenterThe iOS Dev Center and Mac Dev Center is a great starting point to access a range of technical resources. The Dev Centers have search fields to help you quickly jump to any topic, links to begin browsing reference guides, and a list of featured content.
Documentation and Sample CodeThe iOS Developer Library and Mac Developer Library provide a wealth of reference materials on how to implement Apple technologies, including documentation, sample code, tutorials, and more.
VideosThe development videos are a great way to learn about new technologies, see frameworks and tools in use, and hear Apple engineers explain how to use these technologies in your app development.
ForumsThe Apple Developer Forums are a great place for program members to post questions and share comments on a variety of development topics with fellow developers and Apple engineers. Registered Apple Developers can also sign in to view discussions on the forums.
Technical SupportA Technical Support Incident (TSI) is a benefit of the Mac and iOS Developer Programs that allows members to request code-level support from our developer technical support engineers. To learn more about TSIs, see the Developer Technical Support page.
For information on the security content of this update, please visit: support.apple.com/kb/HT1222