Requirements
| Requirement | Version |
|---|---|
| iOS | 12.0+ |
| tvOS | 12.0+ |
| Xcode | 13.0+ |
| Swift | 5.0+ |
| CocoaPods | 1.9.1+ (if using CocoaPods) |
Swift Package Manager
Swift Package Manager is the recommended installation method for new projects.Select Version
Choose a dependency rule:
- Up to Next Major Version:
2.2.0(recommended) - Exact Version:
2.2.0
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.