Ok, the best way to clean up certain pods related issues is to clean up everything and run again.
I have this standard procedure that works whenever there is a linking error with cocoaPods.
1.Keep a backup! (This may completely break!)
2.Do a pod deintegrate Use this library --> https://github.com/CocoaPods/cocoapods-deintegrate to call the pod deintegrate command to clean up everything with cocoa pods.
3.Clean up the project settings, by removing everything that was edited. (If you did it for some framework to work, then keep it) Remove search paths, framework header paths, other linker flags Remove configs, Remove Flags, Remove PCH if any Anything that is bold in build settings is edited, whatever is not done explicitly by you for some purpose, delete it to restore back to default value.
4.Delete the workspace, and any pod file from the directory.
4.Paste Back your main pod file from the backup.
5.Delete data from derivedFolder, window-->projects-->delete derived data
6.Do a clean (product --> clean), and even clean build folder (holding option, do product --> clean build folder)
7.Do a pod install
8.Build and run.
Everything should be restored back to happy states!