-
26 Jun 2012 12:34 AM #1
Answered: Sencha Command not building production
Answered: Sencha Command not building production
Hi,
I followed you're gettings started guide step by step (triple checked it to make sure). But when I say
Code:mymacbookmacbook:GS me$ sencha app build production //Result I get :----> [INFO] Deploying your application to /usr/local/tomcat/webapps/GS/build/production [INFO] Copied sdk/sencha-touch.js [INFO] Copied app.js [INFO] Copied resources/css/app.css [INFO] Copied resources/images [INFO] Copied resources/icons [INFO] Copied resources/startup [INFO] Resolving your application dependencies (http://localhost:8084/GS/index.html) [ERROR] /bin/sh: /Applications/SenchaSDKTools/bin/phantomjs: No such file or directory [ERROR] Failed loading your application from: 'http://localhost:8084/GS/index.html'.
What should I do ??? Im stumped !!
-
Best Answer Posted by Sasha172
So I figured it out !! Finally (to be said in an Eddie Murphy voice)
I wasn't aware of this since the documentation didn't say anything about it (**hint hint) but there's a huge difference in building an app for Sencha on the Mac and on the PC.
What I did wrong :
1. I had built the app on the Mac using Sencha Commands "sencha generate app AppName ../Appname"
2. Finished coding the entire thing.
3. Created the iOS version
4. Copied the ENTIRE AppName folder code (with all the files in it) to the PC (so that I could work on the Android version) //this step was causing the error
What I should have done :
Steps 1, 2 & 3 stay the same
4. Create a new app on the PC using Sencha Command
5. ONLY replace the app.js & app folders from the mac !!!!!
The json files seem to change and are NOT interchangable
Anyway, I hope this helps a bunch of people because I have seen 100s of posts all over the internet with the same problem
Lemme know if anyone needs more help/details of the process
Cheers
Sasha
-
28 Jun 2012 4:59 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
- Answers
- 3102
Did you have any previous version of SDK tools installed? You may try uninstalling what you have installed now and reinstalling.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
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 services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
28 Jun 2012 9:02 PM #3
Tried that. I now have a new error.
Im also getting the same error on the Apple Sencha Command & Windows Sencha CommandCode:[INFO] Deploying your application to C:\wamp\www\SenchaSDK\Catalog\build\testing [INFO] Copied sdk/sencha-touch.js [INFO] Copied app.js [INFO] Copied resources/css/app.css [INFO] Copied resources/images [INFO] Copied resources/icons [INFO] Copied resources/loading [INFO] Copied app/data [INFO] Resolving your application dependencies... [ERROR] Failed openning: 'file:///C:/wamp/www/SenchaSDK/Catalog/index.html', please verify that the URI is valid
-
24 Aug 2012 4:18 AM #4
SOLVED !!!!
SOLVED !!!!
So I figured it out !! Finally (to be said in an Eddie Murphy voice)
I wasn't aware of this since the documentation didn't say anything about it (**hint hint) but there's a huge difference in building an app for Sencha on the Mac and on the PC.
What I did wrong :
1. I had built the app on the Mac using Sencha Commands "sencha generate app AppName ../Appname"
2. Finished coding the entire thing.
3. Created the iOS version
4. Copied the ENTIRE AppName folder code (with all the files in it) to the PC (so that I could work on the Android version) //this step was causing the error
What I should have done :
Steps 1, 2 & 3 stay the same
4. Create a new app on the PC using Sencha Command
5. ONLY replace the app.js & app folders from the mac !!!!!
The json files seem to change and are NOT interchangable
Anyway, I hope this helps a bunch of people because I have seen 100s of posts all over the internet with the same problem
Lemme know if anyone needs more help/details of the process
Cheers
Sasha


Reply With Quote