Phonegap CDVViewController.h file not found when Archiving for iOS Phonegap CDVViewController.h file not found when Archiving for iOS xcode xcode

Phonegap CDVViewController.h file not found when Archiving for iOS


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

1.Double click the <multiple values> and you can add this in.

2.Change $(OBJROOT)/UninstalledProducts/include to $(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include

enter image description here


On Xcode 7.1, you would need to update header search paths field from $(OBJROOT)/UninstalledProducts/include to $(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include

You can find header search paths under build settings -> search paths


Managed to fix it.

These were missing from "Header Search Path" in the build setting of my TARGET settings:

"$(TARGET_BUILD_DIR)/usr/local/lib/include""$(OBJROOT)/UninstalledProducts/include""$(BUILT_PRODUCTS_DIR)"

Get the solution form multiple sources:

Upgrading Cordova iOS (Stepts from 31) http://docs.phonegap.com/en/2.0.0/guide_upgrading_ios_index.md.html#Upgrading%20Cordova%20iOS

Bug report https://issues.apache.org/jira/browse/CB-1122

Discussion at groups.google.com/forum/?fromgroups=#!topic/phonegap/IcR8-ijrUfk

Discussion at groups.google.com/forum/?fromgroups=#!topic/phonegap/PzqZEm8QKmc