Skip to main content

iOS Installation

Add the AppActor SDK to your iOS or macOS project using Swift Package Manager.

Requirementsโ€‹

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

The SDK has zero external dependencies โ€” it only uses Apple frameworks (StoreKit, Foundation, Combine).

Swift Package Manager (Xcode)โ€‹

  1. In Xcode, go to File โ†’ Add Package Dependencies
  2. Enter the repository URL:
    https://github.com/appactor/appactor-ios.git
  3. Select Up to Next Major Version and set the minimum to 1.0.0
  4. Click Add Package
  5. Select the AppActor library and add it to your app target

Swift Package Manager (Package.swift)โ€‹

Add the dependency to your Package.swift:

dependencies: [
.package(url: "https://github.com/appactor/appactor-ios.git", from: "1.0.0")
]

Then add AppActor to your target's dependencies:

.target(
name: "MyApp",
dependencies: [
.product(name: "AppActor", package: "appactor-ios")
]
)

Verify Installationโ€‹

Import the SDK and check that it compiles:

import AppActor

print(AppActor.shared) // Should compile without errors

StoreKit Configurationโ€‹

Before testing purchases, make sure you have:

  1. App Store Connect โ€” Products configured (subscriptions, consumables, etc.)
  2. StoreKit Configuration File (optional) โ€” For local testing in Xcode simulator without an App Store Connect account
tip

You can use a StoreKit Configuration File for local development and testing without needing real App Store Connect products.

Next Stepsโ€‹