标签:
1.创建自己的name.spec文件
$ pod spec create NAME.spec
2.修改自动生成的spec文件
Pod::Spec.new do |s| s.name = ‘XMTopScrollView‘ s.version = ‘0.0.1‘ s.license = ‘MIT‘ s.summary = ‘top scroll category class.‘ s.description = %{XMTopScrollView is a top scroll category class.} s.homepage = ‘https://github.com/rgshio/XMTopScrollView‘ s.author = { ‘rgshio‘ => ‘xzy0819@qq.com‘ } s.source = { :git => ‘https://github.com/rgshio/XMTopScrollView.git‘, :tag => "v#{s.version}" } s.source_files = ‘Classes/XMTopScrollView/*‘ s.ios.frameworks = ‘Foundation‘, ‘UIKit‘ s.ios.deployment_target = ‘7.0‘ # minimum SDK with autolayout s.requires_arc = true end
3.添加tag
$ git tag 0.0.1 $ git push --tags
4.验证spec文件
$ pod spec lint
file:///Users/mac/Desktop/屏幕快照%202015-12-21%20下午3.18.07.png
标签:
原文地址:http://www.cnblogs.com/rgshio/p/5063560.html