1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    17
    Vote Rating
    0
    rotten69 is on a distinguished road

      0  

    Default Unanswered: Errors when building an iPhone app

    Unanswered: Errors when building an iPhone app


    Hi there,

    I'm getting this Error when building an iOS app on my mac machine, that will be so great if someone can help me resolve it. I thought it is asking to install apache-ant on my machine and that is what I did.

    Thank you


    the error as you can see below:

    HTML Code:
    [ERR]        BUILD FAILED
    [ERR]        com.sencha.exceptions.BasicException: The following error occurred while executing this line:
    [ERR]        /Applications/MAMP/htdocs/test/.sencha/app/build-impl.xml:92: The following error occurred while executing this line:
    [ERR]        jar:file:/Applications/Sencha/Cmd/3.0.0.250/sencha.jar!/com/sencha/ant/antlib.xml:371: shellscript returned: 1
    [ERR]            at com.sencha.exceptions.BasicException.wrap(BasicException.java:43)
    [ERR]            at com.sencha.cli.Command.dispatch(Command.java:104)
    [ERR]            at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]            at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:182)
    [ERR]            at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:58)
    [ERR]            at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:22)
    [ERR]            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR]            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [ERR]            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [ERR]            at java.lang.reflect.Method.invoke(Method.java:597)
    [ERR]            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]            at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]            at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERR]            at org.apache.tools.ant.Target.performTasks(Target.java:413)
    [ERR]            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [ERR]            at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    [ERR]            at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [ERR]            at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [ERR]            at com.sencha.ant.AntRunner.run(AntRunner.java:156)
    [ERR]            at com.sencha.ant.AntRunner.run(AntRunner.java:72)
    [ERR]            at com.sencha.command.BasePluginCommands$BasePluginCommand.run(BasePluginCommands.java:87)
    [ERR]            at com.sencha.command.BasePluginCommands$BasePluginCommand.run(BasePluginCommands.java:91)
    [ERR]            at com.sencha.command.BasePluginCommands$BaseNamePathCommand.run(BasePluginCommands.java:135)
    [ERR]            at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:106)
    [ERR]            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR]            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [ERR]            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [ERR]            at java.lang.reflect.Method.invoke(Method.java:597)
    [ERR]            at com.sencha.cli.Command.dispatch(Command.java:78)
    [ERR]            at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]            at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]            at com.sencha.command.Sencha.main(Sencha.java:71)
    [ERR]        Caused by: /Applications/MAMP/htdocs/test/.sencha/app/build-impl.xml:100: The following error occurred while executing this line:
    [ERR]        /Applications/MAMP/htdocs/test/.sencha/app/build-impl.xml:92: The following error occurred while executing this line:
    [ERR]        jar:file:/Applications/Sencha/Cmd/3.0.0.250/sencha.jar!/com/sencha/ant/antlib.xml:371: shellscript returned: 1
    [ERR]            at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
    [ERR]            at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:444)
    [ERR]            at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    [ERR]            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]            at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
    [ERR]            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [ERR]            at java.lang.reflect.Method.invoke(Method.java:597)
    [ERR]            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]            at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]            at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERR]            at org.apache.tools.ant.Target.performTasks(Target.java:413)
    [ERR]            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [ERR]            at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    [ERR]            at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [ERR]            at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [ERR]            at com.sencha.ant.AntRunner.run(AntRunner.java:156)
    [ERR]            at com.sencha.ant.AntRunner.run(AntRunner.java:80)
    [ERR]            at com.sencha.command.ant.AntCommand.execute(AntCommand.java:75)
    [ERR]            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR]            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [ERR]            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [ERR]            at java.lang.reflect.Method.invoke(Method.java:597)
    [ERR]            at com.sencha.cli.Command.dispatch(Command.java:78)
    [ERR]            ... 31 more
    [ERR]        Caused by: /Applications/MAMP/htdocs/test/.sencha/app/build-impl.xml:92: The following error occurred while executing this line:
    [ERR]        jar:file:/Applications/Sencha/Cmd/3.0.0.250/sencha.jar!/com/sencha/ant/antlib.xml:371: shellscript returned: 1
    [ERR]            at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
    [ERR]            at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:401)
    [ERR]            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]            at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
    [ERR]            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [ERR]            at java.lang.reflect.Method.invoke(Method.java:597)
    [ERR]            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]            at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]            at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERR]            at org.apache.tools.ant.Target.performTasks(Target.java:413)
    [ERR]            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [ERR]            at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    [ERR]            at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [ERR]            at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
    [ERR]            ... 52 more
    [ERR]        Caused by: jar:file:/Applications/Sencha/Cmd/3.0.0.250/sencha.jar!/com/sencha/ant/antlib.xml:371: shellscript returned: 1
    [ERR]            at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:646)
    [ERR]            at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:672)
    [ERR]            at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:498)
    [ERR]            at net.sf.antcontrib.platform.ShellScriptTask.execute(ShellScriptTask.java:132)
    [ERR]            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]            at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
    [ERR]            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [ERR]            at java.lang.reflect.Method.invoke(Method.java:597)
    [ERR]            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]            at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]            at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
    [ERR]            at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
    [ERR]            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR]            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [ERR]            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [ERR]            at java.lang.reflect.Method.invoke(Method.java:597)
    [ERR]            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]            at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
    [ERR]            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]            at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
    [ERR]            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [ERR]            at java.lang.reflect.Method.invoke(Method.java:597)
    [ERR]            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]            at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]            at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
    [ERR]            at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
    [ERR]            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR]            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [ERR]            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [ERR]            at java.lang.reflect.Method.invoke(Method.java:597)
    [ERR]            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]            at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
    [ERR]            at org.apache.tools.ant.Un
    [ERR]        knownElement.execute(UnknownElement.java:291)
    [ERR]            at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
    [ERR]            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [ERR]            at java.lang.reflect.Method.invoke(Method.java:597)
    [ERR]            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]            at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]            at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
    [ERR]            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]            at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
    [ERR]            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [ERR]            at java.lang.reflect.Method.invoke(Method.java:597)
    [ERR]            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]            at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]            at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398)
    [ERR]            ... 64 more
    [ERR]        Total time: 1 second
    [ERR]        com.sencha.exceptions.BasicException: The following error occurred while executing this line:
    /Applications/MAMP/htdocs/test/.sencha/app/build-impl.xml:92: The following error occurred while executing this line:
    jar:file:/Applications/Sencha/Cmd/3.0.0.250/sencha.jar!/com/sencha/ant/antlib.xml:371: shellscript returned: 1
    
    

  2. #2
    Sencha User
    Join Date
    Sep 2012
    Posts
    17
    Vote Rating
    0
    rotten69 is on a distinguished road

      0  

    Default


    HELP.. anyone please?

  3. #3
    Sencha User
    Join Date
    Nov 2012
    Location
    Netherlands
    Posts
    50
    Answers
    6
    Vote Rating
    1
    eastlander is on a distinguished road

      0  

    Default


    Add this line to your sencha.cfg file in .sencha\app:
    skip.sass=1

  4. #4
    Sencha User
    Join Date
    Sep 2012
    Posts
    17
    Vote Rating
    0
    rotten69 is on a distinguished road

      0  

    Default


    Thanks for the help. Based on what line are you determining that the line you've given me needs to be added?

  5. #5
    Sencha User
    Join Date
    Sep 2012
    Posts
    17
    Vote Rating
    0
    rotten69 is on a distinguished road

      0  

    Default


    Hmmm, I have fixed this and the app doesn't run in iOS simulator. Additionally, I haven't messed around with the packager.json. This time when I run the build native command, it passes successfully.

    I just checked the extension for the native iOS app that is just built for me through sencha command tools, it is .app??? iOS devices accept .ipa
    Am I doing something wrong?

  6. #6
    Sencha User
    Join Date
    Sep 2012
    Posts
    17
    Vote Rating
    0
    rotten69 is on a distinguished road

      0  

    Default


    Can anyone help with that?

  7. #7
    Sencha User
    Join Date
    Sep 2012
    Posts
    17
    Vote Rating
    0
    rotten69 is on a distinguished road

      0  

    Default


    Anyone please?

Thread Participants: 1