code-coveragexcode-ui-testingxcode9.4

How to get rid of this Error Generating Code Coverage in Xcode 9.4


I continuously see this pop up "Error Generating Code Coverage " when I try to run my UI Tests and this is followed by another error bundle identifier missing. I have enable code coverage in test scheme. I am really looking forward to run my UI Tests without this blocking error.

enter image description here

enter image description here

enter image description here


Solution

  • I Resolved this temporarrily though not sure if it is proper solution.

    Every time I need to clean project

    Xcode -> Preferences -> Derived data(Delete this folder)

    Build the project and then run the tests.