Cordova ios app build error in jenkins.Fatal error: 'Cordova/CDVViewController.h' file not found Cordova ios app build error in jenkins.Fatal error: 'Cordova/CDVViewController.h' file not found jenkins jenkins

Cordova ios app build error in jenkins.Fatal error: 'Cordova/CDVViewController.h' file not found


-> Select your in Xcode "TARGETS".-> Go to "Build Settings" tab.

-> Make sure that the filter is set to "All" and not "Basic".

-> Search "Search Paths" -> "Header Search Paths"

-> Double click and add this path:Xcode 6.xadd $(OBJROOT)/UninstalledProducts/include

Xcode 7.xadd $(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include

-> Now clean the Project and then restart the Xcode.

Able to "Archive".


I had similar problem with my cordova project. Problem was really dummy:Instead of opening project/platforms/ios/projectName.xcodeproj open whole directory: project/platforms/ios/ (double click).