If you are like me, the project is still using the pod to manage the libraries and frameworks. We need to clean the projects from time to time. The following command can help us to clean all the cached pods. In the root directory:
pod deintegrate
pod cache clean --all
pod install
This will take a while if you have a large amount of pods in your project.