In my case, I just fixed below
- Open terminal under project folder
pod deintegratesudo gem install cocoapods-cleanpod clean- Open the project and delete (if it’s still there) the “Pods” folder that should be red
pod setup(This may take some time)pod install