Carthage Integration

You can integrate using Carthage by including the following in your Cartfile:

1
github "Appboy/Appboy-iOS-SDK" "3.4.0"

Once you’ve synced the Braze SDK release artifacts (we support Carthage via a zip of release artifacts attached to our Github releases), integrate the Appboy_iOS_SDK.framework, SDWebImage.framework and FLAnimatedImage.framework into your project. Then, in your Application delegate do:

1
2
3
4
5
6
7
8
#import <Appboy_iOS_SDK/AppboyKit.h>

...

// In `application:didFinishLaunchingWithOptions:`
[Appboy startWithApiKey:@"YOUR-API-KEY"
         inApplication:application
     withLaunchOptions:launchOptions];

If you want to use SDWebImage and/or FLAnimatedImage in your project along with the Braze SDK, you can install a thin version of the Braze Carthage framework. To do so, include the following lines in your Cartfile:

1
2
3
binary "https://raw.githubusercontent.com/Appboy/appboy-ios-sdk/master/appboy_ios_sdk.json"
github "rs/SDWebImage"
github "Flipboard/FLAnimatedImage"
WAS THIS PAGE HELPFUL?