Xcode 7 - Code coverage data generation failed

前端 未结 19 2670
無奈伤痛
無奈伤痛 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:21

    I solved this problem, just like I solve most of those XCode Problems:

    1. delete your projects files in your DerivedData (Xcode>Preferences>Locations>DerivedData→ to jump there in finder)
    2. Product>Clean
    3. (keep alt-Button pressed) Product>Clean Build Folder
    4. Quit XCode
    5. Restart XCode
    6. Remove your app from your device / simulator

    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.

提交回复
热议问题