Ld: library not found for -lPods-xxxxx


In order to use onesignal-cordova-plugin for ios plugin, there is a dependency which is to install cocoapods and this was also installed. The terminal does the build successfully, however, the Xcode does not build the solution once the IOS folder, solution is created.
The error message is ld: library not found for -lPods-XXXX.
XXXX presents the project name.

I believe I have gone crazy with Google search and applied all the suggestions which appeared to be logical. No luck so far and this is getting frustrated that we may not be able to push out the IOS app soon.
Any valuable suggestion is appreciated. Thanks.