6

My integration succeeded but archive fails every-time with following warning mentioned below -:

**Warning: Build Service Error:** Creating archive failed: xcodebuild exited with status 65.  
**Warning: Build Service Error:** Skipping exporting from archive because creating the archive failed.
DavidPostill
  • 7,734
  • 9
  • 41
  • 60
DevR
  • 61
  • 1
  • 2

3 Answers3

4

I had the same problem. In my case the code signing was set to automatic. When I change it to an distribution certificate it worked.

tuvok
  • 679
  • 5
  • 16
  • Thanks a lot Pawel..I did try this before it didn't work but now it works....May be previously I was trying before copying my provisioning profiles to /Library/Developer/Xcode Server/ProvisioningProfiles..So sorry as I don't have too much reputation (i.e. 15 is required) I can't vote up for you..but whenever I will have I ll do it for you..Cheers!!! – DevR Apr 23 '15 at 08:33
  • 1
    What I have noticed in the build log(/Library/Developer/XcodeServer/IntegrationAssets/0bf59b5e7af4ba98e99d13d1a80f2b28 Bot/1/build.log), Command /usr/bin/codesign trying to sign my app with OS X Developer certificate which is created by Xcode server (I guess) and archive is getting failed because I don't have private key for that..! – DevR Apr 23 '15 at 08:40
2

I was having this issue after updating to the Server beta. I was able to fix it by adding my team to the Xcode server settings.

David Beck
  • 10,099
  • 5
  • 51
  • 88
0

Its a problem of certificate. Try to check if you have the certificate on your machine corresponding to the build you want to make.

alexz09
  • 11
  • 1