cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblotsky <>
Subject [GitHub] cordova-medic pull request: CB-10474: Fix cordova-ios logging
Date Tue, 02 Feb 2016 02:27:25 GMT
Github user dblotsky commented on a diff in the pull request:
    --- Diff: medic/medic-log.js ---
    @@ -69,18 +70,72 @@ function logBlackberry() {
    -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
    --- End diff --
    The `grep` and `tail` calls won't work on the Windows build machines. Is it a long task
to do this in JS? If it's much more difficult, we can just add some steps to install Unix
tools on Windows for our build machine docs.

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 or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message