Code signing fails trough ssh

I have ssh-ed from my machine to my machine to test a script wich builds my app.

I give xcodebuild the following code sign identity:

CODE_SIGN_IDENTITY="iPhone Developer"


The xcodebuild does work if I don't use ssh. But when I use ssh it fails:


No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "team_id" with a private key was found. Code signing is required for product type 'Application' in SDK 'iOS 10.1'


I tried unlocking my login keychain which did not help, as I read that when ssh-ing to your pc doesn't unlock it automaticly as when login trough the GUI.

Accepted Reply

SSH has access to the system keychain so I copied my certificate from the login keychian to the system keychain and that is that.

Replies

SSH has access to the system keychain so I copied my certificate from the login keychian to the system keychain and that is that.