Skip to content

Commit

Permalink
Updates from PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
simlay committed Sep 22, 2020
1 parent ba57e68 commit aaa77bd
Show file tree
Hide file tree
Showing 5 changed files with 423 additions and 63 deletions.
1 change: 0 additions & 1 deletion examples/ios/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/build
/bevy_ios_example.xcodeproj/
11 changes: 3 additions & 8 deletions examples/ios/Makefile
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
.PHONY: xcodebuild run install boot-sim generate clean

run: install boot-sim
run: install
xcrun simctl launch --console $(DEVICE_ID) com.rust.bevy-ios-example

boot-sim:
xcrun simctl boot $(DEVICE_ID) || true


install: xcodebuild
install: xcodebuild boot-sim
xcrun simctl install $(DEVICE_ID) build/Build/Products/Debug-iphonesimulator/bevy_ios_example.app


DEVICE_ID=$(shell xcrun simctl list devices 'iOS' | grep -v '^--' | grep -v '==' | head -n 1 | cut -d ' ' -f 7 | sed 's/[()]//g')
xcodebuild: generate
xcodebuild:
xcodebuild -scheme bevy_ios_example -configuration Debug -derivedDataPath build -destination "id=$(DEVICE_ID)"

generate: project.yml ios-src/Info.plist ios-src/main.m ios-src/bindings.h
xcodegen

clean:
rm -r build
cargo clean
2 changes: 2 additions & 0 deletions examples/ios/bevy_ios_example.xcodeproj/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
xcuserdata
project.xcworkspace
Loading

0 comments on commit aaa77bd

Please sign in to comment.