Skip to main content

ProGlove Documentation

Add INSIGHT Mobile (iOS) SDK to your project

Integrate an Existing Xcode Project or Package

Requirements: Swift 5.5 or higher and iOS 12 or higher.

Important

Here are the dependencies used, which are necessary for the SDK and INSIGHT connectivity to work properly.

  • SwiftProtobuf

  • ZipFoundation

  • OpenSSL

  • AWS iOS SDK

See the steps below to get the Connect SDK installed into your existing Xcode Project or Package.

Installing the Connect SDK into your Xcode Project
  1. Open your project in the Xcode IDE. From the drop-down menu, select File, then Add Packages

  2. In the field labeled Search or Enter Package URL, enter the following URL:

    https://github.com/workaroundgmbh/pg-connect-sdk-ios
  3. Set the dependency rule and project as needed, then click Add Package. The package will download and install to your Xcode project.

  4. In the Choose Package Products for ConnectSDK popup window, check the box and set the Xcode target, then click Add Package.

Installing the Connect SDK into your Swift Package

Add Connect SDK as a package dependency to the Package.swift file.

// swift-tools-version:5.5
import PackageDescription
let package = Package(
    name: "<Your Product Name>",
    dependencies: [
		.package(url: "https://github.com/workaroundgmbh/pg-connect-sdk-ios", .upToNextMajor(from: "1.8.0"))
    ],
)
Adding the ConnectSDK package manually

You can include the package by dragging and dropping your file.

Download the folder that contains the Package.swift file. You can either clone the repo, or simply download it. Drag the whole folder where the Package.swift file is located to the project, and add the SDK to the General tab of the project under Frameworks, Libraries and Embedded Content.