Skip to content

Latest commit

 

History

History
87 lines (61 loc) · 2.17 KB

README.md

File metadata and controls

87 lines (61 loc) · 2.17 KB

NtgeCore

iOS Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • iOS 13.0+
  • Xcode 11.4+

Setup

Before use this pod. Install the rust-bitcode

$ brew install rustup
$ rustup-init
$ rustup target add aarch64-apple-ios x86_64-apple-ios

$ cargo install cargo-lipo
$ cargo install --force cbindgen

$ wget https://github.com/getditto/rust-bitcode/releases/download/v1.43.0/rust-ios-arm64-1.43.0.zip
$ unzip rust-ios-arm64-1.43.0.zip
$ cd rust-ios-arm64-1.43.0
$ ./install.sh
Rust version Xcode version rust-bitcode
1.42 11.4 1.40
1.43 11.5 1.43

Installation

NtgeCore is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'NtgeCore', '~> 0.1.0'

Maintains

CocoaPods

Bootstrap the project and run it.

$ cd ./NtgeCore-iOS/Example

# sudo gem install cocoapods-clean
$ pod clean
$ pod install --verbose
$ open NtgeCore.xcworkspace

Rebuild Pod

Change Rust code and rebuild Pod painless.

$ pwd
> ~/<path>/ntge

$ ./NtgeCore-iOS/build.sh

cbindgen

Generate C header manually. Resolve the issue in the header generation process here.

$ cd ./ntge-core
$ touch build.rs
$ cargo build --features cbindgen-enable

Author

License

NtgeCore is available under the MIT license. See the LICENSE file for more info.