Starting with the 2.1.0 release, SurveyMonkey supports installation via Swift Package Manager.
- Requires Xcode 15.
- iOS support is only available.
If you've previously used CocoaPods, remove them from the project with pod deintegrate
.
Install SurveyMonkey SDK via Swift Package Manager:
Select the SurveyMonkey GitHub repository - https://github.com/SurveyMonkey/surveymonkey-ios-sdk.git
:
Select the version.
Note: Starting with the 2.1.0 release.
Choose the SurveyMonkeyiOSSDK product to be installed in your app target.
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"),
]
),