Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13523] iOS Apps with a number at the beginning of the name are not able to submit to the store.

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsios
ReporterCésar Cavazos
AssigneeAngel Petkov
Created2013-04-11T16:15:27.000+0000
Updated2016-04-11T03:34:22.000+0000

Description

Bug

When the name of an app starts with a number (i.e. 10tips) the app cannot be deployed at the store due to the generated CFBundleURLSchemes on the info.plist files. See attached screenshot.

Test case

Create an app with number and try to submit it to the store.

Solution

Copy and replace the CFBundleURLSchemes tags from the generated info.plist to tiapp.xml and add a letter at the begging. tiapp.xml
<?xml version="1.0" encoding="UTF-8"?>
<ti:app xmlns:ti="http://ti.appcelerator.org">
<ios>
        <plist>
            <dict>
                <key>CFBundleURLTypes</key>
                <array>
                    <dict>
                        <key>CFBundleURLName</key>
                        <string>com.appc.10tips</string>
                        <key>CFBundleURLSchemes</key>
                        <array>
                            <string>a10tips</string> <!-- Letter 'a' added -->
                        </array>
                    </dict>
                </array>
                <key>UIApplicationExitsOnSuspend</key>
                <true/>
            </dict>
        </plist>
    </ios>
</ti:app>

Attachments

FileDateSize
error.png2013-04-11T16:15:27.000+0000205123
Screen Shot 2016-04-05 at 16.59.29.png2016-04-08T11:22:56.000+000055916

Comments

  1. Fokke Zandbergen 2014-05-22

    Sames goes for an app ending on .. If in tiapp.xml I have <name>Sport Instr.</name> then the CFBundleURLSchemes becomes sportinstr_ which is not valid because Apple doesn't allow it to end with _. This needs a little more work at https://github.com/appcelerator/titanium_mobile/blob/85b3c33f81c853fd273ee1b025e1d87573997f03/iphone/cli/commands/_build.js#L1710
  2. Ingo Muschenetz 2014-05-22

    [~fokke] New bug created. See TIMOB-17020.
  3. Fokke Zandbergen 2016-04-08

    [~cng] this should be easy to fix. We simply need the specs on what Apple accepts for CFBundleURLSchemes and make sure the replace [here](https://github.com/appcelerator/titanium_mobile/blob/85b3c33f81c853fd273ee1b025e1d87573997f03/iphone/cli/commands/_build.js#L1710) complies.

JSON Source