Skip to content

Commit 27b64c3

Browse files
authored
Fix iOS simulator build (#19498)
# Objective Fixes #18893. ## Solution `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 ## Testing ```sh cargo build --target aarch64-apple-ios-sim ``` With Xcode 16.3 or 16.4.
1 parent 8537718 commit 27b64c3

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
@@ -19,12 +19,18 @@ bevy_transform = { path = "../bevy_transform", version = "0.16.0-dev" }
1919
bevy_derive = { path = "../bevy_derive", version = "0.16.0-dev" }
2020

2121
# other
22+
# TODO: Remove `coreaudio-sys` dep below when updating `cpal`.
2223
rodio = { version = "0.20", default-features = false }
2324
tracing = { version = "0.1", default-features = false, features = ["std"] }
2425

2526
[target.'cfg(target_os = "android")'.dependencies]
2627
cpal = { version = "0.15", optional = true }
2728

29+
[target.'cfg(target_vendor = "apple")'.dependencies]
30+
# NOTE: Explicitly depend on this patch version to fix:
31+
# https://github.com/bevyengine/bevy/issues/18893
32+
coreaudio-sys = { version = "0.2.17", default-features = false }
33+
2834
[target.'cfg(target_arch = "wasm32")'.dependencies]
2935
# TODO: Assuming all wasm builds are for the browser. Require `no_std` support to break assumption.
3036
rodio = { version = "0.20", default-features = false, features = [

crates/bevy_log/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ bevy_app = { path = "../bevy_app", version = "0.16.0-dev", default-features = fa
4545
] }
4646

4747
[target.'cfg(target_os = "ios")'.dependencies]
48-
tracing-oslog = "0.2"
48+
tracing-oslog = "0.3"
4949

5050
[lints]
5151
workspace = true

0 commit comments

Comments
 (0)