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)

  1. In Xcode, navigate to File > Add Packages....
  2. In the search bar that appears, enter the repository URL for the Entrupy iOS SDK.
    https://github.com/entrupy/entrupy-sdk-iOS
  3. Choose the SDK package and select the desired version or dependency rule (e.g., "Up to Next Major Version").
  4. 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.