[TIMOB-13523] iOS Apps with a number at the beginning of the name are not able to submit to the store.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | ios |
Reporter | César Cavazos |
Assignee | Angel Petkov |
Created | 2013-04-11T16:15:27.000+0000 |
Updated | 2016-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
File | Date | Size |
---|---|---|
error.png | 2013-04-11T16:15:27.000+0000 | 205123 |
Screen Shot 2016-04-05 at 16.59.29.png | 2016-04-08T11:22:56.000+0000 | 55916 |
Sames goes for an app ending on
.
. If intiapp.xml
I have<name>Sport Instr.</name>
then theCFBundleURLSchemes
becomessportinstr_
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[~fokke] New bug created. See TIMOB-17020.
[~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.