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:
The repository could not be found. Make sure a valid repository exists at the specified location and try again.
For example, I'm trying to get PanModal (https://github.com/slackhq/PanModal) and I get the following:
What's especially interesting is that while Xcode claims that the repo is not found, it can discover its version on the previous screen:
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, if I understand correct, SPM is decentralized so there shouldn't be cache or registry stuff that's in the way?