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

Failure: cordova platform add https://github.com/apache/cordova-ios.git#tagOrBranch

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cordova-ios

      Description

      $ cordova platform add https://github.com/apache/cordova-ios.git#3.9.2 --verbose
      Executing "before_platform_add"  hook for all plugins.
      git cloning: https://github.com/apache/cordova-ios.git#3.9.2
      Running command: git clone https://github.com/apache/cordova-ios.git /Users/shazron/.cordova/lib/tmp/tmp_cordova_git_9521_1446245518542
      Command finished with error code 0: git clone,https://github.com/apache/cordova-ios.git,/Users/shazron/.cordova/lib/tmp/tmp_cordova_git_9521_1446245518542
      Running command: git checkout 3.9.2
      Command finished with error code 1: git checkout,3.9.2
      git: Command failed with exit code 1 Error output:
      error: Your local changes to the following files would be overwritten by checkout:
      	bin/templates/project/__PROJECT_NAME__/Images.xcassets/AppIcon.appiconset/icon-40.png
      	bin/templates/project/__PROJECT_NAME__/Images.xcassets/AppIcon.appiconset/icon-40@2x.png
      	bin/templates/project/__PROJECT_NAME__/Images.xcassets/AppIcon.appiconset/icon-50.png
      	bin/templates/project/__PROJECT_NAME__/Images.xcassets/AppIcon.appiconset/icon-50@2x.png
      	bin/templates/project/__PROJECT_NAME__/Images.xcassets/AppIcon.appiconset/icon-60@2x.png
      	bin/templates/project/__PROJECT_NAME__/Images.xcassets/AppIcon.appiconset/icon-60@3x.png
      	bin/templates/project/__PROJECT_NAME__/Images.xcassets/AppIcon.appiconset/icon-72.png
      	bin/templates/project/__PROJECT_NAME__/Images.xcassets/AppIcon.appiconset/icon-72@2x.png
      	bin/templates/project/__PROJECT_NAME__/Images.xcassets/AppIcon.appiconset/icon-76.png
      	bin/templates/project/__PROJECT_NAME__/Images.xcassets/AppIcon.appiconset/icon-76@2x.png
      	bin/templates/project/__PROJECT_NAME__/Images.xcassets/AppIcon.appiconset/icon-small.png
      	bin/templates/project/__PROJECT_NAME__/Images.xcassets/AppIcon.appiconset/icon-small@2x.png
      	bin/templates/project/__PROJECT_NAME__/Images.xcassets/AppIcon.appiconset/icon-small@3x.png
      	bin/templates/project/__PROJECT_NAME__/Images.xcassets/AppIcon.appiconset/icon.png
      	bin/templates/project/__PROJECT_NAME__/Images.xcassets/AppIcon.appiconset/icon@2x.png
      	bin/templates/project/__PROJECT_NAME__/Images.xcassets/LaunchImage.launchimage/Default-568h@2x~iphone.png
      	bin/templates/project/__PROJECT_NAME__/Images.xcassets/LaunchImage.launchimage/Default-667h.png
      	bin/templates/project/__PROJECT_NAME__/Images.xcassets/LaunchImage.launchimage/Default-736h.png
      	bin/templates/project/__PROJECT_NAME__/Images.xcassets/LaunchImage.launchimage/Default-Landscape-736h.png
      	bin/templates/project/__PROJECT_NAME__/Images.xcassets/LaunchImage.launchimage/Default-Landscape@2x~ipad.png
      	bin/templates/project/__PROJECT_NAME__/Images.xcassets/LaunchImage.launchimage/Default-Landscape~ipad.png
      	bin/templates/project/__PROJECT_NAME__/Images.xcassets/LaunchImage.launchimage/Default-Portrait@2x~ipad.png
      	bin/templates/project/__PROJECT_NAME__/Images.xcassets/LaunchImage.launchimage/Default-Portrait~ipad.png
      	bin/templates/project/__PROJECT_NAME__/Images.xcassets/LaunchImage.launchimage/Default@2x~iphone.png
      	bin/templates/project/__PROJECT_NAME__/Images.xcassets/LaunchImage.launchimage/Default~iphone.png
      Please, commit your changes or stash them before you can switch branches.
      Aborting
      Cloning failed. Let's try handling it as a tarball
      Error: CordovaError: Failed to fetch platform null@https://github.com/apache/cordova-ios.git#3.9.2
      Probably this is either a connection problem, or platform spec is incorrect.
      Check your connection and platform name/version/URL.
      Error: Cordova library "null" not recognized.
          at /Users/shazron/Documents/git/apache/cordova-lib/cordova-lib/src/cordova/platform.js:283:25
          at _rejected (/Users/shazron/Documents/git/apache/cordova-lib/cordova-lib/node_modules/q/q.js:797:24)
          at /Users/shazron/Documents/git/apache/cordova-lib/cordova-lib/node_modules/q/q.js:823:30
          at Promise.when (/Users/shazron/Documents/git/apache/cordova-lib/cordova-lib/node_modules/q/q.js:1035:31)
          at Promise.promise.promiseDispatch (/Users/shazron/Documents/git/apache/cordova-lib/cordova-lib/node_modules/q/q.js:741:41)
          at /Users/shazron/Documents/git/apache/cordova-lib/cordova-lib/node_modules/q/q.js:557:44
          at flush (/Users/shazron/Documents/git/apache/cordova-lib/cordova-lib/node_modules/q/q.js:108:17)
          at process._tickCallback (node.js:355:11)
      

      cordova --version

      5.3.4-dev (cordova-lib@5.3.4-dev)
      

        Attachments

          Activity

            People

            • Assignee:
              shazron Shazron Abdullah
              Reporter:
              shazron Shazron Abdullah
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: