25 lines
726 B
Bash
Executable File
25 lines
726 B
Bash
Executable File
#!/bin/zsh
|
|
|
|
set -euo pipefail
|
|
|
|
script_dir="$(cd -- "$(dirname "$0")" && pwd)"
|
|
device="${1:-8EBCDD58-34AB-457A-A878-8004A6108CA9}"
|
|
output_dir="${2:-/tmp/socialio-ui-review}"
|
|
derived_data="${3:-/tmp/socialio-ui-review-derived}"
|
|
project="/Users/philkunz/gitea/social.io-swiftapp/SocialIO/SocialIO.xcodeproj"
|
|
app_path="$derived_data/Build/Products/Debug-iphonesimulator/SocialIO.app"
|
|
|
|
xcodebuild \
|
|
-project "$project" \
|
|
-scheme SocialIO \
|
|
-configuration Debug \
|
|
-destination "id=$device" \
|
|
-derivedDataPath "$derived_data" \
|
|
build
|
|
|
|
xcrun simctl install "$device" "$app_path"
|
|
"$script_dir/capture-controlled-screenshots.sh" "$device" "$output_dir"
|
|
|
|
echo "Built app at $app_path"
|
|
echo "Saved screenshots to $output_dir"
|