I’m currently using Cordova 3.0 to develop an iOS App in XCode. The app builds and runs fine in the emulator and also on the testing devices.
The problem appears when I try to archive the app for distribution. The archive fails with the following message:
CDVViewController.h file not found.
To solve you have to add this lines in Header Search Paths:
Xcode 6.x
add $(OBJROOT)/UninstalledProducts/include to BuildSettings->Header Search Paths
Xcode 7.x
add $(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include to BuildSettings->Header Search Paths