Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Installation

Add the OnsideKit framework to your iOS project with Swift Package Manager or a manual framework install.

You can integrate OnsideKit using Swift Package Manager or by adding the framework manually.

These instructions target OnsideKit 3.0.1.

Requirements

  • iOS 17.4 or later as your deployment target

  • Xcode 26 or later

Choose a product

OnsideKit is distributed as two separate products. Pick the one that fits your app:

Product
When to use it

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.

Framework installation

Swift Package Manager is Apple's official dependency manager, integrated directly into Xcode.

  1. In Xcode, select your project in the Project Navigator, then open the Package Dependencies tab for the project.

  1. Click the + button to add a new package.

  2. In the search field, paste the SDK's repository URL:

    https://github.com/onside-io/OnsideKit-iOS
  3. Set the Dependency Rule to Exact Version and enter 3.0.1 to use the version covered by this documentation. Click Add Package.

  1. 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.

If you prefer not to use a dependency manager, add the framework manually.

  1. Download the 3.0.1 release’s OnsideKit.xcframework.zip (or OnsideKitLite.xcframework.zip) from the Releases page.

  2. Unzip it to get the OnsideKit.xcframework bundle.

  3. In Xcode, select your app's target and open the General tab.

  4. Find Frameworks, Libraries, and Embedded Content and drag the OnsideKit.xcframework into it.

  5. 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.

Next step

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?