Code Coverage Not Generated in Xcode 26.1 Despite Successful Test Runs

We’re facing an issue with Xcode 26.1 where code coverage is not being generated. All our test cases run and pass successfully, but the .xccovreport / .xccovarchive files are never produced. Code coverage is enabled in the scheme, and this setup used to work correctly in earlier Xcode versions. We are trying to determine whether this is a configuration issue on our end or a possible Xcode 26.1 bug. Is anyone else experiencing the same problem with code coverage in Xcode 26.1? Any insights or workarounds would be appreciated.

Answered by abhishekSingh0607 in 869439022

I investigated this further and confirmed the issue is due to a toolchain mismatch inside Xcode 26.1. Although test execution successfully generates multiple .profraw files, the coverage merge step fails. Running the merge manually using the Xcode-bundled tool results in the following error: raw profile version mismatch: Profile uses raw profile format version = 8 expected version = 10 error: no profile can be merged.

The same project and test configuration generates coverage correctly on earlier Xcode versions, which strongly suggests a issue in Xcode 26.1’s coverage toolchain.

Accepted Answer

I investigated this further and confirmed the issue is due to a toolchain mismatch inside Xcode 26.1. Although test execution successfully generates multiple .profraw files, the coverage merge step fails. Running the merge manually using the Xcode-bundled tool results in the following error: raw profile version mismatch: Profile uses raw profile format version = 8 expected version = 10 error: no profile can be merged.

The same project and test configuration generates coverage correctly on earlier Xcode versions, which strongly suggests a issue in Xcode 26.1’s coverage toolchain.

Code Coverage Not Generated in Xcode 26.1 Despite Successful Test Runs
 
 
Q