can you try this
Yup, this was a permissions issue - $sudo ionic build ios - worked for me.
Thanks for the help guys.
I got same error when try to emulate ios,
$ ionic platform add ios
$ ionic build ios
$ ionic emulate ios -> i got error
2014-11-14 14:52:48.002 ios-sim[8769:142383] stderrPath: /Library/WebServer/Documents/angular/ionic/myApp/platforms/ios/cordova/console.log
2014-11-14 14:52:48.002 ios-sim[8769:142383] stdoutPath: /Library/WebServer/Documents/angular/ionic/myApp/platforms/ios/cordova/console.log
Usage of ââfamilyâ is deprecated in 3.x. Use --devicetypeid instead.
Usage of ââretinaâ is deprecated in 3.x. Use --devicetypeid instead.
I got the same build error, this worked for me:
ionic platform remove ios
ionic platform add ios
worked for me too, thx.
my problem doesnât happen when i run ionic emulate ios it happens when i run ionic run ios. this is after uninstalling cordova and ionic then reinstalling. removing/adding plugins. then running ionic build. suggestions?
edit: after reading other posts, i tried creating a new project to see if i get this error. unlike my real project which fails on âionic run iosâ but runs fine when running âios emulate iosâ, this new project now requires me to run sudo and it fails on emulate.
You saved me, thanks!
I am not sure what was the actual problem, I tried to remove iOS platform and then re added it to make it work.
I tried everything above but it just didnât seem to work. My permissions must have been way off. This ended up working for me:
sudo npm update -g cordova
sudo npm update -g ionic
rm -rf plugins/
rm -rf platforms/
ionic platform add ios
ionic run ios
Letting cordova remake the folders must have done it.
Thanks this worked for me as well!
Adding CordovaLib to âTarget Dependenciesâ worked for me. Although, I canât figure out that how it got removed.
Generally, by logging things and looking at output package weâve found that plugin installation is not always reliable. In some cases a couple of plugins might fail to install properly (and thus we see ânot definedâ messages in our logs). Usually removing and (re)adding the failing plugin has fixed this issue. Presumably this is why removing and (re)adding platforms often helps. Another thing to try is cleaning the project before doing a build - both iOS and Android have a cleanup script available in either ./platforms/ios/cordova/clean
and ./platforms/android/cordova/clean
respectively which can help sometimes when run between builds.
THANK YOU!!
I spent a good 3hrs google searching for a solutions, and this worked. Lesson learn: When all else fails remove the plugins and platforms!
Thank you so much, you saved my day!
Thanks!!!
Works great for me!!!
The solution for me was that I didnât have a provisioning profile that worked. I had to reset all the provisioning profiles, and make a new wildcard one. com.*. I deleted them all and redownloaded all provisioning profiles, and that fixed it.
try: ionic state reset --plugins
worked like a charm for me.
Running âcordova platform update iosâ in the command line worked for me when I got this errorâŚyou might just need an update
Check the ios.json file, the PACKAGE_NAME might be incorrect for a plugin or two.
ionic platform remove ios
ionic platform add ios
ionic build ios
This updated and fixed the ios.json issues.
Ionic CLI : 3.12.0
Cordova CLI : 7.0.1
Removing the plugin that was causing the error worked for me, which in my case was âMixpanel Pluginâ.
âMixpanel.hâ file not found
#import âMixpanel.hâ
^~~~~~~~~~~~
1 error generated.
** BUILD FAILED **
The following build commands failed:
CompileC
Look for any such error, and remove the plugin causing it by running:
ionic cordova plugin remove <plugin_name>
To find list of plugins to know the <plugin_name> in above command:
ionic cordova plugin ls