Member-only story

How to add a swift package to iOS App using the Swift Package Manager

Jay Wilson
2 min readOct 14, 2021

I’m going to show you how to add a swift package to your iOS app using the Swift Package Manager.

First how to add a package to your app

To add a package you will need a repository’s URL or if the package is hosted on GitHub or GitHub enterprise and you’re logged in you can just search for the package.

There’s actually two ways.

Here is way number 1:

  1. Navigate to the target’s general pane
  2. Click the + button in the Frameworks, Libraries, and Embedded Content
  3. Click on Add Other
  4. Choose Add Package Dependecy

Here is way number 2:

  1. Open the project
  2. Go to the File Menu
  3. Choose Swift Packages and enter the repo URL

How to use the dependency?

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Jay Wilson
Jay Wilson

Written by Jay Wilson

I like to solve problems using Swift, make YouTube videos, and take photos. I also really enjoy a good cup of coffee.

No responses yet

Write a response