A target specifies a product to build, such as an iOS, watchOS, or macOS app. When you create a project from a template, targets are added automatically. If you choose Unit and UI tests when creating a project, the project includes targets for the main app and the test apps. A watchOS app, that is dependent on an iOS app, has targets for the iOS app, WatchKit extension, and WatchKit app. macOS apps can have multiple targets too. Choose a target in the project editor to view and modify the target’s settings. Click the Add button (+) in the project editor to add a new Application, Framework & Library, Test, or Application Extension target to your project.
Targets settings are edited in the following project editor panes:
General. Commonly edited target settings, such as the bundle identifier, version, and build number. General settings exist in other target setting categories, but are also included here for convenience.
Signing & Capabilities. Settings for code signing your app and enabling app services, such as iCloud, push notifications, and Game Center.
Resource tags. Custom-defined tags your project uses to identify and manage sets of on-demand resources.
Info. Settings contained within the Info.plist
file of the target.
Build settings. Settings that specify exactly how the target is built.
Build phases. Settings that describe actions to be performed at build time, such as compiling source code and copying resources into the product.
Build rules. Settings that define custom rules for building specific types of files.