上传代码到Cocoapods

版权声明:本文为博主原创文章,欢迎转载。 https://blog.csdn.net/chen12302asd/article/details/82113589

如何上传自己的代码到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" => "[email protected]" }
  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

猜你喜欢

转载自blog.csdn.net/chen12302asd/article/details/82113589
今日推荐