When I run my tests I get an error:
Code coverage data generation failed.
Unable to retrieve the profile data files from \'UIDevice\'.
I solved this problem, just like I solve most of those XCode Problems:
DerivedData
(Xcode>Preferences>Locations>DerivedData→
to jump there in finder)Product>Clean
Product>Clean Build Folder
Try again. In case it still doesn't work, use another simulator / device for a few runs. Sooner or later it will work again on the original one again.