Build failed - CompileC errors


Not sure what I’m doing wrong. The repo has been working but then recently started failing. I think it must be something simple.


The following build commands failed:
  CompileC build/ MyApp/main.m normal i386 objective-c
  CompileC build/ MyApp/Plugins/com.ionic.keyboard/UIWebViewExtension.m normal i386 objective-c
  CompileC build/ MyApp/Plugins/cc.fovea.plugins.inapppurchase/InAppPurchase.m normal i386 objective-c
  CompileC build/ MyApp/Plugins/cc.fovea.plugins.inapppurchase/SKProduct+LocalizedPrice.m normal i386 objective-c
  CompileC build/ MyApp/Classes/MainViewController.m normal i386 objective-c
  CompileC build/ MyApp/Classes/AppDelegate.m normal i386 objective-c
  CompileC build/ MyApp/Plugins/com.ionic.keyboard/IonicKeyboard.m normal i386 objective-c
  CompileC build/ MyApp/Plugins/org.apache.cordova.console/CDVLogger.m normal i386 objective-c
(8 failures)
Error: /Users/kirkstrobeck/git/tipfortip/ionic/platforms/ios/cordova/run: Command failed with exit code 65
    at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:743:16)
    at Process.ChildProcess._handle.onexit (child_process.js:810:5)


I turns out I have to prefix with sudo, but whay now?


If you have to use sudo, maybe some permissions have changed in the project directory and your user doesn’t have read access to some files.


Well above those lines there must be some errors regarding SharedPrecompiledHeaders


something like this path… go to that folder (path may differ in your case) and delete all and build again… it should work…

Ionic build ios plugin errors (exit code 65)

I found out what the issue is, but it shouldn’t be an issue. If I change even one character of the <name>Tip for Tip</name> field in config.xml it works. Like <name>Tip for Tipz</name>. I have no idea why this issue has started and no idea how to fix it. We aren’t renaming the app, so what’s my solution?


This solution worked for me. Thanks a bunch!
I use Finder > Go to folder and typed in /var/folders and navigated there. I guess the same could be done using Terminal.


Worked for me too, thx!


Thanks runbrun! That fixed the issue for me too.