To add a package dependency to your Xcode project, select File > Add Packages and enter its repository URL . You can also navigate to your target’s General pane, and in the “Frameworks, Libraries, and Embedded Content” section, click the + button, select Add Other, and choose Add Package Dependency.