You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Patrick Senti (JIRA)" <ji...@apache.org> on 2013/09/06 13:11:53 UTC

[jira] [Commented] (CB-4745) cordova add ios creates xcodeproj in platforms instead of top level directory

    [ https://issues.apache.org/jira/browse/CB-4745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13760129#comment-13760129 ] 

Patrick Senti commented on CB-4745:
-----------------------------------

The problem is not the overwriting of the platforms/ios/www. The problem is that the xcodeproject references the platforms/ios/www/index.html whereas it should reference the top-level www. I also found this morning that the build phase copies the platforms/ios/www directory to build, which is inconsistent with what the CLI does.  
                
> 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