We highly recommend using the automatic buddybuild SDK integration right from the buddybuild dashboard.
However, if you wish to install the buddybuild SDK manually, follow the steps on this page.
Note
|
Use CocoaPods? Include the BuddyBuildSDK pod in your Podfile and move on to Step 4 |
-
Navigate to your repository root directory.
cd myAwesomeApp
-
Remove any previous version of the buddybuild SDK.
rm -rf BuddyBuildSDK.framework*
-
Download and unpack the buddybuild SDK.
Download and unpack the
BuddyBuildSDK.framework.zip
file into your project root directory.wget https://s3-us-west-2.amazonaws.com/buddybuild-sdk-builds/master/BuddyBuildSDK.framework.zip unzip BuddyBuildSDK.framework.zip rm -f BuddyBuildSDK.framework.zip
-
-
Open your project in Xcode.
-
Highlight your project in the Project Navigator.
-
Select your target.
-
Select the Build Phases tab.
-
Open Link Binaries With Libraries expander.
-
Repeat for each of the AssetsLibrary, BuddyBuildSDK, CoreTelephony, CoreText, CoreMedia, AVFoundation, CoreVideo, QuartzCore and SystemConfiguration frameworks:
-
Click the
+
button. -
Select the required framework name.
-
Click Add.
-
-
-
Initialize the buddybuild SDK.
-
Find the class that implements the UIApplicationDelegate. The class implementation should look something like this:
Swiftclass AppDelegate: UIResponder, UIApplicationDelegate {
Objective-C@interface AppDelegate : UIResponder <UIApplicationDelegate>
-
Add this import to the top of the class implementation’s
.m
file:Swiftimport BuddyBuildSDK
Objective-C#import <BuddyBuildSDK/BuddyBuildSDK.h>
-
Initialize the BuddyBuildSDK in the class, by adding the following line to the didFinishLaunchingWithOptions method:
SwiftBuddyBuildSDK.setup()
Objective-C[BuddyBuildSDK setup];
-
-
Run your application in Xcode.
-
Verify that the SDK is installed and working.
In the Xcode output pane you should see the following log line, which indicates that the buddybuild SDK has been successfully integrated.
When running on a physical device2015-10-05 15:34:48.693 myAwesomeApp[25126:526527] BuddybuildSDK : Successfully integrated. Feedback tool, crash reporting and other features are disabled for local builds. Please build with https://dashboard.buddybuild.com to enable.
When running in a simulator2015-10-05 15:33:24.562 myAwesomeApp[25126:526527] BuddybuildSDK : Disabled in the simulator
-
Commit the change and push to your repo.
git add --all git commit -m 'Adding buddybuild SDK' git push
That’s it! Your code push will be picked up by buddybuild. Subsequent builds of your App will now have the SDK integrated!