[ 
https://issues.apache.org/jira/browse/CB-4745?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Braden Shepherdson resolved CB-4745.
------------------------------------

    Resolution: Not A Problem

Let me explain the intended flow, since I think you're confused.

- You write your app in top-level www (and maybe merges/ios, if necessary).
- You run "cordova prepare"
- Prepare copies top-level www as well as plugin assets and JS files into 
platforms/ios/www.
- You launch your app from Xcode.
- The build script copies platforms/ios/www (note that this is the complete, 
all-in www, with plugin files and top-level files and cordova.js and 
everything).
- It runs.

If you've been changing the top-level files, you need to run cordova prepare 
before rebuilding the app. We'll have a "cordova watch" command eventually to 
do that whenever files change.

If you've been changing the platforms/ios/www files, they're intended to be 
overwritten, so you shouldn't edit them.

If you're still seeing behavior inconsistent with that flow, please reopen and 
explain.

To reiterate, 
                
> cordova add ios creates xcodeproj in platforms instead of top level directory
> -----------------------------------------------------------------------------
>
>                 Key: CB-4745
>                 URL: https://issues.apache.org/jira/browse/CB-4745
>             Project: Apache Cordova
>          Issue Type: Bug
>    Affects Versions: 3.0.0
>            Reporter: Patrick Senti
>            Assignee: Braden Shepherdson
>              Labels: cordova-cli, ios, xcode
>
> What happens:
> cordova add ios creates the xcodeproj in platforms/ios. 
> cordova build ios will overwrite any changes made in platforms/ios
> What should happen:
> cordova add ios should create the xcodeproj in the top level folder
> Rationale:
> With the current setup it is dangerous to use the xcodeproj. Any changes made 
> e.g. to www/index.html will be overwritten by cordova build ios with whatever 
> is in the top-level www/index.html. 
> Workaround:
> In xcode, open the platforms/ios/...xcodeproj
> Remove the www folder (only the reference)
> Add the project/www as a reference

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to