Skip to content

Commit c67898c

Browse files
Fix getting ios simulator device logs
iOS Simulator device logs are printed directly to process.stdout from the ios-sim-portable. However this makes it really difficult to filter the logs and provide them to different callers (for example AppBuilder CLI, NativeScript CLI, Proton). In order to fix this, use the ios-sim-portable just to start the process of getting device logs. Filter them in the CLI itself. Also change the logic in ios-log-filter to use process pid in case it's passed. For iOS Simulator we have filtered logs based on the PID of the application. With these changes, simulator logs are passed to ios-log-filter, so that's why we need process' PID there. When application is restarted (during livesync for example), we set the PID again and the filter will use the new PID.
1 parent 33190a5 commit c67898c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"glob": "^7.0.3",
4747
"iconv-lite": "0.4.11",
4848
"inquirer": "0.9.0",
49-
"ios-sim-portable": "~1.4.0",
49+
"ios-sim-portable": "~1.5.0",
5050
"lockfile": "1.0.1",
5151
"lodash": "4.13.1",
5252
"log4js": "0.6.26",

0 commit comments

Comments
 (0)