skip to Main Content

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:

  • Resetting the package caches via file -> Packages -> reset package caches
  • Deleted the caches via the terminal:
rm -rf ~/Library/Caches/org.swift.swiftpm
rm -rf ~/Library/org.swift.swiftpm
  • Deleting Xcode and reinstalling.

  • Restarting Xcode.

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:

  • Intel i5 2020 MacBook pro.
  • macOS sequoia 15.1.1 (24B91)
  • Xcode Version 16.1 (16B40)

Screenshot of issue:
screenshot evidence.

2

Answers


  1. 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

    Login or Signup to reply.
  2. I have the same problem if the source control account is unavailable (for me, I needed to sign in to my company’s VPN).

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search