美文网首页
pod私有库建立

pod私有库建立

作者: 谭谭谭思密达 | 来源:发表于2019-01-21 13:53 被阅读21次
  1. 远程仓库新建repository 作为podSpec
  2. 远程仓库clone本地 pod repo add <Specs_name> <git_url>
  3. 新建本地repository pod lib create
  4. Finder中找到PodDemo/Classes, 编写代码文件以及podspecs文件。执行pod install
  5. 远程仓库新建对应项目, 并同步:
    ① git add .
    ② git commit -m”commit message”
    ③ git remote add origin https://<远程仓库地址>
    ④ git push origin master
    git branch --set-upstream-to=origin/master master //关联本地分支与远程分支
    git push —tags // 推送tag
    git tag ‘0.1.2’ // 打tag
  6. 推送podspecs到远程索引库 pod repo push <Specs_name> <local.specs>

相关文章

网友评论

      本文标题:pod私有库建立

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