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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: 4.1.0
    • Component/s: cordova-osx
    • Labels:
    • Environment:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: