diff --git a/Cargo.toml b/Cargo.toml index 34665bf9e709e..dd279d943b428 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -318,6 +318,9 @@ embedded_watcher = ["bevy_internal/embedded_watcher"] # Enable stepping-based debugging of Bevy systems bevy_debug_stepping = ["bevy_internal/bevy_debug_stepping"] +# Enable support for the ios_simulator by downgrading some rendering capabilities +ios_simulator = ["bevy_internal/ios_simulator"] + [dependencies] bevy_dylib = { path = "crates/bevy_dylib", version = "0.14.0-dev", default-features = false, optional = true } bevy_internal = { path = "crates/bevy_internal", version = "0.14.0-dev", default-features = false } diff --git a/crates/bevy_internal/Cargo.toml b/crates/bevy_internal/Cargo.toml index 9396eca5d4e20..da98324894453 100644 --- a/crates/bevy_internal/Cargo.toml +++ b/crates/bevy_internal/Cargo.toml @@ -163,6 +163,9 @@ bevy_debug_stepping = [ "bevy_app/bevy_debug_stepping", ] +# Enable support for the ios_simulator by downgrading some rendering capabilities +ios_simulator = ["bevy_pbr?/ios_simulator", "bevy_render?/ios_simulator"] + [dependencies] # bevy bevy_a11y = { path = "../bevy_a11y", version = "0.14.0-dev" } diff --git a/docs/cargo_features.md b/docs/cargo_features.md index fa3f20d0ad191..e82d98adf8a77 100644 --- a/docs/cargo_features.md +++ b/docs/cargo_features.md @@ -61,6 +61,7 @@ The default feature set enables most of the expected features of a game engine, |file_watcher|Enables watching the filesystem for Bevy Asset hot-reloading| |flac|FLAC audio format support| |glam_assert|Enable assertions to check the validity of parameters passed to glam| +|ios_simulator|Enable support for the ios_simulator by downgrading some rendering capabilities| |jpeg|JPEG image format support| |minimp3|MP3 audio format support (through minimp3)| |mp3|MP3 audio format support| diff --git a/examples/mobile/.cargo/config.toml b/examples/mobile/.cargo/config.toml deleted file mode 100644 index 27767cc6e1561..0000000000000 --- a/examples/mobile/.cargo/config.toml +++ /dev/null @@ -1,5 +0,0 @@ -# Flag to notify the compiler we're building for the iOS simulator from an Apple silicon mac -# This needs some workarounds for now -# See https://github.com/bevyengine/bevy/pull/10178 - remove if it's not needed anymore. -[target.aarch64-apple-ios-sim] -features = ["bevy_render/ios_simulator"] diff --git a/examples/mobile/Cargo.toml b/examples/mobile/Cargo.toml index 194970d0728c9..e1e768a2fcc75 100644 --- a/examples/mobile/Cargo.toml +++ b/examples/mobile/Cargo.toml @@ -13,6 +13,9 @@ crate-type = ["staticlib", "cdylib"] [dependencies] bevy = { path = "../../" } +[target.aarch64-apple-ios-sim.dependencies] +bevy = { path = "../../", features = ["ios_simulator"] } + [package.metadata.android] package = "org.bevyengine.example" apk_name = "bevyexample"