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 CocoaPods or Swift Package Manager.
2.1 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
endnoteRefer to the SDK's release page for the latest version number.
-
Run
pod install
in your project directory from the terminal. -
Open the generated
.xcworkspace
file in Xcode and build your project.
2.2 Swift Package Manager (SPM)
- In Xcode, navigate to
File > Add Packages...
. - In the search bar that appears, enter the repository URL for the Entrupy iOS SDK.
https://github.com/entrupy/entrupy-sdk-iOS
- Choose the SDK package and select the desired version or dependency rule (e.g., "Up to Next Major Version").
- Click
Add Package
. Xcode will handle the rest of the integration.
3. Importing the SDK
Once the SDK is installed, you can 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.