Skip to content

Latest commit

 

History

History
62 lines (39 loc) · 1.86 KB

SwiftPackageManager.MD

File metadata and controls

62 lines (39 loc) · 1.86 KB

Swift Package Manager for SurveyMonkey iOS SDK

Introduction

Starting with the 2.1.0 release, SurveyMonkey supports installation via Swift Package Manager.

Limitations

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

Installation

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

In Xcode

Install SurveyMonkey SDK via Swift Package Manager:

Install

Select the SurveyMonkey GitHub repository - https://github.com/SurveyMonkey/surveymonkey-ios-sdk.git:

Install

Select the version.

Note: Starting with the 2.1.0 release.

Install

Choose the SurveyMonkeyiOSSDK product to be installed in your app target.

Install

Alternatively, add SurveyMonkeyiOSSDK to a Package.swift manifest

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

dependencies: [
  .package(name: "SurveyMonkeyiOSSDK",
           url: "https://github.com/SurveyMonkey/surveymonkey-ios-sdk.git",
           from: "X.Y.Z")
],

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

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