Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: cordova-ios@4.4.0
-
Component/s: cordova-ios
-
Labels:None
-
Environment:
iOS
Description
Build error Cordova/CDVViewController.h file not found
Turns out the CordovaLib.xcodeproj reference in the template's project is not found.
Fix in the .pbxproj:
Change
{ isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; path = "CordovaLib.xcodeproj"; sourceTree = CORDOVALIB; };
to
{ isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; path = CordovaLib/CordovaLib.xcodeproj; sourceTree = "<group>"; };
Note that I have not tested this change with an older Xcode 8 (< 8.3.2), so that might complicate things.
iOS platforms in the wild older than cordova-ios@4.4.0 will need a hook to transform the pbxproj if the developer upgraded to Xcode 8.3.2