iOS Installation
Add the AppActor SDK to your iOS or macOS project using Swift Package Manager.
Requirementsโ
| Requirement | Minimum |
|---|---|
| iOS | 15.0+ |
| macOS | 12.0+ |
| Swift | 5.9+ |
| Xcode | 15.0+ |
The SDK has zero external dependencies โ it only uses Apple frameworks (StoreKit, Foundation, Combine).
Swift Package Manager (Xcode)โ
- In Xcode, go to File โ Add Package Dependencies
- Enter the repository URL:
https://github.com/appactor/appactor-ios.git - Select Up to Next Major Version and set the minimum to
1.0.0 - Click Add Package
- Select the
AppActorlibrary 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:
- App Store Connect โ Products configured (subscriptions, consumables, etc.)
- 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โ
- Configuring the SDK โ Initialize AppActor with your API key