无法让模块在钛合金 JS 中工作 [英] Cannot get module to work in Titanium Alloy JS

查看:33
本文介绍了无法让模块在钛合金 JS 中工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试将 ,它说要在 TiApp.xml 中引用它.所以我试过了,但还是不行.

解决方案

TiSocial.Framework-master 不是模块的名称,你也不应该将整个模块加上源代码和文档解压到你的模块/文件夹中,您只需要编译后的模块二进制文件.

改为这样做:

  1. Titanium Studio 内部转到帮助->安装移动模块"
  2. 输入此网址:https://github.com/viezel/TiSocial.Framework/blob/master/dist/dk.napp.social-iphone-1.7.3.zip?raw=true
  3. 选择你的项目,点击确定,现在应该安装了.

I've tried to add the TiSocial.Framework module into Titanium Alloy, and after reading several guides and questions, I still can't get it to work. What am I doing wrong?

Here are the steps I took:

  1. Copied the unzipped module files into modules/iphone/TiSocial.Framework-master
  2. Edited the TiApp.xml file with: <module platform="iphone">TiSocial.Framework-master</module>
  3. Cleaned the build tried to run the app.

But I get the following error(s):

Could not find Titanium module id=TiSocial.Framework-master version=latest platform=iphone deploy-type=development

Could not find all required Titanium Modules: id: TiSocial.Framework-master version: latest platform: iphone deploy-type: development

I can't spot where I'm going wrong, in my TiApp.xml Overview screen, I the module appears to be installed just fine (see picture):

My addition to TiApp.xml looks like this:

<modules>
    <module platform="iphone">TiSocial.Framework-master</module>
</modules>

I also tried doing the same as above but changing the name of the module, to dk.napp.social, because in the README on their GitHub account, it says to reference that in the TiApp.xml. So I tried that but it still didn't work.

解决方案

TiSocial.Framework-master is not the name of the module, also you are not supposed to unzip the entire module plus souurce code and documentation into your modules/ folder, you ONLY want the compiled module binary.

Instead do this:

  1. Inside Titanium Studio goto "Help->Install Mobile Module"
  2. Enter this url: https://github.com/viezel/TiSocial.Framework/blob/master/dist/dk.napp.social-iphone-1.7.3.zip?raw=true
  3. Choose your project, hit ok, and it should be installed now.

这篇关于无法让模块在钛合金 JS 中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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