[ 
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
      Assignee: Braden Shepherdson

This overwriting of platforms/ios/www is the intended behavior. You can make 
changes to the native code and Xcode project configuration, but the www gets 
overwritten on every "cordova prepare". (cordova build = prepare+compile)

Change the top-level www/index.html instead, or if you need iOS-specific code, 
make a copy in the top-level, under merges/ios/index.html and edit that. Things 
in the merges directory override the main www on prepare.
                
> 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