【发布时间】: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
不适合我
【问题讨论】: