美文网首页
上传到cocopods

上传到cocopods

作者: 加州旅馆1116 | 来源:发表于2020-05-11 11:55 被阅读0次

    上传代码 github / cocoapods
    1: pod lib create 库名

    2:github 创建库

    3: 将本地库名 上传到 刚创建的github仓库中

    5: 配置 .podspec

    6:执行pod spec lint 检查 .podspec 是否配置正确

    7:pod trunk register 邮箱 ‘用户名’ --verbose (第二次不知道还用不用) //这时候会向邮箱发送一个验证码

    8:pod trunk me 验证一下

    9:pod trunk push 耐心等待上传 如果失败(pod trunk push --allow-warnings) 如果报链接不上cocopods 关掉命令行工具再重新打开即可

    10:rm ~/Library/Caches/CocoaPods/search_index.json 更新本地索引

    git add .
    git commit -m "sad"
    git push origin master
    pod repo push AprilCocoaPodsSpecs AprilLocalizable.podspec --allow-warnings 或者: pod trunk push --allow-warnings
    
    
    git tag 0.1.4
    git push --tags
    

    相关文章

      网友评论

          本文标题:上传到cocopods

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