With CocoaPods

The iOS SDK is available with Cocoapods. Add PrimerSDK to your Podfile:

123456
target 'MyApp' do  # Other pods...   # Add this to your Podfile  pod 'PrimerSDK'end
ruby
copy

Then run the following command to install the pod.

1
pod install
bash
copy

For specific versions of the SDK, please refer to the changelog.

With Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into Xcode.

In Xcode, go to File > Swift Packages > Add Package Dependency. In the window that opens, enter https://github.com/primer-io/primer-sdk-ios.git