Install the SDK
This page adds the Grona iOS SDK to your app with Swift Package Manager. Do it once for the app target that shows Grona content. When the package resolves, go on to initialise the SDK.
Requirements
Section titled “Requirements”| Requirement | Value | Notes |
|---|---|---|
| Minimum iOS version | iOS 16 | Your app’s deployment target must be iOS 16 or later. A target with a lower deployment target cannot link the package. |
| Swift | 5.10 or later | Xcode 15.3 or later. Your app can use the Swift 5 or Swift 6 language mode. Apple sets its own minimum Xcode version for App Store uploads. |
| UI frameworks | UIKit and SwiftUI | GronaSlotView is a UIView. GronaSlot and the .gronaDecision modifier are for SwiftUI. |
| Dependencies | None | The SDK uses only Apple frameworks. It brings no third-party code into your app. |
| Info.plist keys | None | The SDK needs no usage descriptions and never asks for App Tracking Transparency. |
| App extensions | Not supported | Call Grona.start from your app only. In an app extension it does nothing and the SDK stays inactive. |
Add the package
Section titled “Add the package”The package is available on request: email support@grona.ai, and Grona gives you the package location and the exact version to pin. It has two products:
| Product | Add it to | Purpose |
|---|---|---|
Grona |
Your app target | The SDK. |
GronaDebug |
Your app target, used only in debug builds | A debug view for your own builds. See Test and debug. |
Before 1.0, a minor version can contain breaking changes. Pin the exact version Grona gives you, and read the changelog before you move to a newer one. The samples on this page use 0.1.0.
-
In Xcode, choose File > Add Package Dependencies.
-
Paste the package location Grona gave you into the search field.
-
Set Dependency Rule to Exact Version and enter the version Grona gave you. Click Add Package.
-
Add the
Gronaproduct to your app target. AddGronaDebugto the same target if you want the debug view. Click Add Package. -
Build the app once. Xcode records the resolved revision in
Package.resolved. Commit that file.
If your app’s features live in a Swift package, add Grona to that package’s manifest. Replace the placeholder URL and the version with the ones Grona gave you:
// swift-tools-version: 5.10import PackageDescription
let package = Package( name: "AcmeMarketFeatures", platforms: [.iOS(.v16)], products: [ .library(name: "AcmeMarketFeatures", targets: ["AcmeMarketFeatures"]), ], dependencies: [ .package(url: "https://YOUR_PACKAGE_HOST/grona-ios", exact: "0.1.0"), ], targets: [ .target( name: "AcmeMarketFeatures", dependencies: [ .product(name: "Grona", package: "grona-ios"), .product(name: "GronaDebug", package: "grona-ios"), ] ), ])Set the package: argument to the last component of the package URL Grona gave you. The sample uses grona-ios.
How the SDK is distributed
Section titled “How the SDK is distributed”The SDK ships as a Swift Package Manager package. There is no CocoaPods pod or Carthage build.
- CocoaPods. Grona does not publish a pod. CocoaPods’ central spec repository is scheduled to stop accepting new pods in December 2026.
- Signatures. Grona is not on Apple’s list of commonly used third-party SDKs, so Apple’s signature requirement does not apply. Pin the exact revision in
Package.resolvedso every build uses the version you tested.
What the SDK adds to your app
Section titled “What the SDK adds to your app”- No permissions or Info.plist keys. The SDK never shows a system prompt.
- A privacy manifest. The package includes a
PrivacyInfo.xcprivacyfile, which Xcode includes when it generates your app’s privacy report. See App Store privacy and privacy manifest. - Network requests to known hosts only. The SDK contacts the addresses in your options and the image hosts you register with Grona, over https only. See Domains and network calls.
- One folder of files. The SDK keeps its state in its own folder inside your app’s Application Support directory, excluded from backups. See Consent for what it stores.
The SDK never reads the advertising identifier (IDFA), the identifier for vendor (IDFV) or any other device identifier.
Next steps
Section titled “Next steps”- Initialise the SDK when your app launches.
- Read Rendering modes to decide where Grona draws and where your app draws.