Being back after a long time!
You know I have to be here and there, everywhere!
So there was this error, wasting my days from a long time!
And whenever I do an update, this used to come back on my ios builds.
Plugins/cordova-plugin-whitelist/CDVNavigationWhitelistPlugin.h:23:9: fatal error: 'Cordova/CDVURLRequestFilter.h' file not found #import <Cordova/CDVURLRequestFilter
And I searched internet for long (2 months I recall!) but no solutions!
Earlier, any problem I used to have, I simply did
cordova platform remove ios
cordova platform add ios
And it used work like a charm!
But, not this time!
Stumbled upon this one today! (I dont know why not earlier, anyways – here is the link!)
The key point to note over there is
Cordova-ios version 4.0 and greater does not require the cordova-plugin-whitelist plugin to be installed, however it’s configuration details apply to iOS too.
Why Cordova? Why you do this? Would it not have been helpful to keep some helpful suggestions when showing the errors, or same backward compatibility!
So the solution is :
execute the following command
cordova plugin remove cordova-plugin-whitelist
And the build was now prepared error-free, smoothly! Feels relieved! I was done blaming Xcode for all the issues!
Please note, however if you use the same code space to prepare build for android (where this plugin is still needed), you might have to create a copy of the project and add the plugin to the android version of the project separately. (Yes we need options to add different plugins to different platforms of the same project!)
Hope this helps someone! Cheers!