---
title: "Cocoapods error  Could not read from remote repository."
author: "小嗷喏"
date: "2014-02-12T20:37:28Z"
tags: ["iOS"]
categories: ["移动开发"]
slug: "cocoapods-error-could-not-read-from-remote-repository"
draft: false
lastmod: "2014-02-20T13:53:27Z"
id: 2014761
url: "https://unremittingly.iteye.com/blog/2014761"
---

在终端运行 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
```