A swift package of KeystoneSDK. It's based on KeystoneSDK
which is generated by keystone-sdk-rust
The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift
compiler.
To add KeystoneSDK
as a dependency to your Xcode project, select File > Add Packages and enter URL: https://github.com/KeystoneHQ/keystone-sdk-ios.git
.
-
Install Rust https://www.rust-lang.org/learn/get-started
-
Clone the rust repo.
git clone https://github.com/KeystoneHQ/keystone-sdk-rust
cd keystone-sdk-rust
- Install ios targets
rustup target add aarch64-apple-ios x86_64-apple-ios aarch64-apple-ios-sim
- Generate XCFramework
Make sure the header file keystone-sdk-rust/include/URRegistryFFI/lib_ur_registry_ffi.h
is up to date.
make generate_xcframework
- Replace the
URRegistryFFI.xcframework
inURRegistry/Library
from thetarget
build folder