Setup Document
How to include Situm SDK into your project
In order to include the SitumSDK framework you should follow this instructions:
Drag SitumSDK.framework file to the xcode to the most convinient place in your project. Make sure to check the ‘Copy items if needed’ option.
Link the following libraries:
- UIKit
- CoreLocation
- CoreMotion
- libc++.tbd
- libz.tbd
Disable Bitcode. Go to the Build settings tab of your app, search for the option Enable Bitcode and select NO as the value for the setting.
In order to ask for permission to use the location of the user you should include the the following key in your Info.plist file:
NSLocationWhenInUseUsageDescription or NSLocationAlwaysUsageDescription with the following value ‘Location is required to find out where you are’ or a custom message that you like.
You can now compile and check everything is working.
First steps:
In order to work with the APIs you should insert your developer API Key:
Select AppDelegate.m from the project navigator.
include the line: #import <Situm/Situm.h> before the interface section.
In your didFinishLaunchingWithOptions: method insert the call [SITServices provideAPIKey:@“APIKey” forEmail:@“email”] where you should replace the @“APIKey” string with your developer API Key you can find at https://dashboard.situm.es/accounts/profile
You are now ready to work with the Situm SDK for iOS. Great!
You can see the basics of the SDK on the Basic functionality of Situm SDK guide.
Migrate from versions before 2.4.3:
From version 2.4.3 of the Situm SDK for iOS there is no need to include external dependencies in order to work correctly. You can remove the components of your Cocoapod file and uninstall previous dependencies. They are no longer neccessary.