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
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
1.0.19 of the SDK by adding the following statement to your project's
Podfile within the
pod 'Pushy', '1.0.19'
Note: Please verify that your Podfile contains an uncommented
Important: Please uncomment the
use_frameworks! declaration within your
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.
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
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