Sencha cmd构建错误:shellscript返回:1

时间:2015-07-13 19:48:54

标签: extjs sencha-touch sencha-cmd

我正在研究预先存在的Sencha Touch项目。我无法构建它并且不确定如何调试Sencha cmd构建问题。任何有关此特定错误的帮助或有关如何设置Sencha构建环境的提示都将非常受欢迎。

以下是错误消息的片段:

[ERR] The following error occurred while executing this line:
/Users/foo/bartech/bartech2go-new/.sencha/app/build-impl.xml:437: The following error occurred while executing this line:
/Users/foo/bartech/bartech2go-new/.sencha/app/packager-impl.xml:17: The following error occurred while executing this line:
/Users/foo/bartech/bartech2go-new/.sencha/app/cordova-impl.xml:109: The following error occurred while executing this line:
jar:file:/Users/foo/luggage/bin/Sencha/Cmd/6.0.0.202/sencha.jar!/com/sencha/ant/antlib.xml:680: shellscript returned: 1
     at com.sencha.exceptions.BasicException.wrap(BasicException.java:54)
     at com.sencha.ant.AntScript.execute(AntScript.java:120)
     at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:104)
     at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManager.java:145)
     at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:280)
     at com.sencha.command.environment.AppOrPackageEnvironment.execute(AppOrPackageEnvironment.java:738)
     at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePluginCommands.java:97)
     at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:346)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:497)
     at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:175)
     at com.sencha.cli.Command.dispatch(Command.java:43)
     at com.sencha.command.BasePluginCommands$BasePluginCommand.dispatch(BasePluginCommands.java:201)
     at com.sencha.cli.Commands.dispatch(Commands.java:64)
     at com.sencha.cli.Commands.dispatch(Commands.java:64)
     at com.sencha.command.Sencha.dispatch(Sencha.java:73)
     at com.sencha.command.Sencha.main(Sencha.java:141)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:497)
     at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
     at com.install4j.runtime.launcher.UnixLauncher.main(Unknown Source)
   Caused by: The following error occurred while executing this line:
/Users/foo/bartech/bartech2go-new/.sencha/app/build-impl.xml:437: The following error occurred while executing this line:
/Users/foo/bartech/bartech2go-new/.sencha/app/packager-impl.xml:17: The following error occurred while executing this line:
/Users/foo/bartech/bartech2go-new/.sencha/app/cordova-impl.xml:109: The following error occurred while executing this line:
jar:file:/Users/foo/luggage/bin/Sencha/Cmd/6.0.0.202/sencha.jar!/com/sencha/ant/antlib.xml:680: shellscript returned: 1
     at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:444)
     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
     at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:497)
     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
     at org.apache.tools.ant.Task.perform(Task.java:348)
     at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
     at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:497)
     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
     at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
     at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:497)
     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
     at org.apache.tools.ant.Task.perform(Task.java:348)
     at org.apache.tools.ant.Target.execute(Target.java:392)
     at org.apache.tools.ant.Target.performTasks(Target.java:413)
     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
     at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
     at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
     at com.sencha.ant.AntScript.execute(AntScript.java:116)
     at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:104)
     at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManager.java:145)
     at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:280)
     at com.sencha.command.environment.AppOrPackageEnvironment.execute(AppOrPackageEnvironment.java:738)
     at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePluginCommands.java:97)
     at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:346)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:497)
     at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:175)
     at com.sencha.cli.Command.dispatch(Command.java:43)
     at com.sencha.command.BasePluginCommands$BasePluginCommand.dispatch(BasePluginCommands.java:201)
     at com.sencha.cli.Commands.dispatch(Commands.java:64)
     at com.sencha.cli.Commands.dispatch(Commands.java:64)
     at com.sencha.command.Sencha.dispatch(Sencha.java:73)
     at com.sencha.command.Sencha.main(Sencha.java:141)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:497)
     at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
     at com.install4j.runtime.launcher.UnixLauncher.main(Unknown Source)

我正在运行Mac OS X 10.10.4。以下是Sencha Cmd的版本号及其一些依赖项:

Sencha Cmd v6.0.0.202

ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]

Compass 1.0.3 (Polaris)

cordova 5.1.1

我不确定我正在运行的Sencha Touch版本。以下是一些有希望的有用价值观:

.sencha/app/sencha.cfg: app.cmd.version=6.0.0.202

.sencha/workspace/sencha.cfg: workspace.cmd.version=5.0.3.324

touch/cmd/sencha.cfg: framework.cmd.version=4.0.5.87

以下是完整的构建日志:https://gist.githubusercontent.com/jkndrkn/5fbecd12c3875649687f/raw/sencha-cmd-build-log

1 个答案:

答案 0 :(得分:4)

发生的错误与cordova ios平台文件有关。

我发现从cordova文件夹中运行cordova platform remove {platform},然后重新添加平台就有效了。 (重新添加,cordova platform add {platform}