-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
20 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
## Building iOS framework | ||
|
||
### Install **Rust** build tools | ||
- Install Xcode Command Line Tools: `xcode-select --install` | ||
- Install Rust programming language: `curl https://sh.rustup.rs -sSf | sh` | ||
- Install iOS target support: `rustup target add aarch64-apple-ios aarch64-apple-ios-sim x86_64-apple-ios` | ||
- Install `cbindgen` tool: `cargo install cbindgen` | ||
|
||
### Building iOS framework | ||
Due to an unknown reason at present, compiling Rust code from Xcode fails, so you have to manually compile it. | ||
Please run the following command in zsh (or bash): | ||
```bash | ||
cd overtls | ||
|
||
cargo build --release --target aarch64-apple-ios | ||
cargo build --release --target x86_64-apple-ios | ||
lipo -create target/aarch64-apple-ios/release/libovertls.a target/x86_64-apple-ios/release/libovertls.a -output target/libovertls.a | ||
cbindgen --config cbindgen.toml -l C -o target/overtls-ios.h | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters