iOS SDK

Installation

Add the Nuxie SDK to your iOS project via Swift Package Manager

Installation

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

  1. Open your project in Xcode.
  2. Go to File > Add Package Dependencies.
  3. Enter the repository URL:
    text
    https://github.com/nuxieio/nuxie-ios
    
  4. Set the dependency rule (for example, Up to Next Major Version) and select a version.
  5. Choose the library products to add to your target:
    • Nuxie -- required for all integrations.
    • NuxieRevenueCat -- add this if you use RevenueCat for purchases.
    • NuxieSuperwall -- add this if you use Superwall for purchases.
  6. Click Add Package.

Add via Package.swift

If you manage dependencies in a Package.swift file, add Nuxie to your dependencies array:

swift
dependencies: [
    .package(url: "https://github.com/nuxieio/nuxie-ios", from: "1.0.0")
]

Then add the products you need to your target's dependencies:

swift
.target(
    name: "YourApp",
    dependencies: [
        .product(name: "Nuxie", package: "nuxie-ios"),
        // Optional:
        // .product(name: "NuxieRevenueCat", package: "nuxie-ios"),
        // .product(name: "NuxieSuperwall", package: "nuxie-ios"),
    ]
)

Verify the installation

Import the SDK in your app delegate or main entry point and confirm it compiles:

swift
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:

swift
platforms: [
    .iOS(.v15)
]

Next steps