# Launch TestFlight app log stream --predicate 'eventMessage contains "Ended transaction: com.apple.appstored.InstallTestFlightAppsTask"' --info | while read -r line; do echo "TestFlight Notification detected. Launching TestFlight..." open -a TestFlight sleep 5 open -b com.${W_ORG}.${W_NAME} break done
This is very cool. Once I upload uptimewatcher.app to TestFlight, this code will watch for the TestFlight notification, bring TestFlight to the front. Then launch #uptimewatcher!