I deleted the ios folder(after taking its backup). Then added the plugin, and then recreated the ios platform again cordova platform add ios
.
Then in Plugins folder, i added the .h and .m file of the plugin(here it was clipBoard plugin). That's it. It works now.