Swift Code Coverage documentation, using profdata on Xcode 9.3+


(Andrew) #1

On the Swift Coverage Results Import page, it mentions to use the “Generic Test Data” on Xcode 9.3+, however this isn’t strictly the case.

I was able to continue to use the .profdata on Xcode 9.3 - 10.1 by setting my “Project Format” to “Xcode 8.0-compatible”. This is done in Xcode by clicking on my project file in the Project Navigator (left panel), then opening the File Inspector (right panel).

I would recommend adding this information to the documentation page.