美文网首页
16.更新cocoapod本地索引

16.更新cocoapod本地索引

作者: 枫之叶_小乙哥 | 来源:发表于2020-05-20 16:55 被阅读0次

    1.pod无法搜索第三方库

    WeChat172d9a620bf5aa9a0cd7ed14824cc53c.png

    2.删除本地索引

    energydeiMac:~ energy$ pod search afn
    
    Setup completed
    [!] Unable to find a pod with name, author, summary, or description matching `afn`
    
    // 移除本地索引
    energydeiMac:~ energy$ rm ~/Library/Caches/CocoaPods/search_index.json
    
    // 查询本地索引
    energydeiMac:~ energy$ pod repo list
    
    master
    - Type: git (unknown)
    - URL:  https://github.com/CocoaPods/Specs.git
    - Path: /Users/energy/.cocoapods/repos/master
    
    //  移除master索引
    energydeiMac:~ energy$ pod repo remove master
    
    // 更新
    energydeiMac:~ energy$ git clone https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master
    
    

    相关文章

      网友评论

          本文标题:16.更新cocoapod本地索引

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