Skip to content
zioolek edited this page Dec 11, 2017 · 3 revisions

Adding the Ubudu SDK to a project

Starting to use the Ubudu SDK on iOS native app should be a 5 to 10 minutes process. Have a look at the demo app in the directory for a complete example.

Using CocoaPods

This is the prefered and simplest way to get started. Just add the following line to your Podfile

pod 'UbuduSDK'

then execute pod install.

If you are not already using CocoaPods for your project you can get started by reading the CocoaPods documentation.

Manually

If you don't want to use CocoaPods you can install the SDK manually by following the instructions bellow.

  1. Drag & drop the UbuduSDK.framework folder into the Frameworks folder of your project in XCode. Check the "Copy items into destination group's folder (if needed)" option.

  2. Add the following frameworks and libraries to your project if they are not already present:

    • CoreLocation.framework
    • CoreBluetooth.framework
    • CoreData.framework
    • SystemConfiguration.framework
    • MobileCoreServices.framework
    • UIKit.framework
    • CoreGraphics.framework
    • Foundation.framework
    • AdSupport.framework
    • UserNotifications.framework
    • libz.dylib

If you don't know how to add an Apple framework to your project follow these instructions.

Your framework folder should look like this:

Drawing
  1. In the project settings, go to "General" -> "Your Target" -> "Build Settings" -> "Other Linker Flags" and add the following flags: -ObjC -all_load
Drawing