summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-03-30 12:25:15 +0000
committerFuwn <[email protected]>2026-03-30 12:25:15 +0000
commitd6a97da8aa4c3e4e693dc43527961de22fea393d (patch)
tree13a154189c5a54fca54cdcf19c46ea76d824a950
parentFix post details share presentation on iOS (diff)
downloadsora-testing-d6a97da8aa4c3e4e693dc43527961de22fea393d.tar.xz
sora-testing-d6a97da8aa4c3e4e693dc43527961de22fea393d.zip
Fix iOS install recipe app path resolutionHEADmain
-rw-r--r--justfile6
1 files changed, 4 insertions, 2 deletions
diff --git a/justfile b/justfile
index a6efeeb..e294615 100644
--- a/justfile
+++ b/justfile
@@ -61,7 +61,8 @@ run:
just _open {{target}}
install derived_data=derived_data location=location:
- cp -r {{derived_data}}/{{target}}-*/Build/Products/Release/{{target}}.app {{location}}
+ app_path="$(find {{derived_data}} -maxdepth 6 -path '*/Build/Products/Release/{{target}}.app' -print | xargs ls -td 2>/dev/null | head -n 1)"; [ -n "${app_path}" ] || { echo "No built app found for {{target}}" >&2; exit 1; }; \
+ cp -r "${app_path}" {{location}}
generate:
command -v xcodegen >/dev/null 2>&1 \
@@ -69,7 +70,8 @@ generate:
|| DEVELOPMENT_TEAM='{{development_team}}' 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
+ app_path="$(find {{derived_data}} -maxdepth 6 -path '*/Build/Products/{{configuration}}-iphoneos/{{target}}.app' -print | xargs ls -td 2>/dev/null | head -n 1)"; [ -n "${app_path}" ] || { echo "No iOS app found for {{target}} ({{configuration}})" >&2; exit 1; }; \
+ xcrun devicectl device install app --device {{device_identifier}} "${app_path}"
run_ios flags="":
xcrun devicectl device process launch {{flags}} --device {{device_identifier}} {{identifier}}