This project is only used to publish a Swift package manager package called bdk-swift
with language bindings and corresponding bdkFFI.xcframework for the
BitcoinDevKit
framework created by the bdk-ffi project. The Swift language bindings files are created by the bdk-ffi ./bdk-ffi
sub-project which are copied into, committed and tagged in this bdk-swift
repo by the publish-spm
github actions workflow.
Any changes to the bdk-swift
Swift package must be made via the bdk-ffi repo.
To use the Swift language bindings for BitcoinDevKit
in your Xcode iOS or MacOS project:
- Add the "bdk-swift" package from the repo https://github.com/bitcoindevkit/bdk-swift and select one of the latest minor versions.
- Add the
BitcoinDevKit
framework in your Target config. - Import and use the
BitcoinDevKit
library in your Swift code. For example:import BitcoinDevKit ...