Swift SDK installation
Swift uses the existing gomobile Apple XCFramework. sdk/swift/Makefile packages that binary; it does not create a new networking implementation.
Publication status: not yet published: the SwiftPM package (https://) and the URnetworkSdk pod. Its first publication comes with the next nightly that carries the stable SDK packages; until then, build the local package below. Stable releases use the app's release version (for example 2026.11.22); nightlies use the prerelease form 2026.11.22-1105365180.
Install with the native package manager
.package(url: "https:// github.com/ urnetwork/ sdk-swift", exact: "<version>")Add the URnetworkSdk product to your target (.product(name: "URnetworkSdk", package: "sdk-swift")) and import URnetworkSdk. In Xcode, use File → Add Package Dependencies and the same repository URL. CocoaPods: pod 'URnetworkSdk', '<version>'. The package also carries a Carthage binary specification, URnetworkSdk.json. All of them use the same XCFramework.
Supported platforms
iOS 16+ and macOS 13.5+ in the current mobile build: iOS arm64, simulator arm64, macOS arm64/amd64. This package does not provide Linux Swift.
GitHub and local builds
SwiftPM requires Package.swift at the repository root. The proposed sdk-swift repository is the small binary distribution. For development run make -C sdk/swift and use sdk/swift/dist/package; the referenced immutable XCFramework URL must exist before publishing that package.
Examples
- Integration: service provisioning, scoped client credentials and Device lifecycle.
- Sockets: TCP/UDP, TLS/DTLS and HTTP client adapters.
- Messages: live peer discovery and interoperable text/ACK exchange.
- Provider: a provider client of your network with the consent disclaimer, status, payout wallet display and background run, on the SDK's C ABI for Windows, macOS and Linux.
- Embed: URnetwork inside your own app, for its own traffic: your backend provisions one client per installation, puts it in its ACL group and sets its data caps; the app runs a local Device and shows its status.
Apps use URNETWORK_ and a persisted URNETWORK_; only the service backend holds URNETWORK_. See the shared contract and official networking research.
Use an SDK release containing the required APIs. The package plan records package names, build outputs and publication gates.
References
- Swift package manifests — official package-manager documentation, checked September 14, 2026.