我创建了一个新项目并激活了超级高铁。tiapp.xml 中的信息是正确的(如文档中所示)。当我创建 Android 应用程序时,我收到此错误:
Package hyperloop does not exist
创建 iOS 应用程序时出现此错误:
** BUILD FAILED **
[ERROR] : The following build commands failed:
[ERROR] : Ld build/Products/Debug-iphonesimulator/Test.app/Test normal x86_64
[ERROR] : (1 failure)
好像找不到模块“Hyperloop”?我找不到错误。我正在使用钛 SDK 6.1.1GA。
Operating System
Name = Mac OS X
Version = 10.12.5
Architecture = 64bit
Node.js
Node.js Version = 4.8.4
npm Version = 2.15.11
Appcelerator CLI
Installer = 4.2.9
Core Package = 6.2.2
Titanium CLI
CLI Version = 5.0.14
node-appc Version = 0.2.41
Alloy
Alloy Version = 1.9.13
超级高铁要求
Titanium: 5.4.0+
SDK: 5.4.0+
CLI: 5.4.0+
Alloy: 1.8.0+
哪个 CLI 必须更改为 5.4.0+?我该怎么做?
appc cli -v => 6.2.2
appc ti -v => 5.0.14 UPDATE??? HOW???
appc alloy -v => 1.9.11
缩短的 tiapp.xml:
<?xml version="1.0" encoding="UTF-8"?>
<ti:app xmlns:ti="http://ti.appcelerator.org">
<property name="run-on-main-thread" type="bool">true</property>
<ios>
<use-jscore-framework>true</use-jscore-framework>
</ios>
<android xmlns:android="http://schemas.android.com/apk/res/android"/>
<modules>
<module platform="commonjs">ti.cloud</module>
<module platform="android">hyperloop</module>
<module platform="iphone">hyperloop</module>
</modules>
<sdk-version>6.1.1.GA</sdk-version>
<plugins>
<plugin>ti.alloy</plugin>
<plugin>hyperloop</plugin>
</plugins>
</ti:app>