Habit Analytics
  • What is the Habit Analytics Platform?
  • How to integrate devices with Habit Analytics
  • How to integrate an application with Habit Analytics
  • How to create a custom mobile app with Habit Analytics
  • Selfcare
    • What is Selfcare?
    • Projects
    • Integrations
  • SDK
    • Getting Started
    • iOS Quick Start
      • Installation
      • Xcode Project Configuration
      • Usage
        • SDK Initialization
        • Configuration
        • Tracking UX Events
        • Status Codes
Powered by GitBook
On this page

Was this helpful?

  1. SDK
  2. iOS Quick Start

Installation

CocoaPods

CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects. See their Get Started section for more details on how to use CocoaPods in your project.

If your project is using CocoaPods, ensure that you have the latest version installed by running the following in the terminal:

# install/update cocoapods
$ gem install cocoapods

# update your local specs if necessary
$ pod update

If your project doesn't have a Podfile, make sure to create it and include the following lines.

Podfile
platform :ios, '11.0'
pod 'HabitAnalytics'

Using Terminal, navigate to your project directory and run the following command:

$ pod install --repo-update

Once the installation is complete you can proceed to the project configuration.

PreviousiOS Quick StartNextXcode Project Configuration

Last updated 4 years ago

Was this helpful?