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 CocoaPods or Swift Package Manager.

2.1 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
    note

    Refer to the SDK's release page for the latest version number.

  2. Run pod install in your project directory from the terminal.

  3. Open the generated .xcworkspace file in Xcode and build your project.

2.2 Swift Package Manager (SPM)

The Entrupy iOS SDK can be integrated using Swift Package Manager (SPM) directly through Xcode.

  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
  4. Select package entrupy-sdk-ios.
  5. Set the Dependency Rule to Up to Next Major Version.
  6. Click Add Package.
  7. In the Choose Package Products prompt, add the library to your app target.

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.