[ https://issues.apache.org/jira/browse/CB-5397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13856102#comment-13856102 ]
ASF subversion and git services commented on CB-5397: ----------------------------------------------------- Commit cf3c3c28acf1e47e11657e08f59a5348f776d7e5 in branch refs/heads/master from [~agrieve] [ https://git-wip-us.apache.org/repos/asf?p=cordova-cli.git;h=cf3c3c2 ] Revert "CB-5397 Make iOS project file's www/ and config.xml point at the non-platforms versions." This reverts commit 8bde8edfa7976bfe116e22451cb375949a76035c. The change broke the copying of the correct config.xml file. > "cordova prepare ios" overwrites existing source code files/directories > ----------------------------------------------------------------------- > > Key: CB-5397 > URL: https://issues.apache.org/jira/browse/CB-5397 > Project: Apache Cordova > Issue Type: Bug > Components: CLI > Affects Versions: 3.1.0 > Environment: MacOS 10.8.5 > XCode 5.01 > Reporter: Tom Ernhardt > Assignee: Andrew Grieve > > The cordova command line "cordova prepare ios" clobbers user-created source > code files/directories without warning > Steps to reproduce: > # create a test app > cordova create test com.test test > cd test > cordova platform add ios > # add a plugin > cordova plugin add https://github.com/apache/cordova-plugin-device.git > cordova prepare ios > Then open the generated Xcode project in Xcode > Add some source code files > # Now add a different plugin > cordova plugin add https://github.com/apache/cordova-plugin-console.git > # WARNING THIS WILL DELETE YOUR APP'S SOURCE CODE FILES > cordova prepare ios > All the source code files and directories that you created in > /platforms/ios/www/ > have just been deleted by the cordova CLI without any warning! -- This message was sent by Atlassian JIRA (v6.1.5#6160)