16 Apr 2012 8:11 AM #1
"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:
[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 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!
16 Apr 2012 8:13 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
java has no bearing. Is your path correct?Mitchell Simoens @LikelyMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
16 Apr 2012 8:20 AM #3
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
Working directory is correct too:
admins-iMac:sencha-touch-sdk-2.0.1-rc admin$ pwd /Applications/MAMP/htdocs/sencha-touch-sdk-2.0.1-rc
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.
17 Apr 2012 8:10 AM #4
Any other suggestions? Seems odd that I'm the only one with this problem!
20 Apr 2012 7:01 AM #5
I have same issue. What I have is a copy of my application folder. All components are there however I get same error.
20 Apr 2012 7:21 AM #6
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.
14 Jul 2012 10:46 AM #7
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
24 Jul 2012 4:56 PM #8
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..
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
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.
11 Aug 2012 3:28 AM #9
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,
10 Jun 2015 2:02 PM #10
my SDK is where i extracted my ExtJS files.
you can generate workspace from within the folder like this:
sencha generate workspace /tmp/extJSworkSpace
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:
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
Thread Participants: 30
- mitchellsimoens (2 Posts)
- zombeerose (3 Posts)
- dongryphon (2 Posts)
- aw1zard2 (3 Posts)
- tangix (1 Post)
- holms (1 Post)
- sandeep45 (1 Post)
- ashapiro75 (1 Post)
- fmrc (1 Post)
- Mathias.Deshayes (1 Post)
- arandlett (2 Posts)
- gersoncfilho (2 Posts)
- jgui (1 Post)
- YomeKitsuma (2 Posts)
- tuttoilmondo (1 Post)
- jorik12345 (1 Post)
- Laurent_ (4 Posts)
- tretiy3 (1 Post)
- erpa1119 (1 Post)
- pixelin (1 Post)
- meander365 (1 Post)
- axeff (1 Post)
- jamesclavel (1 Post)
- schmitzmichael (1 Post)
- Nikke (1 Post)
- lzc_qd (1 Post)
- alanfinke (1 Post)
- meerec (1 Post)
- sudhakarv (2 Posts)
- pyguy (1 Post)