From 5248e169c3c09c7bbffdb8eae8348dc1244655c3 Mon Sep 17 00:00:00 2001 From: Gordon Fontenot Date: Mon, 18 Jul 2016 20:54:44 -0500 Subject: [PATCH] Tail logs after running Right now, we're just printing the pid for the app process after running. That's not particularly useful, and I often find myself needing to open Xcode just to use the app in the simulator. I think there's more we could do here, but for right now, it probably makes sense to at _least_ tail the logs for the simulator wherever we ran the run command. It's at least a more useful default behavior than doing nothing. --- bin/run_ios_app | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/run_ios_app b/bin/run_ios_app index 0738772..95fc248 100755 --- a/bin/run_ios_app +++ b/bin/run_ios_app @@ -9,3 +9,4 @@ xcrun instruments -w "$uuid" 2>/dev/null xcrun simctl install booted "$app_path" xcrun simctl launch booted "$app_id" +tail -f "$HOME/Library/Logs/CoreSimulator/$uuid/system.log"