Preparing to use Riiiver SDK
Download SDK and the sample app project
Download and unzip the sample app project from this URL.
RiiiverSDK_ios_x.x.x.zip or RiiiverSDK_android_x.x.x.zip contains RiiiverSDK and the sample app project
Prepare necessary libraries for Riiiver SDK
To use the Riiiver SDK, the following Framework/Library is required.
// start iOS
- Riiiver SDK – The main body for the sample app illustrating Riiiver SDK
- Realm - The data required inside the SDK is stored using Realm.
CocoaPods are used for Framework management. †Riiiver SDK itself is also downloaded by using CocoaPods. Install CocoaPods and prepare to use the actual Framework required.
Install CocoaPods
As described on the official website, type the following command in Terminal to install it on your Mac.
$ sudo gem install cocoapods
Create workspace with CocoaPods
Navigate to the root folder of the sample app project that you unzipped in Terminal. The sample app project will be unzipped and extracted into a folder named RiiiverSDKSample-iOS
.
$ cd YourWorkspace/RiiiverSDKSample-iOS
The sample app project is already configured to use the required framework with CocoaPods. Enter the following command to build the Xcode workspace.
$ pod install
Once the installation is completed with the pod command, the following files and folders will be added.
- Podfile.lock
- Pods
- sample.xcworkspace
It is now ready to build the sample app.
After preparing the environment with CocoaPods, when opening this sample app project in Xcode, open the sample.xcworkspace file instead of the sample.xcodeproj file.
Build the sample app
That’s all for the work here if you could build the app. At this stage, it is not yet possible to run the app and connect it to Riiiver. In the next chapter, you will sign up as a developer and then register your application and devices that’ll be connected to Riiiver. Once these registrations are completed, the sample app can be executed.