An iPad app already ran on an iPhone and an iPad. The next step was to run the same build on a Mac, as an iPad app designed to run there. The Mac was registered as a device on the developer team, the app was built from Xcode, and the resulting bundle was copied into an applications folder. Opening that copy from Finder failed: macOS said the app was damaged and refused to launch it.
Not the usual suspects
"Damaged" on macOS often means one of two things. Either the file carries a quarantine attribute from a download and Gatekeeper is being cautious, or something really did get corrupted on the way. Neither fit. The copied app had no quarantine attribute, and nothing had come over a network. The bytes were exactly what the build had produced.
The timestamps inside the bundle told a different story. The code signature's resource seal, CodeResources, was dated 00:55. The asset catalog, Assets.car, and the embedded provisioning profile were dated 12:46. The first build after registering the device had been an incremental one: it refreshed some files with the new profile but left a seal written for the earlier contents. The bundle was signed, just not consistently. The pieces described two different builds.
There had been a warning. Before the copy, signature verification reported that the app had been modified. I set it aside because the original in the build folder showed the same warning, and treated that as proof the copy was fine. It was proof only that both were broken in the same way.
Clean build, then verify, then copy
After Clean Build Folder and a full rebuild, codesign --verify --deep --strict passed on the build product. The copied app passed the same check, and it opened from Finder. The rule now is that an install copy only happens after that verification passes. A warning that also appears on the original does not count as an excuse.
One limit remains. The installed app is a copy, so rebuilding the project does not update it; each new build has to be verified and copied again. I also did not reproduce the failure deliberately, so the explanation rests on the mismatched timestamps and the clean rebuild that fixed it, not on a controlled test.
A signature can be present and still be wrong. "Damaged" was the operating system's word for a bundle that no longer agreed with itself.