for those who have encountered this problem from jenkins and ssh:
the high probability that you did not provide access to the private key in the keychain, I tried, but I'm not sure why they all do not work:
- import .p12 security file with -A or -T / usr / bin / codesign
- security key set -L ist -S apple -T ool :, apple :, code :: -S -k # {password} # {keychainPath}
- change the entire provisioning profile to [UUID] .mobileprovision and copy them to "~ / Library / MobileDevice / Provisioning \ Profiles" on the jenkins server
- clear received data and restart jenkins server
- make sure that the default keychain is the keyring to enter and unlock it.
finally resolved using:
1.ssh [user] @ [jenkinsServerIP] -L 5900: localhost: 5900, log in to jenkins server
2. open 'vnc: // localhost'
this will launch a remote screen if your jenkins server allows this ...
then open keychain.app to grant / usr / bin / codesign access to the private key
good luck
source share