Install using CocoaPods

You can install Localytics using CocoaPods, which is a dependency manager for Objective-C projects.

Learn more at CocoaPods.org.
  1. Log into your account, or create an account if you don't already have one.
  2. In your account, create a new application and record the application key.
  3. If you haven't already, install CocoaPods by executing
    gem install cocoapods
  4. Create a plain text file named Podfile in the Xcode project directory with the following content, making sure to set the platform and version that matches your app.
    platform :ios, '6.0'
    pod 'Localytics',  '~> 3.0'
  5. Install Localytics by executing the following in the Xcode project directory.
    pod install
  6. Open the project workspace (<yourProject>.xcworkspace) instead of the project file (<yourProject>.xcodeproj) to ensure that the Localytics dependency is properly loaded.
Awesome! Now it's time to integrate, manually or automatically.