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: 
I had the same problem for a couple of weeks. Now I found the answer [here](https://cordovablogsblogs.wordpress.com/2015/12/29/cdvplugin-h-file-not-found-in-cordova-as-component-cleaver/)

If you want to add a new configuration by duplicating for example "Debug" to be able to change some build setting, you have to add the same configuration to the **CordovaLib** sub-project. You have to make sure that the **CordovaLib** sub-project has the same set of configurations as your main project. Otherwise the build folder for the Cordova Project is different than the build folder of the main project. Thus files like CDVViewController.h can not be found.

1. Select CordovaLib sub-project
2. Click on the project icon (above the Targets)
3. Select Info tab
4. Expand Configurations

Add the same set of configurations as in the main project:

1. Click + button
2. Select Duplicate "Release" Configuration or "Debug" Configuration, depending on your needs
3. Give the right name for configuration. Copy-paste it from main project settings.

Adding "$(OBJROOT)/UninstalledProducts/$(PLATFORM\_NAME)/include" to the project Header Search Paths only solves issues with archiving release builds.
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...