# iOS build fails after plugin installation

**URL:** <https://forum.ionicframework.com/t/ios-build-fails-after-plugin-installation/13731>\
**Category:** ionic-v1\
**Created:** [December 7, 2014, 2:57pm UTC](https://forum.ionicframework.com/t/ios-build-fails-after-plugin-installation/13731 "2014-12-07T14:57:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ched](https://avatars.discourse-cdn.com/v4/letter/c/b5e925/32.png) [@ched](https://forum.ionicframework.com/u/ched)\
**Post date:** [December 7, 2014, 2:57pm UTC](https://forum.ionicframework.com/t/ios-build-fails-after-plugin-installation/13731/1 "2014-12-07T14:57:26Z")

</div>

I have issues with my status bar and deinstalled all the pluings as advised [here](http://forum.ionicframework.com/t/navbar-under-status-bar/13357/2).  
Now I successfully reinstalled the cordova device plugin, but when I try to build iOS I receive an error message:

```
The following build commands failed:

CompileC build/healthcare.build/Debug-iphonesimulator/healthcare.build/Objects-normal/i386/CDVDevice.o healthcare/Plugins/org.apache.cordova.device/CDVDevice.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Error: /Users/ched/healthcare/platforms/ios/cordova/build: 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 originally used the demo seed project and never had any other plugins installed. Can someone please tell me why I’m encountering this issue and if it might be related to my other problem?

---

<div class="post-metadata">

**Author:** ![esery1](https://avatars.discourse-cdn.com/v4/letter/e/8baadc/32.png) [@esery1](https://forum.ionicframework.com/u/esery1)\
**Post date:** [December 7, 2014, 4:54pm UTC](https://forum.ionicframework.com/t/ios-build-fails-after-plugin-installation/13731/2 "2014-12-07T16:54:33Z")

</div>

After adding a new plugin, build or prepare commands does not copy objective c files to project folders.

- Remove ios platform then add platform again.

- Or you can manualy copy objective-c files and resources for the plugin to project folder.

---

<div class="post-metadata">

**Author:** ![ched](https://avatars.discourse-cdn.com/v4/letter/c/b5e925/32.png) [@ched](https://forum.ionicframework.com/u/ched)\
**Post date:** [December 22, 2014, 10:32pm UTC](https://forum.ionicframework.com/t/ios-build-fails-after-plugin-installation/13731/3 "2014-12-22T22:32:09Z")

</div>

Sorry, I messed up the link AND my notification settings. As pointed out in the other post that’s not the issue, as I removed and re-added the platforms without any success. I really have no clue why this problems appear in a seed-project.

---

<div class="post-metadata">

**Author:** ![ched](https://avatars.discourse-cdn.com/v4/letter/c/b5e925/32.png) [@ched](https://forum.ionicframework.com/u/ched)\
**Post date:** [December 23, 2014, 11:27pm UTC](https://forum.ionicframework.com/t/ios-build-fails-after-plugin-installation/13731/4 "2014-12-23T23:27:38Z")

</div>

Apparently

$ cordova platform remove ios  
$ cordova platform add ios

worked, used “ionic platform remove ios” before, which didn’t work. Still no solution for the other problem though ☹.
