Installation
Add the Nuxie SDK to your iOS project via Swift Package Manager
Add the Nuxie SDK to your project using Swift Package Manager. The SDK requires iOS 15.0 or later and Swift tools version 5.9.
Add via Xcode
- Open your project in Xcode.
- Go to File > Add Package Dependencies.
- Enter the repository URL:
https://github.com/nuxieai/nuxie-ios - Set the dependency rule (for example, Up to Next Major Version) and select a version.
- Add the Nuxie library product to your target.
- Click Add Package.
Add via Package.swift
If you manage dependencies in a Package.swift file, add Nuxie to your dependencies array:
dependencies: [
.package(url: "https://github.com/nuxieai/nuxie-ios", from: "1.0.0")
]
Then add the Nuxie product to your target’s dependencies:
.target(
name: "YourApp",
dependencies: [
.product(name: "Nuxie", package: "nuxie-ios"),
]
)
RevenueCat and Superwall remain optional app-owned dependencies. Apps using
one of them copy Nuxie’s maintained delegate source from
Examples/Adapters into the app target; this keeps provider SDKs out of every
core Nuxie installation.
Verify the installation
Import the SDK in your app delegate or main entry point and confirm it compiles:
import Nuxie
// Verify the SDK is importable
print("Nuxie SDK version: \(NuxieSDK.shared.version)")
Build your project. If the import resolves and the project compiles, the SDK is installed correctly.
Minimum deployment target
The SDK requires iOS 15.0. If your project targets an earlier version, update the deployment target in your Xcode project settings or in your Package.swift platforms array:
platforms: [
.iOS(.v15)
]
Next steps
- Configuration – initialize the SDK with your API key and configure options
- Identity & Users – identify users and manage anonymous IDs