If anyone is interested...
Code: Select all
xcrun altool --notarize-app --primary-bundle-id "$BUNDLEID" --username "$USERNAME" --password "$PASSWORD" --file "$FILE"
while true; do
printf "(Attempting stapler in 30...)\n"
sleep 30
if xcrun stapler staple "$FILE" | grep -q "The staple and validate action worked!";
then
break
fi
done

