Link a target to frameworks and libraries

Use the General pane of the project editor to specify the frameworks and libraries a target needs to run. You can add links to:

If you use Mac Catalyst to build a Mac version of an iPad app, you can choose the platform for the framework or library.

To link to a Swift package, go to Link a target to a package product.

Add a framework or library

  1. In the Project navigator, select the project and in the project editor, select the target.

  2. Click General, then under Frameworks, Libraries, and Embedded Content, click the Add button (+) below the table.

  3. In the sheet that appears, select a framework or library.

    If you want to choose an external framework or library, choose Open from the Add Other pop-up menu, then locate it on your computer.

  4. Click Add.

  5. If appropriate, choose an option from the pop-up menu in the Embed column.

    • Do Not Embed

    • Embed & Sign

    • Embed Without Signing

Choose the platform for the framework or library

For a Mac version of an iPad app, specify whether to include the framework or library on macOS, iOS, or both platforms.

  1. In the Project navigator, select the project and in the project editor, select the target.

  2. In the Frameworks, Libraries, and Embedded Content section, choose a platform for the framework or library from the Platforms pop-up menu.