Debugging XCode on real device - keychain probs

Discussion in 'iOS Programming' started by martinjm, Oct 25, 2012.

  1. martinjm, Oct 25, 2012
    Last edited: Oct 25, 2012

    martinjm macrumors newbie

    Joined:
    Jul 3, 2012
    #1
    Hi, I'm ready to start testing my app on the real thing :D but get

    'Code Sign error: The identity 'iPhone Developer' doesn't match any valid, non-expired certificate/private key pair in your keychains' in Xcode.

    I'm sure this is common and easy to fix, but haven't found anything that makes sense yet! The iPad is running iOS6 and Xcode 4.5

    Do I need to have a common key on both devices? Or something else?

    I'm an Apple newb, so all this is a bit new to me :eek:

    Cheers,

    Martin.
     
  2. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #2
    There's these

    Technical Q&A QA1618 Resolving "CodeSign: no certificate found in keychain for code signing identity" errors.

    Technical Note TN2250
    Understanding and Resolving Code Signing Issues
     
  3. martinjm thread starter macrumors newbie

    Joined:
    Jul 3, 2012
    #3
    OK, seems I missed the bit about needing a certificate! I think I've found how to get one of those so will have another go tomorrow when there's an iPad in the office.
     
  4. martinjm thread starter macrumors newbie

    Joined:
    Jul 3, 2012
    #4
    Code Sign Error when debugging on device

    OK, I've got my certificate and installed it (at least I'm pretty sure I have...).

    When I debug on the attached iPad I get

    'Code Sign error: The identity 'iPhone Developer' doesn't match any valid, non-expired certificate/private key pair in your keychains'

    Which seems to be fairly common, but I haven't found a full answer.

    What have I missed (in simple steps please!).

    Cheers,

    Martin.
     
  5. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
  6. martinjm thread starter macrumors newbie

    Joined:
    Jul 3, 2012
    #6
    Wahay!! Got it and have lift off!

    'To invoke Provisioning Profile Refresh, open Xcode's "Window" menu > Organizer > Devices tab > "Provisioning Profile" sidebar under Library and click the Refresh button'

    was the relevant bit. I was looking under Devices not Library.

    Thanks very much, I can head off on my hols tomorrow with a smile :)
     

Share This Page