-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
19 lines (16 loc) · 777 Bytes
/
Makefile
File metadata and controls
19 lines (16 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
SHELL := /bin/bash
.PHONY: run
run:
@osascript -e 'tell application "System Events" to set frontApp to name of first application process whose frontmost is true' \
-e 'tell application "Xcode" to activate' \
-e 'tell application "System Events" to keystroke "r" using {command down}' \
-e 'tell application frontApp to activate'
.PHONY: sim
sim:
@xcodebuild -project Kindling.xcodeproj -scheme Kindling -destination 'platform=iOS Simulator,name=iPhone 17' build
@xcrun simctl bootstatus "iPhone 17" -b
@xcrun simctl install "iPhone 17" ~/Library/Developer/Xcode/DerivedData/Kindling-*/Build/Products/Debug-iphonesimulator/Kindling.app
@xcrun simctl launch "iPhone 17" com.bebopbeluga.kindling
.PHONY: format
format:
@swift-format --in-place --recursive Kindling