Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-12673

ios platform does not build on Xcode 8.3.2

    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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                shazron Shazron Abdullah
                Reporter:
                shazron Shazron Abdullah
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: