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
In xcode 8 and 8 + simply commenting the line worked for me:
#import ...
This is specifically useful if you are trying to extend IOS app build using ionic or cordova to have watchkit or widget control natively.