Xcode 12 performs a binary signing after all steps of the build have ended, including any custom post-build steps.
However I need to run a script to be performed after signing (e.g. for copying the signed binary elsewhere - but also for other things).
After having read a few StackOverflow questions and replies, I tried the following (separately):
Both don't work out of the box, and the problems are:
Is there any proper solution to the seemingly trivial request for a post-sign action?
The workaround I found was this: As a post-build step, copy the binary elsewhere, perform any required operations on it, and then manually sign it.
Xcode will sign the original binary which is of no use to me.