Steps to Integrate

1. Download the Framework

Download the Spyne iOS framework from the following link:

Download Link

2. Add Framework to Your Xcode Project

  1. Extract the downloaded file.
  2. Drag SpyneAutomobile.framework into your Xcode project's Frameworks folder.
    Go to: Target → General → Frameworks, Libraries, and Embedded Content
  3. Click + and add SpyneAutomobile.framework.
  4. Set Embed & Sign.

3. Install Required CocoaPods

Add the following pods to your Podfile:

pod 'Moya'
pod 'SwiftyGif'
pod 'IQKeyboardManagerSwift'
pod 'KRProgressHUD'
pod 'SDWebImage'
pod 'SwiftMessages'
pod 'NVActivityIndicatorView'
pod 'PostHog', '~> 1.1'
pod 'RealmSwift'
pod 'FYVideoCompressor'
pod 'lottie-ios'
pod 'OpalImagePicker'
pod 'Toast-Swift'
pod 'TagListView'
pod 'ViewAnimator'
pod 'THETAClient'
pod 'Amplitude'
pod ‘CarbonKit’
pod 'ViewPager-Swift’'
pod 'DropDown'
pod AWSS3', '~> 2.36.7'
pod 'AmplifyPlugins/AWSCognitoAuthPlugin', '~> 1.31.0'

Then install:

pod install

4. Initialize the SDK

📘

Take the SDK API key from your Spyne's POC.

Call SpyneAutomobileSDK.initialize in your AppDelegate inside application(_:didFinishLaunchingWithOptions:).

SpyneAutomobileSDK.initialize(apiKey: "your_api_key")