【问题标题】:cocoapods create private pods ,pod search failcocoapods 创建私有 pod,pod 搜索失败
【发布时间】:2017-03-16 16:39:10
【问题描述】:

cocoapods 创建私有 pods

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

$ pod lib 创建 XPFunList

$ git add & commit & tag ...

$ pod lib lint

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

$ pod repo push XPFun XPFunList.podspec

$ pod search XPFunList

发生了什么?

找不到名称、作者、摘要或描述与 XPFunList 匹配的 pod

CocoaPods 环境

$ 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 版本 8.0 (8A218a)

演示问题的项目

$ pod repo 列表

  • 主人...

  • XPFun ...

  • 2 个存储库

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

不适合我

【问题讨论】:

    标签: ios ruby cocoapods


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-05-30
      • 1970-01-01
      • 2012-12-30
      • 2019-12-31
      • 1970-01-01
      • 2013-12-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多