We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2d6a79 commit c18bccaCopy full SHA for c18bcca
1 file changed
mycelmob/build-ios.sh
@@ -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
7
NAME="mycelmob"
8
HEADERPATH="out/${NAME}FFI.h"
9
TARGETDIR="target"
@@ -12,6 +6,9 @@ RELDIR="release"
12
STATIC_LIB_NAME="lib${NAME}.a"
13
NEW_HEADER_DIR="out/include"
14
+export SDKROOT=$(xcrun --sdk iphonesimulator --show-sdk-path)
10
+export BINDGEN_EXTRA_CLANG_ARGS="--sysroot=${SDKROOT} -target arm64-apple-ios15.0-simulator"
11
+
15
cargo build
16
cargo run --bin uniffi-bindgen generate --library target/debug/lib${NAME}.dylib --language swift --out-dir out
17
0 commit comments