AppCode 2023.1 Help


Targets allow using the same codebase to create multiple versions of a project. With targets, you can build different versions of you app, for example, iPhone/iPad, Free/Pro, and so on.

Targets greatly simplify maintenance and code updates across multiple apps.

Every project contains at least one target. When you create a new project, it already comes with one target by default.

Create a new target

  1. In Project Settings (Ctrl+Alt+Shift+S), click the Add button on the toolbar or press Alt+Insert.

    Create a new target
  2. In the Create New Target dialog, select a template for your target and click Next.

    Create a new target
  3. Specify the product name and fill out other required fields. Then click Finish.

Add a file to a target

  1. In the Project tool window, right-click the file and select Manage Targets.

  2. In the Manage Targets dialog, choose the required targets from the list and click OK.

    You can also add sources, resources, and frameworks to a target by dragging the files from the Project tool window to the corresponding area on the Build Phases tab.

    Drag and drop files to a Target

Last modified: 15 December 2022