Closed importRyan closed 2 years ago
@importRyan Xcode has a bug where workspaces aren't saved in "recent files" when they live in an SPM package. You can even see this in the TCA repo. TCA's workspace has a lot of demo apps, though, so we kind of deal with the bug, but I'm not sure it's worth the headache in Custom Dump.
Instead, I think we should probably just delete the playground entirely, instead of trying to preserve it via a workspace? Wanna update the PR to do that?
@stephencelis So sad. Deleted.
@importRyan Thanks!
The hero we deserve
Motivation
Our company's app is based on TCA with lots of SPM targets. When opening our app's Xcode project, the IDE will beachball for 5-10 seconds while on the "Packages. Finishing..." stage. We've experienced this hang across several Xcode versions, including 13.3.1 (13E500a).
Fix
After deleting or hiding this repo's playground, Xcode no longer hangs on startup while parsing SPM packages. This is similar to behavior reported in Swift.org forums.
This PR moves the playground to a hidden directory and adds the playground to a workspace so it remains functional.