【发布时间】:2013-12-12 21:52:35
【问题描述】:
我从 sencha touch 开始,我尝试使用 Sencha Touch (Cmd 4.0.1.45) 和 touch 2.3.1 和 Cordova 3.2.0-0.4.0 准备环境。我在一些帖子中看到,在 MAC 中我们不需要安装 SDK,只需安装 Cmd。
我做了很多事情,配置 Java、Android、Paths、Ruby、Ant、Compass、Phonegap、Cordova 等。
使用命令没关系: sencha 生成应用程序和 sencha cordova init 或在 phonegap sencha phonegap init 的情况下。它有效。
最大的问题是当我尝试做 sencha app build -run native 时。这行得通,但我有以下消息:
[INF] -cordova-platform-add:
[INF] [script] Cordova: Missing platforms ios. Attempting add.
[INF] [shellscript] Checking iOS requirements...
[INF] [shellscript] Creating ios project...
[INF] [shellscript] [Error: An error occured during creation of ios sub-project.
[INF] [shellscript] cp: /Applications/MAMP/htdocs/appUm/cordova/platforms/ios/www/cordova.js: No such file or directory
[INF] [shellscript] ]
[ERR] The following error occurred while executing this line:
/Applications/MAMP/htdocs/appUm/.sencha/app/build-impl.xml:422: The following error occurred while executing this line:
/Applications/MAMP/htdocs/appUm/.sencha/app/cordova-impl.xml:170: The following error occurred while executing this line:
jar:file:/Users/zetoniazzo/Documents/Mobile/senchaCmd/Sencha/Cmd/4.0.1.45/sencha.jar!/com/sencha/ant/antlib.xml:608: shellscript returned: 1
环境: 苹果系统 Sencha Touch Cmd 4 触摸2.3.1 科尔多瓦 3.2 Java 1.7 蚂蚁 1.9.2
我相信 Java、ant、Cordova、Ruby、COMpass 等,都可以。最大的问题是应用程序构建。我有很多种错误,但我无法解决这个错误!!!!
问题是cordova和phonegap,试图生成到IOS和android。我对此感到厌恶!
另一件事,我将 cordova.js 带到哪里?
很难!在 Windows 8 中,它适用于 Android....
谢谢
【问题讨论】: