Unable to add a source with url

后端 未结 12 1276
庸人自扰
庸人自扰 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 01:44

    You may need to reset your command line tools:

    sudo xcode-select -r
    

    I was receiving the same error message. Then I noticed, that the wrong Xcode environment was selected (it pointed to an old version which I deleted in the meantime). The command above resets it to the default command line path.

    Alternatively you might have no command line tools installed. In that case, download them from the Apple site and install them.

提交回复
热议问题