DeviceKit icon indicating copy to clipboard operation
DeviceKit copied to clipboard

Adding DeviceKit as a dependency do swift package is breaking code coverage calculations.

Open MarekNubisoft opened this issue 3 months ago • 0 comments

After adding DeviceKit as a dependency to any swift package, Xcode stops generating code coverage. We're using latest Xcode version and I've found similar issue in this topic: https://developer.apple.com/forums/thread/770289 it looks like DeviceKit or its dependencies are built using older version of Xcode. Steps to reproduce:

  • Create dummy swift package with at least one test
  • Running test is generating code coverage
  • Add "https://github.com/devicekit/DeviceKit.git" as a dependency
  • Tests no longer generates code coverage, and logs are printing: "Failed to merge raw profiles in directory [...] raw profile version mismatch: Profile uses raw profile format version = 8; expected version = 10 PLEASE update this tool to version in the raw profile, or regenerate raw profile with expected version. error: no profile can be merged"

MarekNubisoft avatar Oct 17 '25 12:10 MarekNubisoft