Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean DYLD caches (~/Library/Developer/CoreSimulator/Caches/dyld) #48

Open
lathiat opened this issue May 23, 2024 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@lathiat
Copy link

lathiat commented May 23, 2024

I have noticed the following directory with data that also doesn't seem cleaned up. I used the visionOS simulator a couple times just for fun, last launch months ago. Even after removing the runtimes these DYLD caches are not removed by Xcode (no surprise) but DevCleaner also doesn't seem to detect them currently:
5.6G ~/Library/Developer/CoreSimulator/Caches
5.6G ~/Library/Developer/CoreSimulator/Caches/dyld
5.6G ~/Library/Developer/CoreSimulator/Caches/dyld/23F79
2.6G ~/Library/Developer/CoreSimulator/Caches/dyld/23F79/com.apple.CoreSimulator.SimRuntime.xrOS-1-0.21N5165g
2.6G ~/Library/Developer/CoreSimulator/Caches/dyld/23F79/com.apple.CoreSimulator.SimRuntime.xrOS-1-0.21N5165g/dyld_sim_shared_cache_arm64
628K ~/Library/Developer/CoreSimulator/Caches/dyld/23F79/com.apple.CoreSimulator.SimRuntime.xrOS-1-0.21N5165g/dyld_sim_shared_cache_arm64.map
4.0K ~/Library/Developer/CoreSimulator/Caches/dyld/23F79/com.apple.CoreSimulator.SimRuntime.xrOS-1-0.21N5165g/xprotect_scan_version.txt
3.0G ~/Library/Developer/CoreSimulator/Caches/dyld/23F79/com.apple.CoreSimulator.SimRuntime.xrOS-1-1.21O209
1.8G ~/Library/Developer/CoreSimulator/Caches/dyld/23F79/com.apple.CoreSimulator.SimRuntime.xrOS-1-1.21O209/dyld_sim_shared_cache_arm64
1.2G ~/Library/Developer/CoreSimulator/Caches/dyld/23F79/com.apple.CoreSimulator.SimRuntime.xrOS-1-1.21O209/dyld_sim_shared_cache_arm64.01.dylddata
668K ~/Library/Developer/CoreSimulator/Caches/dyld/23F79/com.apple.CoreSimulator.SimRuntime.xrOS-1-1.21O209/dyld_sim_shared_cache_arm64.map
4.0K ~/Library/Developer/CoreSimulator/Caches/dyld/23F79/com.apple.CoreSimulator.SimRuntime.xrOS-1-1.21O209/xprotect_scan_version.txt

@vashpan vashpan added the enhancement New feature or request label Oct 12, 2024
@vashpan
Copy link
Owner

vashpan commented Oct 12, 2024

I considered that. But those caches will be recreated in the moment you boot simulator (or use Previews) again.

They're refreshed every time you boot simulator, and from what I can see - this cache is actually removed if you don't have specific runtime installed (unless I'm wrong - help from you guys here would be nice!)

The only case that would be worth clean - is when someone is NOT using simulator at any times - macOS developers, guys who are using only devices. Please consider though that any kind of "preview" in Xcode is using Simulator.

I'll keep it open for a while, I'm interested what you guys think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants