我在一个私有pod上工作,它依赖于其他私有pod。所以我只想在我的pod .podspec文件中提到它。
在pod2的.podspec文件中,它看起来像这样。
s.dependency 'Pod1', '~> 0.0.1' , :git => 'https://github.com/MY_COMPANY/pod1.git', :commit => '9f9f4fe5b5959e0f2ea89e472eccf7aea6f37eea'
我开始知道“在podspec依赖说明符中没有:git和:commit选项”,那么如果没有,那么如何实现呢?
发布于 2014-09-10 15:17:48
You have to maintain a repository for your private podspecs.
将该存储库添加到CocoaPods安装中:
pod repo add MyPrivateSpecs git@git.example.com:MyPrivateSpecs
将您的私有依赖pod添加到其中:
pod repo push MyPrivateSpecs Pod1
现在,您可以像平常一样简单地引用该pod:
s.dependency 'Pod1', '~> 0.0.1'
https://stackoverflow.com/questions/25759170
复制相似问题