Skip to content

Commit 2a17dee

Browse files
committed
fix(XCRun): force temp recorded video to be overwritten on every execution
1 parent 6a36496 commit 2a17dee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/ios-simulator-gif

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,12 @@ check_booted() {
6868
record() {
6969
echo -e "${RED}Recording...${CLEAR}\n\n[Press any key to stop recording]"
7070

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

7474
read -n1
7575
kill -2 $PID
76+
sleep 1
7677
}
7778

7879
#######################

0 commit comments

Comments
 (0)