Practical overview
When it fits
Use it when implementing Stellar network functionality in a Swift app for iOS or macOS, rather than looking for a finished consumer wallet.
Who it is for
- Swift developers building iOS or macOS software that integrates with Stellar.
- Teams implementing Stellar transactions, Horizon data access, Soroban contract interactions or SEP-based service connections.
Documented uses
- Construct, sign and submit Stellar payment transactions.
- Set up asset trustlines in an app.
- Query Horizon data and use streaming.
- Invoke Soroban smart contract methods through RPC.
- Integrate with anchors and external services using SEP support.
Requirements & limits
The repository is public, open source and licensed under Apache-2.0. The documented package setup uses Swift Package Manager and specifies iOS 15+, macOS 12+ and Xcode 16+ with the Swift 6 toolchain.
- The library targets iOS and macOS and is written in Swift.
- The README provides examples for a payment, asset trustline and Soroban contract call.
- Horizon, RPC and SEP compatibility matrices are linked from the repository.
- The stated minimum platform and toolchain requirements may shape project compatibility.
- The SDK includes smart-account support documented for passkeys/WebAuthn, multi-signer authorization, context rules and policies.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Add the Stellar SDK to an iOS or macOS app
Declare the SDK as a Swift Package Manager dependency for an app that targets a supported Apple platform.
Before you start
- Xcode 16 or later with the Swift 6 toolchain
- iOS 15 or later, or macOS 12 or later
- An app project using Swift Package Manager
Steps
Add
.package(name: "stellarsdk", url: "git@github.com:Soneso/stellar-ios-mac-sdk.git", from: "3.12.0")to the package dependencies.Build the app in Swift 5 or Swift 6 language mode.
Expected outcome
The app's package configuration declares the Stellar SDK dependency.
Guide limitations
- This recipe covers dependency setup only; it does not document adding a particular SDK feature to the app.
- The repository provides compatibility matrices for Horizon, RPC, and SEP support; consult them when checking specific service compatibility.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 8 October 2026
- Original website title
- Soneso/stellar-ios-mac-sdk · Official homepage title · retained in its source language

