pointfreeco / swift-custom-dump

A collection of tools for debugging, diffing, and testing your application's data structures.
MIT License
800 stars 89 forks source link

fix: Resolve Xcode 13 project startup beachball due to this playground #46

Closed importRyan closed 2 years ago

importRyan commented 2 years ago

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.

stephencelis commented 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?

importRyan commented 2 years ago

@stephencelis So sad. Deleted.

mbrandonw commented 2 years ago

@importRyan Thanks!

ZevEisenberg commented 2 years ago

The hero we deserve