You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Michael Brooks (JIRA)" <ji...@apache.org> on 2014/09/16 21:37:34 UTC
[jira] [Created] (CB-7564) Renaming project can incorrectly rename
files.
Michael Brooks created CB-7564:
----------------------------------
Summary: Renaming project can incorrectly rename files.
Key: CB-7564
URL: https://issues.apache.org/jira/browse/CB-7564
Project: Apache Cordova
Issue Type: Bug
Components: iOS
Affects Versions: 3.5.0
Reporter: Michael Brooks
Priority: Minor
Consider a project with the name "Foo" in config.xml. This project also has a plugin with the files "Data_Foo.m" and "Data_Foo.h". When the project name is changed from "Foo" to "Bar" and recompiled, it will produce a build error. This is because Xcode file references for "Data_Foo.m" and "Data_Foo.h" are updated to "Data_Bar.m" and "Data_Bar.h".
---
You can reproduce this issue with a real-world example.
{noformat}
$ git clone https://github.com/phonegap/phonegap-app-developer.git
$ cd phonegap-app-developer/
$ cordova build ios
# should be successful
#
# edit www/config.xml
# update <name>Whatever</name>
#
$ cordova build ios
# should see a ADBMobile_Whatever.h error
#
# open the Xcode project and rename:
# Plugins/ADBMobile_Whatever.h => Plugins/ADBMobile_PhoneGap.h
# Plugins/ADBMobile_Whatever.m => Plugins/ADBMobile_PhoneGap.m
#
$ cordova build ios
# should be successful
{noformat}
A real-life example can be found in
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)