Skip to content

Commit 15da22e

Browse files
committed
ios issues
1 parent b306eff commit 15da22e

File tree

3 files changed

+20
-22
lines changed

3 files changed

+20
-22
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ futures-util = { version = "0.3", default-features = false, features = [
2323
http = "1.0"
2424
httparse = "1.8"
2525
lazy_static = "1.4"
26-
log = "0.4"
26+
log = { version = "0.4", features = ["std"] }
2727
moka = { version = "0.12", features = ["future"] }
2828
reqwest = { version = "0.11", default-features = false, features = [
2929
"rustls-tls",

apple/readme.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## Building iOS framework
2+
3+
### Install **Rust** build tools
4+
- Install Xcode Command Line Tools: `xcode-select --install`
5+
- Install Rust programming language: `curl https://sh.rustup.rs -sSf | sh`
6+
- Install iOS target support: `rustup target add aarch64-apple-ios aarch64-apple-ios-sim x86_64-apple-ios`
7+
- Install `cbindgen` tool: `cargo install cbindgen`
8+
9+
### Building iOS framework
10+
Due to an unknown reason at present, compiling Rust code from Xcode fails, so you have to manually compile it.
11+
Please run the following command in zsh (or bash):
12+
```bash
13+
cd overtls
14+
15+
cargo build --release --target aarch64-apple-ios
16+
cargo build --release --target x86_64-apple-ios
17+
lipo -create target/aarch64-apple-ios/release/libovertls.a target/x86_64-apple-ios/release/libovertls.a -output target/libovertls.a
18+
cbindgen --config cbindgen.toml -l C -o target/overtls-ios.h
19+
```

readme.md

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -109,24 +109,3 @@ Note the `tunnel_path` configuration, please make sure to change it to your own
109109
> For testing purposes, the `disable_tls` option is provided to have the ability to disable `TLS`; that is, if this option exists and is true, the software will transmit traffic in `plain text`; for security reasons, please do not use it on official occasions.
110110
111111
This example shows the configuration file of the least entry, the complete configuration file can refer to [config.json](config.json).
112-
113-
114-
## Building iOS framework
115-
116-
### Install **Rust** build tools
117-
- Install Xcode Command Line Tools: `xcode-select --install`
118-
- Install Rust programming language: `curl https://sh.rustup.rs -sSf | sh`
119-
- Install iOS target support: `rustup target add aarch64-apple-ios aarch64-apple-ios-sim x86_64-apple-ios`
120-
- Install `cbindgen` tool: `cargo install cbindgen`
121-
122-
### Building iOS framework
123-
Due to an unknown reason at present, compiling Rust code from Xcode fails, so you have to manually compile it.
124-
Please run the following command in zsh (or bash):
125-
```
126-
cd overtls
127-
128-
cargo build --release --target aarch64-apple-ios
129-
cargo build --release --target x86_64-apple-ios
130-
lipo -create target/aarch64-apple-ios/release/libovertls.a target/x86_64-apple-ios/release/libovertls.a -output target/libovertls.a
131-
cbindgen --config cbindgen.toml -l C -o target/overtls-ios.h
132-
```

0 commit comments

Comments
 (0)