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/ios-sdk - Select Up to Next Major Version from
2.1.0 - Add
Grantivato your app target
Package.swift
Initialize the SDK
The SDK automatically reads your Bundle ID from
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.
Note: While Apple introduced App Attest in iOS 14, the Grantiva SDK requires iOS 18.0+.