Requirements
Swift Package Manager
Swift Package Manager is the recommended installation method for new projects.1
Open Package Dependencies
In Xcode, go to File → Add Package Dependencies
2
Enter Package URL
In the search field, enter:
3
Select Version
Choose a dependency rule:
- Up to Next Major Version:
2.2.0(recommended) - Exact Version:
2.2.0
4
Add Package Product
Select Permutive_iOS and add it to your target
Package.swift (for packages)
If you’re adding Permutive to a Swift package, add it to yourPackage.swift:
CocoaPods
Basic Installation
Add the Permutive pod to yourPodfile:
tvOS Installation
For tvOS targets, specify the tvOS platform:Multi-Platform Podfile
For apps supporting both iOS and tvOS:Updating the SDK
To update to the latest version:Importing the SDK
After installation, import Permutive in your Swift or Objective-C files:Verifying Installation
After installing, verify the SDK is accessible:Mac Catalyst Support
The SDK supports Mac Catalyst. When using Swift Package Manager, add the package as normal - it works for both iOS and Mac Catalyst targets. For CocoaPods, the standard iOS pod works with Catalyst projects.Troubleshooting
CocoaPods: Pod not found
CocoaPods: Pod not found
Problem:
Unable to find a specification for 'Permutive_iOS'Solutions:- Update your CocoaPods repo:
pod repo update - Ensure CocoaPods is version 1.9.1 or later:
pod --version - Try clearing the cache:
pod cache clean --all
SPM: Package resolution failed
SPM: Package resolution failed
Problem: Xcode cannot resolve the package.Solutions:
- Check your network connection
- Reset package caches: File → Packages → Reset Package Caches
- Verify the URL is correct:
https://github.com/permutive-engineering/permutive-ios-spm
Module not found after installation
Module not found after installation
Problem:
No such module 'Permutive_iOS'Solutions:- Clean build folder: Product → Clean Build Folder (⇧⌘K)
- For CocoaPods: Ensure you opened the
.xcworkspacefile, not.xcodeproj - Restart Xcode
Bitcode errors
Bitcode errors
Problem: Bitcode-related build errors.Solution: Bitcode is no longer required for App Store submission. Disable it in your target’s Build Settings: set Enable Bitcode to No.
Next Steps
Initialization
Configure and start the SDK
Quick Start
Complete setup walkthrough