cocoapods创建私人pods,pod搜索失败

时间:2016-11-03 07:08:31

标签: ios ruby cocoapods

cocoapods创建私人吊舱

  

$ pod repo添加XPFun http://gitlab.91jkys.com/iOS/XPFunList.git

     

$ pod lib创建XPFunList

     

$ git add&承诺与标签......

     

$ pod lib lint

     
      
  • XPFunList(0.1.0)
  •   
  • XPFunList通过验证。
  •   
     

$ pod repo push XPFun XPFunList.podspec

     

$ pod搜索XPFunList

反而发生了什么?

  

无法找到包含与XPFunList匹配的名称,作者,摘要或说明的广告连播

CocoaPods Environment

  

$ pod --version

     

$ 1.1.0

     

$ gem --version

     

$ 2.6.8

     

$ ruby​​ -v

     

$ ruby​​ 2.0.0p648(2015-12-16修订版53162)[universal.x86_64-darwin15]

     

$ xcode Version 8.0(8A218a)

演示问题的项目

  

$ pod repo list

     
      
  • 主人......

  •   
  • XPFun ......

  •   
  • 2 repos

  •   

XPFunList.podspec

Pod::Spec.new do |s|
  s.name             = 'XPFunList'
  s.version          = '0.1.0'
  s.summary          = 'XPFunList.'
  s.description      = <<-DESC
XPFunList function list
                       DESC

  s.homepage         = 'http://originxp.com'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'originxp' => 'originxp@163.com' }
  s.source           = { :git => 'http://gitlab.91jkys.com/iOS/XPFunList.git', :tag => s.version.to_s }

  s.platform     = :ios, '7.0'
  s.requires_arc = true

  s.source_files = 'XPFunList/Classes/**/*.{h,m}'
  s.frameworks = 'UIKit'
  s.dependency 'AFNetworking', '~> 3.1.0'
end

我试过这个方法

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

不适合我

1 个答案:

答案 0 :(得分:0)

这对我有用。 rm -rf "${HOME}/Library/Caches/CocoaPods"