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:

Swift:

import SuperwallKit

Objective-C: @import SuperwallKit;

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