Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-12050 Add support for integrating Cordova for iOS with Carthage
  3. CB-12577

Fix module import warnings when using Cordova.framework (Carthage)

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • cordova-ios@4.4.0
    • cordova-ios
    • None

    Description

      When adding Cordova.framework after adding and building it using Carthage, and using module import:

      @import Cordova;
      

      then adding this to my code and building:

      CDVViewController* cdv = [CDVViewController new];
      

      I get two lexical or preprocessor issue warnings:

      <module-includes>:1:1: warning: umbrella header for module 'Cordova' does not include header 'CDV.h' [-Wincomplete-umbrella]
      #import "Headers/Cordova.h"
      ^
      <module-includes>:1:1: warning: umbrella header for module 'Cordova' does not include header 'CDVCommandDelegateImpl.h' [-Wincomplete-umbrella]
      2 warnings generated.
      /Users/shazron/Desktop/TestCarthage/TestCarthage/AppDelegate.m:21:24: warning: unused variable 'c' [-Wunused-variable]
          CDVViewController* c = [CDVViewController new];
                             ^
      3 warnings generated.
      

      Attachments

        1. moduleimport.png
          27 kB
          Shazron Abdullah

        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: