Open finnnnnnnnnnnnnnnnn opened 11 months ago
Did you follow the bevy example readme to install the rust targets for your phone/emulator?
You mean this command?
rustup target add aarch64-apple-ios x86_64-apple-ios aarch64-apple-ios-sim
I have run this
Yes, that's what I meant.
Could you attach a complete log of a build please?
Heres the log: Build mobile_2024-01-02T11-35-54.txt I get the same error when using the bash script as well
error[E0463]: can't find crate for `core`
|
= note: the `x86_64-apple-ios` target may not be installed
= help: consider downloading the target with `rustup target add x86_64-apple-ios`
error[E0463]: can't find crate for `std`
|
= note: the `x86_64-apple-ios` target may not be installed
= help: consider downloading the target with `rustup target add x86_64-apple-ios`
Can you run rustup show
in the same directory and check if it lists the ios target?
Here's the result of rustup show
:
rustup home: /Users/user/.local/share/rustup
installed targets for active toolchain
--------------------------------------
aarch64-apple-ios
aarch64-apple-ios-sim
x86_64-apple-darwin
x86_64-apple-ios
active toolchain
----------------
stable-x86_64-apple-darwin (default)
rustc 1.73.0 (cc66ad468 2023-10-03)
I've just noticed that the error I'm seeing is
error[E0463]: can't find crate for `std`
|
= note: the `aarch64-apple-ios` target may not be installed
= help: consider downloading the target with `rustup target add aarch64-apple-ios`
error[E0463]: can't find crate for `core`
|
= note: the `aarch64-apple-ios` target may not be installed
= help: consider downloading the target with `rustup target add aarch64-apple-ios`
Which is different from the x86_64-apple-ios
in the first log file, so now I'm really lost, though this difference could be since the first log is from building in Xcode and this is from running the make file?
I'm using an Intel Mac not Apple Silicon if thats important.
I am honestly a bit stumped and can't check on a Mac myself at the moment. The release pipeline on GitHub for iOS is running fine on macOS, not sure what else I could test.
Maybe you could try running the rustc commands directly? https://github.com/NiklasEi/bevy_game_template/blob/d50ecbaa5c4fa92d04e3b0daef3b5e0b06ec89c4/mobile/build_rust_deps.sh#L43
@finnnnnnnnnnnnnnnnn Have you figured out what the issue was/is?
When attempting to use this template I get all these errors when building in Xcode.
No clue what I've done wrong, I'm very new to Bevy and Rust in general.