Get the SDK

Please select your project type for the appropriate instructions:


Skip to the next section if your project has already been configured to use CocoaPods.

Run the following terminal command to install CocoaPods, the popular Cocoa dependency manager:

$ sudo gem install cocoapods

Note: If you prefer not to use CocoaPods, you can instead download the latest SDK source code and include it in your project. Once you are done, continue to the next step.

Run the following terminal command in the same directory as your .xcodeproj file to configure your project with a default Podfile, so you can install pods:

$ pod init

Install the SDK

Import version 1.0.21 of the SDK by adding the following statement to your project's Podfile within the target declaration:

pod 'Pushy', '1.0.21'

Note: Please verify that your Podfile contains an uncommented use_frameworks! declaration.

Important: Please uncomment the use_frameworks! declaration within your Podfile.

Save the file and run the following command to install the SDK:

$ pod install

Close all open Xcode windows. From now on, open your project using the .xcworkspace file instead of the .xcodeproj for CocoaPods integration to work.

If you're interested, check out the SDK changelog to see what's new in the latest version of the Pushy iOS SDK.

Configure SWIFT_VERSION Setting

You must configure the Pods -> Pushy target with the latest Swift version.

Simply go to the project editor, select the Pods -> Pushy target, click the Build Settings tab, search for SWIFT_VERSION and set it to Swift 4.2.

Embed Swift Libraries

You must configure your Objective-C project to embed the Swift Standard Libraries.

Simply go to the project editor for your target, select the Build Settings tab, scroll down to Build Options, and set Always Embed Swift Standard Libraries to Yes.