Distribution(xcode) and keychain problems. Please help (no scam services wanted)

VGXVGX Member Posts: 796
edited November -1 in Working with GS (Mac)
Sorry for making a new thread just that the other thread has crap posted and no one will care to read.

I have followed all tshirtbooths videos and I have all 3 certificates, I have clicked on Distribution.

My problem is once i download the Distribution provisioning profile and click to download, it opens xcode and says on the yellow banner that -
xcode could not find not find valid private key/certificate pair in keychain.

and next to the prov file it says - valid signing identity not found.

In key chain access > system, there are 2 things marked with red,
com.apple.kerberos.kdc
com.apple.systemdefault
(both say- this root certificate is not trusted)

How do i fix this? please help

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    This stuck out from your previous post:

    "I have to publish it again using the distribution provisioning. the first publish i did was for testing the game."

    If you used the same profile for testing, it will most likely be set to 'adhoc'.

    If so, just edit the profile and change it to distribution (or whatever the 'not adhoc' option is.

    Maybe that will help?

    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • VGXVGX Member Posts: 796
    When i first did the test/adhoc i created the provisioning profile under developement not through distribution where you have the option to select method (appstore - ad hoc)

    but now that i want to submit the game i am having trouble with the distribution profile.
    is it possible to make bullet point from start to finsh in order what needs to be done.

    either i am doing something wrong that i can't see or perhaps its (xcode 4.1.1 Lion) or the keychain
  • quantumsheepquantumsheep Member Posts: 8,188
    Delete your game's development profile from your computer.

    Go to the provisioning section in iTunes

    Click on 'provisioning'

    Click the Distribution tab

    There should be a list of your certificates - actions on the right will be 'download' or 'edit'.

    Choose the right profile for your game and click on the 'edit' button.

    There, change from adhoc to appstore

    Then once that's done, go back to the screen where it lists your profiles and download it.

    Drag into iTunes

    That should do it I think?

    QS

    (alternatively, you may just have a development profile - you'll want to make a new distribution one in that case which you can do on the screens I mentioned)

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • VGXVGX Member Posts: 796
    provisioning profiles will not show on the publish on gs creator.

    also on xcode is says - xcode could not find not find valid private key/certificate pair in keychain

    I have done this over and over and still nothing.

    - i click on APP IDs > NEW APP ID

    - i fill it all in.
    (tshirtbooth videos shows generate new in bundle seed id (app id prefix)... mine doesn't, it says... USE TEAM ID) (i leave it at that)

    - then i do the backwards domain thing then click SUBMIT

    -then i click on PROVISIONING > DISTRIBUTION > NEW PROFILE

    - fill it all in then click DOWNLOAD.

    - when I click on the downloaded provisioning it opens xcode then says - xcode could not find not find valid private key/certificate pair in keychain
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    If none of this works, I would start over. Delete all of the profiles from xCode...Developer, provisioning, and distribution, and re-create new ones in iTunes Connect. Download them and install again. Basically re-create everything but the App ID.

    Not sure if it's your case, but the most common mistake is using a developer profile for the distribution. When i make a profile, I name it so there is no mistake in figuring out what is what. Like say i have a game called "Boom". I make one called "boomDev" for the developer profile, and then I make another called "boomDist" for the distribution profile. Since I started doing that, I no longer choose the wrong one in GameSalad, so uploading to the app store doesn't take me 2 days anymore.

    Somehow, i was always picking the wrong profile, and after a few tries of doing it wrong, something gets wacky, and it won't work even of you start doing it right, so you have to delete the profiles, and do it again from scratch. I don't know if it gets corrupted or what, but this is my experience with uploading to the app store. Hope that helps.
  • VGXVGX Member Posts: 796
    just edited my post above SlickZero. am i missing or messing with something?
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    I wouldn't make any more App ID's. Those just start piling up and you can't delete those. They don't usually cause any problems since they are a reference file that stays on Apples server, and not on yours. So those usually don't corrupt.

    And the Team ID...If you mean in GameSalad where you select the profile...Instead of Team ID, try using the distribution profile instead.

    But you are getting an error when installing the distribution profile in xCode…That's an odd error that i haven't received personally. There are so many certificates to have just to get going, it's crazy. When you first started out, long before you were ready to send your app to Apple, did you install your basic Developer and Distribution Profiles? You have to have a set of basic profiles for your account, and then when you have an app ready to go, you have to have another distribution profile specifically for the app, this one is different than the one you need to have in general.

    That's the only thing i can think of at the moment that would give you an error when trying to create and install an app distribution profile.
  • Rob2Rob2 Member Posts: 2,402
    You are missing the private key that should reside in your keychain. Did you upgrade to Lion or was it a fresh install.

    It should be a closed loop.

    You create a certificate signing request which is then uploaded to Apple (you send a public key which matches your private key). They make you a certificate against this request which you then download and should match up with the private key you originally created.
  • theCodeMonsterstheCodeMonsters Member Posts: 359
    Yeah that's what I was saying, you probably don't have your private keys. Between now and your last time putting up a app on the app store have you switched computers or restored your computer?
  • VGXVGX Member Posts: 796
    I had a MacBook Pro but then sold it and bought an iMac. My first app I made was on the MBP but now my new game was made on the iMac
  • Rob2Rob2 Member Posts: 2,402
    So you need to generate new CSRs and basically go through the whole process again (unless you kept a copy of your private key ?)
  • VGXVGX Member Posts: 796
    how do i generate a new CSRs (whatever that is)?
  • VGXVGX Member Posts: 796
    I have requested a new ceritficate and have all the others also added to the keychain but xcode still says can't find valid signing identity and there are 2 things that are marked red in the keychain -

    com.apple.kerberos.kdc
    com.apple.systemdefault
    - they both say, this root certificate is not trusted

    what is this?
Sign In or Register to comment.