GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

"a valid signing identity matching this profile could not be found in keychain"

DookiDooki Posts: 247Member
edited November -1 in Tech Support
Hey all,

I reposting my issue in hopes that someone would have some insight to help. I'm still trying to install the GS viewer. I get to the point where I download the provisional profile and when I launch xcode I get the error stated in the topic of this thread.
Apple dev support is "looking" in to this. It's been a week since their last reply. GS support has shed some light by suggesting I dump the provision profile in the Library folder. Still no luck. Below is the steps I've done today.

- deleted the profile from Library
- deleted profile from organizer (Yes, I did find where this was).
- emptied cache and deleted history from Safari
- created new certficate
- new App ID, device profile, provisional profile.
- STILL SAME ERROR!

Any help on this would be greatly appreciated!

-Dooki

Comments

  • jonmulcahyjonmulcahy Posts: 10,383Member, Sous Chef
    when you tried to install the viewer, did you also alter the code signer to your installed profile?

    1. once open in xcode, right click on GameSalad Viewer and go to Get Info.
    2. Under the Configuration drop down, make sure 'Release' is selected
    3. Under Code Signing Identity, you should see another row called Any iPhone OS Device. You should see something like "iPhone Developer (currently matches 'iPhone Developer Bob Smith (12WJLX232.PROVISIONPROFILE)' in Development

    or something like that. That whole filed is a drop down, what do you see listed there?
  • Rob2Rob2 Posts: 2,402Member
    Provisioning profiles belong on your device (nowhere else...not that it would matter)

    I'd say you are missing a corresponding private key in your keychain, so generate a new CSR, upload to the dev portal and get a new certificate and prov profile. When you've downloaded the certificate right click and open with keychain access. Put the profile on your device with itunes, xcode organiser, or iphone configuration utility.
  • Rob2Rob2 Posts: 2,402Member
    scrap that..the provisioning profile needs to be in xcode as well ..doh..sorry.
  • DookiDooki Posts: 247Member
    Hi mulcahy,

    - Release= yes,
    - under "iPhone developer" I can see the profile I made but it grayed out. It also states the same error message below it.
  • DookiDooki Posts: 247Member
    Rob2,
    When I right click I can only open with "certificate assistant." If I navigate to my utilities folder Key Chain is grayed out so I can't open it.

    Also, not clear on how to "put the profile on your device with itunes, xcode organiser, or iphone configuration utility. "

    Much thanks!
  • Rob2Rob2 Posts: 2,402Member
    sounds like you are not logged on to your machine as admin??
  • Rob2Rob2 Posts: 2,402Member
    this could be the route of your problems??
  • Rob2Rob2 Posts: 2,402Member
    to say the least!!!
  • DookiDooki Posts: 247Member
    Hmm, well I checked my acct and I am admin. I am only one using this laptop. Hmmm.
  • Rob2Rob2 Posts: 2,402Member
    Yeah sorry.....(again) I think I might have gone off on a bit of a tangent there...but keychain being greyed out is very odd, I have posted a query on the apple forums...
  • Rob2Rob2 Posts: 2,402Member
    How did you create your CSR without access to the keychain?
  • DookiDooki Posts: 247Member
    Well I did use keychain to create the CSR. If I double click on it it launches the "certificate assistant." If I right click on the CSR the default is this same app as well. NOT the keychain app.

    Man, this is frustrating and I appreciate you help on this!
  • Rob2Rob2 Posts: 2,402Member
    copied from my apple forums question

    Do a "Get Info" on the file of the application (keychain app). What do you see for "Kind", "Size", "Version" and "Sharing & Permissions"?
  • DookiDooki Posts: 247Member
    Hey thanks Rob2.
    Get info on the app eh? OK, here is what I have:

    Keychain:
    Kind= Application (Intel)
    Size= 9.5MB
    Version= 4.1
    Sharing= It's all grayed out. I show "System (read/write), wheel, everyone (both read only)"
  • Rob2Rob2 Posts: 2,402Member
    looks correct...well same as mine anyway...but you still can't run keychain app hey ho..
  • DookiDooki Posts: 247Member
    Thanks again Rob2.
    Yeah, really strange. I just it again. No luck. I sent in another ticket to the apple dev support. Total bummer.
  • DookiDooki Posts: 247Member
    Hey when you say:

    "When you've downloaded the certificate right click and open with keychain access. Put the profile on your device with itunes, xcode organiser, or iphone configuration utility. "

    Do you mean open the CSR and request another CSR but relocate it in xcode (or iTunes)?
  • Rob2Rob2 Posts: 2,402Member
    No..but I think you should start again...

    just remember that at this stage you are not trying to distribute, either add hoc or app store, so are just interested in setting up for development on your device connected to your machine. All your development can be done with the SAME app id.
  • DookiDooki Posts: 247Member
    Yup, for now I'm just trying to get the game viewer set up. Also, I have several app ID's set up during my many efforts. I did this because I thought the CSR created was wrong. Am I mistaken? If I create a new CSR I can use an earlier app ID? I assume I would just need to reselect the newly created CSR right?
  • DookiDooki Posts: 247Member
    As far as trying again, I have. I have done this now about a dozen times, no kiddn'! I am at the mercy of the appl dev support in trying to figure why this is not working!

    Tran (the support guy from GS) mentioned that he had a similar problem. This was good to hear that I'm not the only one. Problem was that his solution did not fix my problem either.

    Anyway, I REALLY appreciate you helping me out.
  • Rob2Rob2 Posts: 2,402Member
    Have you been able to run 'keychain access' yet?
  • DookiDooki Posts: 247Member
    YAHOO!!!!
    I don't what I did but I finally got the CSR to work. I have another issue now (darn!) When I clicked on BUILD AND RUN I got this error message:

    Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.2 failed with exit code 1

    What does this mean? Of course this meant the the viewer did not load on my iphone either.
  • entersimonentersimon Posts: 269Member
    OK, I had this exact problem and have searched the internet far and wide for a clear description of what you should do to resolve this.

    I know this is an old topic, but I'm going to write this for the people who may stumble across this in their seemingly hopeless search for an answer.

    1. I'm sure there is another way to do this, but in all honesty, unless you're working with a TON of apps and are feeling too lazy to reassign a new certificate, just do this!

    2. I am really new to the dev center on apple.com and to xcode, so i'm going to write this out as thoroughly as I can.

    Obvious:

    READ ALL OF THESE INSTRUCTIONS BEFORE STARTING! THERE ARE A FEW TRICKY THINGS THAT SHOULD BE NOTED BEFORE STARTING! I TRIED TO MAKE THEM OBVIOUS IF YOU DIDN'T READ THEM ALL BEFORE YOU STARTED, BUT FOR SAFETY SAKE, read them all first.

    You need a paid developer account to put ANYTHING on your iphone/ipod/ipad through Xcode.

    Ok.
    first, go to your applications folder and open keychain access.

    Note that you can click on "login" and "System" words at the top left. This is vital to a later step, and to the next couple as well. You will need to unlock them if they are locked so that you can modify the content in each.

    find your certificates(all of them, the worldwide dev one, the developer one, and possibly another one with the same name associated with it as the developer) in login and system

    delete the ****.

    If you try deleting them, and they still stay in the list, you will just need to reboot your computer and do it again. This was the most annoying part of my journey to understanding the solution, so enjoy this information. A reboot will fix that issue if it arises.

    Once all traces of those certificates are gone from the lists:

    Get rid of the keys associated with those certificates. They will probably have your name attached to them and you can find them by clicking on "keys" at the bottom of keychain access window and looking in either the login or system list. Delete them and delete them good. Remember, if they don't leave the list after you press and confirm your deletion, reboot and it'll work.

    IF YOU WORKED ON A DIFFERENT MACHINE WITH NO ISSUES AND THEN SWITCHED TO A NEW MACHINE AND EVERYTHING WENT HAYWIRE, THEN THERE WILL BE NO KEYS TO DELETE. THIS IS WHERE THE PROBLEM HAS BEEN FOR YOU. DO NOT WORRY! WE WILL CREATE NEW KEYS TOGETHER AND WE SHALL BE HAPPY!

    Using SAFARI

    Using SAFARI

    Using SAFARI

    (using safari is important because you will come across a needless error while trying to upload your certificate request otherwise. This was one tidbit of information that saved me from tearing all of my hair out as I tried time and time again to submit through Chrome.)

    go to developer.apple.com and sign in and go to the ios portion of the dev center.

    go to the ios provisioning portal on the right hand side of that screen.

    click certificates, and REVOKE the current (and problematic) certificate.

    click Home on the left hand side.

    click on the "Launch Assistant" button under the "Get your application on an iOS with the Development Provisioning Assistant" headline towards the bottom of the screen.

    Go through and follow all of the directions.

    It will tell you to open up your applications folder and open keychain assistant.

    at the top of your screen (next to the apple symbol, while the keychain access window is active (hey, i said i was going to make it easy for beginners) click on the words "Keychain Access"

    click certificate assistant

    click Request a certificate from a certificate authority.

    fill in your information and then click saved to disk. and continue.

    follow the steps to create the request file and save it to your desktop (which is default, so you will probably just need to say ok)

    go back to your SAFARI window, and it will be asking you to choose the certificate request file.

    choose it from the desktop and continue through the assistant until it's complete.

    you have created the necessary public and private keys while creating the certificate request. SO YOU HAVE KEYS! YAAAAY!

    next step is to download the WWDR intermediate certificate and your newly created development certificate.

    Both of these can be found in the "certificate" tab on the left side of your screen. The WWDR is shown as a link under the development certificate list.

    Download them and DO NOT CLICK THEM TO AUTOMATICALLY INSTALL!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    This is where you will get into stupid trouble and think, I DID EVERYTHING RIGHT! I DID WHAT YOU ASKED OF ME AND STILL THIS DOES NOT WORK!

    Here's the trick. The final piece of the puzzle.

    Open your downloads folder and find the downloaded files.

    Open Keychan Access (if you closed it) and find the keys that were created while making your certificate request. They will be either in the login or the System list. Don't forget to unlock the lists if necessary.

    Drag and drop the downloaded certificates INTO THE LIST WHERE THE KEYS ARE!

    If you drag and drop them into the other list, the keys will have no idea that you did that, and they will be lonely forever and you will feel your chest tighten up and the rage of the unknown boiling from your gut.

    If you dropped them into the list that contains the keys, then you will notice a little drop down arrow to the left of the iphone developer certificate you just dropped in there. Click it and revel in the beauty of a key hanging out with its long lost friend.

    THAT'S IT!

    Now when you make a new mobile provision through the ios portal, and link it inside there with your newly created certificate, everything will be copacetic inside Xcode.

    Check out my daily app development blog at TheIndieDev.com

  • xyloFUNxyloFUN Posts: 1,593Member
    PLEASE MAKE THE ABOVE REPLY BY entersimon STICKY!!!

    I should print that just in case ....

    Hey, thanks for jolting that down! Articles like this one are rare :)
  • jonmulcahyjonmulcahy Posts: 10,383Member, Sous Chef
    I moved his reply to the publishing problems sticky.

    this thread is too old to be responding too, Apple changes has changed their publishing system slightly since then and make of the original posts may be conflicting with what you need to do now.
This discussion has been closed.