美文网首页
让自己的sdk添加Cocoapods支持

让自己的sdk添加Cocoapods支持

作者: 因帅遭刀砍 | 来源:发表于2018-10-15 16:07 被阅读0次

1.Github上创建项目并下载到本地管理(具体步骤不接受,可以看笔者的上一篇文章->ios项目用github管理)

2.创建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文件可以直接去拷贝别人的文件

相关指令

创建.podspec文件

pod lib lint test.podspec

验证自己的podspec文件格式的有效性

pod lib lint

推送版本

git tag 1.1.8

git push --tags

直接发布

pod trunk push ibos.podspec  --allow-warnings

参考文章https://www.jianshu.com/p/950026d788bd

相关文章

网友评论

      本文标题:让自己的sdk添加Cocoapods支持

      本文链接:https://www.haomeiwen.com/subject/odwfzftx.html