Xcode 7 - Code coverage data generation failed

前端 未结 19 2645
無奈伤痛
無奈伤痛 2020-12-25 09:32

When I run my tests I get an error:

Code coverage data generation failed.
Unable to retrieve the profile data files from \'UIDevice\'.

19条回答
  •  时光说笑
    2020-12-25 10:30

    I had this same problem but it was due to having a test target and renaming the application's target. Make sure you have a valid Host Application set.

    • Choose the test target on the project page
    • Under the General tab there should be a Host Application select box
    • Choose the target you want to test against

提交回复
热议问题