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

求解决办法!! 非常感谢

阅读 9.4k
2 个回答
新手上路,请多包涵

输入:

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

后在一次输入:pod search xxxx

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题