I added Cordova as a component to my iOS project. Adding a custom plugin leads to the error, despite that the plugin works in a Cordova-only project:
\'CDVPl
I had this issue using Cordova. Come to find out my CordovaLib folder under the ios platform directory vanished.
I did:
cordova platform remove ios
then
cordova platform add ios
...and this fixed the issue.