Xcode 14.1 no code coverage

We noticed that we don't get any code coverage anymore since upgrading. running Xcode 14.1 on macOS Monterey 12.6.1.

digging through the build logs, I found this warning:

Failed to generate coverage for target XYZ.app at paths (
   "/Users/ME/Library/Developer/Xcode/DerivedData/XYZ-gxxobnuibhmtifdnkgfomguzzhnv/Build/Products/Testing-iphonesimulator/XYZ.app/XYZ"
):
malformed instrumentation profile data. (Underlying Error: malformed instrumentation profile data)

Anyone else had this since upgrading Xcode? We tried different machines, settings, new testplans, other tests, same results.

Answered by perFromNil in 735417022

Finally we found it was caused by an accidentally updated SPM dependency

Accepted Answer

Finally we found it was caused by an accidentally updated SPM dependency

Xcode 14.1 no code coverage
 
 
Q