diff options
| -rw-r--r-- | justfile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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}} |