Skip to content

Plugin not found after upgrade to Cordova iOS 7.1.1 (works in 7.1.0) #95

@rskrthk

Description

@rskrthk

Issue Description

After upgrading from Cordova iOS 7.1.0 to 7.1.1, the plugin cordova-plugin-wkwebview-file-xhr
is no longer recognized at runtime. I get the following error in logs:

ERROR: Plugin 'CDVWKWebViewFileXhr' not found, or is not a CDVPlugin

This setup worked fine on Cordova iOS 7.1.0.

Steps to Reproduce

  1. Create a new Cordova project.
  2. Add platform: cordova platform add ios@7.1.1
  3. Add plugins:
    • cordova-plugin-wkwebview-file-xhr
    • (default plugins like device, splashscreen, whitelist, etc.)
  4. Build and run on iOS.
  5. Open Xcode logs.

Expected Result

  • CDVWKWebViewFileXhr should load and register as a CDVPlugin.
  • XHR/fetch to local files should be allowed via the plugin.

Actual Result

  • Runtime error:

ERROR: Plugin 'CDVWKWebViewFileXhr' not found, or is not a CDVPlugin

  • The plugin is listed in cordova plugin list.
  • The plugin source exists under platforms/ios/Plugins.

Environment

  • Cordova CLI: 12.0.0
  • Cordova iOS: 7.1.1 (works on 7.1.0)
  • Xcode: 16.4
  • Salesforce Mobile SDK: 13.0.2 (hybrid app)

Additional Notes

  • Possibly related to changes in Cordova iOS 7.1.1 plugin registration.
  • Same app + plugin combination worked fine with Cordova iOS 7.1.0.
  • Cross-posted similar report on apache/cordova-ios.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions