I have created a new Phonegap 3 project. When I run:
phonegap build ios
An XCode project is created named "HelloWorld". How can I change this project name? Should I do it manually or is there a command integrated in PhoneGap to setup everything right at the project creation? I am trying to avoid as many manual steps as possible.
If you want to change an existing project:
This will create a new project with the correct name.
The solution was:
phonegap create path/to/my-app --id "com.example.app" --name "My App"
Change the config.xml from the main www directory
<name>Here is the Name you want to change </name>
<description>
here is description of your application
</description>
<author email="[email protected]" href="http://yoursite.com">
My team
</author>
Now rebuild app with CLI
phonegap build ios
phonegap install ios
OR
phonegap run ios
Open up your project >> From top menu "Project" >> "Edit Active Target " >> Under "Packaging" you'll see "Product Name".
Edit www/config.xml
:
<widget xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
id = "your.app.id"
version = "1.0.0">
<name>Here is the Name you want to change </name>
<description>
here is description of your application
</description>
<author email="[email protected]" href="http://yoursite.com">
My team
</author>
Update and rebuild:
phonegap platform update ios
phonegap run ios
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With