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

Adding multiple platforms at once fails to install plugin(s) from a Git repo

    XMLWordPrintableJSON

Details

    Description

      I get a plugin installation failure when trying to add both ios and android as platforms at the same time. But this seems to happen only when the plugin spec value points to its Git repository.

      I have

      <plugin name="cordova-plugin-crosswalk-webview" spec="https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview.git#master" />
      

      specified in the config.xml

      $ cordova platform add ios android
      
      Adding ios project...
      Running command: /Users/zarko/.cordova/lib/npm_cache/cordova-ios/3.9.2/package/bin/create /Users/zarko/temp/configTest/platforms/ios io.cordova.hellocordova HelloCordova --cli
      iOS project created with cordova-ios@3.9.2
      Discovered plugin "cordova-plugin-crosswalk-webview" in config.xml. Installing to the project
      Fetching plugin "https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview.git" via git clone
      Repository "https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview.git" checked out to git ref "master".
      Installing "cordova-plugin-crosswalk-webview" for ios
      /Users/zarko/temp/configTest/platforms/ios/CordovaLib/CordovaLib.xcodeproj/project.pbxproj
      /Users/zarko/temp/configTest/platforms/ios/HelloCordova.xcodeproj/project.pbxproj
      /Users/zarko/temp/configTest/platforms/ios/CordovaLib/CordovaLib.xcodeproj/project.pbxproj
      /Users/zarko/temp/configTest/platforms/ios/HelloCordova.xcodeproj/project.pbxproj
      Discovered plugin "cordova-plugin-whitelist" in config.xml. Installing to the project
      Fetching plugin "cordova-plugin-whitelist@1" via npm
      Adding android project...
      Creating Cordova project for the Android platform:
      	Path: platforms/android
      	Package: io.cordova.hellocordova
      	Name: HelloCordova
      	Activity: MainActivity
      	Android target: android-23
      Android project created with cordova-android@5.1.0
      Discovered plugin "cordova-plugin-whitelist" in config.xml. Installing to the project
      Fetching plugin "cordova-plugin-whitelist@1" via npm
      Installing "cordova-plugin-crosswalk-webview" for android
      Failed to install 'cordova-plugin-crosswalk-webview':Error: Variable(s) missing: undefined
          at /Users/zarko/.nvm/versions/node/v4.3.0/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:346:23
          at _fulfilled (/Users/zarko/.nvm/versions/node/v4.3.0/lib/node_modules/cordova/node_modules/q/q.js:787:54)
          at self.promiseDispatch.done (/Users/zarko/.nvm/versions/node/v4.3.0/lib/node_modules/cordova/node_modules/q/q.js:816:30)
          at Promise.promise.promiseDispatch (/Users/zarko/.nvm/versions/node/v4.3.0/lib/node_modules/cordova/node_modules/q/q.js:749:13)
          at /Users/zarko/.nvm/versions/node/v4.3.0/lib/node_modules/cordova/node_modules/q/q.js:557:44
          at flush (/Users/zarko/.nvm/versions/node/v4.3.0/lib/node_modules/cordova/node_modules/q/q.js:108:17)
          at nextTickCallbackWith0Args (node.js:419:9)
          at process._tickCallback (node.js:348:13)
      Error: Variable(s) missing: undefined
      

      My system information:

      OS: Mac OS X El Capitan
      Node Version: v4.3.0
      Xcode version: Xcode 7.2.1 Build version 7C1002
      Cordova CLI: 6.0.0

      Attachments

        1. configTest.zip
          27 kB
          Zarko Hristovski

        Issue Links

          Activity

            People

              vladimir.kotikov Vladimir Kotikov
              zarko Zarko Hristovski
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: