Unable to add a source with url

后端 未结 12 1469
庸人自扰
庸人自扰 2021-02-04 01:19

[!] Unable to add a source with url git@github.com:CocoaPods/Specs.git named master-1. You can try adding it manually in ~/.cocoapods/repos

12条回答
  •  南旧
    南旧 (楼主)
    2021-02-04 02:07

    I was getting the same error with only difference that there was different URL. I was trying to install private pods from private repository. What helped is to add ssh-key to profile.

    1. Generate ssh-key using this guide: https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/. Hope this helps.
    2. Add it in your profile settings on Bitbucket(or Github or whatever you are using)

提交回复
热议问题