简体   繁体   English

如何安装Titanium模块

[英]How to install a Titanium module

I'm trying to use this module in a Titanium app. 我正在尝试在Titanium应用程序中使用模块。

I've downloaded this zip and I've tried to copy it in my Project Folder, at same level as Resources, tiapp.xml, README, etc. Is it correct? 我已经下载了这个zip ,我试图将它复制到我的项目文件夹中,与Resources,tiapp.xml,README等处于同一级别。它是否正确?

If I build the project now, zip file disappear but it doesn't create a modules folder and when I've tried to configure the app to use it, I try to modify tiapp.xml but the module doesn't appear. 如果我现在构建项目,zip文件消失但它不会创建模块文件夹,当我尝试配置应用程序使用它时,我尝试修改tiapp.xml但模块没有出现。

If I update tiapp manually with this format: 如果我用这种格式手动更新tiapp:

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

it doesn't recognise it. 它不承认它。

What am I doing wrong? 我究竟做错了什么?

I've tried also to add the zip to ~/Library/Application Support/Titanium but nothing changes. 我也尝试将zip添加到〜/ Library / Application Support / Titanium但没有任何变化。

Thank you very much 非常感谢你

Do the following steps. 执行以下步骤。

  1. Unzip the zip file 解压缩zip文件
  2. Copy the folder to your Appcelerator titanium's iPhone module folder. 将文件夹复制到Appcelerator titanium的iPhone模块文件夹中。 If you didn't changed the install path the normal path will be: ~/Library/Application Support/Titanium/modules/iphone 如果您没有更改安装路径,则正常路径为: ~/Library/Application Support/Titanium/modules/iphone
  3. Go to the TiApp Editor page of your project. 转到项目的TiApp Editor页面。 a. 一种。 If you are using the GUI interface add the module on the right side window. 如果您使用的是GUI界面,请在右侧窗口中添加模块。 b. If you are using the xml file, add the below lines to your tiapp.xml. 如果您使用的是xml文件,请将以下行添加到tiapp.xml。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM