This issue is happening only with latest Xcode 15.0.1 version.
When I run the run "xcresults export abc.xcresult results", it is generating jpeg files with zero bytes as below:
12605a3a-2b1d-4975-aeec-6538b93f941c-attachment.
Ideally this should be 12605a3a-2b1d-4975-aeec-6538b93f941c-attachment.jpeg format.
xcresults tool is stripping and changing the format. Hence the screenshots are not visible for failure cases.

Previously it was absolutely good with older xcode versions. ex: xcode 14.2
This issue is happening only with latest Xcode 15.0.1 version.
When I run the run "xcresults export abc.xcresult results", it is generating jpeg files with zero bytes as below:
12605a3a-2b1d-4975-aeec-6538b93f941c-attachment.
Ideally this should be 12605a3a-2b1d-4975-aeec-6538b93f941c-attachment.jpeg format.
xcresults tool is stripping and changing the format. Hence the screenshots are not visible for failure cases.
Previously it was absolutely good with older xcode versions. ex: xcode 14.2