Installation
Add the OnsideKit framework to your iOS project with Swift Package Manager, CocoaPods, or a manual framework install.
Last updated
Was this helpful?
Add the OnsideKit framework to your iOS project with Swift Package Manager, CocoaPods, or a manual framework install.
You can integrate OnsideKit using Swift Package Manager, CocoaPods, or by adding the framework manually.
iOS 16.0 or later as your deployment target
Xcode 26 or later
OnsideKit is distributed as two separate products. Pick the one that fits your app:
OnsideKit
The full SDK, including Apple Pay. Use this unless you have a specific reason not to.
OnsideKitLite
The same SDK without the PassKit dependency (no Apple Pay), for apps that cannot include PassKit.
Both products are identical apart from Apple Pay support. See OnsideKit vs OnsideKitLite for the details. Everywhere below, swap OnsideKit for OnsideKitLite if you need the PassKit-free build.
Swift Package Manager is Apple's official dependency manager, integrated directly into Xcode.
In Xcode, select your project in the Project Navigator, then open the Package Dependencies tab for the project.

Click the + button to add a new package.
In the search field, paste the SDK's repository URL:
https://github.com/onside-io/OnsideKit-iOSFor the Dependency Rule, we recommend "Up to Next Major Version" to receive updates and bug fixes without breaking changes. Click Add Package.

Choose the product to add to your app's target — OnsideKit (with Apple Pay) or OnsideKitLite — and click Add Package.
The framework now appears in the Project Navigator and is linked to your target.
CocoaPods is a popular dependency manager for Swift and Objective-C projects.
If you don't have CocoaPods installed, run:
If your project has no Podfile, create one:
Add OnsideKit to your app's target in the Podfile. Use OnsideKit for the full SDK, or OnsideKitLite for the PassKit-free build:
Install and open the generated workspace:
Open the newly created .xcworkspace file and start using the SDK.
If you prefer not to use a dependency manager, add the framework manually.
Download the latest OnsideKit.xcframework.zip (or OnsideKitLite.xcframework.zip) from the Releases page.
Unzip it to get the OnsideKit.xcframework bundle.
In Xcode, select your app's target and open the General tab.
Find Frameworks, Libraries, and Embedded Content and drag the OnsideKit.xcframework into it.
Set Embed & Sign for the framework — this bundles and signs it with your app.

You can now import OnsideKit (or import OnsideKitLite) in your source files.
Before calling any OnsideKit API you must initialize the SDK and configure your URL scheme. Continue with Initializing the SDK.
Last updated
Was this helpful?
Was this helpful?
sudo gem install cocoapodspod init# Podfile
platform :ios, '16.0'
use_frameworks!
target 'YourAppName' do
pod 'OnsideKit', :git => 'https://github.com/onside-io/OnsideKit-iOS.git'
# or, without Apple Pay / PassKit:
# pod 'OnsideKitLite', :git => 'https://github.com/onside-io/OnsideKit-iOS.git'
endpod install