recherche

Maison  >  Questions et réponses  >  le corps du texte

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

求解决办法!! 非常感谢

PHPzPHPz2893 Il y a quelques jours1040

répondre à tous(2)je répondrai

  • PHPz

    PHPz2017-04-18 09:16:56

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

    Avez-vous fait la troisième étape ?

    répondre
    0
  • 巴扎黑

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

    Entrez :

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

    puis entrez une fois : pod search xxxx

    répondre
    0
  • Annulerrépondre