Installation
If you’re looking for information on how to integrate the SDK, check out our Universal Checkout integration guide.
With CocoaPods
Add the following to your Podfile
file:
RUBY
Then run pod install
to install PrimerSDK on your workspace.
In case you encounter an error that the bundle needs signing on Xcode 14, add the following post-install script in your podfile.
RUBY
With Swift Package Manager
The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into Xcode. In order to add PrimerSDK with Swift Package Manager:
- Select your project, and then navigate to
Package Dependencies
- Click on the + button at the bottom-left of the
Packages
section - Paste https://github.com/primer-io/primer-sdk-ios.git into the Search Bar, or search for
primer-sdk-ios
in the Search Bar. - Press Add Package
- Let Xcode download the package and set everything up
For more details about SDK versions, please see our changelog.