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

Add CLI's www/, merges/ and config.xml to Xcode project file

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0
    • Fix Version/s: 3.4.0
    • Component/s: cordova-cli, cordova-ios
    • Labels:
      None
    • Environment:

      MacOS 10.8.5
      XCode 5.01

      Description

      The cordova command line "cordova prepare ios" clobbers user-created source code files/directories without warning

      Steps to reproduce:

      1. create a test app
        cordova create test com.test test
        cd test
        cordova platform add ios
      2. 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
      3. Now add a different plugin
        cordova plugin add https://github.com/apache/cordova-plugin-console.git
      4. 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!

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                agrieve Andrew Grieve
                Reporter:
                tern Tom Ernhardt
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: