使用Sencha 2.3 + PhoneGap构建本机应用程序时出错

时间:2013-11-19 03:08:19

标签: ios extjs cordova sencha-touch-2 sencha-cmd

我按照Vimeo视频中的简单说明进行操作。我将我的应用程序从Sencha Touch 2.2升级到2.3。添加了PhoneGap支持。现在尝试构建本机应用程序。结果并不那么容易。我需要帮助这个:

macbook-air:admin Me$ sencha app build -run nativeSencha Cmd v4.0.1.45
[INF]
[INF] init-plugin:
[INF]
[INF] cmd-root-plugin.init-properties:
[INF]
[INF] init-properties:
[INF]
[INF] init-sencha-command:
[INF]
[INF] init:
[INF]
[INF] app-build-impl:
[INF]
[INF] -before-init-local:
[INF]
[INF] -init-local:
[INF]
[INF] -after-init-local:
[INF]
[INF] init-local:
[INF]
[INF] find-cmd-in-path:
[INF]
[INF] find-cmd-in-environment:
[INF]
[INF] find-cmd-in-shell:
[INF]
[INF] init-cmd:
[INF]      [echo] Using Sencha Cmd from /Users/Me/bin/Sencha/Cmd/4.0.1.45 for /Users/Me/App/public/Admin/build.xml
[INF]
[INF] -before-init:
[INF]
[INF] -init:
[INF] Initializing Sencha Cmd ant environment
[INF] Adding antlib taskdef for com/sencha/command/compass/ant/antlib.xml
[INF]
[INF] -after-init:
[INF]
[INF] -before-init-defaults:
[INF]
[INF] -init-defaults:
[INF]
[INF] -after-init-defaults:
[INF]
[INF] -init-compiler:
[INF]
[INF] init:
[INF]
[INF] -before-build:
[INF]
[INF] refresh:
[INF]
[INF] -before-refresh:
[INF]
[INF] -init:
[INF]
[INF] -init-compiler:
[INF]
[INF] -detect-app-build-properties:
[INF] Loading app json manifest...
[ERR]
[ERR] BUILD FAILED
[ERR] java.lang.NullPointerException
[ERR]
[ERR] Total time: 1 second
[ERR] The following error occurred while executing this line:
/Users/Me/App/public/Admin/.sencha/app/build-impl.xml:367: The following error occurred while executing this line:
/Users/Me/App/public/Admin/.sencha/app/js-impl.xml:11: java.lang.NullPointerException
macbook-air:admin Me$

我已在Dropbox上传了这两个文件。此处还有一个调试输出http://pastebin.com/T6ENe8xh如果还有其他需要跟踪问题,请告诉我。我错过了什么吗?任何帮助将不胜感激。

谢谢,

P.S。对于这些东西,我是一个初学者。

1 个答案:

答案 0 :(得分:0)

我遇到了同样的错误并通过运行纠正了它:

sudo xcodebuild -license