A. Installation & Dependencies
This guide covers how to install the Entrupy iOS SDK and its dependencies into your project, along with supported iOS versions and how to import the SDK.
1. Supported iOS Versions
The Entrupy iOS SDK supports iOS 15.8 and newer.
2. Installation
The Entrupy iOS SDK can be integrated into your project using either Swift Package Manager or CocoaPods.
2.1 Swift Package Manager (SPM)
The Entrupy iOS SDK can be integrated using Swift Package Manager (SPM) directly through Xcode.
Swift Package Manager (SPM) is the recommended installation method for new iOS integrations.
Add via Xcode (Recommended)
- Open your project in Xcode.
- Navigate to File ▸ Add Packages…
- Enter the Entrupy iOS SDK repository URL:
https://github.com/entrupy/entrupy-sdk-iOS.git
- Select package
entrupy-sdk-ios. - Set the Dependency Rule to Up to Next Major Version.
- Click Add Package.
- In the Choose Package Products prompt, add the library to your app target.
2.2 CocoaPods
- Add the Entrupy SDK to your
Podfile:
platform :ios, '15.8'
use_frameworks!
target 'YourAppTarget' do
pod 'EntrupySDK', '~> X.X.X' # Replace X.X.X with the latest SDK version
end
- Run
pod installin your project directory from the terminal. - Open the generated
.xcworkspacefile in Xcode and build your project.
Always use the latest SDK version. Check the latest release here: Entrupy iOS SDK Releases.
3. Importing the SDK
After installing the SDK using either SPM or CocoaPods, import it into your Swift or Objective-C files.
Swift:
import EntrupySDK
Objective-C:
#import <EntrupySDK/EntrupySDK.h>
With the SDK installed and imported, you are ready to proceed with app registration and requesting necessary permissions.