Vouch logovouch
iOSInstallation

Swift Package Manager

Under Development: This SDK is currently in development. Documentation and API may change. For production use, please contact our team.

Requirements

Before installing the vouch iOS SDK, ensure your development environment meets the following requirements:

  • Xcode: 16.4 or later
  • iOS Deployment Target: iOS 14.0 or later
  • Minimal iOS version to perform a proof: iOS 16.4 or later

Installation

The vouch iOS SDK can be integrated using Swift Package Manager through either Xcode's graphical interface or by editing your Package.swift file directly.

Method 1: Xcode Interface

  1. Open your project in Xcode and navigate to your project settings.

  2. Add the package dependency:

    • Select FileAdd Packages... from the menu bar
    • In the search field, enter the repository URL:
      https://github.com/vlayer-xyz/vouch-ios-sdk
    • Xcode will automatically detect the package
  3. Configure the dependency rule:

    • Select your preferred versioning strategy. We recommend Up to Next Major Version for the most stable experience
    • Click Add Package
  4. Select your target:

    • Ensure both vouch-ios-sdk and your application target are selected
    • Click Add Package to complete the installation

Xcode menu Search for the package Add package

Method 2: Package.swift

If you're managing dependencies through a Package.swift file, add the vouch iOS SDK as follows:

Add the package dependency:

dependencies: [
    .package(
        url: "https://github.com/vlayer-xyz/vouch-ios-sdk",
        .upToNextMajor(from: "0.0.2")
    ),
    // Your other dependencies...
]

Add the product to your target:

.target(
    name: "YourTarget",
    dependencies: [
        .product(name: "vouch-ios-sdk", package: "vouch-ios-sdk"),
        // Your other dependencies...
    ]
)

Verification

After installation, verify the SDK is properly integrated by importing it in your Swift files:

import VouchSDK

If the import succeeds without errors, the SDK has been installed correctly. You can now proceed to the Usage Guide (Swift) or Usage Guide (Objective-C) to learn how to integrate verification flows into your application.