찾다

 >  Q&A  >  본문

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

求解决办法!! 非常感谢

PHPzPHPz2771일 전986

모든 응답(2)나는 대답할 것이다

  • PHPz

    PHPz2017-04-18 09:16:56

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

    세 번째 단계는 완료하셨나요?

    회신하다
    0
  • 巴扎黑

    巴扎黑2017-04-18 09:16:56

    입력:

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

    한 번 입력한 후: pod search xxxx

    회신하다
    0
  • 취소회신하다