16

Is there any way to exclude files in XCode code coverage.

I did research and found some tools here - Exclude Files/Lines of code in Xcode 7 Code Coverage

But all these are third party tools. Is there any way we can do it in xcode it self??

Community
  • 1
  • 1
Swapnil
  • 1,858
  • 2
  • 22
  • 49

1 Answers1

1

In Xcode 10.0, you can only exclude complete targets, not individual files.

Here's how to do it: Edit Scheme -> Test -> Options:

Code coverage target selection

Catalina T.
  • 3,456
  • 19
  • 29