即使在降低tiapp.xml中的ios版本后,仍然会抛出错误

时间:2014-02-25 16:10:24

标签: titanium titanium-mobile appcelerator appcelerator-mobile

我正在尝试在我的设备上查看我的应用程序,但我有iOS 5.1.1。所以我在tiapp.xml中设置为5.0。

当我尝试运行它时仍然会抛出错误。

错误:

The device is running `iOS 5.1.1`, however the app's the minimum iOS version is set to 6.0
In order to install this app on this device, lower the <min-ios-ver> to 5.1 in the **tiapp.xml**:

[ERROR] :  This app does not support the device "XXXXXX’s iPhone"
<ti:app xmlns:ti="http://ti.appcelerator.org">
    <ios>
        <min-ios-ver>5.0</min-ios-ver>
    </ios>
</ti:app>

我已经添加了“min-ios-version”标记仍然会抛出相同的错误。

tiapp.xml

<ti:app xmlns:ti="http://ti.appcelerator.org">

    <id>com.XXXXXXXX</id>
    <name>Taxi</name>
    <version>1.0</version>
    <publisher>XXXXXX</publisher>
    <url>http://</url>
    <description>not specified</description>
    <copyright>2014 by XXXXX</copyright>
    <icon>appicon.png</icon>
    <fullscreen>false</fullscreen>
    <navbar-hidden>false</navbar-hidden>
    <analytics>true</analytics>
    <guid>e7914e57-5b00-4ade-8254-1044c0c65b67</guid>
    <property name="ti.ui.defaultunit" type="string">dp</property>
    <ios>
        <min-ios-ver>5.0</min-ios-ver>
        <plist>
            <dict>
                <key>UISupportedInterfaceOrientations~iphone</key>
                <array>
                    <string>UIInterfaceOrientationPortrait</string>
                </array>
                <key>UISupportedInterfaceOrientations~ipad</key>
                <array>
                    <string>UIInterfaceOrientationPortrait</string>
                    <string>UIInterfaceOrientationPortraitUpsideDown</string>
                    <string>UIInterfaceOrientationLandscapeLeft</string>
                    <string>UIInterfaceOrientationLandscapeRight</string>
                </array>
                <key>UIRequiresPersistentWiFi</key>
                <false/>
                <key>UIPrerenderedIcon</key>
                <false/>
                <key>UIStatusBarHidden</key>
                <false/>
                <key>UIStatusBarStyle</key>
                <string>UIStatusBarStyleDefault</string>
            </dict>
        </plist>
    </ios>
    <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>
        <module platform="iphone">ti.map</module>
        <module platform="android">ti.map</module>
    </modules>
    <deployment-targets>
        <target device="android">true</target>
        <target device="blackberry">false</target>
        <target device="ipad">true</target>
        <target device="iphone">true</target>
        <target device="mobileweb">true</target>
        <target device="tizen">false</target>
    </deployment-targets>
    <sdk-version>3.2.1.GA</sdk-version>

    </ti:app>

1 个答案:

答案 0 :(得分:0)

尝试在创建ipa之前在xcode中设置min版本