Aller au contenu principal

iOS Installation

The Azeoo SDK for iOS can be installed using Swift Package Manager (SPM) or CocoaPods.

Swift Package Manager is the recommended way to install the Azeoo SDK. The package URL is maintained in one place: see also Downloads & install sources.

Step 1: Add Package Dependency

  1. Open your Xcode project
  2. Go to FileAdd Package Dependencies...
  3. Enter the package URL: https://bitbucket.org/azeoo/azeoo_sdk_spm Or open: SPM repository
  4. Click Add Package
  5. Select the version rule (recommended: Up to Next Major Version)
  6. Click Add Package

Step 2: Add to Target

  1. In the package product selection, ensure AzeooSDK is selected
  2. Add it to your app target
  3. Click Add Package

Step 3: Import in Your Code

import AzeooSDK

CocoaPods

Step 1: Install CocoaPods

If you don't have CocoaPods installed:

sudo gem install cocoapods

Step 2: Create Podfile

Navigate to your project directory and create a Podfile:

cd /path/to/your/project
pod init

Step 3: Add Azeoo SDK

Edit your Podfile:

platform :ios, '12.0'
use_frameworks!

target 'YourAppName' do
pod 'AzeooSDK', '~> 1.0'
end

CocoaPods Repository: CocoaPods.org

Step 4: Install Pods

pod install

Step 5: Use Workspace

From now on, open the .xcworkspace file instead of .xcodeproj:

open YourAppName.xcworkspace

Step 6: Import in Your Code

import AzeooSDK

Verify Installation

Create a simple test to verify the SDK is installed correctly:

import AzeooSDK

class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()

// Test import
print("AzeooSDK version: \(AzeooSDK.version)")
}
}

If the code compiles without errors, the SDK is installed correctly.

Requirements

  • iOS: 12.0 or later
  • Xcode: 15.0 or later
  • Swift: 5.9 or later

Next Steps