xcodeswift-package-manager

Swift Package manager hangs on infinite spinner


I open swift package manager window in xcode by going file -> Add package dependencies. The window opens but all I get is an infinite spinner when trying to view recently used or when I try to search for a specific package. I have tried:

rm -rf ~/Library/Caches/org.swift.swiftpm
rm -rf ~/Library/org.swift.swiftpm

I'm unsure what else I can do to solve this issue, I currently cannot install new Package dependencies and I really want to avoid going back to cocoapods. Any advice on how to solve this issue would be appreciated.

Specs:

Screenshot of issue: screenshot evidence.


Solution

  • I’m facing a similar issue. I discovered that the problem arises from having two source control accounts: GitHub and Bitbucket. If I remove Bitbucket, everything works as expected.

    As a workaround, you can add the required package to favorites on GitHub, and then you can see it in Xcode in add package dependency...->source control accounts->GitHub