usabilla-u4a-ios-swift-sdk/SwiftPackageManager.MD

1.8 KiB

Swift Package Manager for Usabilla

Introduction

Starting with the 6.5.0 release, Usabilla supports installation via Swift Package Manager.

Limitations

  • Requires Xcode 12.
  • iOS support is only available.

Installation

If you've previously used CocoaPods, remove them from the project with pod deintegrate.

In Xcode

Install Usabilla via Swift Package Manager:

Install

Select the Usabilla GitHub repository - https://github.com/usabilla/usabilla-u4a-ios-swift-sdk.git:

Select Repository

Select the version.

Note: Starting with the 6.5.0 release.

Select Version

Choose the Usabilla product to be installed in your app.

Select Usabilla

Alternatively, add Usabilla to a Package.swift manifest

To integrate via a Package.swift manifest instead of Xcode, you can add Usabilla to your dependencies array of your package with:

dependencies: [
  .package(name: "Usabilla",
           url: "https://github.com/usabilla/usabilla-u4a-ios-swift-sdk.git",
           from: "X.Y.Z")
],

Then in any target that depends on a Usabilla product, add it to the dependencies array of that target:

.target(
    name: "YourProjectTarget",
    dependencies: [
      .product(name: "Usabilla", package: "Usabilla"),
    ]
),