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

我一直试图运行某人的项目,但无法进行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等上尝试了一堆不同的建议,但仍然遇到了这个问题。 有没有其他想法?

我有同样的问题。 我跟随

  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. “pod install”再次,这是工作。

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