讓自己的sdk添加Cocoapods支持

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

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容