Unable to add a source with url

后端 未结 12 1244
庸人自扰
庸人自扰 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条回答
  •  -上瘾入骨i
    2021-02-04 02:03

    Meet the same error and I have solved it by :

    1. Open your terminal
    2. Go to the directory    : cd /User/YOUR_NAME/.cocoapods/repos/
    3. remove the master file : rm -rf master
    4. Clone the CocoaPods    : git clone https://git.coding.net/CocoaPods/Specs.git ~/.cocoapods/repos/master
    

    Note. I add the target path ~/.cocoapods/repos/master to avoid the mistake that your current file path is not ~/.cocoapods/repos/master

    5. Run the setup          : pod setup 
    

提交回复
热议问题