1.Github上創(chuàng)建項(xiàng)目并下載到本地管理(具體步驟不接受,可以看筆者的上一篇文章->ios項(xiàng)目用github管理)
2.創(chuàng)建podspec文件
Pod::Spec.new do |s|
s.name? ? ? ? = "ibos"
s.version? ? ? = "1.1.8"
s.ios.deployment_target = '6.0'
#s.osx.deployment_target = '10.8'
s.summary? ? ? = "mxc A fast and convenient conversion between JSON and model"
s.homepage? ? = "https://github.com/739278252/ibos.git"
s.license? ? ? = "MIT"
s.author? ? ? ? ? ? = { "mxc" => "739278252@qq.com" }
s.social_media_url? = "http://weibo.com/exceptions"
s.source? ? ? = { :git => "https://github.com/739278252/ibos.git", :tag => s.version }
s.source_files? = "iobs_sdk/**/*.{h,m}"
s.vendored_libraries = "iobs_sdk/*.a"
s.requires_arc = true
end
podspec文件可以直接去拷貝別人的文件
相關(guān)指令
創(chuàng)建.podspec文件
pod lib lint test.podspec
驗(yàn)證自己的podspec文件格式的有效性
pod lib lint
推送版本
git tag 1.1.8
git push --tags
直接發(fā)布
pod trunk push ibos.podspec? --allow-warnings
參考文章http://www.itdecent.cn/p/950026d788bd