0

I am trying to integrate bot for simulator only but still getting code signing error. Why?

CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 7.0'

I also copied Provisioning Profiles from "~/Library/MobileDevice/Provisioning Profiles/" to "/Library/MobileDevice/Provisioning Profiles/" as mention Here

But my problem is not solved :(

Is it possible to configure bot for simulator only?

Plz help

Community
  • 1
  • 1
user1101733
  • 258
  • 2
  • 14
  • Can you expand what "integrate bot" means? You need to sign your code to deploy it, but its a pretty easy process to do. Have you made an xcode app before? (its cool if you haven't, just need to assess the situation) – woody121 Feb 25 '14 at 20:26
  • I am taking about "continuous integration" using bot new xcode 5 feature.I know code signing is required. But my question is it required for simulator too for continuous integration? – user1101733 Feb 26 '14 at 16:04

1 Answers1

0

After a couple of weeks, I think I've finally figured this out. In your project, under build settings, you have a Code Signing Identity set. I currently have all of them set to my iPhone Developer ID, which is included in the Provisioning Profile that I have set (also in Build Settings.) In order to get the Xcode server the ability to use these keys, you need to get them onto the server. Here's what I did:

1) Open up Keychain Access.app on the machine where you created your developer certificate(s)

2) Select My Certificates from Category

3) Right click (Ctrl-click) on your Certificate and Select Export "iPhone Developer:…"…

4) Save the Certificate as a .p12 file (Keychain Access will prompt you for a password to encrypt the file, and for an admin password)

5) Transfer the .p12 file to your Xcode Server

6) Double click on the .p12 file, and import it into the System keychain on the server. Make sure it's the System Keychain and not the login Keychain.

7) Right click on the private key, (You need to click the disclosure triangle, to expose it) and select Get Info.

8) In the Access Control tab, select Allow all applications to access this item and then click on Save Changes.

Viola! Now your Xcode bot will be able to sign your code.

My next tests will include setting my Distribution profile and Certificate, so that the product that the bot creates can be used for distribution in the app store.

cplater
  • 33
  • 9
  • Still getting same code signing error.I am using developer profile. My developement mac and server machine is same so I only need to 7th step right? – user1101733 Mar 07 '14 at 19:29
  • What do your Build Settings look like? – cplater Mar 08 '14 at 00:07
  • I have a feeling that you'll need to copy / import the certs into the System keychain. They're likely in your login keychain right now. – cplater Mar 08 '14 at 04:52
  • Here's a [really good write up](http://matt.vlasach.com/xcode-bots-hosted-git-repositories-and-automated-testflight-builds/) on the whole process, and it includes an automated upload to testflight script as well. – cplater May 04 '14 at 00:50