Unable to find a specification for `AFNetworking (~> 2.1.0)`

Sherwyn Goh picture Sherwyn Goh · Feb 14, 2014 · Viewed 9.9k times · Source

am on a rubymotion project

have required afmotion in rake file, gem file and bundle installed. I get the above error when I try to run rake pod:install.

Any ideas? Thanks in advance.

Answer

andi picture andi · Feb 14, 2014

Make sure you have the cocoapods gem installed, then run pod setup
If for some reason that doesn't solve the problem, remove the cocoapods directory entirely with
rm -rf ~/.cocoapods and try to pod setup again.