Unable to add a source with url

后端 未结 12 1275
庸人自扰
庸人自扰 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:58

    I had the same problem , actually the problem was that command line was not able to find a path to my Xcode. Therefore the simplest solution that i found was to give a suitable location of xcode.

    For it:

    1. Go to Xcode > Preferences
    2. Choose Location tab
    3. Select the Xcode in Command Line tools:-

    thats it. I hope that works for you. All the best

提交回复
热议问题