Get the SDK


Please select your iOS project type for the appropriate instructions:

Swift
Objective-C

You can either install the SDK using the Swift Package Manager, Cocoapods, or directly from source.

Swift Package Manager

In Xcode, go to File -> Add Package Dependencies and paste the following URL into the "Search or Enter Package URL":

https://github.com/pushy/pushy-sdk-ios

Click Add Package to install the package.

CocoaPods

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

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

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

pod 'Pushy', '1.0.57'

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.

Install from Source

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


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

Add Blank Swift File


To avoid a compilation error, please add a blank .swift file to your Xcode project. This file can be empty.

If prompted, you may decline the creation of a bridging header for your project.