WebEngage iOS SDK distributed via Swift Package Manager (SPM). This package provides pre-built XCFrameworks for integrating WebEngage into your iOS application.
- iOS 13.0+
- Swift 5.8+
- Xcode 14.3+
Add the package dependency in Xcode:
- Go to File → Add Package Dependencies...
- Enter the repository URL:
https://github.com/anthropics/webengage-ios-sdk - Select the libraries you need from the available products.
Or add it to your Package.swift:
dependencies: [
.package(url: "https://github.com/anthropics/webengage-ios-sdk", branch: "main")
]| Library | Description | Dependencies |
|---|---|---|
WebEngageCore |
Core SDK — required for all WebEngage features | — |
WebEngageLocation |
Location tracking support | WebEngageCore |
WebEngagePersonalization |
In-app personalization | WebEngageCore |
WebEngageNotificationInbox |
Notification inbox | WebEngageCore |
Add only the libraries you need to your target:
.target(
name: "YourApp",
dependencies: [
.product(name: "WebEngageCore", package: "webengage-ios-sdk"),
.product(name: "WebEngageLocation", package: "webengage-ios-sdk"), // optional
.product(name: "WebEngagePersonalization", package: "webengage-ios-sdk"), // optional
.product(name: "WebEngageNotificationInbox", package: "webengage-ios-sdk") // optional
]
)webengage-ios-sdk/
├── Package.swift # SPM package manifest
├── Sources/
│ ├── WELocationWrapper/ # Wrapper linking WELocation + WebEngage
│ ├── WENotificationInboxWrapper/ # Wrapper linking WENotificationInbox + WebEngage
│ └── WEPersonalizationWrapper/ # Wrapper linking WEPersonalization + WebEngage
└── README.md
Each binary framework is independently versioned in Package.swift via dedicated variables:
let webEngageVersion = "beta-01"
let weLocationVersion = "beta-01"
let weNotificationInboxVersion = "beta-01"
let wePersonalizationVersion = "beta-01"This project is licensed under the Apache License 2.0 — see the LICENSE for details.
Copyright (c) 2017 WebEngage