Q: XCode Service Bots Private Key Issue
I have scoured the internet in order to find a solution. I am creating a bot to test and built my iOS project. When running an integration, after pulling down the code I am running into an error. I have found a few guides online on how to get this setup properly and many of them include a step of copying my certificate + keys for my development and distribution profiles into the System (rather than login) in Keychain Assistant. I have completed this, restarted, deleted my bots (and repositories). I am working with a brand new developer account. I am running OS X Server on the same machine I develop with and the certificates work fine when I build with XCode. I also am using a separate Scheme (duplicate of my normal build scheme)
Mar 21 17:23:07 Brent-Sanderss-iMac.local xcsbuildd[4113] <Debug>: [XCSCredentialServerHTTPClient.m:174 77caa310 +0ms] Got a response to a download credential request <NSHTTPURLResponse: 0x7fdff24537d0> { URL: https://127.0.0.1:2012/ } { status code: 200, headers { "Accept-Ranges" = bytes; "Content-Length" = 798; Date = "Fri, 21 Mar 2014 22:23:07 GMT"; "X-Apple-Credential-credentialType" = sshKey; } }
Mar 21 17:23:07 Brent-Sanderss-iMac.local xcsbuildd[4113] <Debug>: [XCSCredentialServerHTTPClient.m:175 77caa310 +0ms] Got credential with type sshKey
Mar 21 17:23:07 Brent-Sanderss-iMac.local xcsbuildd[4113] <Debug>: [XCSCredentialServerHTTPClient.m:189 77caa310 +0ms] Mapping credential to an XCSCredential instance
Mar 21 17:23:07 Brent-Sanderss-iMac.local xcsbuildd[4113] <Debug>: [XCSCredentialServerHTTPClient.m:195 77caa310 +0ms] Dealing with an SSH key credential, attempting to initialize an XCSCredentialSSHKey
Mar 21 17:23:07 Brent-Sanderss-iMac.local xcsbuildd[4113] <Debug>: [XCSCredentialServerHTTPClient.m:204 77caa310 +0ms] Got a credential object <XCSCredentialSSHKey: 0x7fdff2454e50> of type sshKey
Mar 21 17:23:07 Brent-Sanderss-iMac.local xcsbuildd[4113] <Debug>: [XCSCredentialOperation.m:109 77caa310 +0ms] Credential callback fired credential = <XCSCredentialSSHKey: 0x7fdff2454e50>, error = (null)
Mar 21 17:23:07 Brent-Sanderss-iMac.local xcsbuildd[4113] <Debug>: [XCSCredentialOperation.m:117 77caa310 +0ms] Processing credential <XCSCredentialSSHKey: 0x7fdff2454e50> for downloadToken !0R<7Xe9O-V.~,Z-n?$sI1p@E|Ok"9u(LY=I[oGFplI}Ko#\r)(>G6&n<D;rt/D#
Mar 21 17:23:07 Brent-Sanderss-iMac.local xcsbuildd[4113] <Debug>: [XCSCredentialSSHKey.m:93 77caa310 +0ms] XCSCredentialSSHKey: credential does not have a type, defaulting to id_rsa
Mar 21 17:23:07 Brent-Sanderss-iMac.local xcsbuildd[4113] <Debug>: [XCSCredentialSSHKey.m:97 77caa310 +0ms] XCSCredentialSSHKey: credential type is id_rsa
Mar 21 17:23:07 Brent-Sanderss-iMac.local xcsbuildd[4113] <Error>: [XCSCredentialSSHKey.m:105 77caa310 +0ms] XCSCredentialSSHKey: private key is missing from the credential
Mar 21 17:23:07 Brent-Sanderss-iMac.local xcsbuildd[4113] <Error>: [XCSOperation.m:33 77caa310 +0ms] Error Domain=XCSBuildServiceDomain Code=-1 "applyToPath failed for credential <XCSCredentialSSHKey: 0x7fdff2454e50> and path /Library/Server/Xcode/Data/BotRuns/BotRun-25cece4f-6a65-4d9b-9a4e-3216c5a93ffa. bundle/credentials/ef3b3fd6-3c72-425e-8dd1-1e3bb8cc316b. Reason: XCSCredentialSSHKey: private key is missing from the credential" UserInfo=0x7fdff24545e0 {NSLocalizedDescription=applyToPath failed for credential <XCSCredentialSSHKey: 0x7fdff2454e50> and path /Library/Server/Xcode/Data/BotRuns/BotRun-25cece4f-6a65-4d9b-9a4e-3216c5a93ffa. bundle/credentials/ef3b3fd6-3c72-425e-8dd1-1e3bb8cc316b. Reason: XCSCredentialSSHKey: private key is missing from the credential}
Mar 21 17:23:07 Brent-Sanderss-iMac.local xcsbuildd[4113] <Debug>: [XCSOperation.m:28 77caa310 +0ms] Cancelling operation: XCSCredentialOperation
iMac, OS X Server
Posted on Mar 21, 2014 3:33 PM