赞
踩
我是在github上创建的 : https://github.com/zhiguangqiao/cocoapod-repo.git
创建完之后什么都没有,如图
执行pod repo add 命令添加 repo
- $pod repo add zhiguang-repo https://github.com/zhiguangqiao/cocoa
- pod-repo.git
- Cloning spec repo `zhiguang-repo` from `https://github.com/zhiguangqiao/cocoapod-repo.git`
- $pod repo list
-
- master
- - Type: git (master)
- - URL: https://github.com/CocoaPods/Specs.git
- - Path: /Users/qiaozhiguang/.cocoapods/repos/master
-
- xsl-mobile-cocoaspecs
- - Type: git (master)
- - URL: http://gitlab.xsl.com:10080/mobile/cocoaspecs.git
- - Path: /Users/qiaozhiguang/.cocoapods/repos/xsl-mobile-cocoaspecs
-
- zhiguang-repo
- - Type: git (unknown)
- - URL: https://github.com/zhiguangqiao/cocoapod-repo.git
- - Path: /Users/qiaozhiguang/.cocoapods/repos/zhiguang-repo
-
- 3 repos
- $cd ~/.cocoapods/repos/zhiguang-repo/
- $ls -a
- . .. .git
为了演示,我使用以前创建好的现成的 git 项目 https://github.com/zhiguangqiao/QZCrashLogManager
源码如图:
将 https://github.com/zhiguangqiao/QZCrashLogManager.git 克隆到本地
- $git clone https://github.com/zhiguangqiao/QZCrashLogManager.git
- Cloning into 'QZCrashLogManager'...
- remote: Counting objects: 349, done.
- remote: Total 349 (delta 0), reused 0 (delta 0), pack-reused 349
- Receiving 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 zhiguang-repo QZCrashLogManager.podspec --allow-warnings
-
- Validating spec
- -> QZCrashLogManager (0.1.0)
- - WARN | description: The description is shorter than the summary.
-
- Updating the `zhiguang-repo' repo
- Your 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' repo
- To https://github.com/zhiguangqiao/cocoapod-repo.git
- * [new branch] master -> master
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。