我們有私人椰子樹。當我鍵入pod repo
:Cocoapods(私人)無法找到規格
company-private
- Type: git (origin)
- URL: ssh://[email protected]//path/git/PrivateCocoapods
- Path: /Users/Username/.cocoapods/repos/company-private
master
- Type: git (origin)
- URL: https://github.com/CocoaPods/Specs.git
- Path: /Users/Username/.cocoapods/repos/master
我已經進入~/.cocoapods/repos
:
$ ls
company-private master
$ cd company-private
$ ls
Specs
$ cd Specs:
$ ls
MyProject
$ cd MyProject:
$ ls
0.0.19 0.0.2 0.0.5
$ cd /0.0.5:
$ ls
MyProject.podspec
在另一個項目中.podfile
我想:
pod 'MyProject', '0.0.5'
而且pod install
或pod update
後,我得到:
$ pod install
Analyzing dependencies
[!] Unable to find a specification for `MyProject (= 0.0.5)`
有沒有人知道爲什麼它不起作用..?
---編輯---
我可以簡單地輸入pod install
重現它的任何計算機上。它以前沒有像這樣工作。我使用pod repo push company-private MyProject.podspec
推送到服務器。它在一週前工作。今天我用同樣的方式推出新版本,但是用--allow-warnings
標誌。當我試圖碰撞版本0.0.19
它不是已經工作。我克隆了回購協議,並在其中添加了Spec文件夾(因此您現在可以在ls
上看到它),但它仍然無法正常工作。
- EDIT2 -
的詳細輸出:
$ pod install --verbose
Preparing
Analyzing dependencies
Updating spec repositories
$ /usr/local/bin/git rev-parse >/dev/null 2>&1
$ /usr/local/bin/git rev-parse >/dev/null 2>&1
Updating spec repo `master`
$ /usr/local/bin/git pull --ff-only
From https://github.com/CocoaPods/Specs
4715d39..f21e61b master -> origin/master
Updating 4715d39..f21e61b
Fast-forward
Specs/ISO8601-re2c/0.3.1/ISO8601-re2c.podspec.json | 24 ++++++
Specs/Mobily/2.0.77/Mobily.podspec.json | 91 ++++++++++++++++++++++
Specs/NJISO8601/0.2.2/NJISO8601.podspec.json | 22 ++++++
3 files changed, 137 insertions(+)
create mode 100644 Specs/ISO8601-re2c/0.3.1/ISO8601-re2c.podspec.json
create mode 100644 Specs/Mobily/2.0.77/Mobily.podspec.json
create mode 100644 Specs/NJISO8601/0.2.2/NJISO8601.podspec.json
Inspecting targets to integrate
Using `ARCHS` setting to build architectures of target `Pods`: (``)
Finding Podfile changes
- MyProject
Resolving dependencies of `Podfile`
Finished resolution (0 steps) (Took 0.006555 seconds) (2015-03-13 15:06:41 +0100)
[!] Unable to find a specification for `MyProject (= 0.0.5)`
什麼版本你正在使用椰子樹嗎?這發生在我嘗試'0.36.0'測試版本時 - 它需要在podfile中明確指定源存儲庫 – 2015-03-13 14:19:23
@JakubVano是的。我剛更新到0.36.0。 Atm我在他們的github上報告了這個問題。因爲它不應該這樣工作? – Vive 2015-03-13 14:20:13
我非常確定我已經閱讀過某個地方,這是預期的行爲 - 它必須與一些現有的豆莢不與新建築兼容到框架功能 – 2015-03-13 14:22:58