Installation Guide
In order to use CMMobileTimelineSDK, you need to import the CMMobileSDK framework as well.
Swift Package Manager (recommended)
- Download
CMMobileSDK-v{version}-SPM.zipfrom Downloads section. - Unzip it — this produces a
CMMobileSDK-SPMfolder containingPackage.swiftand a small dependency file - In Xcode: File → Add Package Dependencies… → Add Local…, then select the unzipped
CMMobileSDK-SPMfolder - Add the CMMobileSDK & CMMobileTimelineSDK products to your app target
The .xcframework binary is fetched and checksum-verified automatically the first time Xcode resolves the package.
Note: this is a local package reference, not a versioned dependency — there's no "check for updates" in Xcode. To move to a new SDK version, download the newer zip and repeat these steps, replacing the old CMMobileSDK-SPM folder.
Cocoapods
Required Versions
| Name | Version |
|---|---|
| iOS | 12.0 |
| Xcode | 15.2 |
| CMMobileSDK | v5.2.7 |
Importing required frameworks into your project
- Install CocoaPods on your Mac if necessary (follow instructions at official site).
- Open Terminal.
- Run "cd" command to folder which contains your project.
- Run "pod init" command, it will create Podfile at containing folder.
- Open Podfile and insert next text:
platform :ios, '10.0' # your supported iOS version
target 'YourAppTarget' do
use_frameworks!
pod 'Moya', '~> 14.0'
pod 'Alamofire', '~> 5.0.5'
pod 'Mantle'
pod 'AFNetworking', '~> 4.0.1'
pod 'SDWebImage', '~> 5.18.11'
pod 'FSCalendar'
pod 'KVOController'
pod 'Toast'
pod 'MSWeakTimer', '~> 1.1.0'
pod 'WebsocketStompKit', :git => 'https://github.com/dhullerEEN/WebsocketStompKit.git'
pod 'AFNetworking+RetryPolicy', :git => 'https://github.com/dhullerEEN/AFNetworking-RetryPolicy.git'
pod 'AFOAuth2Manager', :git => 'https://github.com/rajlakshmi12/AFOAuth2Manager.git', :branch => 'feature/update_to_afnetworking_4'
end- Save and close Podfile
- Run "pod install" commands. Note: close Xcode before executing command.
- YourProjectName.xcworkspace file was generated, open your project with this file now, not YourProjectName.xcodeproj.
Updated 16 days ago
Did this page help you?
