From 2a17dee268440d86ca8cf2ad9ee02645f1eef367 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fl=C3=A1vio=20Caetano?= Date: Tue, 14 Jan 2020 16:59:39 -0500 Subject: [PATCH] fix(XCRun): force temp recorded video to be overwritten on every execution --- bin/ios-simulator-gif | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/ios-simulator-gif b/bin/ios-simulator-gif index d9f26e5..ea33ebc 100755 --- a/bin/ios-simulator-gif +++ b/bin/ios-simulator-gif @@ -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 } #######################