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
- Download Vessel Framework
- Unzip and drag to your Xcode project.
- Ensure the "Copy items to destination's group folder" checkbox is checked and "add to targets" is selected.
- Link the following libraries:
-
SystemConfiguration.framework
-
Security.framework
-
libsqlite3.dylib
#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;
}
Updated less than a minute ago