$ git clone git@github.com:growthbeat/GrowthbeatStaterProject.git
1. Add the Growthbeat SDK to your Xcode Project
CocoaPods
Add the following line to your Podfile:
pod 'Growthbeat'
pod 'GrowthLink', :podspec => 'https://gist.githubusercontent.com/sotayamashita/27f091b8c83c83f3415a/raw/12e6f5d9b5361c75f2fc3d42cbcf4704712a02e9/GrowthLink.podspec'
Run pod install
, and you should now have the latest Growthbeat release.
Manually
There are two ways to import libraries:
- Drag the
<service>.framework
to Frameworks in Project Navigator. - Build Phases -> Link Binary With Libraries -> Add Other ... and choose
<service>.framework
.
Objective-C (AppDelegate.m#L23-L27)
// ****************************************************************************
// Uncomment and fill in with your Growthbeat application id and credentials:
// NSString *growthbeatAppID = @"Your Growthbeat application ID";
// NSString *grwothCredentialID = @"Your Growthbeat credential ID";
// ****************************************************************************
Swift (AppDelegate.swift#L27-L30)
// ****************************************************************************
// Uncomment and fill in with your Growthbeat application id and credential id:
// let growthbeatApplicationID = "Your Growthbeat application ID"
// let growthbeatCredentialID = "Your Growthbeat credential ID"
// ****************************************************************************