[ https://issues.apache.org/jira/browse/CB-9917?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14983598#comment-14983598 ]
Shazron Abdullah edited comment on CB-9917 at 10/30/15 11:38 PM: ----------------------------------------------------------------- After a clone, the .png files are automatically modified (do a 'git status'). If you do a 'git rm .gitattributes` the modified files do not show as modified immediately, so its definitely .gitattributes causing this issue. was (Author: shazron): After a clone, the .png files are automatically modified (do a 'git status'). If you do a 'git rm .gitattributes` the modified files do not show as modified, so its definitely .gitattributes causing this issue. > Failure: cordova platform add > https://github.com/apache/cordova-ios.git#tagOrBranch > ----------------------------------------------------------------------------------- > > Key: CB-9917 > URL: https://issues.apache.org/jira/browse/CB-9917 > Project: Apache Cordova > Issue Type: Bug > Components: iOS > Reporter: Shazron Abdullah > Priority: Blocker > Labels: cordova-ios-4.0.x > > {code} > $ 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...@2x.png > > bin/templates/project/__PROJECT_NAME__/Images.xcassets/AppIcon.appiconset/icon-50.png > > bin/templates/project/__PROJECT_NAME__/Images.xcassets/AppIcon.appiconset/icon...@2x.png > > bin/templates/project/__PROJECT_NAME__/Images.xcassets/AppIcon.appiconset/icon...@2x.png > > bin/templates/project/__PROJECT_NAME__/Images.xcassets/AppIcon.appiconset/icon...@3x.png > > bin/templates/project/__PROJECT_NAME__/Images.xcassets/AppIcon.appiconset/icon-72.png > > bin/templates/project/__PROJECT_NAME__/Images.xcassets/AppIcon.appiconset/icon...@2x.png > > bin/templates/project/__PROJECT_NAME__/Images.xcassets/AppIcon.appiconset/icon-76.png > > bin/templates/project/__PROJECT_NAME__/Images.xcassets/AppIcon.appiconset/icon...@2x.png > > bin/templates/project/__PROJECT_NAME__/Images.xcassets/AppIcon.appiconset/icon-small.png > > bin/templates/project/__PROJECT_NAME__/Images.xcassets/AppIcon.appiconset/icon-sm...@2x.png > > bin/templates/project/__PROJECT_NAME__/Images.xcassets/AppIcon.appiconset/icon-sm...@3x.png > > bin/templates/project/__PROJECT_NAME__/Images.xcassets/AppIcon.appiconset/icon.png > > bin/templates/project/__PROJECT_NAME__/Images.xcassets/AppIcon.appiconset/i...@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) > {code} > cordova --version > {code} > 5.3.4-dev (cordova-lib@5.3.4-dev) > {code} -- 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