When you install new pods, you might run into this error:
"framework not found (name of the pod)"
It's a normal error and anyone might get this error after installing pods.
Sometimes developers remove Pods.framework from the folder named "Pods" and that error goes away.
But the issue was something else in my case. I had .xcodeproj file open instead of .xcworkspace and I tried to close the .xcodeproj and open the .xcworkspace file and after a while there was no problem at all. So, when we do 'pod install', it creates an .xcworkspace file for some reason, which include everything in it, like folders and files and pods. And I guess the link must be set to open it form .xcworkspace file only otherwise we might need to add some seperate connection to the frameworks and that's why it says framework not found! I am not sure but that's just my assumption.
Just follow this solution: close the .xcodeproj and open the .xcworkspace file from the project folder
error framework solution