Closed david-gang closed 10 years ago
@david-gang The first thing I see is that you're on windows. I'll probably need to set up a windows machine to do some testing as I haven't done any.
The first error looks like it failed when adding the iOS platform. Are you able to add it manually? Try running cordova platform add ios
in the cordova directory.
For the second error, I have that problem documented in the README.md here. Let me know if that fixes it for you.
@jakecraige You are right. It doesn't work also manually to add the ios platform. How do i tell the ember cordova:init poetic.myapp command to add the android platform and not ios?
@david-gang There's currently not an option for that but it sounds like a good one to add. Can you create an issue for it and I should be able to add it in the next day or two?
@jakecraige Thanks, I will close this issue and open a new one specifically about the init
When i run the cordova:init on windows i get
C:\Users\davidga\Desktop\ember_test\my-new-app\config>ember cordova:init poetic.myapp version: 0.0.39
Installing npm dependencies...done Removing default ember-cli files...done Copying custom ember files to new ember-cli project...done Update index.html with cordova.js ...done Creating Cordova project...done Copying default cordova hooks to cordova project...done Adding ios platform to cordova... Error thrown while running shell command
Error: Command failed: Error: C:\Users\davidga.cordova\lib\ios\cordova\3.5. n\create: Command failed with exit code ENOENT at ChildProcess.whenDone (C:\Users\davidga\Desktop\ember_test\my-new-app e_modules\ember-cli-cordova\node_modules\cordova\node_modules\cordova-lib\sr rdova\superspawn.js:131:23) at ChildProcess.EventEmitter.emit (events.js:95:17) at Process.ChildProcess._handle.onexit (child_process.js:787:12)
Update config.xml with your project settings...done Symlinking ember dir to cordova www...done
All Done. Enjoy :)
This looks like an error. I don't find a way to add just an android platform.
When i try afterwards to add the android platform i get C:\Users\davidga\Desktop\ember_test\my-new-app\config>ember cordova:build --envi ronment production --platform android version: 0.0.39
Symlinking ember dir to cordova www...done Building cordova project for platform android with environment production... Error thrown while running shell command
Error: Command failed: Current working directory is not a Cordova-based project.
What can i do? I use the latest ember--cli(0.39) and the latest ember-cli-cordova