ionic-cli: bug: `ionic build ios` not working on Mac OS 10.11
From @stefankp on September 23, 2015 12:24
Type: <span ionic-type>bug</span>
Platform: <span ionic-platform>ios</span> <span ionic-platform-version>9</span> <span ionic-webview>webview</span>
<span ionic-description>ionic build ios does not work anymore, therefore ionic run ios and ionic emulate ios also don’t work, meaning I cannot run the app through the ionic CLI. The command runs for a few seconds and then exits without any logs or error messages.
ionic build android still works fine. Building and deploying the app to the simulator or phone works through Xcode.
I am on Mac OS 10.11.1, with Xcode 7 and a complete fresh ionic install.</span>
<span is-issue-template></span>
Copied from original issue: driftyco/ionic#4414
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 36 (3 by maintainers)
ionic state resetdid the trick!From @mpm on September 23, 2015 12:42
I have the same issue 😄 according to the cordova docs, the
buildtask runs two commands,prepareandcompile. The one that breaks (returns without any error message) isionic prepare ioswhile
ionic compile ioscompiles the stuff that is there (without
prepare, the plugins are missing though). I’m trying to understand what thepreparecommand is doing and it must be somewhere in this repository IMHO, but I couldn’t locate it yet.Worked for me! 👍
All - try updating cordova - theres a fix available in Cordova 5.4.0 that fixes issues with Node v5.
npm install -g cordovaLet me know if this helps fix the issues.
this is view of cmd
After updated to Mac OS 10.11, I got this problem also (Cannot add platform and build for both ios and android). Finally it was fixed by the following steps (only for my case):