Post

Add/Remove Swift package dependencies in XCode

Add/Remove Swift package dependencies in XCode

To add a swift package to the project in XCode.

  • Right click on the project and click “Add Package Dependencies”
  • Search and select the package and click “Add Package”

The package is added to the project and can be used in the Swift code.

To remove a swift package from a project in XCode.

  • Click on the project and select the project name in the work area.
  • Select “Package Dependencies” tab in the work area.
  • Select the package the remove in the packages table
  • Click “Remove Dependencies” button (- button) and confirm the action.

The package is removed from the project.

Swift Package Manager Swift Package Manager

This post is licensed under CC BY 4.0 by the author.