Github user riknoll commented on a diff in the pull request:
https://github.com/apache/cordova-medic/pull/73#discussion_r51514920
--- Diff: medic/medic-log.js ---
@@ -69,18 +70,72 @@ function logBlackberry() {
return;
}
-function logIOS() {
- var logScriptpath = path.join("mobilespec", "platforms", "ios",
"cordova", "console.log");
- var command = "cat " + logScriptpath;
+function logIOS(appPath) {
+ // We need to print out the system log for the simulator app. In order
to figure
+ // out the path to that file, we need to find the ID of the simulator
running
+ // mobilespec
+
+ // First, figure out the simulator that ran mobilespec. "cordova run""
just chooses
+ // the last simulator in this list that starts with the word "iPhone"
+ shelljs.pushd(appPath);
+
+ var findSimCommand = getLocalCLI() + " run --list --emulator | grep
^iPhone | tail -n1";
--- End diff --
I don't think any part of this will work on Windows. Every command is
either Unix or OSX specific.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]