Mobile SDK is built using Moya framework. In order to use CMMobileSDK you should import mentioned framework as well. There are few ways to import these frameworks, however the fastest one is to use CocoaPods.
Moya and SwiftyJSON frameworks are used in the Demo app to perform additional calls with REST API like authentication, retrieving list of recordings. Feel free to use example code and extend it with other API calls.
|iOS||8.0 +||8.0 +||8.0 +||9.0 +||10.0 +||10.0 +||10.0 +|
Open Podfile and insert next text:
Apple does not accept applications submitted with FAT frameworks (those include 4 slices: i386, x86_64, armv7, arm64 and can be run on both Simulator and real device) because framework size is twice larger but it's useless - you can't install app from AppStore to Simulator.
That's why we will provide you two versions of framework: one for testing on Simulator/device (with i386 x86_64 armv7 arm64 slices) and another for release (with armv7, arm64 slices).
Demo app is using FAT framework and doesn't include shell script to copy right version of framework depending on build configuration: FAT for Debug, AdHoc and Device-only for Release - you should add such scripts by yourself (or just replace FAT framework with Device-only version manually before submitting to AppStore). You can easily distinguish them by comparing sizes - FAT framework would be roughly twice larger.