2015-11-05 39 views
0

我有一個私有規範,並且在私有規範中有一個測試規範文件(testspec.podspec,tag = 0.2.0)規範。cocoapod`[!]無法使用私有規範找到'xxxx〜> xx'`的規範

當我使用 pod search testspec.podspec

,我可以得到它:

-> testspec (0.2.0) test spec pod 'testspec', '~> 0.2.0' - Homepage: https://github.com/wangweijia/cocoapods_test.git - Source: https://github.com/wangweijia/cocoapods_test.git - Versions: 0.2.0 [repo_test repo]

但是當我pod install與我的項目:

podfile:pod 'testspec', '~> 0.2.0'

它說:[!] Unable to find a specification for 'testspec.podspec~>0.2.0'

幫我!!!

+0

首頁和源在你podspec相同。嘗試主頁https://github.com/wangweijia nad保持源代碼一樣 –

回答

0

確保將source添加到您的pod文件中。

source 'http://github.com/MyPrivateRepo/Specs.git' 

您可能還需要添加主回購本身:

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