Skip to content

Commit 7f6831a

Browse files
madsmtmmockersf
authored andcommitted
Fix iOS simulator build (#19498)
Fixes #18893. `bindgen` currently has issues with building Xcode 16.3 and above, due to Clang being more strict about target triples. It was fixed in rust-lang/rust-bindgen#3182, but as a breaking release, so affected dependencies have to be updated to either not depend on `bindgen`, or depend on a fixed version of it: - `tracing-oslog`: Absolucy/tracing-oslog#12 - `coreaudio-sys`: RustAudio/coreaudio-sys#114 ```sh cargo build --target aarch64-apple-ios-sim ``` With Xcode 16.3 or 16.4.
1 parent 833d7b6 commit 7f6831a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

crates/bevy_audio/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,17 @@ bevy_derive = { path = "../bevy_derive", version = "0.15.3" }
2323
bevy_utils = { path = "../bevy_utils", version = "0.15.3" }
2424

2525
# other
26+
# TODO: Remove `coreaudio-sys` dep below when updating `cpal`.
2627
rodio = { version = "0.19", default-features = false }
2728

2829
[target.'cfg(target_os = "android")'.dependencies]
2930
cpal = { version = "0.15", optional = true }
3031

32+
[target.'cfg(target_vendor = "apple")'.dependencies]
33+
# NOTE: Explicitly depend on this patch version to fix:
34+
# https://github.com/bevyengine/bevy/issues/18893
35+
coreaudio-sys = { version = "0.2.17", default-features = false }
36+
3137
[target.'cfg(target_arch = "wasm32")'.dependencies]
3238
rodio = { version = "0.19", default-features = false, features = [
3339
"wasm-bindgen",

crates/bevy_log/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ android_log-sys = "0.3.0"
3737
tracing-wasm = "0.2.1"
3838

3939
[target.'cfg(target_os = "ios")'.dependencies]
40-
tracing-oslog = "0.2"
40+
tracing-oslog = "0.3"
4141

4242
[lints]
4343
workspace = true

0 commit comments

Comments
 (0)