Whenever I reboot my Mac, all subsequent Xcode builds fail with "Code Sign error: The identity 'iPhone Distribution: Blah blah blah' doesn't match any valid certificate/private key pair in the default keychain". I have the certificate/private key pair it is looking for in my jenkins user's login keychain, and my jobs are configured to unlock the keychain, which they do successfully according to the build log.
Whenever this happens I try a lot of things, like moving the certificate/private key pair to the system keychain, or logging in as the jenkins user, or whatever else my desperate Google searches turn up. But then I remember what I did to fix it last time, which is to reinstall Jenkins using the Mac installer, turning off the install as daemon option and turning on the install as jenkins user. Once installation completes, the jobs work again. Any ideas what it is that the installation is doing that a reboot is undoing?