安装成功后列表中也看不到钛模块 [英] Can't see titanium module in the list even after successful installation

查看:23
本文介绍了安装成功后列表中也看不到钛模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Mac 机器上我已经安装了模块,但是从 tiapp.xml 添加时,模块没有显示列表.任何人都可以帮助解决这个问题.提前致谢.

I am on a Mac Machine I have installed module but while adding from tiapp.xml the module is not showing the list. Can anyone help on this problem. Thanks in advance.

推荐答案

安装模块有多种方法.

1) 您在进入 Studio 时提到的第一种方式.帮助 > 安装移动模块.将弹出一个模块对话框,输入模块的 ZIP 文件的 URL,或单击浏览并使用查找器定位 ZIP 文件.

1) The first way you mentioned by going into Studio. Help > Install Mobile Module. A module dialog will pop up, enter the URL of the module's ZIP file, or click Browse and locate the ZIP file using finder.

2) 如果遇到问题,您可以通过解压缩模块并将其放在 Mac 的库文件夹中来手动安装它.

2) If you are having trouble you can install it manually by unzipping the module and placing it in your Mac's library folder.

在 Mac OS X 10.7 上 > 库文件夹被隐藏,以在终端运行中显示.

On Mac OS X 10.7 > the Library folder is hidden, to show it in terminal run.

chflags nohidden ~/Library/

然后将模块放入

~/Library/Application Support/Titanium/modules/

您现在可以选择几个文件夹 - Android 或 iPhone 将其放置在模块构建目的对应的文件夹中.

You'll get a choice of a few folders now - Android or iPhone place this in the corresponding folder to what the module was built for.

现在您已经添加了它,您需要配置您的应用以在您的项目中包含该模块

Now you've added it you need to configure your app to include the module in your project

如果您手动输入,请进入 tiapp.xml 并添加以下模块唯一名称和版本.

If you are entering it manually, go into the tiapp.xml and add the following with the modules unique name and version.

<modules>
  <module version="$MODULE_VERSION">$MODULE_ID</module>
</modules>

或使用 tiapp.xml 的工作室概览选项卡为您执行此操作,转到模块部分并单击绿色的添加 (+) 按钮.从列表中选择所需的模块.

or use studio's Overview tab for the tiapp.xml to do this for you, go to the modules section and click the green add ( + ) button. The select the desired module from the list.

如果模块没有出现 -

If the module doesn't show up -

  • 确保你包含了模块的构建版本,很多的存储库,这将在 Dist 文件夹中找到.

  • Make sure you are including the build version of the module, in a lot of repos this will be found in the Dist folder.

查看tiapp.xml中模块的名称和版本号文件.

Check the name and version number of the module in the tiapp.xml file.

确保模块的版本安装在本地或全球.

Make sure that the version of the module is installed either locally or globally.

您还可以从模块元素中删除版本属性以使用最新版本的模块.

You can also remove the version attribute from the module element to use the most recent version of the module.

使用模块 - 安装后,您可以通过使用 require 实例化模块来访问您的模块及其所有方法.

Using the module - Once installed you can access your module and all it's methods via instantiating the module with a require.

var Module = require('$MODULE_ID');

可以在此处的 Appcelerator 文档中查看更多信息.http://docs.appcelerator.com/titanium/3.0/#!/guide/Using_a_Module

More information can be seen here in the Appcelerator docs. http://docs.appcelerator.com/titanium/3.0/#!/guide/Using_a_Module

这篇关于安装成功后列表中也看不到钛模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆