Requirements
- iOS 18.0+ / macOS 15.0+
- Swift 6.0+
- Xcode 16+
Swift Package Manager
Xcode
- Open your project in Xcode
- Go to File > Add Package Dependencies
- Enter the repository URL:
https://github.com/grantiva/sdk - Select Up to Next Major Version from
1.0.0 - Add
Grantivato your app target
Package.swift
Initialize the SDK
| Parameter | Type | Required | Description |
|---|---|---|---|
teamId | String | Yes | Your Apple Developer Team ID |
apiKey | String? | No | API key for simulator/development use |
Bundle.main.bundleIdentifier. Together with the Team ID, this identifies your app to the Grantiva backend — no API keys needed on-device.
API key mode (development only)
App Attest is not available in the iOS simulator. For development, pass an API key:App Attest capability
No special entitlements are required. App Attest is available on all iOS 14+ devices (real hardware only). The SDK checks availability at runtime and throwsGrantivaError.deviceNotSupported if unavailable.