[jira] [Updated] (CB-5397) "cordova prepare ios" overwrites existing source code files/directories
[ https://issues.apache.org/jira/browse/CB-5397?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Braden Shepherdson updated CB-5397: --- Working As Intended. The cordova prepare (run after platform add and plugin add/rm) step copies files into the platforms/* directories from the top level. Editing things in platforms/* by hand is not safe. There's no such thing as "user-created source files" in cordova-cli, the supported way to add custom native code to a project is by creating a plugin. I won't close this, because we should review the documentation to make sure this is clearly noted. > "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 > > 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#6144)
[jira] [Updated] (CB-5397) "cordova prepare ios" overwrites existing source code files/directories
[ https://issues.apache.org/jira/browse/CB-5397?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tom Ernhardt updated CB-5397: - Description: 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! was: 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 with any warning! > "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 > > 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#6144)