Xcode endlessly creating 1.07GB files in cache

Originator:m4ttcheetham
Number:rdar://33914653 Date Originated:16-Aug-2017 09:34 am
Status:Duplicate of 32952453 (Closed) Resolved:
Product:Developer Tools Product Version:Version 9.0 beta 5 (9M202q)
Classification:Serious Bug Reproducible:Always
 
Summary:
While using the beta is noticed that my hard drive kept running out of space. Every time I cleared more space, I would be out of space again within a few hours. I ran daisy disk and tracked down a lot of large files. All of the files are inside directories named "(A Document Being Saved By Xcode X)" where X is an incrementing number every time a new one is created. The folders containing the files are located in the directory at path "/private/var/folders/fn/zl6yy3ln68q26v7x_xn4ncsr0000gn/T/TemporaryItems"

The file it creates is called "dyld_shared_cache_arm64" and is always exactly 1.07GB, but has a unique md5 hash every time.

Steps to Reproduce:
1. Install and use Xcode 9 beta 5
2. Observe hard drive filling up
3. Browse to directory listed above and see that Xcode has been creating a new 1.07GB file every few minutes

Expected Results:
Xcode should not create endless new large files

Actual Results:
Xcode consumes my entire hard drive space until everything stops responding and I have to reboot and clear files.

Version:
Version 9.0 beta 5 (9M202q)

Notes:

Comments

I had exactly the same issue, I suspect problem with "preparing for debugging" after connecting device with iOS version unknown to Xcode. It started happening after updating my iPad to iOS11b6, and stopped after I deleted contents of iOS DeviceSupport directory manually (with Xcode turned off).


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!