5

Have been unable to generate code coverage for over a week. Have tried: Rebooting & Relaunching Xcode. Deleting the derived data folder.

Just noticed this warning: Showing Recent Messages Failed to merge raw profiles in directory /Users/e..l/Library/Developer/Xcode/DerivedData/Picman-dfefadmrrtyfcfduazopvkoniydf/Build/ProfileData/00008027-001221043EE9802E to destination /Users/e..l/Library/Developer/Xcode/DerivedData/Picman-dfefadmrrtyfcfduazopvkoniydf/Build/ProfileData/00008027-001221043EE9802E/Coverage.profdata: No profile data files were written to '/Users/e..l/Library/Developer/Xcode/DerivedData/Picman-dfefadmrrtyfcfduazopvkoniydf/Build/ProfileData/00008027-001221043EE9802E'

Enable code coverage appears on and Gather Code coverage for all targets as well. Editor shows code coverage.

Using Xcode 13.0 (13A233)

Enable code coverage

Gather code coverage for all targets

cire1776
  • 113
  • 1
  • 8

1 Answers1

-2

Change the Mach-O-Type in the build settings to Static Library or Dynamic Library. It didn't worked when the type is Executable.

Please check this answer. I have faced the similar issue in Xcode 13. Able to resolve it.

https://stackoverflow.com/a/74127882/10694277

swiftache
  • 60
  • 9