Skip to main content
Version: 3.0.4

Installation

Install the Moyasar iOS SDK using CocoaPods or Swift Package Manager (SPM).

Requirements​

  • iOS 13.0+
  • Xcode 16+
  • Swift 5.7+

Option 1: CocoaPods​

Step 1: Install CocoaPods (if not already installed)​

shell brew install cocoapods

Step 2: Initialize CocoaPods in your project​

pod init

Step 3: Add the Moyasar SDK to your Podfile​

use_frameworks!

pod 'MoyasarSdk', git: 'https://github.com/moyasar/moyasar-ios-pod.git'

Step 4: Install the pod​

pod install

Option 2: Swift Package Manager (SPM)​

Step 1: Add the package​

In Xcode, navigate to File > Add Packages... and enter the repository URL:

https://github.com/moyasar/moyasar-ios-sdk

Step 2: Add the dependency to your target​

Select the MoyasarSdk package and add it to your app target.


Verify Installation​

Import the SDK in your Swift file:

import MoyasarSdk

Next Steps​