Skip to main content

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.

note

Swift Package Manager (SPM) is the recommended installation method for new iOS integrations.

  1. Open your project in Xcode.
  2. Navigate to File ▸ Add Packages…
  3. Enter the Entrupy iOS SDK repository URL:
 https://github.com/entrupy/entrupy-sdk-iOS.git
  1. Select package entrupy-sdk-ios.
  2. Set the Dependency Rule to Up to Next Major Version.
  3. Click Add Package.
  4. In the Choose Package Products prompt, add the library to your app target.

2.2 CocoaPods

  1. 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
  1. Run pod install in your project directory from the terminal.
  2. Open the generated .xcworkspace file in Xcode and build your project.
note

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.