iOS Test result file inside iOS Simulator


I have snapshot test in my iOS project that create snapshots and save in tmp folder inside the simulator (/Users/vagrant/Library/Developer/CoreSimulator/Devices/5DC081A5-085C-47EB-90F1-B2927B60A4C0/data/tmp/SearchViewTests/test_searchView_empty.1.png).

I would like to get this file in a shell script but I receive an error message that this file doesn’t exists anymore.

Is iOS Simulator destroyed after the Xcode Test step?