Installation

You can install Gini Capture SDK either by using Swift Package Manager or by manually dragging the required XCFrameworks to your project.

Swift Package Manager

The Swift Package Manager is a tool for managing the distribution of Swift code. Once you have your Swift package set up, add GiniCaptureSDK as a dependency and add it to the dependencies value of your Package.swift:

dependencies: [ .package(url: "https://github.com/gini/capture-sdk-ios.git", .exact("3.4.0")) ]

In case you want to use the certificate pinning in the library, add GiniCaptureSDKPinning:

dependencies: [ .package(url: "https://github.com/gini/capture-sdk-pinning-ios.git", .exact("3.7.2")) ]

XCFrameworks

If you prefer not to use a dependency management tool, integrate Gini Capture SDK into your project manually by adding the following frameworks to your project:

  • GiniBankAPILibrary.xcframework

  • GiniCaptureSDK.xcframework.

In case you want to use the certificate pinning, add the following frameworks:

  • GiniBankAPILibrary.xcframework

  • GiniBankAPILibraryPinning.xcframework

  • GiniCaptureSDK.xcframework

  • GiniCaptureSDKPinning.xcframework

  • TrustKit.xcframework

The latest version of the frameworks is available on GitHub.


Cocoapods

The Gini Capture SDK provides integration with your iOS project using CocoaPods. CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects.

To add the SDK to your project using Cocoapods follow the next steps:

  1. Open your project in Xcode.

  2. Create or edit your Podfile. If you don't have a Podfile yet, create one in your project's root directory. Check the Using CocoaPods guide.

  3. Add the Gini Capture SDK pod with the desired version:

target 'YourApp' do source 'https://github.com/gini/gini-podspecs' pod 'GiniCaptureSDK', '~> 3.0.0' # Replace with the desired version end
  1. Install the pod. Run the following command in the terminal:

  1. Open the .xcworkspace file. From now on, use the .xcworkspace file instead of the .xcodeproj file.

The latest version of the Gini podspecs is available on GitHub.

Â