美文网首页
Pod 1.8+制作 pod库教程

Pod 1.8+制作 pod库教程

作者: 格雷s | 来源:发表于2020-02-20 14:50 被阅读0次

    1.创建spec

    pod spec create GLCollectionLayout

    2.编辑spec

    3.添加git代码仓库

    4.打tag

    git tag “1.0.7”
    git push --tags
    

    5.验证spec

    pod spec lint GLCollectionLayout.podspec --verbose --allow-warnings
    

    Lint后,可能会创建trunk分支,完成后pod repo remove trunk

    6.准备上传cocoapods仓库
    查看trunk信息:

    pod trunk me
    
    image.png

    如果没有注册,需要先注册:

    pod trunk register xxx@qq.com "gelei" --verbose
    

    注册后需要去邮箱点击链接验证

    验证完后查看trunk信息

    7.上传:

    pod trunk push GLCollectionLayout.podspec --allow-warnings
    
    image.png

    8移除trunk

    pod repo list
    pod repo remove trunk
    

    相关文章

      网友评论

          本文标题:Pod 1.8+制作 pod库教程

          本文链接:https://www.haomeiwen.com/subject/btexqhtx.html