Alternative Installation Methods
Install the Airship SDK using CocoaPods, Carthage, or xcframeworks for iOS, tvOS, and visionOS projects that cannot use Swift Package Manager.
These installation methods are available for projects that cannot use Swift Package Manager. For new projects, use SPM — see Install and Set Up the Apple SDK.
Install Airship
CocoaPods trunk is moving to read-only mode in late 2026. Airship will continue to support CocoaPods as long as possible, but we recommend migrating to SPM for new and existing projects. Existing CocoaPods installations will continue to work after trunk becomes read-only.
- Install CocoaPods if you haven’t already:
$ gem install cocoapodsNavigate to your project directory in Terminal.
Create a
Podfile(if one doesn’t exist):
$ pod init- Open your
Podfileand add the Airship pod. TheAirshippod is modular and divided into subspecs:
Available subspecs:
Airship/Core: Push messaging features including channels, tags, named user and default actions (required)Airship/Automation: Automation and in-app messagingAirship/MessageCenter: Message centerAirship/PreferenceCenter: Preference Center moduleAirship/FeatureFlags: Feature flags moduleAirship/ObjectiveC: Objective-C bindings
target "<Your Target Name>" do
pod 'Airship'
endOr specify individual subspecs:
target "<Your Target Name>" do
pod 'Airship/Core'
pod 'Airship/MessageCenter'
pod 'Airship/Automation'
pod 'Airship/FeatureFlags'
endFor tvOS projects, specify the platform:
platform :tvos, '18.0'
target "<Your Target Name>" do
pod 'Airship'
end- Install the pods:
$ pod installImportant: After running
pod install, an Xcode workspace (.xcworkspace) file is generated. Always open the workspace file instead of the project file (.xcodeproj) when building your project.Import AirshipKit in your code. CocoaPods bundles all modules into a single umbrella import:
import AirshipKitIf you encounter issues, see the CocoaPods troubleshooting guide.
Install Carthage if you haven’t already. See the Carthage installation guide.
Verify
Enable ModulesandLink Frameworks Automaticallyare enabled in your project’s Build Settings.Follow Carthage’s adding frameworks to an application instructions to add frameworks to your application.
Specify the Airship iOS SDK in your
Cartfile:
github "urbanairship/ios-library"- Build the frameworks:
$ carthage updateAdd the frameworks to your project. Airship is modular, so select only the frameworks you need:
Available frameworks:
AirshipBasement: Required by AirshipCore (must be included)AirshipCore: Push messaging features including channels, tags, named user and default actions (required)AirshipAutomation: Automation and in-app messagingAirshipMessageCenter: Message centerAirshipNotificationServiceExtension: Service Extension framework (only for Notification Service Extension targets, not the app target)*AirshipPreferenceCenter: Preference CenterAirshipFeatureFlags: Feature flagsAirshipObjectiveC: Objective-C BindingsAirshipDebug: Debugging tools
Import the frameworks in your code. Import statements match the framework names:
import AirshipCore
import AirshipMessageCenter
import AirshipAutomationDownload and decompress the latest version of the iOS SDK.
Inside the folder you should see a collection of XCFrameworks. Airship is modular, so select only the XCFrameworks you need:
Available XCFrameworks:
AirshipBasement.xcframework: Required by AirshipCore (must be included)AirshipCore.xcframework: Push messaging features including channels, tags, named user and default actions (required)AirshipAutomation.xcframework: Automation and in-app messagingAirshipMessageCenter.xcframework: Message centerAirshipNotificationServiceExtension.xcframework: Service Extension framework (only for Notification Service Extension targets, not the app target)*AirshipPreferenceCenter.xcframework: Preference CenterAirshipFeatureFlags.xcframework: Feature flagsAirshipObjectiveC.xcframework: Objective-C BindingsAirshipDebug.xcframework: Debugging tools
Add XCFrameworks to your project:
- Open your project in Xcode.
- Click on your project in the Project Navigator.
- Select your target.
- Make sure the General tab is selected.
- Scroll down to Frameworks, Libraries, and Embedded Content.
- Drag in the desired XCFrameworks from the downloaded SDK. They are wired up automatically as dependencies of your target.
Verify Build Settings:
Enable Modulesshould be set toYes.Link Frameworks Automaticallyshould be set toYes.


- Import the frameworks in your code. Import statements match the framework names:
import AirshipCore
import AirshipMessageCenter
import AirshipAutomation