'Xcode code coverage: How to exclude framework code?

I have a unit test that tests my target application. My target application depends on a dynamic framework.

When the code coverage results come back, it lists my target application's code coverage as well as the dynamic framework's

I do not want to get the dynamic framework to give code coverage. Is it possible to exclude it?



Solution 1:[1]

Add parameters when using [llvm cov]? -ignore-filename-regex="File path you want to exclude"

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 haokun zhang