Skip to main content
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:
  1. Select your project, and then navigate to Package Dependencies
  2. Click on the + button at the bottom-left of the Packages section
  3. Paste https://github.com/primer-io/primer-sdk-ios.git into the Search Bar, or search for primer-sdk-ios in the Search Bar.
  4. Press Add Package
  5. Let Xcode download the package and set everything up
For more details about SDK versions, please see our changelog.