First, edit the Test action in the Scheme. Check “Gather coverage data”.

Next, 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.

That’s it! Run your tests and look at the test report. Coverage data should be available.