When I run my tests I get an error:
Code coverage data generation failed. Unable to retrieve the profile data files from \'UIDevice\'.
Steps that worked in my case Delete the scheme and clicking Manage Scheme->Auto generate scheme resolved the issue in my case.
Issue was caused by installing the certificate in the simulator and in the keychain