Cocoapods error Could not read from remote repository.

  在终端运行 pod install 出现下面error

[!] Pod::Executable pull
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

   解决方法,在终端输入:

 gem update --system

   接着在输入:

sudo gem install cocoapods

    

 

你可能感兴趣的:(ios,CocoaPods)