Please Help! Code signing error in GS, signing identity error in xcode.
ericdg123
Member, PRO Posts: 156
I have literally been trying to get this to work for two days. I have read every single post on the forums and every help page at apple and I can't get it to work.
I'll explain whats going on but I'm sure I'll leave something out cause I'm exhausted.
I'm trying to get my game on the appstore. I started by using keychain to make a csr using my email addy and name I joined apple dev with. I then made a development cer and distribution cer using the same csr. I then made a development provision profile and a distribution profile and new app id.
I downloaded and ran the certificates from both the dev and distribution certificates to install them in keychain. I also already did the wwdr. I downloaded both the dev and dist provisioning profiles. When I install the dev profile in xcode it works fine. When I install the dist profile in xcode it says "A valid signing identity matching this profile could not be found in your keychain." I know this is the problem but have no clue how to fix it. I even updated my xcode and sdk to the latest version.
When I publish my game in gs I selected the distribution profile and after it creates the app it says "Code Signing error. Code signing failed. Make sure your provisioning profile, developer certificate, and wwdr certificate are installed."
I have removed and revoked everything many times and reinstalled them but nothing has worked.
When I make the csr using keychain, I have tried leaving it blank, putting my email and apple id in, putting my email and apple name in and so on but its not working.
This could be the problem, but I would assume if it is the problem, the csr would not work for the development profile but not the distribution profile. I'm just assuming, maybe it would, I have no idea anymore.
This is my first game after months of work and I would love to get it going and get some promo codes up on the forums for everybody to tell me what to improve on and what they think.
Any ideas or help would make me so very happy!!!
I'll explain whats going on but I'm sure I'll leave something out cause I'm exhausted.
I'm trying to get my game on the appstore. I started by using keychain to make a csr using my email addy and name I joined apple dev with. I then made a development cer and distribution cer using the same csr. I then made a development provision profile and a distribution profile and new app id.
I downloaded and ran the certificates from both the dev and distribution certificates to install them in keychain. I also already did the wwdr. I downloaded both the dev and dist provisioning profiles. When I install the dev profile in xcode it works fine. When I install the dist profile in xcode it says "A valid signing identity matching this profile could not be found in your keychain." I know this is the problem but have no clue how to fix it. I even updated my xcode and sdk to the latest version.
When I publish my game in gs I selected the distribution profile and after it creates the app it says "Code Signing error. Code signing failed. Make sure your provisioning profile, developer certificate, and wwdr certificate are installed."
I have removed and revoked everything many times and reinstalled them but nothing has worked.
When I make the csr using keychain, I have tried leaving it blank, putting my email and apple id in, putting my email and apple name in and so on but its not working.
This could be the problem, but I would assume if it is the problem, the csr would not work for the development profile but not the distribution profile. I'm just assuming, maybe it would, I have no idea anymore.
This is my first game after months of work and I would love to get it going and get some promo codes up on the forums for everybody to tell me what to improve on and what they think.
Any ideas or help would make me so very happy!!!
Comments
I wished I could help, I have done all the same things you have done and now I get the cer files to work, i get no codesign error but once the file is down to my computer I can not get it to zip up, so even tough GS is not complaining now the mac wont compress it. I think I have done everything correctly but it still does not work. And unfortunately there is no real tech help at GS. I feel your pain. I too want to get my app up but, nothing works.
I will let you know if I figure something out.
Mike
My question to anyone who is wise in the ways of apple dev, if I use the same csr for the development and distribution profile and the development provision profile installs just fine in xcode, but the distribution does not, would I be safe to assume that my csr is fine since it worked with dev profile?
I don't know what to do.
I also had a bunch of provisioning profiles in xcode and I deleted all the distribution profiles except for one, which it would not let me delete. All the development profiles do not show an error and seem to be fine.
First off, have you ever signed up as a dev and downloaded certificates on a different computer, or is this your first?
If you have, then you need to transfer your keychain passkeys to your new one
If this is your first computer, then what I would do is:
Go to Keychains (I believe it's under the utilities section in your MAC) in Applications or something (sorry I'm not on my MAC at the moment, only iPad)
Delete both your developer and your distribution certificates
Then go into your itunes dev account: Try reinstalling them or creating new ones alltogether for both developer and distribution
Then for your app, go in and create a new app id and new distribution provisioning profile for that app, so first create app ID, then go under provisioning and distribution, and create a new file based on your app ID
Then try going into Gamesalad and upload the game, if this doesn't work get back to me
Sometimes it can be a multitude of issues, if you don't have the correct version of Xcode, you have one too many distribution certificates installed, etc, I always seem to encounter new issues with xcode.
For example, the other day I had an error that said I have 2 distribution certificates installed, so I had to go into keychain, and delete one of them. There's always something! But there's always a solution!
That may of had something to do with it, but I will tell everyone what I think actually was the main issue in case someone else is having trouble too.
I have made games for windows mobile in the past but this is my first time on a mac and iphone. I am totally unfamiliar with the process of submitting an app. I think the problem was with using keychain to request my certificate. When I installed the GS viewer it worked ok, but not with my game. With the development profiles and certificates I don't believe it matters what you put in the certificate assistant when you request a certificate to generate your csr file. I think with the viewer I just left the email blank and left the username as the default and it worked fine. With the distribution profile and cert its very important. I put my email in and was positive it was the email I used to sign up for apple dev. On the username though, first I put william garrett, because that is what I thought it was with apple. Then I tried my username with apple that I have to type in to log into apple dev. Then I looked under my profile and evidently I had put my company name as independent for some reason. So I tried that and it still did not work. After installing my profiles in xcode the development one always gave no errors and the distribution one always said "A valid signing identity matching this profile could not be found in your keychain." I would sometimes just stop there rather than trying to publish on GS because it always gave me the code signing error and I assumed xcode and keychain is where my problem was. Even after I changed my csr to independent it still gave me the code signing error when publishing with GS. After I restarted my computer and tried again, instead of the error it asked for my permission to sign the profile using independent so I accepted and it worked.
So I think originally my problem was having the wrong username when requesting my certificate using keychain, and the it later changed to messing up because the computer needed a restart. So I'm still not 100 percent sure exactly what happened, but its working now so I'm happy.
Thanks for all the help guys. When it gets accepted I'll put about some promo codes, it's called Turbo Snow Skiing and is a side scrolling game similiar to moto x mayhem but with skis and snow instead of a motorcycle.
Does anyone know if my webpage is not setup on the link I gave apple, will my app be denied? I guess I need to hurry up and make a quick website at the link I gave them just in case.