SPM loads indefinitely as seen below. I cannot add any packages.
Whether I enter a URL, or don't enter a URL, this screen is loading forever.
Have tried deleting DerivedData folder (~/Library/Developer/Xcode/DerivedData) as well as SPM caches (~/Library/Caches/org.swift.swiftpm/), does not help.
Have made sure that I've committed my code to a git repository, and followed the advice here.
This is the first package I'm adding—I can't add any packages, generally.
This problem exists for all my Xcode projects.

I faced the same problem in Xcode 16.1. These two solutions worked for me, but I must repeat them every time I add a new Swift package (SPM).
The first way:
command + delete/backspace to clear the SPM history.The second way:
plutil -remove IDESwiftPackageAdditionAssistantRecentlyUsedPackages ~/Library/Preferences/com.apple.dt.Xcode.plistIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With