ti.storekit - 找不到有效的Titanium模块

时间:2015-05-30 23:32:24

标签: titanium titanium-mobile appcelerator appcelerator-mobile

首先,我查看了this stack post,但它没有解决我的问题。我已将ti.storekit下载到Appcelerator / Titanium模块文件夹(mac)中,然后从Appcelerator Studio 4.0 TiApp编辑器中选择/添加模块。当我选择模块时,它显示已加载并在我的Ti项目中有效。当我尝试在模拟器中运行我的iOS应用程序时,出现此错误:

[WARN] :   Could not find a valid Titanium module id=ti.storekit version=latest platform=iphone deploy-type=development
[ERROR] :  Could not find all required Titanium Modules:
[ERROR] :     id: ti.storekit    version: latest     platform: iphone    deploy-type: development
TRACE  | titanium exited with exit code 1
ERROR  | Error: ti run exited with error code 1
    at ChildProcess.<anonymous> (/Users/natej/.appcelerator/install/4.0.1/package/node_modules/appc-cli-titanium/plugins/run.js:84:66)
    at ChildProcess.emit (events.js:98:17)
    at Process.ChildProcess._handle.onexit (child_process.js:810:12)

我无法弄清楚该做些什么。在我上面提到的Stack帖子中,他们说要将3.0.0版本放在xml中,我试过,但它并不好。我无法告诉ti.storekit在github上的版本,我到处寻找并找不到它。我不知道是否指定Ti xml的版本会有所不同,或者我是否做了其他错误。

这是我的tiapp.xml,其中有几件被遮挡:

<?xml version="1.0" encoding="UTF-8"?>
<ti:app xmlns:ti="http://ti.appcelerator.org">
    <guid>de545a1xxxx-a06a0a24cd55</guid>
    <deployment-targets>
        <target device="mobileweb">false</target>
        <target device="iphone">true</target>
        <target device="ipad">true</target>
        <target device="android">false</target>
    </deployment-targets>
    <sdk-version>4.0.0.GA</sdk-version>
    <id>com.acme.myapp</id>
    <name>My Cool App</name>
    <version>1.0</version>
    <publisher>Acme</publisher>
    <url>http://www.acme.com</url>
    <description>Fun app</description>
    <copyright>2015 by Acme.com</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>
    <iphone>
        <orientations device="iphone">
            <orientation>Ti.UI.LANDSCAPE_LEFT</orientation>
            <orientation>Ti.UI.LANDSCAPE_RIGHT</orientation>
        </orientations>
        <orientations device="ipad">
            <orientation>Ti.UI.LANDSCAPE_LEFT</orientation>
            <orientation>Ti.UI.LANDSCAPE_RIGHT</orientation>
        </orientations>
    </iphone>
    <android xmlns:android="http://schemas.android.com/apk/res/android"/>
    <modules>
        <module platform="iphone">ti.storekit</module>
    </modules>
    <property name="appc-app-id" type="string">5569c9ade5d789706791f60d</property>
</ti:app>

有什么想法吗?

1 个答案:

答案 0 :(得分:1)

您是否下载了源代码或实际发行版?

分发可在以下位置找到: https://github.com/appcelerator-modules/ti.storekit/releases