KeystoneSDK 0.6.6

KeystoneSDK 0.6.6

Fan ZhiyingLi Yan维护。



 
依赖
URRegistryFFI~> 0.2.5
URKit~> 10.1.0
 

KeystoneSDK

KeystoneSDK的Swift包。它基于通过keystone-sdk-rust生成的KeystoneSDK

安装

Swift 包管理器

Swift 包管理器是用于自动分发Swift代码的工具,并集成到swift编译器中。
要将在Xcode项目中添加KeystoneSDK作为依赖项,选择“文件”>“添加包”,并输入URL:https://github.com/KeystoneHQ/keystone-sdk-ios.git

如何更新二进制库 URRegistryFFI

  1. 安装 Rust https://rust-lang.net.cn/learn/get-started

  2. 克隆rust仓库。

git clone https://github.com/KeystoneHQ/keystone-sdk-rust
cd keystone-sdk-rust
  1. 安装ios targets
rustup target add aarch64-apple-ios x86_64-apple-ios aarch64-apple-ios-sim
  1. 生成 XCFramework

确保头文件 keystone-sdk-rust/include/URRegistryFFI/lib_ur_registry_ffi.h 已更新。

make generate_xcframework
  1. URRegistryFFI.xcframeworktarget 构建文件夹替换到 URRegistry/Library