---
title: "Installation"
description: "Install the Nuxie Swift package with Xcode or Package.swift."
search:
  tags: ["sdk", "reference", "ios"]
  keywords: ["Swift", "StoreKit", "Xcode"]
---

Add the Nuxie Swift package to your app target. Requires Xcode 27.1 or later and an iOS 15 or later deployment target.

## Add via Xcode

1. **Add the package repository**

    In Xcode, choose **File → Add Package Dependencies** and enter:

    ```text title="Swift package URL"
    https://github.com/nuxieai/nuxie-ios
    ```

2. **Choose the version**

    Set **Dependency Rule** to **Up to Next Major Version**, starting at `1.0.0`. Xcode records the resolved revision in `Package.resolved`.

3. **Add Nuxie to your target**

    Select the **Nuxie** product for your app target.

The package includes its native runtime dependency.

## Add via Package.swift

Add the released package to `dependencies`:

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

Add the library product to the app target:

```swift
.target(
    name: "YourApp",
    dependencies: [
        .product(name: "Nuxie", package: "nuxie-ios"),
    ]
)
```

## Minimum deployment target

Set the deployment target in Xcode or `Package.swift`:

```swift
platforms: [
    .iOS(.v15)
]
```

## Verify the installation

Build the app with this import:

```swift
import Nuxie

// Verify the SDK is importable
print("Nuxie SDK version: \(NuxieSDK.shared.version)")
```

<span id="next-steps" />

Continue with [Configuration](/docs/ios-sdk/configuration). If your app uses RevenueCat or Superwall, [Purchases](/docs/ios-sdk/purchases) shows how to add the provider adapter.
