Bitbucket Cloud is Breaking Swift Package Manager

browersr October 24, 2024

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?

1 answer

1 vote
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 27, 2024

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

browersr October 28, 2024

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.

Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 28, 2024

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

browersr October 28, 2024

I have done so but no replies in nearly a week. Stack Overflow, well being Stack Overflow, closed the question. 

timmitra
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 4, 2025

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.

timmitra
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 4, 2025

It was reported on Apple Forums in October 2024 as well:

https://forums.developer.apple.com/forums/thread/767086

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events