[英]cocoapods create private pods ,pod search fail
$ pod repo添加XPFun http://gitlab.91jkys.com/iOS/XPFunList.git
$ pod lib創建XPFunList
$ git添加並提交和標記...
$ pod lib皮棉
- XPFunList(0.1.0)
- XPFunList通過了驗證。
$ pod repo push XPFun XPFunList.podspec
$ pod search XPFunList
找不到名稱,作者,摘要或描述與XPFunList匹配的窗格
$ pod --version
$ 1.1.0
$ gem --version
$ 2.6.8
$紅寶石-v
$ ruby 2.0.0p648(2015-12-16修訂版53162)[universal.x86_64-darwin15]
$ xcode版本8.0(8A218a)
$ pod回購清單
主人...
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〜/庫/緩存/CocoaPods/search_index.json
不適合我
這對我有用。 rm -rf "${HOME}/Library/Caches/CocoaPods"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.