Alternative Installation Methods

Alternative methods for installing the SDK.

Carthage

Before you begin, ensure you have Carthage installed.

Adding the SDK framework to your application

Follow Carthage's adding frameworks to an application instructions to add AirshipKit.framework to your application.

Specify the Airship iOS SDK in your cartfile:

github "urbanairship/ios-library"

If you are creating a Notification Service Extension, follow the instructions in the iOS Notification Service Extension Guide.

Verify Enable Modules and Link Frameworks Automatically are enabled in the project's Build Settings.

Manual

Start by downloading the latest version of the iOS SDK.

Copy AirshipKit

Copy the AirshipKit directory into the top level of your app's source directory.

Include AirshipKit as a project dependency

Drag AirshipKit.xcodeproj out of the AirshipKit folder and into your app project in Xcode (directly under the top level of the project structure). Now AirshipKit will be built at compile-time for the active architecture.

Add AirshipKit to Embedded Binaries:

To add the framework to Embedded Binaries, click the add + button and select AirshipKit.framework iOS nested under the path AirshipKit.xcodeproj/AirshipResources/ios/Products

This should result in AirshipKit.framework appearing in both the Embedded Binaries and the Linked Frameworks and Libraries sections of the General tab for your target.

Verify Build Settings:

Enable Modules should be set to Yes

Link Frameworks Automatically should be set to Yes