CocoaPods基础篇之创建私有 repo
来源:互联网 发布:网络暴力 韩国电影 编辑:程序博客网 时间:2024/06/05 23:41
1、创建一个空的 repository
我是在github上创建的 : https://github.com/zhiguangqiao/cocoapod-repo.git
创建完之后什么都没有,如图
2、在终端添加这个 repo
执行pod repo add 命令添加 repo
$pod repo add zhiguang-repo https://github.com/zhiguangqiao/cocoapod-repo.gitCloning spec repo `zhiguang-repo` from `https://github.com/zhiguangqiao/cocoapod-repo.git`
执行 pod repo list 查看repo列表
$pod repo listmaster- Type: git (master)- URL: https://github.com/CocoaPods/Specs.git- Path: /Users/qiaozhiguang/.cocoapods/repos/masterxsl-mobile-cocoaspecs- Type: git (master)- URL: http://gitlab.xsl.com:10080/mobile/cocoaspecs.git- Path: /Users/qiaozhiguang/.cocoapods/repos/xsl-mobile-cocoaspecszhiguang-repo- Type: git (unknown)- URL: https://github.com/zhiguangqiao/cocoapod-repo.git- Path: /Users/qiaozhiguang/.cocoapods/repos/zhiguang-repo3 repos
可以看到已经添加成功,由于 新建的那个 repository 是空的,所有 这个 repo 下面 也是空的,什么都没有如下命令
$cd ~/.cocoapods/repos/zhiguang-repo/$ls -a. .. .git
3、向新创见的 repo 中添加一个 podspec 文件
为了演示,我使用以前创建好的现成的 git 项目 https://github.com/zhiguangqiao/QZCrashLogManager
源码如图:
将 https://github.com/zhiguangqiao/QZCrashLogManager.git 克隆到本地
$git clone https://github.com/zhiguangqiao/QZCrashLogManager.gitCloning into 'QZCrashLogManager'...remote: Counting objects: 349, done.remote: Total 349 (delta 0), reused 0 (delta 0), pack-reused 349Receiving objects: 100% (349/349), 141.84 KiB | 12.00 KiB/s, done.Resolving deltas: 100% (67/67), done.Checking connectivity... done.
$cd QZCrashLogManager/
$ls -a. .git .travis.yml LICENSE QZCrashLogManager.podspec _Pods.xcodeproj.. .gitignore Example Pod README.md
执行pod repo push 命令将 podspec 文件push 到 新建的 repo 中
$pod repo push zhiguang-repo QZCrashLogManager.podspec --allow-warningsValidating spec -> QZCrashLogManager (0.1.0) - WARN | description: The description is shorter than the summary.Updating the `zhiguang-repo' repoYour configuration specifies to merge with the ref 'master'from the remote, but no such ref was fetched.Adding the spec to the `zhiguang-repo' repo - [Add] QZCrashLogManager (0.1.0)Pushing the `zhiguang-repo' repoTo https://github.com/zhiguangqiao/cocoapod-repo.git * [new branch] master -> master
4、到 github 页面去 查看 结果如图:
1 0
- CocoaPods基础篇之创建私有 repo
- Cocoapods详解之---创建私有仓库篇
- 创建私有cocoapods repo库 —— Private Pods
- 使用CocoaPods创建私有Spec Repo管理项目公共组件
- CocoaPods创建私有podspec
- 创建私有Cocoapods库
- Cocoapods私有仓库创建
- 创建私有 CocoaPods 仓库
- Cocoapods创建私有库
- Cocoapods 创建私有库
- 使用Cocoapods创建私有podspec
- 使用Cocoapods创建私有podspec
- 使用Cocoapods创建私有podspec
- 使用Cocoapods创建私有podspec
- 使用Cocoapods创建私有podspec
- 使用Cocoapods创建私有podspec
- 使用Cocoapods创建私有podspec
- 使用Cocoapods创建私有podspec
- 文件流的方式上传
- 进程的同步与互斥区分
- java.lang.IllegalStateException: This Activity already has an action bar supplied by the window deco
- 3.3 联结方法
- iOS block回调传值
- CocoaPods基础篇之创建私有 repo
- 我常用的库和插件
- 棋牌-斗牛算法
- 3.3.1 嵌套循环联结
- 使用服务器配置图片做为启动欢迎图片流程图
- Intellij Idea如何导入spring源码
- 3.3.2 排序-合并联结
- vb.net获取系统特殊文件夹路径方法
- 3.3.3 散列联结