Skip to main content

Swift Package Manager

SpendOwl is distributed via Swift Package Manager, the recommended way to add dependencies in modern iOS projects.

Xcode UI

1

Open Package Dependencies

In Xcode, select your project in the navigator, then go to Package Dependencies tab.
2

Add Package

Click the + button to add a new package.
3

Enter URL

In the search field, enter:
https://github.com/spendowl/spendowl-ios
4

Choose Version

Select Up to Next Major Version with 1.0.0 as the minimum.
5

Add to Target

Select your app target and click Add Package.

Package.swift

If you’re using a Package.swift file:
dependencies: [
    .package(url: "https://github.com/spendowl/spendowl-ios", from: "1.0.0")
]
Then add SpendOwl to your target:
.target(
    name: "YourApp",
    dependencies: [
        .product(name: "SpendOwl", package: "spendowl-ios")
    ]
)

Requirements

RequirementMinimum Version
iOS15.0
macOS12.0
Xcode15.0
Swift5.9

Framework Dependencies

SpendOwl uses these Apple frameworks (automatically linked):
  • Foundation — Core Swift types and networking
  • StoreKit — Purchase tracking (StoreKit 2)
  • AdServices — Apple Search Ads attribution tokens
No third-party dependencies. SpendOwl is a pure Swift package.

Verify Installation

After adding the package, verify the installation by importing SpendOwl:
import SpendOwl

// Check SDK version
print(SpendOwl.sdkVersion) // "1.0.0"
If the import succeeds without errors, you’re ready to configure the SDK.

Updating

To update SpendOwl:
  1. Select your project in Xcode
  2. Go to Package Dependencies
  3. Right-click on spendowl-ios
  4. Select Update Package
Enable automatic updates in Xcode to get the latest bug fixes and features.

Next Steps

Configuration

Configure the SDK with your API key