Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-12881

Cannot specify multiple platforms at once when cordova-ios was targeted

    XMLWordPrintableJSON

Details

    Description

      Reproduction steps:
      cordova create hello
      cd hello
      (prepare build.json for ios build)
      cordova platform add ios android
      cordova run ios android

      Expected result:
      Both Android and iOS applications started successfully.

      Actual result:
      Android application was launched without an error.
      iOS application failed to start with the following error:

      Error: runOptions.argv.argv.slice is not a function

      Tested with the following versions:
      Cordova@7.0.1
      cordova-ios@4.4.0
      cordova-android@6.2.3
      Node.js v6.10.3
      macOS Sierra 10.12.4

      This issue can be avoided by running each platforms separately.
      e.g. cordova run android; cordova run ios

      Attachments

        Activity

          People

            shazron Shazron Abdullah
            yuukitada Yuuki Tada
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: