Xcode 13.3 freezes with SPM at stage "Packages. Finishing..."

Does anyone know what Xcode does within the "Packages. Finishing..." stage and what could be done to debug it? We have quite a big packages tree that is resolved in ~200 seconds, but afterward, it proceed to this stage and Xcode freezes for 10-15 minutes, sometimes longer. I got spindump for this, and it has references to Playground, also on a disk there is a folder in DerivedData Build/Intermediates.noindex/Plagrounds changes size non-stop and grows to some very big numbers. We do not have Playgrounds. What could it be and what are possible ways to analyze and resolve the issue?

I did open radar, as well as wrote to Apple dev support without any answer so far.


Yes, there’s currently a bug in Xcode’s package handling that produces a hang when packages have playgrounds in their repo. You can either go back to 13.2.1 or go through your packages and delete the playgrounds. May want to go one repo at a time to see if you can narrow it down to just one.


This is amazing. Thank you so much, at least I have now a way forward, so I can start the hunt for the playgrounds.

Do you have a bug number handy, as I'd like to to follow up on that? Thanks!

1 Like

Is it now possible to follow radars if you know an id?

1 Like

Just to add to this post, we had a even worse problem:
Xcode wouldn't work with any Xcode 13 versions, so we where in a hurry to find a solution or we wouldn't be able to release any new versions from April 25 (last date that would accept Xcode 12 builds).
Luckily we found this post and its solution worked (after making several forks to remove .playgrounds from dependencies), so thank you @Jon_Shier. :smile:

Before finding the solution we also opened a Feedback (FB9977627) and eventually a DTS. We are still in touch with developer support through the DTS and they are now aware of the issue, hopefully it will lead to a solution soon enough. :pray: