Search code examples
iosxcodetestingcode-coverage

How to display Xcode code coverage when it's not displaying?


I have been trying to get the code coverage for my project using Xcode 9. All test cases run successfully but did not generate the code coverage report under the Code coverage tab.

I tried the following things:

  1. Enable the Gather code coverage in the scheme.

  2. Enable Code Coverage Support for my target.

  3. Enable the Showcase bundle option.

    Is there an extra setting require to check the code coverage report ? or should I miss something? Thanks in advance.


Solution

  • Issue Resolve in Version 9.3, to get the code coverage Target -> Test -> Options -> CodeCoverage See image:

    image