Skip to content

Commit

Permalink
fix(XCRun): force temp recorded video to be overwritten on every exec…
Browse files Browse the repository at this point in the history
…ution
  • Loading branch information
fjcaetano committed Jan 14, 2020
1 parent 6a36496 commit 2a17dee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/ios-simulator-gif
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,12 @@ check_booted() {
record() {
echo -e "${RED}Recording...${CLEAR}\n\n[Press any key to stop recording]"

xcrun simctl io ${UUID} recordVideo /tmp/simulator.mov &
xcrun simctl io ${UUID} recordVideo -f /tmp/simulator.mov &
PID=$!

read -n1
kill -2 $PID
sleep 1
}

#######################
Expand Down

0 comments on commit 2a17dee

Please sign in to comment.