m3_lightmeter/screenshots/scripts/generate_ios_screenshots.sh
2024-05-21 13:02:40 +02:00

8 lines
362 B
Bash

simulators_array=("iPhone 13 Pro" "iPad Pro (12.9-inch) (6th generation)")
open -a Simulator
for i in "${simulators_array[@]}"; do # https://www.baeldung.com/linux/shell-script-iterate-over-string-list#2-understanding--and--special-indices
echo "$i"
xcrun simctl boot "$i"
sh screenshots/scripts/generate_screenshots.sh "$i"
done
killall 'Simulator'