Installation
Prerequisites
Section titled “Prerequisites”Before integrating the Ascend iOS SDK, ensure your project meets the following requirements:
- iOS Version: Minimum iOS 13.0
- Swift Version: 5.0 or higher
- Xcode: 12.0 or higher
- Deployment Target: iOS 13.0 or later
Swift Package Manager
Section titled “Swift Package Manager”1. Add Package Dependency
Section titled “1. Add Package Dependency”In Xcode:
- Go to File > Add Packages…
- Enter the package repository URL:
https://github.com/dream-horizon-org/ascend-ios
- Select the Ascend package
- Choose the version you want to use (preferably use a specific tag like
1.0.0) - Click Add Package
Alternatively, add the dependency directly in your Package.swift:
dependencies: [ .package(url: "https://github.com/dream-horizon-org/ascend-ios", from: "1.0.0")]CocoaPods
Section titled “CocoaPods”1. Add to Podfile
Section titled “1. Add to Podfile”Add the following to your Podfile:
platform :ios, '11.0'
target 'YourApp' do use_frameworks!
pod 'Ascend', :git => 'https://github.com/dream-horizon-org/ascend-ios.git', :tag => '1.0.0'end2. Install Dependencies
Section titled “2. Install Dependencies”Run the following command in your terminal:
pod installManual Installation
Section titled “Manual Installation”-
Clone the repository:
Terminal window git clone https://github.com/dream-horizon-org/ascend-ios.git -
Drag the
Sourcesfolder into your Xcode project -
Make sure to add the following frameworks to your project:
- Foundation
- UIKit
- SystemConfiguration
- CoreLocation
Import Statements
Section titled “Import Statements”After installation, import the SDK in your Swift files:
import AscendVerify Installation
Section titled “Verify Installation”After installation, verify that you can import the SDK:
import AscendIf the import succeeds, the SDK is properly installed.