iOS

This page provides instructions for integrating the Vessel SDK into your iOS App.

We recommend using Cocoapods to quickly and easily add Vessel:

  • Install Cocoapods by running sudo gem install cocoapods.
  • Create a file in your Xcode project directory called Podfile.
  • Add the following line to your Podfile: pod 'ABTestingVessel'
  • Run pod install within your Xcode project directory.
  • Initialize Vessel with your App secret as follows:
#import <Vessel/Vessel.h>

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
     
  	Vessel *sharedInstance = [Vessel sharedInstance];
    [sharedInstance initializeWithAppSecret:@"AppSecret" launchOptions:launchOptions]

      /* Other launch code goes here */

      return YES;
 }

Or you can install Vessel manually

  1. Download Vessel Framework
  2. Unzip and drag to your Xcode project.
520

Drag and Drop Vessel Framework

  1. Ensure the "Copy items to destination's group folder" checkbox is checked and "add to targets" is selected.
731

Copy Framework

  1. Link the following libraries:
  • SystemConfiguration.framework
    
  • Security.framework
    
  • libsqlite3.dylib
    
1141
#import <Vessel/Vessel.h>

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
     
  	Vessel *sharedInstance = [Vessel sharedInstance];
    [sharedInstance initializeWithAppSecret:@"AppSecret" launchOptions:launchOptions]

      /* Other launch code goes here */

      return YES;
 }