Can I change the Cordova / iOS "display name" application without changing the entire file structure / Xcode project?

So, I am working on my first Cordoba application, and I probably have a typical noob question ...

I created my application using this command:

cordova create MyFirstApp com.[my_domain].myfirstapp MyFirstApp 

I see that this creates a complex file structure under the MyFirstApp directory, an Xcode project called MyFirstApp.xcodeproj, and dozens of files starting with MyFirstApp (e.g. MyFirstApp-Info.plist, MyFirstApp-Prefix.pch, etc.).

All this is wonderful.

But, after development is complete, I understand that I would like the name of the application , as shown on the user's home screen , to be something else (for example, "Cool App!").

Is it possible to change only the "display name" without messing up the directory structure and the Xcode project?

It seems that the name node in config.xml does not do this - this value seems to control much more than just displaying the name. (For example, if I change it, cordova build iOS does not work, and Xcode starts complaining ...)

+7
ios xcode cordova
source share
3 answers

Change Bundle display name node to MyFirstApp-Info.plist .

+9
source share

From the top level of your cordova project, go to platforms/ios/[appname]/[appname]-Info.plist

inside the <dict> should be an entry like this

 <key>CFBundleDisplayName</key> <string>[The current name]</string> 

change it to

 <key>CFBundleDisplayName</key> <string>[The name you want]</string> 

DO NOT include [] ... they are for demonstration purposes only

restore project

+3
source share

You can change the CFBundleDisplayName in the *-Info.plist file by adding the following to Cordoba config.xml

 <config-file parent="CFBundleDisplayName" platform="ios" target="*-Info.plist"> <string>My App</string> </config-file> 
+1
source share

All Articles