Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9576] iOS: Cannot override Bundle Display Name in tiapp.xml

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.2.3
Fix Version/sn/a
ComponentsiOS
Labelscb-tooling, core
ReporterArthur Evans
AssigneeUnknown
Created2012-06-15T12:02:37.000+0000
Updated2018-06-04T11:22:53.000+0000

Description

One issue not addressed from the original, cloned issue is the ability to specify a shorter name for the Home screen (Bundle Display Name). Test case: Add the following code to tiapp.xml:
    <ios>
    <plist>
        <dict>
		<key>CFBundleDisplayName</key>
		<string>Bob</string>
        </dict>
    </plist>
</ios>
Build and run app. App should show up with the display name "Bob" (and the Info.plist in build/iphone should show "Bob" rather than ${PRODUCT_NAME}).

Comments

  1. Tim Keir 2013-01-31

    Any progress on this? Having to create an /i18n/en/app.xml just to specify/set an 'appname' string seems overkill if all i want to do is change the CFBundleDisplayName.
  2. James David Low 2016-06-18

    Hi, It would be really good if this could be fixed soon. It used to work fine in prior releases, and should be a relatively easy Appcelerator to implement!
  3. Mike Neill 2016-07-11

    I do not see a resolution here, but I was able to rename the bundle display name by simply specifying the "name" attribute in the tiapp.xml file.
  4. James David Low 2016-07-11

    @Mike Neill, I think this means you can't have a different project name than the bundle name, and I've had issues in old versions of Titanium when project names have a space in them. This may not be the case any more, as I'm talking about Titanium 3.X and below.
  5. James David Low 2016-07-11

    Titanium 5.2.0 does seem to still honour having an info.plist file in the root of the project file. I noticed these values get copied into tiapp.xml on build, but it only works if you keep the info.plist file overriding the bundle name. What I've started doing is having a very simply info.plist that just does the bundle display name, and then specifying everything else in tiapp.xml
       <?xml version="1.0" encoding="UTF-8"?>
       <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
       <plist version="1.0">
       <dict>
       	<key>CFBundleDisplayName</key>
       	<string>BUNDLE_NAME</string>
       </dict>
       </plist>
       
  6. Dirlei Dionísio 2017-01-20

    Thanks for the tip, James!
  7. Marian Kucharcik 2018-06-04

    Hi James, thanks for the tip with custom info.plist, you saved my day!

JSON Source