Back in the early/mid 2010's when I was still a native iOS dev, I remember interviewers would ask how do you code sign an app.
And when they started trying to "automate" the process, it was a roll of the dice if it would work.
I have been out of that game for last 5 years, but I occasionally still open Xcode and it _seems_ it works most of the time.