summaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
Diffstat (limited to 'justfile')
-rw-r--r--justfile7
1 files changed, 6 insertions, 1 deletions
diff --git a/justfile b/justfile
index 7edea20..79e6d1e 100644
--- a/justfile
+++ b/justfile
@@ -27,6 +27,9 @@ build_ios configuration="Release":
build_ios_simulator configuration="Release":
just build "platform=iOS Simulator,name=iPhone 17 Pro" "{{configuration}}"
+test_ios_simulator scheme="SoraTests":
+ xcodebuild -project Sora.xcodeproj -scheme {{scheme}} -destination 'platform=iOS Simulator,name=iPhone 17 Pro' test
+
run:
just _open {{target}}
@@ -34,7 +37,9 @@ install derived_data=derived_data location=location:
cp -r {{derived_data}}/{{target}}-*/Build/Products/Release/{{target}}.app {{location}}
generate:
- mint run xcodegen@synced_folder generate
+ command -v xcodegen >/dev/null 2>&1 \
+ && xcodegen generate \
+ || mint run xcodegen@synced_folder generate
install_ios derived_data=derived_data configuration="Release":
xcrun devicectl device install app --device {{device_identifier}} {{derived_data}}/{{target}}-*/Build/Products/{{configuration}}-iphoneos/{{target}}.app