diff --git a/build-apple-debug.sh b/build-apple-debug.sh new file mode 100755 index 0000000..32c1a97 --- /dev/null +++ b/build-apple-debug.sh @@ -0,0 +1,27 @@ +#! /bin/sh + +echo "Setting up the rust environment..." +rustup target add aarch64-apple-ios +cargo install cbindgen + +echo "Building target aarch64-apple-ios..." +cargo build --target aarch64-apple-ios + +echo "Generating includes..." +mkdir -p target/include/ +rm -rf target/include/* +cbindgen --config cbindgen.toml -l C -o target/include/tun2proxy.h +cat > target/include/module.modulemap <