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)

Reply via email to