Install via Git URL
Available starting from Unity 2018.3. Just add this line to the Packages/manifest.json file of your Unity Project:Install via OpenUPM
Qonversion SDK package is available on the openupm registry. You can install it via openupm-cli.Install Native Dependencies
The SDK declares its native iOS and Android dependencies inEditor/QonversionDependencies.xml and relies on the External Dependency Manager for Unity (EDM4U) to resolve them. Make sure your project contains EDM4U, otherwise the native modules are not installed and the build fails. Install it in one of two ways:
- OpenUPM —
openupm add com.google.external-dependency-manager. - Unity package — download
external-dependency-manager-<version>.unitypackagefrom the root of the EDM4U repository at the release tag (the GitHub releases carry no assets), then in the Unity Editor click Assets → Import Package → Custom Package… and import it.
If your project pulled EDM4U from Google’s former Unity package registry (
unityregistry-pa.googleapis.com), it no longer resolves — switch to OpenUPM or the .unitypackage.iOS: Swift Package Manager (default) or CocoaPods
Starting from Unity SDK 9.10.0 the iOS dependency (QonversionSandwich, which brings the Qonversion iOS SDK) is declared both as a Swift package and as a CocoaPod. EDM4U picks the Swift package when all of the following are true, and falls back to the CocoaPod otherwise:- EDM4U 1.2.189 or newer;
- Unity 2021.3 or newer;
- Swift Package Manager Integration is enabled in Assets → External Dependency Manager → iOS Resolver → Settings (it is enabled by default).
UnityFramework target of the exported Xcode project and the QonversionSandwich pod is left out of the generated Podfile; the Install Cocoapods step is not needed for Qonversion once you turn off Allow empty Podfile generation (see the notes below). The build machine needs Xcode 15 or newer and access to github.com to resolve the package; the iOS deployment target must be 13.0 or higher.
Notes for the Swift Package Manager path:
- With default EDM4U settings an empty Podfile is still generated and
pod installstill runs, so the CocoaPods tool must still be installed and the build producesUnity-iPhone.xcworkspaceas before. If Qonversion is your only pod, turn off Allow empty Podfile generation in the iOS Resolver settings — then no Podfile is generated and you open and buildUnity-iPhone.xcodeprojinstead of the workspace. - If your project adds the native iOS SDK itself — a
Qonversionpod in your own*Dependencies.xmlor Podfile, or aqonversion-ios-sdkSwift package — remove it: the sandwich package depends on the exact matching Qonversion iOS SDK version, a second copy produces duplicate symbols or a package resolution conflict. - To stay on CocoaPods, turn off Swift Package Manager Integration in the iOS Resolver settings.
Resolve the dependencies
After installing EDM4U:- For iOS on the CocoaPods path — Assets → External Dependency Manager → iOS Resolver → Install Cocoapods (once per machine). On the Swift Package Manager path nothing is required: the package is added when you build the iOS player.
- For Android — Assets → External Dependency Manager → Android Resolver → Resolve.