- In
Xcode, go toFile→Add Packages...OR select your project in theProject Editor, go to thePackage Dependenciestab, and press the+.
- Enter a
Package URL(e.g. aGitHubrepositoryURL) or a search term in the search field in the upper right.
- Select the package you want to add. Select a
Dependency Rule. In most cases, you probably want to set this toUp to Next Major Version. ClickAdd Package.

