Requirements
Before integrating the AppDNA iOS SDK, ensure your project meets the following minimum requirements:| Requirement | Minimum Version |
|---|---|
| iOS | 15.0+ |
| Swift | 5.9+ |
| Xcode | 15+ |
Installation
Swift Package Manager (Recommended)
Add the AppDNA SDK to your project using Swift Package Manager:- In Xcode, go to File > Add Package Dependencies…
- Enter the repository URL:
- Set the dependency rule to Up to Next Major Version starting from
1.0.0. - Select the
AppDNASDKpackage product and add it to your target.
Package.swift:
CocoaPods
Add the following to yourPodfile:
The pod is published from the
AppDNASDK.podspec in the SDK repository. Make sure your CocoaPods repo is up to date by running pod repo update if the pod is not found.Dependencies
The following dependencies are automatically included with the SDK. You do not need to add them manually:| Dependency | Version | Purpose |
|---|---|---|
| KeychainAccess | ~4.2.2 | Secure storage for tokens and IDs |
| FirebaseFirestore | ~10.0.0 | Real-time remote configuration sync |
If your project already includes these dependencies, ensure your version constraints are compatible with the versions listed above. SPM and CocoaPods will resolve version conflicts automatically in most cases.
Verify Installation
After adding the SDK, verify it is correctly installed by importing the module and printing the SDK version:You should see
1.0.0 printed in the Xcode console. If you get a “No such module” error, clean your build folder (Cmd+Shift+K) and rebuild.