-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Targets filtered out too early #36156
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
Comments
Works fine on OS X:
|
I think this was a side effect of #34980 and is directly related to #36157:
|
I believe @TimNN's diagnosis is correct in that #34980 is the cause here. I feel like we should do a larger refactor and just not return a |
@alexcrichton The point of the |
I will also note that I agree with deferring the |
@cardoe yeah I just figure that something like |
This is still a problem. I suspect that the issue lies with code somewhere in |
Still having this problem on Linux, on current nightly as well as on stable:
Is there a workaround, or is it currently not possible to build Rust libraries for iOS targets from Linux? |
I am receiving the error just above, and I am working on a Mac. I'm trying to build a Rust library for my iOS application right now. Any workarounds to this? |
Install Xcode along with the necessary SDKs for the iOS target you are trying to build for. What's failing is the following command: |
No. It is not possible to use the iOS SDK from any platform other than a Mac. This is not a limitation of Rust but a limitation of the SDK itself. |
I've downloaded the SDKs, and I'm using the latest version of Xcode. I'm able to program in Swift and build applications. However, when I run the command, this shows up: $ xcrun --show-sdk-path -sdk iphoneos Any ideas on getting around this? |
I've never done iOS dev and I've only got Xcode really because of some interest in Swift a while back. So that being said, it unfortunately works on my box.
I suspect there's probably a component manager in Xcode that allows you to pull in different components and you don't have the iOS SDK installed. |
I'm not an macOS developer at all, but if I remember correctly you have to open the Xcode GUI once, which will ask you to accept some license and download some components. You could be missing those components. |
@brianpesy you are missing Xcode installation, Xcode command line tools are not enough. Install full version of Xcode, start it to accept license (it will install additional components) then |
had the same problem, the solution was to run |
I hit this problem today trying to build some @dalek-cryptography code for iOS on a Linux machine and switching to macOS and using @tmarkovski's workaround fixed it for me. |
For those who just want to print the ios targets using #!/bin/bash
echo "/home/<your_use_name>" |
rust-lang/rust#36156 was apparently resolved years ago, so the hack is no longer needed
* Remove xcrun hack rust-lang/rust#36156 was apparently resolved years ago, so the hack is no longer needed * Fixup update script 1.76.0 introduced a few new target keys, but they are experimental and thus not worth supporting until/if they are stabilized. Also aarch64-apple-watchos was added but does not print in stable due to an LLVM call failing, but does work on nightly, so we use nightly for that ONE target * Update builtins to 1.76.0 * Fix tests * Fix lints
Targets like
aarch64-apple-ios
don't appear under--print target-list
with today's nightly (and latest beta):but they appear there if I use the latest stable:
It's not like they just don't appear under the list of built-in targets. Using
--target aarch64-apple-ios
also says that the target doesn't existThe weird thing is that you can
rustup target add aarch64-apple-ios
but then you can't use the target:Meta
cc @alexcrichton
The text was updated successfully, but these errors were encountered: