Skip to content

Commit

Permalink
Fix ios simulator support (bevyengine#12339)
Browse files Browse the repository at this point in the history
# Objective

- bevyengine#12103 broke iOS simulator support, it doesn't even compile anymore

## Solution

- Fix the feature
  • Loading branch information
mockersf authored and spectria-limina committed Mar 9, 2024
1 parent 4391306 commit 2b874c0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Expand Up @@ -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 }
Expand Down
3 changes: 3 additions & 0 deletions crates/bevy_internal/Cargo.toml
Expand Up @@ -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" }
Expand Down
1 change: 1 addition & 0 deletions docs/cargo_features.md
Expand Up @@ -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|
Expand Down
5 changes: 0 additions & 5 deletions examples/mobile/.cargo/config.toml

This file was deleted.

3 changes: 3 additions & 0 deletions examples/mobile/Cargo.toml
Expand Up @@ -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"
Expand Down

0 comments on commit 2b874c0

Please sign in to comment.