Set cache directory for com.apple.dt.instruments

There are several test machines in our CI farm. I noticed that Mac machines started working on disk. This is called a directory /Library/Caches/com.apple.dt.instruments.

Obviously, tests lead to this growth. Is it possible for me to redirect them to create a cache in the Jenkins workspace? Those. cache will be deleted between runs.

+4
source share
1 answer

Since there is no reliable way to do this, I suggest planning a script that will clear it. For example, to clear old subfolders that were not accessible after 30 days:

INSTFLD="/Library/Caches/com.apple.dt.instruments"
find $INSTFLD -type d -atime +30 -mindepth 1 -maxdepth 1 -exec rm -rf {} \;
0
source

All Articles