欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

上传代码到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

文件目录:

上传代码到Cocoapods

运行结果:

上传代码到Cocoapods

搜索结果:

pod search CCYPodsTest!

上传代码到Cocoapods

参考文章:

上传自己代码到Cocoapods

上传代码到cocoaPods

把自己写的代码上传到CocoaPods

相关标签: cocoapods