Mobile: Add Appcues Mobile to your App with CocoaPods (technical)

Prerequisites

Appcues Mobile currently only works for native iOS apps.

Before you begin, you need a few things set up in your environment:

  • Xcode 10.1 or later
  • Deployment target (iOS version) 9 or above

Add Appcues Mobile to your App with CocoaPods

We recommend using CocoaPods to install Appcues Mobile. You can install CocoaPods by following the CocoaPods Installation Instructions and use it by following the instruction here.

If you'd rather not use CocoaPods, you can integrate the framework directly without using CocoaPods.

1. Add the internal CocoaPods to your pod repositories. In the terminal, write 

pod repo add appcuesmobile-cocoapods https://github.com/appcues/appcuesmobile-cocoapods.git

To double check that the internal CocoaPods have been added to your pod repositories, in the terminal write

pod repo

You should now be able to see the pod repository in the terminal

2.  Add both Appcues internal CocoaPods and the CocoaPods source to the top of your podfile. Replace 'Your Target' with the target you want to install Appcues for.

source 'https://github.com/appcues/appcuesmobile-cocoapods.git'
source 'https://github.com/CocoaPods/Specs.git'

// Replace 'Your Target' with the target you want to install Appcues on 
target 'Your Target' do
	pod 'Appcues'
end

4. Go to the directory where your pods are in your project. In the terminal, write

pod install

Next Step

Once Appcues Mobile is installed in your app you need to Initialize Appcues Mobile in your App

Still need help? Contact Us Contact Us