[ 
https://issues.apache.org/jira/browse/CB-9512?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14704527#comment-14704527
 ] 

ASF GitHub Bot commented on CB-9512:
------------------------------------

Github user daserge commented on a diff in the pull request:

    https://github.com/apache/cordova-ios/pull/154#discussion_r37507514
  
    --- Diff: bin/templates/scripts/cordova/run.bat ---
    @@ -15,11 +15,5 @@
     :: specific language governing permissions and limitations
     :: under the License
     @ECHO OFF
    -SET script_path="%~dp0run"
    -IF EXIST %script_path% (
    -        node %script_path% %*
    -) ELSE (
    -    ECHO.
    -    ECHO ERROR: Could not find 'run' script in 'cordova' folder, 
aborting...>&2
    -    EXIT /B 1
    -)
    +ECHO ERROR: Running 'ios' platform on Windows is not supported>&2
    +EXIT /B 0
    --- End diff --
    
    It allows to build&run supported platforms without interruption in case we 
have several platforms added ([Jira issue with 
example](https://issues.apache.org/jira/browse/CB-9512)).


> Cordova-ios build/run should fail on Windows with a more meaningful message
> ---------------------------------------------------------------------------
>
>                 Key: CB-9512
>                 URL: https://issues.apache.org/jira/browse/CB-9512
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>         Environment: Windows
>            Reporter: Sergey Shakhnazarov
>            Assignee: Sergey Shakhnazarov
>
> 1. cordova create test
> 2. cordova platform add ios
> 3. cordova platform add windows
> 4. On  windows machine: cordova build:
> {code}
> Running command: cmd "/s /c "d:\apps\rel_test\platforms\ios\cordova\build""
> 'd:\apps\rel_test\platforms\ios\cordova\build' is not recognized as an 
> internal or external command,
> operable program or batch file.
> ERROR building one of the platforms: Error: cmd: Command failed with exit 
> code 1
> You may not have the required environment or OS to build this project
> Error: cmd: Command failed with exit code 1
>     at ChildProcess.whenDone 
> (D:\cordova\cordova-lib\cordova-lib\src\cordova\superspawn.js:139:23)
>     at ChildProcess.emit (events.js:110:17)
>     at maybeClose (child_process.js:1008:16)
>     at Process.ChildProcess._handle.onexit (child_process.js:1080:5)
> {code}
> We should consider making this just log an error message on the lines that 
> building iOS on windows is not supported and continue building other 
> platforms that are supported.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to