How do I create a CocoaPods podspec that has a dependency that exists outside of Specs? <p>I have a public fork of a library that already exists in CocoaPods/Specs. In a Podfile, I can reference this forked pod by doing this:</p> <pre><code>pod 'CoolLibrary', :git =&gt; 'git@github.com:myname/CoolLibrary-Forked.git', :commit =&gt; 'abcdef1234567890abcdef1234567890' </code></pre> <p>I tried putting this in my <code>MyLibrary.podspec</code>:</p> <pre><code>s.dependency 'CoolLibrary', :git =&gt; 'git@github.com:myname/CoolLibrary-Forked.git', :commit =&gt; 'abcdef1234567890abcdef1234567890' </code></pre> <p>But get the following error message:</p> <pre><code>-&gt; 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. </code></pre> <p>Is it possible to specify a dependency in a .podspec in this way (i.e. for a pod that has a podspec, but which isn't in CocoaPods/Specs)?</p>