Skip to main content
The Permutive iOS SDK can be installed via Swift Package Manager or CocoaPods.

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 your Package.swift:

CocoaPods

Basic Installation

Add the Permutive pod to your Podfile:
Then install:

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:
Build your project (⌘B) to confirm there are no import errors.

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

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
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
Problem: No such module 'Permutive_iOS'Solutions:
  • Clean build folder: Product → Clean Build Folder (⇧⌘K)
  • For CocoaPods: Ensure you opened the .xcworkspace file, not .xcodeproj
  • Restart Xcode
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