2015-03-13 68 views
3

我們有私人椰子樹。當我鍵入pod repoCocoapods(私人)無法找到規格

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 installpod 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

什麼版本你正在使用椰子樹嗎?這發生在我嘗試'0.36.0'測試版本時 - 它需要在podfile中明確指定源存儲庫 – 2015-03-13 14:19:23

+0

@JakubVano是的。我剛更新到0.36.0。 Atm我在他們的github上報告了這個問題。因爲它不應該這樣工作? – Vive 2015-03-13 14:20:13

+0

我非常確定我已經閱讀過某個地方,這是預期的行爲 - 它必須與一些現有的豆莢不與新建築兼容到框架功能 – 2015-03-13 14:22:58

回答

10

的CocoaPods版本0.36.0要求你在你的Podfile明確指定源代碼庫,如:

source 'https://github.com/CocoaPods/Specs.git' 
+0

測試0.37.0。顯式源仍然是必需的。 – MasterBeta 2015-05-05 05:57:01

相關問題