ios - pod repo中明明存在的podspec 却search 不到
PHPz
PHPz 2017-04-18 09:14:56
0
2
934

私有库repo中有这个PHSecurityUtils.podspec:

➜ PHSpecs git:(master) j .cocoa /Users/AstonWorkMac/.cocoapods ➜ .cocoapods ls repos ➜ .cocoapods cd repos/PHSpecs ➜ PHSpecs git:(master) ls PHDateSelect PHSecurityUtils

然而pod search 找不到

➜ PHSpecs git:(master) pod search PHSecurity [!] Unable to find a pod with name, author, summary, or descriptionmatching `PHSecurity` ➜ PHSpecs git:(master)

已尝试过

  1. 删除master repo,重新pod update,相当漫长,master repo有750+M,结果一样。

  2. 删除PHSpecs repo,再次pod repo add PHSpecs http://..../PHSpecs.git,仍然不行。

注:pod version 1.0.1,

换同事电脑 pod version 0.39.0,同样的操作步骤,创建的私有库可以搜索到。

求解决办法!! 非常感谢

PHPz
PHPz

学习是最好的投资!

reply all (2)
PHPzhong

https://guides.cocoapods.org/making/private-cocoapods.html

Have you done the third step?

    巴扎黑

    Enter:

    rm ~/Library/Caches/CocoaPods/search_index.json

    Enter once: pod search xxxx

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!