New Features in Xcode 8 (original) (raw)

Xcode is the complete developer toolset used to create apps for Apple TV, Apple Watch, iPad, iPhone, and Mac. The Xcode development environment bundles the Instruments analysis tool, Simulator, and the OS frameworks in the form of tvOS SDKs, watchOS SDKs, iOS SDKs, and macOS SDKs.

Xcode 8.3

Xcode 8.3 is a maintenance update with bug fixes and performance improvements. It includes support for iOS 10.3, watchOS 3.2, macOS 10.12.4, and tvOS 10.2.

For more information on Xcode 8.3, see Xcode Release Notes.

Debugging

Instruments

Provisioning

Simulator

Static Analyzer

Swift

Testing

Xcode 8.2

Xcode 8.2 is a maintenance update with bug fixes and performance improvements. It includes support for tvOS 10.1, watchOS 3.1, iOS 10.2, and macOS Sierra 10.12.2.

For more information, see the Xcode Release Notes.

Support for the Touch Bar

Swift

Simulator

Deprecation Notice

Xcode 8.1

Xcode 8.1 is a maintenance update with bug fixes and performance improvements. It includes support for iOS 10.01, watchOS 3.1, macOS 10.12.1, and tvOS 10.0.

Compatibility

Xcode 8.1 requires a Mac running macOS 10.11.5 or later.

Support for the Touch Bar

Interface Builder

Deprecation and Removal Notice

Highlights of Xcode 8

Xcode 8 includes overall quality improvements as well as extensive new features.

Swift Language

New in Xcode 8 – Swift 3. The latest release of Swift includes significant refinement to API naming designed to enhance your code's consistency and clarity. Also in this release, important frameworks have been upgraded to native Swift interfaces, such as Core Graphics and Grand Central Dispatch.

The Swift Programming Language (Swift 3) has been updated to include extensive Swift 3 detail information.

A Swift migrator is provided to help upgrade your Swift code to the latest Swift 3 language specifications and SDK requirements.

Signing

Capabilities

Interface Builder

Asset Catalogs

Source Editing

Debugging

Instruments

Testing

Documentation

Source Control

Xcode Server

Compatibility

Xcode 8.2 requires a Mac running macOS OS X 10.11.5 or later.

Installation

You obtain Xcode 8.2 from the Mac App Store. It is a free download that installs directly into the Applications folder. By default, Xcode downloads developer documentation in the background for offline reading; it also automatically downloads documentation updates. This behavior can be changed after installation using the Downloads preferences pane.

Developer Resources

The Apple Developer Program provides access to the App Store, Mac App Store, and Apple TV App Store, additional support and documentation, and signing resources for testing and deployment on Apple TV, Apple Watch, iPad, iPhone, and iPod touch devices. For more information, visit the Apple Developer Program website.

Visit Apple Developer Forums for discussions about any Apple developer software, including prerelease products.

For the latest security information, visit http://support.apple.com/kb/HT1222.

About SDKs and Simulator

A software development kit (SDK) is a collection of frameworks (libraries, headers, and resources) that represent the API for a specific watchOS, iOS, or macOS version. Most of the functionality your app gets from an SDK is actually provided by the host operating system, which makes the right Base SDK and OS Deployment Target settings that are critical for app compatibility. Xcode automatically builds with the latest SDK and targets the latest OS.

If your app doesn’t require the latest OS features, you can configure it to run on a previous version of the platform operating system using the OS Deployment Target option in the Xcode Project settings. If your project was created in an older version of Xcode, you can let Xcode update your project. For details on this feature, see Project Modernization.

Automatic Signing

Changes to the signing processes may impede your development if you're working on an older project that has not been updated to the current signing process.

The recommended approach for both enterprise and App Store developer accounts is to use automatic signing in Xcode to code sign apps during both development and distribution. See Xcode Help for documentation on automatic signing. If you have an older project that is not configured to use automatic signing, read Technical Q&A (QA1814) "Setting up Xcode for Automatic Provisioning" to learn the procedure enabling you to reconfigure your Xcode project.

Automatic signing should be considered before using other techniques, but if your projects do require manual signing, search for “manually sign” in Xcode Help to review current manual signing practices.

Project Modernization

When you open a project, Xcode evaluates it to see whether any settings should be updated. This feature provides an easy way to make sure your projects conform to the latest SDKs and best practices.

Open the issue navigator to see whether anything in your project needs to be updated. You can also select the project in the project navigator, and then choose Editor > Validate Settings.

If the issue navigator lists modernization issues, click the issue to see a dialog that explains the updates that should be made and that lets you perform any or all of them.

After you have clicked Perform Changes, regardless of whether you choose to make all the changes, Xcode does not show the warning again. To rerun the check, select your project in the project navigator and choose Editor > Validate Settings.

See Also

To learn more about using Xcode, choose Help > Xcode Help.