建立Pod私有库

source仓库

  • gitlab上建立MyPodSpecs.git

  • terminal

# pod repo add [Private Repo Name] [GitHub HTTPS clone URL]
$ pod repo add MyPodSpecs https://xxx/MyPodSpecs.git

私有库

  • 创建私有库
pod lib create MyLib
  • 提交至服务器
git add .
$ git commit -s -m "初始化MyLib 库"
$ git remote add origin git@xxx/MyLib.git           #添加远端仓库
$ git push origin master     #提交到远端仓库
$ git tag -m "first release" "0.1.0" #打上标签,这个很重要
$ git push --tags     #推送tag到远端仓库
  • 编辑私有库的podspec,加入相关依赖库

  • 校验私有库

# --use-libraries 包含静态库
pod lib lint --use-libraries --allow-warnings
  • 推送远程source库
pod repo push MusicPodSpecs  MusicUMeng.podspec --allow-warnings --use-libraries
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容