首页 > pod repo中明明存在的podspec 却search 不到

pod repo中明明存在的podspec 却search 不到

私有库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,同样的操作步骤,创建的私有库可以搜索到。

求解决办法!! 非常感谢


输入:

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

后在一次输入:pod search xxxx


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

第三步做了没?

【热门文章】
【热门文章】