Results 1 to 10 of 10

Thread: Building on Phonegap cloud using sencha cmd fails

  1. #1
    Sencha User
    Join Date
    Dec 2009
    Posts
    425

    Default Building on Phonegap cloud using sencha cmd fails

    Hi,
    I created an app with Sencha touch 2.4.1 and used sencha Cmd 5.1.3.61 to build it on cloud with the command: sencha app build native
    Got the following error:

    [INF] [shellscript] [error] ENOENT, open '''D:\Mobile\Sencha\Phonegap Project
    s\MyApp\phonegap\.cordova\config.json'''

    [ERR] The following error occurred while executing this line:
    D:\Mobile\Sencha\Phonegap Projects\MyApp\.sencha\app\build-impl.xml:435: The fol
    lowing error occurred while executing this line:
    D:\Mobile\Sencha\Phonegap Projects\MyApp\.sencha\app\packager-impl.xml:17: The f
    ollowing error occurred while executing this line:
    D:\Mobile\Sencha\Phonegap Projects\MyApp\.sencha\app\phonegap-impl.xml:106: The
    following error occurred while executing this line:
    D:\Mobile\Sencha\Phonegap Projects\MyApp\.sencha\app\phonegap-impl.xml:163: The
    following error occurred while executing this line:
    jar:file:/D:/Mobile/Sencha/Cmd/5.1.3.61/sencha.jar!/com/sencha/ant/antlib.xml:64
    4: shellscript returned: 1

    Please help..There is no .cordova folder under phonegap folder.

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    What version of Phonegap are you running. Are you sure it's fully installed?

  3. #3
    Sencha User
    Join Date
    Dec 2009
    Posts
    425

    Default

    I ran "phonegap -v" on a cmd window and got
    5.0.0-0.28.0
    and yes it is fully installed

  4. #4
    Sencha User kevin2k's Avatar
    Join Date
    Feb 2013
    Location
    The Netherlands
    Posts
    3

    Default Same problem with Touch 2.4.1, Cmd 6.0.0.154 and phone gap 5.0.0-0.28.1

    Same problem here, these are the steps (include version check) to reproduce. In local.properties I added the PhoneGap login details, and in app.json I uncommented platform and remote, and set remote to true.

    Kevins-MBPocuments kevinvanschaijk$ sencha which
    Sencha Cmd v6.0.0.154
    /Users/kevinvanschaijk/bin/Sencha/Cmd/6.0.0.154/


    Kevins-MBPocuments kevinvanschaijk$ phonegap -v
    5.0.0-0.28.1
    Kevins-MBPocuments kevinvanschaijk$ sencha generate workspace MyWorkspace
    Sencha Cmd v6.0.0.154


    Kevins-MBPocuments kevinvanschaijk$ cd MyWorkspace/
    Kevins-MBP:MyWorkspace kevinvanschaijk$ sencha -sdk ~/Documents/Sencha/touch-2.4.1/ generate app MyApp ~/Documents/MyWorkspace/MyApp
    Sencha Cmd v6.0.0.154
    [INF] Workspace does not have framework touch at /Users/kevinvanschaijk/Documents/MyWorkspace ... copying
    [INF] Processing Build Descriptor : default
    [INF] Starting server on port : 1841
    [INF] Mapping http://localhost:1841/~cmd to /Users/kevinvanschaijk/bin/Sencha/Cmd/6.0.0.154...
    [INF] Mapping http://localhost:1841/ to /Users/kevinvanschaijk/Documents/MyWorkspace...
    [INF] Application available at http://localhost:1841
    [INF] Loading app json manifest...
    [INF] Writing output to file /Users/kevinvanschaijk/Documents/MyWorkspace/build/temp/development/MyApp/sencha-compiler/cmd-packages.js
    [INF] writing content to /Users/kevinvanschaijk/Documents/MyWorkspace/MyApp/bootstrap.js
    [INF] appending content to /Users/kevinvanschaijk/Documents/MyWorkspace/MyApp/bootstrap.js
    [INF] appending content to /Users/kevinvanschaijk/Documents/MyWorkspace/MyApp/bootstrap.js
    [INF] appending content to /Users/kevinvanschaijk/Documents/MyWorkspace/MyApp/bootstrap.js
    [INF] Appending content to /Users/kevinvanschaijk/Documents/MyWorkspace/MyApp/bootstrap.json
    [INF] Adding application to workspace.json


    Kevins-MBP:MyWorkspace kevinvanschaijk$ cd MyApp
    Kevins-MBP:MyApp kevinvanschaijk$ sencha phonegap init com.mycompany.MyApp MyApp
    Sencha Cmd v6.0.0.154
    [INF] Creating App
    [INF] [shellscript] Creating a new cordova project.
    [INF] [shellscript]
    [INF] Adding native build to app.json
    [INF] Application has been initialized for native packaging. Please edit app.json and add platform(s) to build for.


    Kevins-MBP:MyApp kevinvanschaijk$ vi app.json
    Kevins-MBP:MyApp kevinvanschaijk$ touch local.properties
    Kevins-MBP:MyApp kevinvanschaijk$ vi local.properties
    Kevins-MBP:MyApp kevinvanschaijk$ sencha app build native
    Sencha Cmd v6.0.0.154
    [INF] Processing Build Descriptor : native
    [INF] Starting server on port : 1841
    [INF] Mapping http://localhost:1841/~cmd to /Users/kevinvanschaijk/bin/Sencha/Cmd/6.0.0.154...
    [INF] Mapping http://localhost:1841/ to /Users/kevinvanschaijk/Documents/MyWorkspace...
    [INF] Application available at http://localhost:1841
    [INF] Loading app json manifest...
    [INF] Writing output to file /Users/kevinvanschaijk/Documents/MyWorkspace/build/temp/production/MyApp/sencha-compiler/cmd-packages.js
    [INF] writing content to /Users/kevinvanschaijk/Documents/MyWorkspace/MyApp/bootstrap.js
    [INF] appending content to /Users/kevinvanschaijk/Documents/MyWorkspace/MyApp/bootstrap.js
    [INF] appending content to /Users/kevinvanschaijk/Documents/MyWorkspace/MyApp/bootstrap.js
    [INF] appending content to /Users/kevinvanschaijk/Documents/MyWorkspace/MyApp/bootstrap.js
    [INF] Appending content to /Users/kevinvanschaijk/Documents/MyWorkspace/MyApp/bootstrap.json
    [WRN] C1014: callParent has no target (me.callParent in Ext.dataview.DataView.onAfterRender) -- /Users/kevinvanschaijk/Documents/MyWorkspace/touch/src/dataview/DataView.js:892
    [WRN] C1014: callParent has no target (this.callParent in Ext.Decorator.setDisabled) -- /Users/kevinvanschaijk/Documents/MyWorkspace/touch/src/Decorator.js:157
    [WRN] C1014: callParent has no target (this.callParent in Ext.data.ArrayStore.loadData) -- /Users/kevinvanschaijk/Documents/MyWorkspace/touch/src/data/ArrayStore.js:64
    [WRN] C1014: callParent has no target (this.callParent in Ext.fx.animation.Wipe.getData) -- /Users/kevinvanschaijk/Documents/MyWorkspace/touch/src/fx/animation/Wipe.js:119:7
    [INF] Writing concatenated output to file /Users/kevinvanschaijk/Documents/MyWorkspace/MyApp/phonegap/www/app.js
    [INF] merging 0 input resources into /Users/kevinvanschaijk/Documents/MyWorkspace/MyApp/phonegap/www/resources
    [INF] merged 0 resources into /Users/kevinvanschaijk/Documents/MyWorkspace/MyApp/phonegap/www/resources
    [INF] merging 14 input resources into /Users/kevinvanschaijk/Documents/MyWorkspace/MyApp/phonegap/www
    [INF] merged 14 resources into /Users/kevinvanschaijk/Documents/MyWorkspace/MyApp/phonegap/www
    [INF] writing content to /Users/kevinvanschaijk/Documents/MyWorkspace/MyApp/sass/example/bootstrap.js
    [INF] appending content to /Users/kevinvanschaijk/Documents/MyWorkspace/MyApp/sass/example/bootstrap.js
    [INF] appending content to /Users/kevinvanschaijk/Documents/MyWorkspace/MyApp/sass/example/bootstrap.js
    [INF] appending content to /Users/kevinvanschaijk/Documents/MyWorkspace/MyApp/sass/example/bootstrap.js
    [INF] appending content to /Users/kevinvanschaijk/Documents/MyWorkspace/MyApp/sass/example/bootstrap.js
    [INF] executing compass using system installed ruby runtime
    remove ../css/app.css
    create ../css/app.css
    [INF] Application available at http://localhost:1841
    [INF] writing content to /Users/kevinvanschaijk/Documents/MyWorkspace/MyApp/bootstrap.js
    [INF] appending content to /Users/kevinvanschaijk/Documents/MyWorkspace/MyApp/bootstrap.js
    [INF] appending content to /Users/kevinvanschaijk/Documents/MyWorkspace/MyApp/bootstrap.js
    [INF] appending content to /Users/kevinvanschaijk/Documents/MyWorkspace/MyApp/bootstrap.js
    [INF] Appending content to /Users/kevinvanschaijk/Documents/MyWorkspace/MyApp/bootstrap.json
    [INF] Copying page resources to /Users/kevinvanschaijk/Documents/MyWorkspace/MyApp/phonegap/www
    [INF] Writing content to /Users/kevinvanschaijk/Documents/MyWorkspace/MyApp/phonegap/www/microloader.js
    [INF] Appending content to /Users/kevinvanschaijk/Documents/MyWorkspace/MyApp/phonegap/www/microloader.js
    [INF] Building output markup to /Users/kevinvanschaijk/Documents/MyWorkspace/MyApp/phonegap/www/index.html
    [INF] Writing content to /Users/kevinvanschaijk/Documents/MyWorkspace/MyApp/phonegap/www/index.html
    [INF] [Phonegap] Attempting login to PhoneGap Build
    [INF] [Phonegap] Attempting PhoneGap remote build for ios
    [INF] [shellscript] [error] ENOENT, open '''/Users/kevinvanschaijk/Documents/MyWorkspace/MyApp/phonegap/.cordova/config.json'''
    [ERR] The following error occurred while executing this line:
    /Users/kevinvanschaijk/Documents/MyWorkspace/MyApp/.sencha/app/build-impl.xml:437: The following error occurred while executing this line:
    /Users/kevinvanschaijk/Documents/MyWorkspace/MyApp/.sencha/app/packager-impl.xml:17: The following error occurred while executing this line:
    /Users/kevinvanschaijk/Documents/MyWorkspace/MyApp/.sencha/app/phonegap-impl.xml:106: The following error occurred while executing this line:
    /Users/kevinvanschaijk/Documents/MyWorkspace/MyApp/.sencha/app/phonegap-impl.xml:163: The following error occurred while executing this line:
    jar:file:/Users/kevinvanschaijk/bin/Sencha/Cmd/6.0.0.154/sencha.jar!/com/sencha/ant/antlib.xml:671: shellscript returned: 1
    Kevins-MBP:MyApp kevinvanschaijk$

  5. #5
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    I haven't experienced this before. I did find this seemingly related thread:
    http://stackoverflow.com/questions/1...folder-missing

    You might uninstall and reinstall Cordova just to be sure it's not an issue.

  6. #6
    Sencha User kevin2k's Avatar
    Join Date
    Feb 2013
    Location
    The Netherlands
    Posts
    3

    Default

    The problem only occurs on the phonegap remote build; the local build runs correctly, but the remote build fails. Since the folder phonegap/.cordova doesn't exist, and the file config.json either, the build fails. But I don't know if this is because phonegap remote build isn't configured correctly, or the .cordova folder and config.json aren't copied/created.

  7. #7
    Sencha User kevin2k's Avatar
    Join Date
    Feb 2013
    Location
    The Netherlands
    Posts
    3

    Default

    I down- and upgraded some components and finally have something that works:


    [email protected]
    java version "1.8.0_45"
    Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
    Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
    Sencha Cmd v5.1.3.61
    npm 2.10.1
    node v0.12.4


    There are multiple problems:
    -phonegap 5.x fails, even if you try to generate an app without sencha cmd and try to build it remote (same error message ./cordova/config.json); hint, if you try to downgrade phonegap, use:


    sudo npm remove -g phonegap
    sudo npm install -g [email protected]


    - sencha cmd 6.x beta throws an error message when I run "sencha phonegap init"


    - I upgraded the Java JDK to 1.8, but don't know if this has to be part of the solution

  8. #8

    Default

    Thanks Kevin,[email protected] did the trick. sudo npm remove -g phonegapsudo npm install -g [email protected]-Rajan

  9. #9
    Sencha User
    Join Date
    Aug 2011
    Posts
    130

    Default

    Quote Originally Posted by punchouty View Post
    Thanks Kevin,[email protected] did the trick. sudo npm remove -g phonegapsudo npm install -g [email protected]
    Removing phonegap and then installing [email protected] didn't help.

  10. #10
    Sencha Premium Member alex.melnyk's Avatar
    Join Date
    Oct 2015
    Posts
    3

    Default

    Had issue like this, issue was not with sencha cmd but with phonegap build. in my case it was .gz file in source code, anyway if facing such issue, please, check your adobe phonegap build manager for error details.

Similar Threads

  1. building android app with sencha architect (with phonegap)
    By qualtech in forum Sencha Architect 3.x: Q&A
    Replies: 2
    Last Post: 2 Sep 2014, 11:31 AM
  2. Replies: 1
    Last Post: 4 Sep 2013, 1:51 PM
  3. Sencha building ios app with phonegap php login problem
    By andyts93 in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 27 May 2013, 4:35 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •