Installation Guide

In order to use CMMobileTimelineSDK, you need to import the CMMobileSDK framework as well.

Swift Package Manager (recommended)

  1. Download CMMobileSDK-v{version}-SPM.zip from Downloads section.
  2. Unzip it — this produces a CMMobileSDK-SPM folder containing Package.swift and a small dependency file
  3. In Xcode: File → Add Package Dependencies… → Add Local…, then select the unzipped CMMobileSDK-SPM folder
  4. 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

NameVersion
iOS12.0
Xcode15.2
CMMobileSDKv5.2.7

Importing required frameworks into your project

  1. Install CocoaPods on your Mac if necessary (follow instructions at official site).
  2. Open Terminal.
  3. Run "cd" command to folder which contains your project.
  4. Run "pod init" command, it will create Podfile at containing folder.
  5. 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
  1. Save and close Podfile
  2. Run "pod install" commands. Note: close Xcode before executing command.
  3. YourProjectName.xcworkspace file was generated, open your project with this file now, not YourProjectName.xcodeproj.

Did this page help you?