上传自己的轮子-CocoaPods(续)

Author Avatar
Rzk 10月 10, 2017
  • 在其它设备中阅读本文章

上次我们上传了自己的轮子,这次我们就更新提交一下 这个轮子!

步骤

  1. 更新代码到github
  2. 修改.podspec文件
  3. 上传到CocoaPods

详细

  1. 更新代码

    1. 上传代码
      git add *
      
      git commit -m "update tag 0.0.2"
      
      git push origin -u master
      

      git add.png

    2. 打tag
      git tag 0.0.2
      
      git push --tags
      

      git tag.png

  2. 修改.podspec文件

    修改关键数据s.versions.source

    s.version = "0.0.2"
    
    s.source = { :git => "https://github.com/rensss/R_category.git", :tag => "0.0.2" }
    
  3. 上传

    pod trunk push R_category.podspec --allow-warnings
    

    pod trunk push.png

结束

搞定收工

上篇上传自己的轮子_CocoaPods