Many people report problems with this. I tried all the suggested solutions and nothing worked.
What worked is:
“pod cache clean --all”
“rm -rf ~/Library/Caches/Cocoapods”
“sudo gem install cocoapods”
get a new copy of the projects from the downloads area…
and it works.
Every single time cocoapods is involved, it’s the problem.