Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Big Sur, XCode 12.5.1, link fails #9

Open
rjrjr opened this issue Oct 27, 2021 · 1 comment
Open

Big Sur, XCode 12.5.1, link fails #9

rjrjr opened this issue Oct 27, 2021 · 1 comment

Comments

@rjrjr
Copy link

rjrjr commented Oct 27, 2021

ld: library not found for -lSystem

Workaround is to add this block to ios_app/build-rust-xcode.sh

# From https://github.com/TimNN/cargo-lipo/issues/41#issuecomment-774793892
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
@ivnsch
Copy link
Owner

ivnsch commented Oct 27, 2021

Hi there, thanks for submitting these issues! would you like to help maintaining this repo? I'll not have time to review this anytime soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants