CocoaPods发布(CocoaPods trunk)

2017-01-24  本文已影响30人  amisarex

pod trunk注册

QQ20161228-162343.jpg QQ20161228-154028.jpg QQ20161228-162300.jpg QQ20161228-162153.jpg

pod trunk me验证注册

pod trunk me
QQ20161229-205349.jpg

创建podspec文件

pod spec create
Pod::Spec.new do |spec|
  spec.name             = 'Reachability'
  spec.version          = '3.1.0'
  spec.license          = { :type => 'BSD' }
  spec.homepage         = 'https://github.com/tonymillion/Reachability'
  spec.authors          = { 'Tony Million' => 'tonymillion@gmail.com' }
  spec.summary          = 'ARC and GCD Compatible Reachability Class for iOS and macOS.'
  spec.source           = { :git => 'https://github.com/tonymillion/Reachability.git', :tag => 'v3.1.0' }
  spec.source_files     = 'Reachability.h,m'
  spec.framework        = 'SystemConfiguration'
  spec.requires_arc     = true
end

验证spec

pod spec lint

提交pods

pod trunk push xxx.podspec
QQ20161228-162435.jpg

pod install

pod 'HJMacros',         '~> 0.3.2'

参考文章

上一篇 下一篇

猜你喜欢

热点阅读