Docs

1. SDK Installation

Sign in or Register for Apptimize. You’ll see a welcome page that asks for the name and platform of your app. After entering all your info, you’ll see these installation instructions again.

You have three options for installing the iOS SDK: zero-line installation, CocoaPods, or Segment.

Zero-line Installation

  1. After you’re signed in, you’ll be able to download the Apptimize iOS SDK. Unzip it, then drag and drop Apptimize.framework into your project. You’ll probably want to check the Copy items into destination group’s folder (if needed) option.Add the Apptimize Framework
  2. Add Security.framework and CFNetwork.framework to your list of libraries. To do this, click on your project, then the Build Phases tab, expand the Link Binary With Libraries, and click the plus symbol (+).Add Frameworks
  3. Under the Build Settings tab, you need to change Basic to All and search for Other Linker Flags. Double click on the white space to the right of Other Linker Flags and a popup will open.Other Linker FlagsClick the plus (+), and add -ObjC.Add ObjC
  4. Open your project’s Info.plist (typically found in the Supporting Files folder), navigate to the Editor menu, and choose Add Item. If Add Item is grayed out, make sure to click the main window.Add ItemMake sure to name your new entry ApptimizeAppKey.Add Apptimize Key

    Add your application key, which is a 31 character key that can be found on the installation instructions while logged in or in your app settings.

    Enter App Key

  5. Build your app to make sure that SDK was installed correctly. Verify that the SDK is loading by running your app and checking the XCode console for the message Apptimize: Version 2.x.x.

You’ve finished the Apptimize zero-line installation and are ready to configure your first A/B experiment!

Setup an Experiment

CocoaPods Installation

Refer to CocoaPod’s Getting Started Guide for detailed instructions.

  1. Once you have created your Podfile, insert this line of code:
    pod 'Apptimize'

    Screenshot of CocoaPods Installation showing terminal commands and text in Podfile.

    Once you have done so, re-run pod install from the command line.

  2. Open your project’s Info.plist (typically found in the Supporting Files folder), navigate to the Editor menu, and choose Add Item.Add ItemYour new entry should be called ApptimizeAppKey.Add Apptimize Key

    Add your application key, which is a 31 character key that can be found on the installation instructions while logged in or in your app settings.

    Enter App Key

  3. Build your app to make sure that SDK was installed correctly. Verify that the SDK is loading by running your app and checking the XCode console for the message Apptimize: Version 2.x.x.

You’ve finished the Apptimize CocoaPods installation and are ready to configure your first A/B experiment!

Setup an Experiment

Segment

You can install our iOS SDK via our Segment integration also with zero code. You might want to use this option if you’re already tracking similar data with other services as you only need to send that data to Segment once and will show up in Apptimize and other integrations with the flip of a switch.

Get started by signing up for a Segment account if you haven’t already and follow the installation instructions. Once you’ve installed Segment, flip the Apptimize switch on the Segment dashboard, enter in your Apptimize app key and you’re ready to go!

Setup an Experiment