Hi at all, is there a way to count how many files have been marked with the codesign? Thanks in advance
We execute the codesign inside a CI pipeline.
So you want to generate this report at build time on a machine you control?
If so, you could do this by parsing the CodeResources
file within the signed bundle. See TN3126 Inside Code Signing: Hashes.
WARNING Don’t do this on the user’s device. Quoting TN3126 “The structure of a code signature has changed numerous times in the past and may well change again in the future.” However, doing this on your CI machine should be fine because, if it breaks, only you are affected.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"