2014-01-08 35 views
0

我通過添加子模塊在我的項目中集成了Grabkit。我想通過可可豆莢添加grabkit。我很多網上衝浪。我創建了一個pod文件。在現有項目中集成Grabkit與可可豆莢

pod 'Grabkit', :git => 'https://github.com/pierrotsmnrd/grabKit.git' 

我從https://github.com/CocoaPods/Specs/blob/05def154728953519546ee0c648a82f293d02f4f/grabKit/1.4/grabKit.podspec

當我運行pod installpod update我獲得以下錯誤下載最新podspec文件:

$ pod update 
Analyzing dependencies 

CocoaPods 0.29.0 is available. 

Pre-downloading: `Grabkit` from `https://github.com/pierrotsmnrd/grabKit.git` 
[!] No podspec found for `Grabkit` in /path-of-my-project/Pods/Grabkit/Grabkit.podspec 

請建議!

回答

0

我不確定你爲什麼要下載最新的podspec。規格由pod命令行工具自動管理,~/.cocoapods中有整個規格回購的克隆。問題在於這種情況。這是grabKit注意小寫字母'g'

+0

我想將它與pod集成的原因是因爲當它作爲子模塊添加並推動git時,我的團隊正面臨着集成問題。我想知道爲什麼。所以我想用豆莢做。 小寫'g'的意思是 莢'grabKit',::git =>'https://github.com/pierrotsmnrd/grabKit.git' 而不是'GrabKit' – Sourabh

+0

是的。至少在第一次出現時。第二個取決於你的URL我想。 –