Superwall

Install the SDK

Visual learner? Go watch our install video over on YouTube here.

Overview

To see the latest release, check out the repository.

You can install via Swift Package Manager or CocoaPods.

Install via Swift Package Manager

Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the Swift compiler.

In Xcode, select File ▸ Add Packages...:

1174

Then, paste the GitHub repository URL:

https://github.com/superwall/Superwall-iOS

in the search bar. With the Superwall-iOS source selected, set the Dependency Rule to Up to Next Major Version with the lower bound set to 4.0.0. Make sure your project name is selected in Add to Project. Then click Add Package:

After the package has loaded, make sure Add to Target is set to your app's name and click Add Package:


And you're done! Now you're ready to configure the SDK 👇

Install via CocoaPods

First, add the following to your Podfile:

pod 'SuperwallKit', '< 5.0.0'

Next, run pod repo update to update your local spec repo. Why?.

Finally, run pod install from your terminal. Note that in your target's Build Settings -> User Script Sandboxing, this value should be set to No.

Updating to a New Release

To update to a new beta release, you'll need to update the version specified in the Podfile and then run pod install again.

Import SuperwallKit

You should now be able to import SuperwallKit:

import SuperwallKit
And you're done! Now you're ready to configure the SDK 👇

How is this guide?

On this page