Code signing error running XCodeBuild in Jenkins
[Not a duplicate of similar questions as explained further down] I'm getting a code signing error when running XCodeBuild from within Jenkins but it will build ok from the command line or from within Xcode. Several people have had this problem in the past and the common theme with them is that Jenkins gets run at launch time as the daemon user and thus tries to access the system keychain. The solutions that people have applied are copying credentials to the system keychain or running a command to set which keychain to use. However in my case if I look at launchd in the Activity Manager the