title: Private cocoapod in development fails to lint when attempting to access private dependency
body: <p>As a quick intro, all of the cocoapods involved are held in private repositories.</p>
  
  <p>Some general information:</p>
  
  <ul>
  <li>Cocoapods version 1.9.1 (latest as of today)</li>
  <li>Xcode 11.3.1</li>
  <li>Command line tools Xcode 11.3.1 (11C504)</li>
  <li>Swift 5.0</li>
  <li>macOS 10.15.3</li>
  </ul>
  
  <p>I have successfully configured a private spec repo that two Cocoapod have been published to. My local repository has been updated with the steps that Cocoapod publishes, and I verified that the expected <code>podspec</code> files were present.</p>
  
  <pre><code>pod repo add my_repo https://gitsite.com/my-spec-repo.git
  </code></pre>
  
  <p>And then verified on my machine:</p>
  
  <pre><code>cd ~/.cocoapods/repos/my_repo
  pod repo lint .
  </code></pre>
  
  <p>I also visually verified the proper files &amp; versions were present.</p>
  
  <p>Then I add the source to a consuming apps <code>Podfile</code> like so:</p>
  
  <pre><code>source 'https://gitsite.com/my-spec-repo/'
  source 'https://cdn.cocoapods.org/'
  </code></pre>
  
  <p>After doing all of these steps, everything works great and I can install &amp; use the pod. Thus, all is well to this point.</p>
  
  <p>I am now building a new private Cocoapod that must consume one of my private pods.</p>
  
  <p>In my <code>podspec</code> file, I have marked the dependency:</p>
  
  <pre><code>s.dependency 'my_private_pod', '~&gt; 1.2.3'
  </code></pre>
  
  <p>I have also included an entry in my <code>Podfile</code> for the example app.</p>
  
  <pre><code>pod 'my_private_pod', '~&gt; 1.2.3'
  </code></pre>
  
  <p>When I update the repo on my new private pod <code>pod repo update</code>, everything works fine and I see the pod successfully install &amp; can view the files in my project.</p>
  
  <p>However, the problem lies with trying to lint the new pod with the end goal of publishing it.</p>
  
  <pre><code> -&gt; my_new_private_pod (0.0.1)
      - ERROR | [iOS] unknown: Encountered an unknown error (Unable to find a specification for `my_private_pod (~&gt; 1.2.3)` depended upon by `my_new_private_pod`
  
  You have either:
   * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
   * mistyped the name or version.
   * not added the source repo that hosts the Podspec to your Podfile.
  ) during validation.
  
  [!] my_new_private_pod did not pass validation, due to 1 error.
  </code></pre>
  
  <p>As mentioned above:</p>
  
  <ol>
  <li>I did update my repo &amp; confirmed expected files</li>
  <li>Verified all version data. This included copying the text directly from the <code>Podfile</code> that works into the <code>Podspec</code> that does not</li>
  <li>The repo is present in the <code>Podfile</code> &amp; confirmed by installing the pod successfully into the example target</li>
  </ol>
  
  <p>I did take a few extra steps as well.</p>
  
  <ul>
  <li>Deleted derived data</li>
  <li><code>pod deintegrate</code> and reinstall</li>
  <li>Restarted Xcode</li>
  <li>Threw things at computer</li>
  </ul>