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

发布于 2022-09-02 23:47:49 字数 891 浏览 8 评论 0

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

求解决办法!! 非常感谢

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

清醇 2022-09-09 23:47:49

输入:

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

后在一次输入:pod search xxxx

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文