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

ios platform does not build on Xcode 8.3.2

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • cordova-ios@4.4.0
    • cordova-ios
    • None
    • 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

              shazron Shazron Abdullah
              shazron Shazron Abdullah
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: