【发布时间】:2014-04-22 05:27:04
【问题描述】:
我有一个库的公共分支,该库已经存在于 CocoaPods/Specs 中。在 Podfile 中,我可以通过以下方式引用这个分叉的 pod:
pod 'CoolLibrary', :git => 'git@github.com:myname/CoolLibrary-Forked.git', :commit => 'abcdef1234567890abcdef1234567890'
我试着把它放在我的MyLibrary.podspec:
s.dependency 'CoolLibrary', :git => 'git@github.com:myname/CoolLibrary-Forked.git', :commit => 'abcdef1234567890abcdef1234567890'
但是得到以下错误信息:
-> MyLibrary.podspec
- ERROR | The specification defined in `MyLibrary.podspec` could not be loaded.
[!] Invalid `MyLibrary.podspec` file: [!] Unsupported version requirements. Updating CocoaPods might fix the issue.
是否可以以这种方式在 .podspec 中指定依赖项(即,对于具有 podspec 但不在 CocoaPods/Specs 中的 pod)?
【问题讨论】:
标签: cocoapods