Even when it is build locally, test succedes, but fails to gather code coverage data and fails with the error failed to merge raw profiles in directory
Post
Replies
Boosts
Views
Activity
Also I observed it is failing to generate Coverage.profdata file inside DerivedData/build/Profiledata
Also I observed it is failing to generate Coverage.profdata file inside DerivedData/build/Profiledata
Disabling the code coverage for the pod repos inside pod project resolved this issue.
Add bellow script in Podfile to disable the code coverge
config.build_settings['CLANG_ENABLE_CODE_COVERAGE'] = 'NO'
config.build_settings['swiftc'] = '$(SRCROOT)/SWIFT_EXEC-no-coverage'
Disabling the code coverage for the pod repos inside pod project resolved this issue
Add bellow script in Podfile to disable the code coverge
config.build_settings['CLANG_ENABLE_CODE_COVERAGE'] = 'NO'
config.build_settings['swiftc'] = '$(SRCROOT)/SWIFT_EXEC-no-coverage'
The issue is fixed in the latest version Xcode 15.2