We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents da4f2ec + 74046ab commit 908597fCopy full SHA for 908597f
examples/ios/build_rust_deps.sh
@@ -4,6 +4,14 @@ set -e
4
5
PATH=$PATH:$HOME/.cargo/bin
6
7
+if [[ -n "${DEVELOPER_SDK_DIR:-}" ]]; then
8
+ # Assume we're in Xcode, which means we're probably cross-compiling.
9
+ # In this case, we need to add an extra library search path for build scripts and proc-macros,
10
+ # which run on the host instead of the target.
11
+ # (macOS Big Sur does not have linkable libraries in /usr/lib/.)
12
+ export LIBRARY_PATH="${DEVELOPER_SDK_DIR}/MacOSX.sdk/usr/lib:${LIBRARY_PATH:-}"
13
+fi
14
+
15
# If you want your build to run faster, add a "--targets x86_64-apple-ios" for just using the ios simulator.
16
if [ -n ${IOS_TARGETS} ]; then
17
cargo lipo --targets ${IOS_TARGETS}
0 commit comments