SDK Documentation: Installation

  • Step 1: Get the Code

    Our SDK is available through CocoaPods. To install it, simply add the following line to your Podfile:

    pod "AppToolkit"

    AppToolkit is also available through Carthage. Add the following line to your Cartfile:

    github "apptoolkitio/apptoolkit-ios"

    You can install the AppToolkit SDK manually by downloading the latest release (.zip), and copy the files from AppToolkit/Classes into your project.

    Download the Latest Release

  • Step 2: Add to your App Delegate

    Somewhere near the top applicationDidFinishLaunching:, you should initialize the SDK with your SDK token.

    #import <AppToolkit/AppToolkit.h>
    
    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {
      // Initialize AppToolkit
      [AppToolkit launchWithToken:@"YOUR_TOKEN_HERE"];
    
      ...
    }
    import AppToolkit
    
    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
      // Initialize AppToolkit
      AppToolkit.launchWithToken("YOUR_TOKEN_HERE")
    
      ...
    }