- Xcode 13
- Easy setup
- Team comments inline
- Quick compare
- Cloud signing
- Bottom bar
- Vim mode
- CarPlay simulator
- Instant crash reports and feedback
- Custom documentation
- Xcode Cloud beta
- Get started
- Apple app developer xcode
- Choosing a Scheme to Build Your App
- Choosing a Destination to Run Your App
- Xcode IDE
- Source Editor
- Assistant Editor
- Version Editor
- Interface Builder Built-In
- Simulator
- Integrated Build System
- Compilers
- Graphical Debugger
- Continuous Integration
- Asset Catalog
- Open Quickly
- OpenGL Frame Capture
- Complete Documentation
- Live Issues
- Fix-it
- Quick Help
- XCTest Framework
- Static Analysis
- SwiftUI
- Declarative syntax
- Design tools
- Native on all Apple platforms
- Live mode
- Instruments
- Data Recording
- Visual Comparison
- Drill Down
- Instrument Library
- Zombie Detection
- Source View
- Low-Overhead Sampling
- Custom Instruments
- System Trace
- Other tools included in macOS
- Command Line Tools
- Script languages
- Apple Event Bridge
- Audio Tools
- Terminal 2
- Source Control: Git and Subversion
- UNIX tools
- Editors
- FileMerge
- Tools you’ll love to use.
- Xcode smoothly takes you from concept, to code, to customers.
- Assistant Editor
- Jump Bar
- Interface Builder
- Version Editor and Source Control
- Testing
- Customize
- Behaviors.
- Snippets.
- Open Quickly
- Schemes
Xcode 13
Xcode 13 adds powerful new team development features, perfect for working with Xcode Cloud as well as with GitHub, Bitbucket, and GitLab collaboration features. Initiate, review, comment, and merge pull requests directly within Xcode. See your teammates’ comments right inside your code. And quickly compare any two versions of your code files.
Easy setup
Take advantage of a complete workflow to manage pull requests directly within Xcode. Create new requests, see a queue of pull requests ready for your review, and quickly view, build, and test results generated locally or by Xcode Cloud.
Team comments inline
Comments that your teammates make on code during review display inline within the code editor, along with the name and avatar of the reviewer.
Quick compare
Jump into a comparison view of any two versions of your source code, in any editor, while retaining your current editing context.
Cloud signing
Apps are code-signed using an Apple-hosted service that manages all of your certificates, making App Store submission easier and more reliable. Just sign in to Xcode using your Apple ID, and your Mac is configured for development and deployment based on your membership roles and permissions.
Bottom bar
The always-visible bottom bar shows useful information, such as line and column, and offers direct access to quickly compare different versions of code.
Vim mode
Many common key combinations and editing modes familiar to Vim users are supported directly within the code editor, using the new bottom bar to show mode indicators.
CarPlay simulator
This new simulator for Mac offers complete control over screen size, resolution, and variable input methods, so you can test your CarPlay experience across many different car platforms.
Instant crash reports and feedback
Crash reports from your TestFlight users appear in Xcode Organizer within just a few minutes, complete with user feedback so your testers can tell you exactly what was happening when they experienced the crash. The crash log displays inline and you can jump to the related code with just a click.
Custom documentation
Build documentation for your Swift framework or package directly from your source code’s documentation comments, then view it in Xcode’s Quick Help and dedicated documentation viewer. Extend those comments by adding extension files, articles, and tutorials — all written in Markdown — and choose to share the compiled DocC Archive with other developers or host it on your website.
Xcode Cloud beta
Xcode Cloud is a continuous integration and delivery service built into Xcode and designed expressly for Apple developers. Submit your request to access the beta and we’ll email you when your account can be enabled.
Get started
Download Xcode and use these resources to build apps for all Apple platforms.
Xcode Documentation
Find details and step-by-step instructions on how to use Xcode.
Documentation
Browse the latest documentation, including tutorials, sample code, articles, and API reference.
Session videos
See the latest in Apple technologies presented at WWDC and other events.
Forums
Ask questions and discuss development topics with Apple engineers and other developers.
Источник
Apple app developer xcode
To build and run your iOS, watchOS, or OS X app, choose a scheme and a run destination in the workspace toolbar, and click the Run button. Clicking the Stop button causes your app to quit.
If you are running an iOS or watchOS app, Xcode launches it either in Simulator or on a device connected to your Mac. If you are running an OS X app, Xcode launches it directly on your Mac.
Xcode displays any errors or warnings it encounters in the issue navigator, available by clicking in the navigator bar. If there are errors during the compilation or link phase, Xcode doesn’t run your code.
Choosing a Scheme to Build Your App
A scheme is a collection of settings that specify the targets to build for a project, the build configuration to use, and the executable environment to use when the product is launched. When you open an existing project (or create a new one), Xcode automatically creates a scheme for each target. The default scheme is named after your project and includes settings to perform five actions:
Run unit tests against the target.
Profile the app’s performance characteristics.
Perform static analysis on the code.
Archive the app for distribution, such as sending to testers or submitting to the App Store.
Each action includes building the app as an executable product. To choose the scheme, use the Scheme menu in the Xcode workspace toolbar. (You’ll use the Scheme menu to choose a destination, too.)
Choosing a Destination to Run Your App
When you build an app, the destination determines where the app runs after it’s built. For OS X apps, the destination is the Mac on which the app is built. For iOS or watchOS apps, the destination can be a provisioned device connected to the Mac, or Simulator. Installed as part of the Xcode tools, Simulator runs on your Mac and simulates an iPhone, iPad, or Apple Watch environment.
The Scheme menu lets you select a combination of scheme and destination, but the two settings are distinct. A scheme does not include a destination. In the screenshot above, Adventure iOS is selected as the scheme, and the iPhone Retina (4-inch) simulation environment is selected as the destination. As a result, the Adventure iOS scheme builds an iOS executable that runs on a simulated iPhone in OS Simulator. As shown below, the same scheme could be used to run the app on a different destination, such as a simulated iPad or a connected iOS device.
Источник
Xcode IDE
Source Editor
Write code using a professional editor with advanced code completion, code folding, syntax highlighting, and message bubbles that display warning, errors, and other context-sensitive information inline with your code.
Assistant Editor
The Assistant button splits the editor in two, creating a secondary pane that automatically displays files that are most helpful to you based on the code you are actively editing. It can show the header counterpart, the superclass, callers, callees, or other helpful files.
Version Editor
Xcode’s Version editor displays a running timeline of commits, helps you determine blame, and graphically goes back in time to compare source files, with full support for Subversion and Git source control (SCM) systems.
Interface Builder Built-In
Design and test your user interface without writing a line of code, prototype in minutes, then graphically connect your interface to the source within the Xcode editor.
Simulator
With the iOS SDK, Xcode can build, install, run, and debug Cocoa Touch apps in a Mac-based Simulator for a streamlined development workflow.
Integrated Build System
Handles the most complex builds, scaling to maximize the power of multi-core Macs, and will automatically sign, provision, and install iPad and iPhone apps onto a device.
Compilers
The powerful open-source LLVM compiler for C, C++, and Objective-C is built into Xcode and available from Terminal. With it, your code compiles quickly, and is optimized by Apple to produce blazing-fast apps specifically tuned for the CPUs in iPhone, iPad, and Mac.
Graphical Debugger
Debug your app directly within the Xcode editor. Hover over any variable to drill into its contents, use Quick Look to see the data it contains, or right-click to add the variable to the watch list.
Continuous Integration
Xcode Server controls server-side bots that continuously build, analyze, test, and even archive your Xcode projects. The Xcode IDE configures these bots, analyzes nightly build and test results, and can track down which check-in broke the build.
Asset Catalog
The asset catalog editor in Xcode manages your app’s images, grouping together various resolutions of the same asset. When building, Xcode compiles the asset catalog into the most efficient bundle for final distribution.
Open Quickly
Simply press Cmd-Shift-O to instantly open any file within your workspace using the primary editor, or hold the Option key when selecting a file to open it in the Assistant editor. Open Quickly is an essential tool in any keyboard-driven workflow.
OpenGL Frame Capture
Press a single button to capture a complete representation of the current OpenGL frame from an iOS device. Xcode displays the shader information, and can visually construct how the frame was assembled within the Xcode debugger.
Complete Documentation
Easily search and find anything within Help or the Documentation and API Reference viewer.
Live Issues
Just like a word processor highlights spelling errors, Live Issues highlights common coding mistakes, without the need to click ‘build’ first.
Fix-it
Xcode goes beyond just reporting errors. When you make a coding mistake, Xcode will immediately alert you, and a single keyboard shortcut will instantly fix the issue, so you won’t miss a beat while coding.
Quick Help
Shortened API documentation is displayed while you’re programming, including comments that you write for your code. A brief overview is presented during code completion, with more links and references available within the Utility area.
XCTest Framework
XCTest APIs make it easy to build unit tests that exercise app functionality and are capable of running on Mac, iPad, iPhone, or Simulator.
Static Analysis
Find bugs in your code before the app is even run by letting the built-in static analyzer try out thousands of possible code paths in a few seconds. You’ll get a report of potential bugs that could have remained hidden or are nearly impossible to replicate.
SwiftUI
Declarative syntax
Write simpler code with a declarative Swift syntax that clearly states what your user interface should do.
Design tools
Drag and drop to construct or edit your interface. Quickly make changes to visual UI elements with pop-up inspectors.
Native on all Apple platforms
Your apps gain incredible native performance and take advantage of the proven technologies, controls, and user experiences of Apple platforms to feel fully integrated.
Live mode
See your design change instantly in one or many exact previews. Switch the design canvas to live mode to instantly interact with your running app in Xcode or on a connected device.
Instruments
Data Recording
Tell Instruments which app to analyze, what type of data to collect, and simply click the big red button as data is collected and stored for further analysis.
Visual Comparison
As data is recorded and displayed over time it is easy to see relationships, both between different types of collected data, or the same data collected over multiple runs.
Drill Down
Inspect data spikes on the graph to see what code is executing at the time, then easily jump into Xcode to fix the problem.
Instrument Library
Choose any of the bundled instruments in the library from low-level CPU, network, or file activity, to advanced graphics and user-event instruments.
Zombie Detection
Hard-to-find errors and crashes can be trapped within Instruments when an app tries to access memory that is no longer available.
Source View
Drill down through data points, sort to find the most CPU-consuming methods, and view the code directly within the Instruments UI to pinpoint the problem.
Low-Overhead Sampling
Sample performance data with a simple key press, using low overhead to collect high-fidelity information.
Custom Instruments
Create your own Instruments using DTrace and the Instruments custom builder.
System Trace
Taking up very few resources, Instruments records information about all the processes on your system, revealing performance bottlenecks caused as processes interact.
Other tools included in macOS
Command Line Tools
Download the macOS SDK, headers, and build tools such as the Apple LLVM compiler and Make. These tools make it easy to install open source software or develop on UNIX within Terminal. macOS can automatically download these tools the first time you try to build software, and they are available on the downloads page.
Script languages
macOS comes with AppleScript, Perl, Python, and Ruby already installed. And because macOS is built on UNIX, you can easily build your versions of popular open source languages using Xcode or the command line developer tools that come with macOS.
Apple Event Bridge
AppleScript and Automator get much of their power from the underlying Apple Event engine, making it easy to automate tasks on macOS. This bridge lets you command and query apps from additional languages such as Objective-C, Ruby, and Python, using the same messaging architecture as AppleScript.
Audio Tools
The AU Lab tool enables mixing and manipulation of audio streams.
Terminal 2
Terminal 2 provides access to the UNIX shell with tabs, colors, and Unicode support.
Source Control: Git and Subversion
The Xcode IDE supports both of these SCM systems directly within the IDE, and makes them available from the command line.
UNIX tools
These include all of the most popular command line tools such as make, awk, sed, ssh, tar, and zip.
Editors
The editors in macOS include TextEdit, xed (the Xcode editor), plus vim and emacs.
FileMerge
Compare, differentiate, and merge any text document.
Xcode Documentation
Find details and step-by-step instructions on how to use Xcode.
Documentation
Browse the latest documentation, including tutorials, sample code, articles, and API reference.
Session videos
See the latest in Apple technologies presented at WWDC and other events.
Forums
Ask questions and discuss development topics with Apple engineers and other developers.
Источник
Tools you’ll love to use.
The Xcode IDE is at the center of the Apple development experience. Tightly integrated with the Cocoa and Cocoa Touch frameworks, Xcode is an incredibly productive environment for building apps for Mac, iPhone, iPad, Apple Watch , and Apple TV .
Xcode smoothly takes you from concept, to code, to customers.
Because everything is so well integrated, workflows feel natural. As you compose a new interface, the Assistant editor intuitively presents the related source code in a split window pane. Simply drag the mouse to connect UI controls to the implementation code. Apple LLVM compiler technologies parse your code, keeping every symbol you see in the LLDB debugger consistent with the editor and compiler. As you type, that same engine is constantly at work, finding mistakes and offering Fix-its for your code.
Xcode even communicates with the Apple developer website, so you can enable services such as Game Center or Passbook in your app with a single click. When your app is ready, Xcode will bundle and submit your app to the App Store.
Assistant Editor
The Assistant button splits the Xcode editor in two, with your primary work document on the left and an intelligent Assistant editor pane to the right. The Assistant editor automatically displays files that Xcode determines are most helpful to you based on the work you are performing in the primary editor. For instance, if you are editing MyClass.m in the primary editor, the Assistant will automatically show the counterpart MyClass.h.
Jump Bar
Clicking the Jump Bar, located at the top of every editor pane, you can quickly select what information to view in the Assistant editor. For instance, while editing source code in the primary editor, the Assistant can show the counterpart header, sub-classes or superclasses, or related tests.
Interface Builder
Fully integrated within the Xcode IDE, the Interface Builder design canvas makes it simple to prototype a full user interface without writing any code. Prototype in minutes, then graphically connect your interface to the source within the Xcode editor, laying out windows, buttons, and sliders to create a functioning Mac, iPhone, or iPad user interface. With the Assistant editor, you can work on the graphical design side-by-side with the implementation source code. A simple mouse drag from a UI control to the source pane creates a connection between code and interface, and can even create the code stub for you. Learn more
Version Editor and Source Control
The Version editor makes it easy to compare two versions of a file, see commit logs, check who made a code change, and even zoom back through the commit timeline. The Version editor splits the pane to show two different versions of the same file. Differences are highlighted as you travel through the timeline separating the editor views. Xcode can also create a local Git repository for new projects, or check out a hosted Subversion or Git repo. The top-level Source Control menu makes it easy to perform branch and merge operations, perfect for distributed teams.
Testing
Test-driven development is a first-class workflow within Xcode. The Test Navigator makes it incredibly easy to jump to any test in your project, execute an individual test, or execute a group of tests. The Assistant editor has new test-specific views that automatically track which tests exercise the code you are presently editing, keeping your tests and code in sync at all times.
Customize
The Xcode environment can be configured to match almost any workflow, including customization features like tabs, behaviors, and snippets.
Create a completely unique view of your project with tabs. Each tab has its own navigator, editor, assistant, and utility area arrangement. You can name tabs for specific tasks, re-arrange them, or tear out the tab to create a stand-alone window.
Behaviors.
Tell Xcode what to do with events such as starting a debug session or encountering an error during a build. Coupled with tabs, you can create a custom work environment for each of your edit, design, build, or debug tasks. Custom behaviors can also completely re-arrange your window with a single key combination.
Snippets.
Dozens of pre-configured code completions, such as defining a new class or method, are included in the snippets library. By customizing or adding snippets, you can insert frequently entered code by typing only a few characters.
Open Quickly
Get quick access to any file your project uses with Open Quickly (Command-Shift-O). Xcode immediately offers completions for your search, allowing you to choose one and hit Return to open the file or hit Option-Return to open in the Assistant editor.
Schemes
Customize the way Xcode builds and runs your app depending on whether you are debugging, profiling, performing code analysis, or running a test suite. For example, the default scheme is configured to build your app in “Debug” mode when running, and the same scheme settings will build for “Release” when performing the Profile or Archive command. There is no need to change project settings as you move from task to task. Xcode configures the schemes for you automatically, or you can use the “Manage Schemes” menu to customize them yourself.
Xcode Documentation
Find details and step-by-step instructions on how to use Xcode.
Documentation
Browse the latest documentation, including tutorials, sample code, articles, and API reference.
Session videos
See the latest in Apple technologies presented at WWDC and other events.
Forums
Ask questions and discuss development topics with Apple engineers and other developers.
Источник