To run the example project, clone the repo, and run pod install
from the Example directory first.
- iOS 13.0+
- Xcode 11.4+
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 |
NtgeCore is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'NtgeCore', '~> 0.1.0'
Bootstrap the project and run it.
$ cd ./NtgeCore-iOS/Example
# sudo gem install cocoapods-clean
$ pod clean
$ pod install --verbose
$ open NtgeCore.xcworkspace
Change Rust code and rebuild Pod painless.
$ pwd
> ~/<path>/ntge
$ ./NtgeCore-iOS/build.sh
Generate C header manually. Resolve the issue in the header generation process here.
$ cd ./ntge-core
$ touch build.rs
$ cargo build --features cbindgen-enable
- @MainasuK mainasuk@sujitech.com
NtgeCore is available under the MIT license. See the LICENSE file for more info.