无法运行pod安装 - 权限错误

时间:2015-03-13 23:16:58

标签: ios ruby cocoapods

我一直试图管理某个人的项目,但无法安装pod。

pod install
Analyzing dependencies
Pre-downloading: `KNMultiItemSelector` from `https://github.com/kentnguyen/KNMultiItemSelector.git`
Downloading dependencies
Installing AFNetworking (2.5.1)
Installing Amplitude-iOS (2.2.4)
Installing Analytics (1.11.2)
Installing AppsFlyer-SDK (2.5.3.10)
Installing Bugsnag (4.0.3)

[!] Error installing Bugsnag
[!] /usr/bin/git submodule update --init

Submodule 'KSCrashModule' (git@github.com:bugsnag/KSCrash.git) registered for path 'KSCrashModule'
Cloning into 'KSCrashModule'...

Permission denied (publickey).

fatal: Could not read from remote repository.



Please make sure you have the correct access rights

and the repository exists.

Clone of 'git@github.com:bugsnag/KSCrash.git' into submodule path  'KSCrashModule' failed

我在Stack Overflow等上尝试了很多不同的建议,但仍然遇到了这个问题。任何人都有其他想法吗?

2 个答案:

答案 0 :(得分:1)

我有同样的问题。我跟着

  1. 检查现有的SSH密钥(https://help.github.com/articles/checking-for-existing-ssh-keys/

  2. 将SSH密钥添加到ssh-agent(https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/#adding-your-ssh-key-to-the-ssh-agent

  3. 然后输入正确的SSH密钥密码。

  4. 再次
  5. “pod install”,这是工作。

答案 1 :(得分:0)

我最终删除了“Bugsnatcher”podfile并重新安装。之后我在另一个podfile中遇到了另一个错误,但也重新安装了那个。之后建成的项目。

相关问题