Skip to main content

Add the package

In Xcode: File → Add Package Dependencies… and enter https://github.com/clariodesk/clariodesk-swift. Or in Package.swift:

The two products

A headless host links only ClarioDesk and Swift dead-strips the UI — you never ship screens you don’t present.

Platform requirements

Host prerequisites

Keychain

The SDK stores the device id, device-key blob, and offline outbox in the Keychain. Any code-signed app has this by default — which is every real app.
An unsigned build can’t write the Keychain (errSecMissingEntitlement, OSStatus -34018). This only bites ad-hoc/CI builds without a signing identity; add a keychain-access-groups entitlement there (the package’s example app shows how).

Camera usage string

Add NSCameraUsageDescription to your Info.plist only if you use the prebuilt UI’s camera attach affordance:
The photo picker (PhotosPicker) and the document picker need no usage strings on iOS 16+.

Push

The standard APNs capability plus a one-line token forward — see the push guide. No Firebase.

Verify

Next: lifecycle integration

Wire the four host events that touch the SDK.