Bitbucket Cloud is Breaking Swift Package Manager

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?

I have the same issue with xcode 16.1 :(

Same issue here with Xcode 16.1 Only SPM is affected. Other Bitbucket functions are working!

Incredibly frustrating. I've recreated App Passwords in Bitbucket Cloud, granted every permission possible and I still just see that frustrating triangle of failure next to BitBucket Cloud when trying to add a remote package to my project. It says "Resource not found" when you hover over it.

I am currently completely unable to change any package inclusions that involve BitBucket repos.

For everyone having this issue, I was able to find a workaround. Download Xcode 15.4 (there are a number of sites around the internet that host the old xip files). If you are already on Sequoia, Xcode 15 won't run out of the box, but you can open the app bundle, find the Info.plist file, and either overwrite it with the one from Xcode 16 or 16.1 or you can just hack it to make it think it's version 16. After that, Xcode 15 will run and you can make the changes to the Package Dependencies there. All the Bitbucket Cloud integration worked fine in Xcode 15. Then, just save and reopen the project in Xcode 16 to build and it should all work fine.

Frustrating, but at there's a bit of a workaround for now until Apple fixes this.

The easier workaround is to remove Bitbuck, download the packages you need, then add Bitbucket again. No need to download older versions of Xcode, etc. I probably should try to completely remove and then install again Xcode as it doesn't look like this issue is getting fixed or even acknowledged any time soon.

The only solution at the moment is to remove your Bitbucket Cloud credentials. Then the Search for Packages will succeed.

Then re-enter your Bitbucket Cloud credentials if you need them.

Somehow bitbucket is trying to perform the search as well, when you are logged in. I cannot find where to clear bitbucket's search cache/history, which seems to be the issue.

Bitbucket Cloud is Breaking Swift Package Manager
 
 
Q