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

(Swift 4) Plugin class not found

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.1.0
    • cordova-ios, cordova-osx
    • None

    Description

      After upgrading to Xcode 9.2 (Swift 4), some plugins were not found. Plugin method execution fails with the following message: "CDVPlugin class X (pluginName: Y) does not exist".

      Closer inspection reveals that NSClassFromString returns nil for plugins implemented in Swift. Prefixing the class with the module name fixes the issue.

      Attachments

        Activity

          People

            tripod Tobias Bocanegra
            alalama Alberto Lalama
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: