Skip to content

Commit c18bcca

Browse files
committed
WIP: update script
1 parent b2d6a79 commit c18bcca

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

mycelmob/build-ios.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
#!/usr/bin/env bash
2-
set -euxo pipefail
3-
4-
export SDKROOT="${SDKROOT:-$(xcrun --sdk iphonesimulator --show-sdk-path)}"
5-
export BINDGEN_EXTRA_CLANG_ARGS="${BINDGEN_EXTRA_CLANG_ARGS:---sysroot=$SDKROOT}"
6-
71
NAME="mycelmob"
82
HEADERPATH="out/${NAME}FFI.h"
93
TARGETDIR="target"
@@ -12,6 +6,9 @@ RELDIR="release"
126
STATIC_LIB_NAME="lib${NAME}.a"
137
NEW_HEADER_DIR="out/include"
148

9+
export SDKROOT=$(xcrun --sdk iphonesimulator --show-sdk-path)
10+
export BINDGEN_EXTRA_CLANG_ARGS="--sysroot=${SDKROOT} -target arm64-apple-ios15.0-simulator"
11+
1512
cargo build
1613
cargo run --bin uniffi-bindgen generate --library target/debug/lib${NAME}.dylib --language swift --out-dir out
1714

0 commit comments

Comments
 (0)