美文网首页
cocoapods specs下载到本地

cocoapods specs下载到本地

作者: summer_code | 来源:发表于2024-04-09 14:50 被阅读0次

    错误信息:

    [!] Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `cocoapods`.
    

    解决方案

    1.找到cocoapods所在的路径.如果找不到,按command+⬆️+. 显示隐藏文件夹

    2.使用终端查看真实路径

    cd ~/.cocoapods/repos
    

    3.执行如下命令

    git clone https://github.com/CocoaPods/Specs.git master
    

    4.过程较长,慢慢等待,成功后就可以了

    5.看到下面这样的就算成功了

    colliding group is in the working tree:
    
      'Specs/1/2/b/VietIdSDK-iOS/1.4.7-Kenh14chat/VietIdSDK-iOS.podspec.json'
      'Specs/1/2/b/VietIdSDK-iOS/1.4.7-kenh14chat/VietIdSDK-iOS.podspec.json'
      'Specs/5/1/1/Governor/1.0.11-APPS-1582-beta11/Governor.podspec.json'
      'Specs/5/1/1/Governor/1.0.11-apps-1582-beta11/Governor.podspec.json'
    

    相关文章

      网友评论

          本文标题:cocoapods specs下载到本地

          本文链接:https://www.haomeiwen.com/subject/pqefxjtx.html