Search code examples
rubyrubymotion

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


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.


Solution

  • 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.