title: Xcode Swift Package Manager error - The repository could not be found
body: <p>I can't find any SO questions regarding this, but I've run into this problem twice. Basically when I'm trying to add a new package via SPM, I sometimes get the following error:</p>
  
  <pre><code>The repository could not be found. Make sure a valid repository exists at the specified location and try again.
  </code></pre>
  
  <p>For example, I'm trying to get PanModal (<a href="https://github.com/slackhq/PanModal" rel="noreferrer">https://github.com/slackhq/PanModal</a>) and I get the following:</p>
  
  <p><a href="https://i.stack.imgur.com/7tE0K.png" rel="noreferrer"><img src="https://i.stack.imgur.com/7tE0K.png" alt="enter image description here"></a></p>
  
  <p>What's especially interesting is that while Xcode claims that the repo is not found, it <em>can</em> discover its version on the previous screen:</p>
  
  <p><a href="https://i.stack.imgur.com/DtnMo.png" rel="noreferrer"><img src="https://i.stack.imgur.com/DtnMo.png" alt="enter image description here"></a></p>
  
  <p>What can be wrong here? Arguably PanModal just got SPM support, but that's 15 hours ago and I think that should be enough. Also iiuc SPM is decentralized so there shouldn't be cache or registry stuff that's in the way?</p>
  
  <p>Thank you!</p>