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

Can no longer import CDVPlugin.h from plugin Objective-C++ code

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6.0
    • 4.1.0
    • cordova-osx
    • XCode 4.6.1
      OSX 10.8.3

    Description

      As of 2.6.0, importing CDVPlugin.h from C++ source code results in compile errors:

      /CordovaLib/Classes/CDVPlugin.h:26:17: Default initialization of an object of const type 'NSString *const'
      /CordovaLib/Classes/CDVPlugin.h:27:17: Default initialization of an object of const type 'NSString *const'
      /CordovaLib/Classes/CDVPlugin.h:28:17: Default initialization of an object of const type 'NSString *const'
      /CordovaLib/Classes/CDVPlugin.h:29:17: Default initialization of an object of const type 'NSString *const'

      Install this plugin in a Cordova 2.6.0 project to reproduce:
      https://github.com/wildabeast/BarcodeScanner

      Attachments

        Activity

          People

            shazron Shazron Abdullah
            wildabeast Ryan Willoughby
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: