-
-
Notifications
You must be signed in to change notification settings - Fork 428
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
Building using xargo to support tier 3 target aarch64-apple-ios-sim error. rust-src
component not found.
#361
Comments
I've never had to set XARGO_RUST_SRC, but also that doesn't look like the same toolchain at all: you're pointing at stable-x86_64-apple-darwin, and we use nightly-2021-06-08-x86_64-apple-darwin. Just to check, have you tried running |
…ah, there is no libsignal-client directory if you are depending on this as a CocoaPod, huh. Guess we should tweak the error message: You're also welcome to turn off the extra targets yourself, but we do want to build for those platforms. |
I did use that exact toolchain specified with export (though shown only one). Used the two specified below:
To regenerate this error simply add 'SignalClient' as a dependency in your Podfile.
As per, running
Solution
This did solve for all cases. Could generate, release build for all these architecture finally.
Thanks for your help. Kindly tweak the error message. Why the nightly rust build was used instead of stable, default? |
There's some discussion on why-nightly-not-stable in #141:
I'll leave this issue open to track the error message tweak. |
I am trying to install it through the pod.
Error is given compiling
libsignal-ffi
:But I already have that required module.
Based on the toolchain used in this repository,
https://github.com/signalapp/libsignal-client/blob/master/rust-toolchain
I used the exact same
rust-src
export XARGO_RUST_SRC=/Users/tanmoy/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/library
This time another error building
std
.Update
Based on the solution provided by this repo, commenting these three solved this with keeping compatibility only to iOS devices.
What the specific reason for those errors and how to get past them?
The text was updated successfully, but these errors were encountered: