Question: I get a 'Cordova/CDVViewController.h' file not found build error when creating a new configuration for a Cordova project. I did try adding "$(OBJROOT)/UninstalledProducts/$(PLATFORM\_NAME)/include" to the project Header Search Paths as suggested in many forums, no luck.

I'm using:

* Cordova 3.4.1
* Xcode 7.2.1

Steps to reproduce:

1. Create a new Cordova project
2. Add ios platform
3. Open Xcode project
4. Run project just to verify it builds and works
5. Go to project build settings and create a new configuration by duplicating "Debug", I called mine "DEV"
6. Edit the default scheme to use the new configuration for Run, Test, Profile, Debug, Release
7. Run the project again
8. Kaboom! - 'Codorva/CDVViewController.h' file not found

Thanks in advance for any help.

Answer: 
In my case, it turned out that something had gone wrong when adding the ios platform (I had a missing image file). I removed the platform with:

```
ionic platform rm ios

```

And then added it back with:

```
ionic platform add ios

```

If this doesn't work, make sure you have the latest Xcode (update using the app store), Cordova and Ionic installed.

```
npm uninstall -g cordova ionic
npm install -g cordova@latest ionic@latest

```

As you can see I am using Ionic with Cordova, if you are not, substitute 'ionic' with 'cordova' or leave it out in the command above.
For me the `$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include` was already in the *Header Search Paths* (using XCode 8). I then added to *User Header Search Paths* the specific path to `CordovaLib` folder, with `recursive` option enabled (for unexperienced XCode users like myself, select the project in the tree view (1st node) to see *"Build Settings"*!!)

But watch out for spaces! After a lot of missings it was safer to just drag the folder from a finder window, and it filled as `$(SRCROOT)/..` (cont.), which was not expected but did work..

Also in `XCode/Preferences/Locations/Custom Paths` I've added a *CORDOVALIB* name with the same folder as before, in the same manner (this time, the full path was used, without the `$(SRCROOT)` thing).

Took me quite some hours to figure all out...