Titanium模块imagefactory不起作用

时间:2015-01-06 15:34:18

标签: javascript module titanium appcelerator

经过几个小时,仍然没有工作的图像模块,我希望在这里得到帮助。

我正在尝试安装/使用imagefactory模块。 1)我使用Titanium studio安装了它(从github和appcelerator都尝试过),但是当我在终端('Titanium模块')中查找模块时,或者在我尝试包含模块时在tiapp.xml中没有显示upp模块。

插件会自行安装在目录

Titanium/
    mobilesdk
    modules
    ti.imagefactory-stable <-- here

我尝试将文件夹移动到文件夹

Titanium/moduels/android/ti.imagefactory-stable

Titanium/modules/ios/ti.imagefactory-stable

然后它识别出模块,但后来我收到了这个错误:

Titanium Command-Line Interface, CLI version 3.4.1, Titanium SDK version 3.4.1.GA
Copyright (c) 2012-2014, Appcelerator, Inc.  All Rights Reserved.
Please report bugs to http://jira.appcelerator.org/
[INFO] :   Found Titanium module id=ti.imagefactory-stable version=ios platform=iphone     deploy-type=development path=/Users/username/Library/Application     Support/Titanium/modules/iphone/ti.imagefactory-stable/ios
[ERROR] :  Module ti.imagefactory-stable version 1.2.0 is missing library file: /Users/username/Library/Application Support/Titanium/modules/iphone/ti.imagefactory-stable/ios/libti.imagefactory-stable.a

任何帮助都非常感谢,因为我现在被卡住了......我还尝试在本地安装到项目中但没有成功。

1 个答案:

答案 0 :(得分:6)

要安装钛模​​块和合金小部件,现在我们有一个包管理器gitTio

可以使用以下命令通过npm(more info on installing)安装gitTio:

npm install -g gittio

现在我们可以在gitTio database搜索各种模块/小部件,就像ti.imagefactory模块可用here一样。

最后,您可以使用gittio install命令从项目的根目录安装模块。以下示例用法:

gittio install ti.imagefactory