我正在尝试在 Appcelerator Titanium 项目(目前只是 Android)的应用程序名称中添加一个感叹号,但它没有。它在 tiapp.xml 文件中用红色下划线并显示The value 'App!' of element 'name' is not valid
(App! 不是我的应用程序的实际名称,但你明白了)。
如果我删除感叹号,它会很高兴地工作。我什至尝试过使用 ASCII 码 ( !
) 和 Unicode 字符 ( \u0021
),但没有成功。为了完成这项工作,我需要做些什么特别的事情,或者这是您在 Appcelerator Titanium 中无法做到的事情?
这是我的 tiapp.xml 文件(为简洁起见,剪掉了大条)
<?xml version="1.0" encoding="UTF-8"?>
<ti:app xmlns:ti="http://ti.appcelerator.org">
<property name="acs-oauth-secret-production" type="string">somenumbers</property>
<property name="acs-oauth-key-production" type="string">somenumbers</property>
<property name="acs-api-key-production" type="string">somenumbers</property>
<property name="acs-oauth-secret-development" type="string">somenumbers</property>
<property name="acs-oauth-key-development" type="string">somenumbers</property>
<property name="acs-api-key-development" type="string">somenumbers</property>
<id>com.myurl.app</id>
<name>App!</name> <-- Heres my error!
<version>1.0</version>
<publisher>robquincey</publisher>
<url>http://myurl.com</url>
<description>not specified</description>
<copyright>2013 by robquincey</copyright>
<icon>appicon.png</icon>
<persistent-wifi>false</persistent-wifi>
<prerendered-icon>false</prerendered-icon>
<statusbar-style>default</statusbar-style>
<statusbar-hidden>false</statusbar-hidden>
<fullscreen>false</fullscreen>
<navbar-hidden>false</navbar-hidden>
<analytics>true</analytics>
<guid>theguid</guid>
<property name="ti.ui.defaultunit" type="string">system</property>
<iphone>
<orientations device="iphone">
<orientation>Ti.UI.PORTRAIT</orientation>
</orientations>
<orientations device="ipad">
<orientation>Ti.UI.PORTRAIT</orientation>
<orientation>Ti.UI.UPSIDE_PORTRAIT</orientation>
<orientation>Ti.UI.LANDSCAPE_LEFT</orientation>
<orientation>Ti.UI.LANDSCAPE_RIGHT</orientation>
</orientations>
</iphone>
<android xmlns:android="http://schemas.android.com/apk/res/android"/>
<mobileweb>
<precache/>
<splash>
<enabled>true</enabled>
<inline-css-images>true</inline-css-images>
</splash>
<theme>default</theme>
</mobileweb>
<modules>
<module platform="commonjs">ti.cloud</module>
</modules>
<deployment-targets>
<target device="blackberry">false</target>
<target device="android">true</target>
<target device="ipad">false</target>
<target device="iphone">false</target>
<target device="mobileweb">false</target>
<target device="tizen">false</target>
</deployment-targets>
<sdk-version>3.1.0.GA</sdk-version>
</ti:app>