上传代码到Cocoapods

如何上传自己的代码到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" => "22377832@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

文件目录:

文件目录

运行结果:

代码上传cocoapods

搜索结果:

pod search CCYPodsTest!

搜索结果

参考文章:

上传自己代码到Cocoapods

上传代码到cocoaPods

把自己写的代码上传到CocoaPods

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值