Skip to content

Commit

Permalink
Merge pull request #621 from simlay/fix-ios-example
Browse files Browse the repository at this point in the history
Fix iOS example in CI
  • Loading branch information
est31 authored Jan 1, 2022
2 parents d0b9b28 + d36e39e commit 7ff54f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/ios-feedback/build_rust_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
set -e

PATH=$PATH:$HOME/.cargo/bin
if [[ -n "${DEVELOPER_SDK_DIR:-}" ]]; then
# Assume we're in Xcode, which means we're probably cross-compiling.
# In this case, we need to add an extra library search path for build scripts and proc-macros,
# which run on the host instead of the target.
# (macOS Big Sur does not have linkable libraries in /usr/lib/.)
export LIBRARY_PATH="${DEVELOPER_SDK_DIR}/MacOSX.sdk/usr/lib:${LIBRARY_PATH:-}"
fi

# If you want your build to run faster, add a "--targets x86_64-apple-ios" for just using the ios simulator.
if [ -n "${IOS_TARGETS}" ]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
"EXCLUDED_ARCHS[sdk=*]" = arm64;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
Expand Down

0 comments on commit 7ff54f1

Please sign in to comment.