Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No coverage data after configuring Test Scheme

I enabled code coverage by selecting Test in the scheme and enabled the checkbox labeled Gather Code Coverage.

But for some reason, the coverage tab shows 'No coverage data'

like image 216
Jan ATAC Avatar asked Mar 22 '26 08:03

Jan ATAC


1 Answers

Ok, I found the reason : Make sure your target has “Build Active Architecture Only” set to “Yes”. If the target is building for more than one architecture no test coverage data will be generated.

source

like image 169
Jan ATAC Avatar answered Mar 24 '26 00:03

Jan ATAC