Skip to main content

Installation

The iOS SDK is a Swift Package at https://github.com/Ameriband/widas-ios.git. Add it in Xcode or in your Package.swift. No credentials are needed.

The package contains a prebuilt framework (an XCFramework), with everything the SDK depends on already built in. Adding it doesn't pull in any other packages.

Requirements​

  • iOS 14 or later deployment target
  • Xcode 16.4 or later. The framework is built with Xcode 16.4, and Swift can only use a prebuilt framework with the same version of Xcode or a newer one.

Add the package (Xcode)​

  1. File → Add Package Dependencies…
  2. Paste the package URL:
    https://github.com/Ameriband/widas-ios.git
  3. Set the rule to Up to Next Minor from 0.5.1. The SDK is pre-1.0, so each 0.y bump can carry breaking changes until 1.0.0.
  4. Add the WiDAS library product to your app target.

Add the package (Package.swift)​

dependencies: [
.package(url: "https://github.com/Ameriband/widas-ios.git", from: "0.5.1"),
],
targets: [
.target(
name: "YourApp",
dependencies: [
.product(name: "WiDAS", package: "widas-ios"),
]
),
]

Import​

import WiDAS
Fetching it isn't the same as being able to use it

The package is public, so anyone can add it, but fetching it grants no access. Every certificate needs either your registered Broker or App Attest against your registered app, so an unregistered integration that calls connect() gets entitlementMissing or attestationRejected back. Work through Setup and get registered before you expect a successful connect().

Versioning​

The SDK is on 0.5.x for now and moves to 1.0.0 once the on-device flow is confirmed. Because of SPM's 0.y.z rules, from: "0.5.1" resolves >= 0.5.1 < 0.6.0, so you won't be moved onto a new minor version without choosing to. Every version is listed on the package's releases page.

Using the SDK means accepting the Wi-DAS SDK License Agreement. The open-source components built into the framework are listed in THIRD-PARTY-NOTICES.md in the package.

Next: Setup.