https://github.com/hakolao/bevy_vulkano_ios
IOS app example running bevy and vulkano
https://github.com/hakolao/bevy_vulkano_ios
Last synced: 8 months ago
JSON representation
IOS app example running bevy and vulkano
- Host: GitHub
- URL: https://github.com/hakolao/bevy_vulkano_ios
- Owner: hakolao
- Created: 2022-08-09T12:36:50.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-08-09T14:55:22.000Z (about 3 years ago)
- Last Synced: 2025-01-01T23:09:46.868Z (9 months ago)
- Language: Rust
- Size: 234 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bevy Vulkano on iOS
This app is a working example running [Bevy](https://github.com/bevyengine) and [Vulkano](https://github.com/vulkano-rs/vulkano)
on iOS.The app bundle has been generated using [cargo-mobile](https://github.com/BrainiumLLC/cargo-mobile). `MoltenVK` framework from VulkanSDK has been added using xcode.
## Run iOS
1. Install [cargo-mobile](https://github.com/BrainiumLLC/cargo-mobile) and make sure you have xcode installed
2. Run `cargo mobile init`
3. Open project in xcode `open gen/apple/bevy-vulkano-ios.xcodeproj`
4. Make sure your development team is selected in _Signing & Capabilities_. You will need an apple development account.
5. For this project, link `MoltenVK.xcframework`. This is necessary for `Vulkano` to work. Your SDK install might be found somewhere like `~/VulkanSDK/1.3.216.0/MoltenVK/MoltenVK.xcframework`, You can do this in XCode -> General -> Frameworks, Libraries, and Embedded Content
6. Attach your mobile device via cord to your mac
7. Run `cargo apple run`. Keep your mobile device unlocked.## Run MacOS
After installing `cargo-mobile` and `cargo-mobile-init`, just run `cargo run`.
## Note!
- If you get an error `error: the use of xcframeworks is not supported in the legacy build system.`, modify your xcode project
build settings in _File -> Project Settings -> Build System_: Select _New Build System_.
- Also, debugging won't work unless your xcode supports the same iOS version which your device is running.
- Winit does not have the screen flip events, thus it might be better to disable them in xcode for the project in _General -> Deployment Info -> Device Orientation_Result:
