From 19ce191216ec14c4c94962392d2efd2b1ed06320 Mon Sep 17 00:00:00 2001 From: Sebastian Imlay Date: Mon, 21 Sep 2020 19:14:38 -0700 Subject: [PATCH] Update README, cargo fmt --- examples/README.md | 6 ++++-- examples/ios/src/lib.rs | 3 +-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/README.md b/examples/README.md index e5c39ddac9b24e..6e2d55058cdec6 100644 --- a/examples/README.md +++ b/examples/README.md @@ -142,7 +142,7 @@ Then serve `examples/wasm` dir to browser. i.e. #### pre-req $ rustup target add aarch64-apple-ios x86_64-apple-ios - $ brew install xcodegen + $ cargo install cargo-lipo #### build & run @@ -150,4 +150,6 @@ Then serve `examples/wasm` dir to browser. i.e. $ make run If you'd like to see xcode do stuff, you can run - $ make xcodegen + $ open bevy_ios_example.xcodeproj/ + +which will open xcode. You then must push the zoom zoom play button. diff --git a/examples/ios/src/lib.rs b/examples/ios/src/lib.rs index 7d0e2078a076db..f7ec690d2a6901 100644 --- a/examples/ios/src/lib.rs +++ b/examples/ios/src/lib.rs @@ -1,4 +1,3 @@ - use bevy::{ prelude::*, render::pass::ClearColor, @@ -6,7 +5,7 @@ use bevy::{ }; #[no_mangle] -extern fn main_rs() { +extern "C" fn main_rs() { App::build() .add_default_plugins() .add_resource(Scoreboard { score: 0 })