Today when I went to add a package via SPM in Xcode 16.0, the "Recently Used Loading..." spinner ran and never stopped. I could not add any packages. The packages I am loading are remote and not from my own repo. I did a "Refresh Account" via the right-click which then shows items in my own hosted repo (for both Bitbucket Cloud and Github), but "Recently Used" just loads forever and there is no way to add a package.
I tried all of the usual cache deleting to no positive outcome. I saw that others had to reinstall Xcode which I am loath to do. I wound up executing defaults delete com.apple.dt.Xcode which of course made me lose all of my settings, but that did correct the problem. At least I thought it did. However, after getting everything reset, it stopped working again with the above issue.
In short, I found the issue is with Bitbucket Cloud. If I remove this account from Xcode, SPM works as normal. Add it back (all credentials are 100% fine) and I can no longer use SPM.
Does anyone know why Bitbucket Cloud is now breaking SPM and more importantly what can be done to have this account but also have a functioning SPM?
Hi @browersr
Welcome to the community.
Would you be able to confirm if you're able to connect to Bitbucket.org just fine either by going to https://bitbucket.org/ or cloning a repository locally via a terminal?
Regards,
Mark C
I am. I use Bitbucket far more than SPM so I have it added back into Xcode. I am able to do all the normal work with Bitbucket that I always could before. Of course that means that SPM is broken. In order for me to use SPM I have to first remove Bitbucket. Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @browersr
Thanks for the information.
You could also contact the Xcode community regarding this, as there may be an ongoing issue affecting the SPM and Bitbucket Cloud.
Regards,
Mark C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have just experienced the same issue this week with Xcode 16.x. When I have my Bitbucket Cloud credentials entered in Xcode's Accounts, I cannot find Swift Packages on GitHub or Apple. The interface says "Loading..." and there is a never-ending spinner.
If I remove the Bitbucket Cloud account, the Search for packages resolves immediately. Put the Bitbucket Cloud account credentials back in and the issue repeats with the never-ending search.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It was reported on Apple Forums in October 2024 as well:
https://forums.developer.apple.com/forums/thread/767086
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.