Skip to content

Commit 908597f

Browse files
authored
Merge pull request #85 from RustAudio/mike-fix-ios-ci-2
Fix iOS CI
2 parents da4f2ec + 74046ab commit 908597f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

examples/ios/build_rust_deps.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ set -e
44

55
PATH=$PATH:$HOME/.cargo/bin
66

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+
715
# If you want your build to run faster, add a "--targets x86_64-apple-ios" for just using the ios simulator.
816
if [ -n ${IOS_TARGETS} ]; then
917
cargo lipo --targets ${IOS_TARGETS}

0 commit comments

Comments
 (0)