2015-11-05 46 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''