上传代码到Cocoapods
程序员文章站
2022-04-09 19:41:24
...
如何上传自己的代码到Cocoapods。
添加标签:
git tag v0.0.1
git push origin --tags
创建配置文件:
pod spec create CCYPodsTest
配置文件修改:
Pod::Spec.new do |s|
s.name = "CCYPodsTest"
s.version = "0.0.1"
s.summary = "CCY 测试程序."
s.description = "代码上传Pods 程序."
s.homepage = "https://github.com/22377832/CCYPodsTest"
s.license = { :type => "MIT", :file => "LICENSE" }
s.author = { "chen.chongyang" => "aaa@qq.com" }
s.platform = :ios, "8.0"
s.ios.deployment_target = "8.0"
s.source = { :git => "https://github.com/22377832/CCYPodsTest.git", :tag => "v#{s.version}" }
s.source_files = "CCYPodsTest", "CCYPodsTest/Code/*.{h,m}"
s.framework = "UIKit"
s.requires_arc = true
end
文件目录:
运行结果:
搜索结果:
pod search CCYPodsTest!
参考文章:
上一篇: HCL OSPF虚链接实验
下一篇: prefux-list 过滤实验