iOS: Phonegap / Cordova CDVViewController.h file not found when Archiving or Running
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:
$(OBJROOT)/UninstalledProducts/include to BuildSettings->Header Search Paths
$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include to BuildSettings->Header Search Paths