Results 1 to 10 of 46

Thread: "Not a recognized Sencha SDK or application folder" on OSX w/2.0.0 Beta 2 / 2.0.1-rc

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    6
    Vote Rating
    0
      0  

    Default "Not a recognized Sencha SDK or application folder" on OSX w/2.0.0 Beta 2 / 2.0.1-rc

    I've installed Sencha Touch SDK 2.0.1 RC and Sencha SDK Tools 2.0.0 Beta 2 on OSX Lion 10.7.3.

    When I change to the Sencha Touch SDK directory and issue the 'sencha' command, I get an error:
    Code:
    [WARN] The current working directory (/Appplications/MAMP/htdocs/sencha-touch-sdk-2.0.1-rc) is not a recognized Sencha SDK or application folder. Running in backwards compatiblity mode.
    I'm certain that I'm in the Touch SDK 2.0.1RC folder (version.txt says 2.0.1-rc) and that the SDK Tools 2.0.0 Beta 2 bin folder is on the path.

    I don't know if it's a clue or not, but I am running with the latest Java runtime, 1.6.0_31

    Any suggestions would be appreciated!

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    java has no bearing. Is your path correct?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    6
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by mitchellsimoens View Post
    java has no bearing. Is your path correct?
    I believe so:
    Code:
    admins-iMac:sencha-touch-sdk-2.0.1-rc admin$ echo $PATH
    /Applications/SenchaSDKTools-2.0.0-beta2:/Applications/SenchaSDKTools-2.0.0-Beta/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
    (yes I realize the path references the previous SDK beta version also, but that folder has been completely deleted.)

    Working directory is correct too:
    Code:
    admins-iMac:sencha-touch-sdk-2.0.1-rc admin$ pwd
    /Applications/MAMP/htdocs/sencha-touch-sdk-2.0.1-rc
    But no dice.

    I asked about Java because the previous SDK tools installer ran without any issues, but when I ran the 2.0.0 Beta 2 installer, it complained that it couldn't find Java on the machine. So I installed the latest Java from Apple, restarted the machine and the installer ran fine.

  4. #4
    Sencha User
    Join Date
    Apr 2012
    Posts
    6
    Vote Rating
    0
      0  

    Default

    Any other suggestions? Seems odd that I'm the only one with this problem!

  5. #5
    Sencha User
    Join Date
    Jun 2011
    Posts
    71
    Vote Rating
    0
      0  

    Default Same Issu

    I have same issue. What I have is a copy of my application folder. All components are there however I get same error.

  6. #6
    Sencha User
    Join Date
    Jun 2011
    Posts
    71
    Vote Rating
    0
      0  

    Default

    I seem to have found the issue in my circumstance. There is a system level file called .senchasdk which was not present in the folder. When I copied that over the build worked.

  7. #7
    Touch Premium Member
    Join Date
    Aug 2010
    Location
    New York, NY
    Posts
    66
    Vote Rating
    1
      0  

    Default

    you need to have a file called .senchsdk for the sencha command to work

    the sencha command looks for this file to determine its actions..

    i created a secha project, move it around and the sencha command started giving the error u have mentioned. this happened because .senchsdk was a hidden file and was never copied around

    Solution is simple. In your sencha project folder create a file called .senchasdk
    its content should be: sdk

    thats it. now u r set. and the command should work.

    PS: its content is the path to the directory where sencha sdk is. by default that should be sdk

    Quote Originally Posted by mtippin View Post
    I've installed Sencha Touch SDK 2.0.1 RC and Sencha SDK Tools 2.0.0 Beta 2 on OSX Lion 10.7.3.

    When I change to the Sencha Touch SDK directory and issue the 'sencha' command, I get an error:
    Code:
    [WARN] The current working directory (/Appplications/MAMP/htdocs/sencha-touch-sdk-2.0.1-rc) is not a recognized Sencha SDK or application folder. Running in backwards compatiblity mode.
    I'm certain that I'm in the Touch SDK 2.0.1RC folder (version.txt says 2.0.1-rc) and that the SDK Tools 2.0.0 Beta 2 bin folder is on the path.

    I don't know if it's a clue or not, but I am running with the latest Java runtime, 1.6.0_31

    Any suggestions would be appreciated!

  8. #8
    Sencha User
    Join Date
    Oct 2010
    Posts
    39
    Vote Rating
    0
      0  

    Default

    Ugh, I keep getting this problem as well, I've tried some of these fixes but I have not tried the .senchsdk yet. The issue I am having though is the path issue but it said the build and sign is successful. I'm launching the packaging function from the Architect tool though. I don't know how much of a difference that makes. I'm using the latest version of Architect, SDK and SDK Tools. I get the app create but it throws that error. It however runs in the simulator and I can add it to iTunes but when I try to put it on my device either with iTunes or Xcode, I get install errors. I've literally been racking my brain on this all day. I've got my device set up in the provisioning portal, I've got my cert, I've got my App ID, etc..


    cd /Users/ashapiro75/Documents/SenchaProjects/red/
    sencha package packager.json
    [ERROR] The current working directory (/Users/ashapiro75/Documents/SenchaProjects/red) is not a recognized Sencha SDK or application folder
    The application was successfully packaged
    The application was successfuly signed
    logout

    I actually moved the SDK into the /red directory to try that. My app wound up being 187 mb and all it is, is a red screen. That's all I tried to test this with.

    So I take the .app that it creates, I put it into iTunes, try to add it to my device and I get an error... I'm about to give up on Sencha, it seems every time I get something down, something else changes and I feel like I am chasing my tail.

  9. #9
    Sencha Premium Member
    Join Date
    Nov 2010
    Location
    Pamplona - Spain
    Posts
    22
    Vote Rating
    0
      0  

    Default I've found a solution in Mac

    All the trouble seems to be related to that .senchasdk file at the root of the SDK folder.
    In order to make sure that the file is there:

    - use the downloaded folder of the SDK as it is -> don't try to copy its contents into a different folder. I've done that and the dammed .senchasdk is not copied.

    Once you launch the "sencha" command from the SDK folder, everything works fine.
    Hope it helps,
    Fernando

  10. #10
    Sencha User
    Join Date
    Nov 2013
    Posts
    2
    Vote Rating
    0
      0  

    Default

    my SDK is where i extracted my ExtJS files.
    ~/current/gaia/static/js/ext-5.1.1

    you can generate workspace from within the folder like this:
    sencha generate workspace /tmp/extJSworkSpace
    or
    you can specify it's location if you are not in the folder.
    sencha -sdk ~/current/gaia/static/js/ext-5.1.1 generate workspace /tmp/extJSworkSpace

    contents of the SDK folder looks like:
    ls ~/current/gaia/static/js/ext-5.1.1
    build cmd ext-bootstrap.js LICENSE overrides packages Readme.md src version.properties build.xml examples index.html licenses package.json plugins release-notes.html test welcome

    if you don't specify -sdk flag and are not inside the folder, it will create the workspace still but there will be no 'ext' folder inside (not copied).

    hope this helps.
    Last edited by pyguy; 10 Jun 2015 at 2:06 PM. Reason: bad formatting in quick reply

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
  •