1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

error in xcode when trying to run app on iphone

Discussion in 'iPhone/iPad Programming' started by chenks, Nov 22, 2009.

  1. macrumors 6502a

    chenks

    #1
    i'm getting the following error when i try and run the created app on an iphone.

    [​IMG]

    any ideas why?
    i've imported all the relevant certs etc (as per the tutorial videos on developer.apple.com/iphone).
     
  2. macrumors newbie

    #2
    This problem is there when the certificate is not installed properly.Have you properly gone through the process??

    From which pc did you sent the CSR request ??
     
  3. macrumors 6502a

    chenks

    #3
    yes, as stated originally, i went thru all the appropriate certificate creation and importing as per the instructions on developer.apple.com (following the video tutorials).

    the xcode developement mac is the same mac that the certificates were created and imported on.
     
  4. Moderator

    dejo

    Staff Member

    #4
    What does your Keychain Access app say you have for your developer certificate? (A screenshot of that and your code signing settings would, if you're willing, help).
     
  5. macrumors 6502a

    chenks

    #5
    tell me how to get this info and i will.
     
  6. Moderator

    dejo

    Staff Member

    #6
    Um, if you're not sure how to get this info, then I'm not sure you've followed the steps that Apple requires. If you had, I would think it would be fairly obvious how to get it. :confused:
     
  7. macrumors 6502a

    chenks

    #7
    well i have followed the steps that apple requires (and used the tutorial videos to do it).

    i'm just not overly familiair with they keychain app itself.
     
  8. Moderator

    dejo

    Staff Member

    #8
    Have you followed all the steps outlined in the Program Portal? (I don't know if the videos cover all this; I've never watched them.)

    Open up Keychain Access and view the My Certificates category. Open your iPhone Developer cert.
     
  9. macrumors 6502a

    chenks

    #9
    again, yes

    in login / my certificates there is nothing
    in login / certificates there is the "iphone developer: myname" certificate
     
  10. Moderator

    dejo

    Staff Member

    #10
    And if you open it up, it has a private key?
     
  11. macrumors 6502a

    chenks

    #11
    not seeing anything in there about a private key. can see public key info.

    in login/keys i have both a public and private key listed
     
  12. macrumors 603

    #12
    Watch the video and/or read the docs again. You need to put 2 different certs in your keychain. Yours and WWDC's.
     
  13. macrumors 6502a

    chenks

    #13
    i have the WWDC key in my keychain.
     
  14. Moderator

    dejo

    Staff Member

    #14
    So, you have no private key associated with your iPhone Developer certificate. I would just go ahead and generate a new CSR.
     
  15. macrumors 6502a

    chenks

    #15
    should the existing private key (created as per the dev instructions) not be associated with it?

    i assume this is done via "request a certificate from a certificate authority"?
     
  16. Moderator

    dejo

    Staff Member

    #16
    It should. For some reason, it isn't. And I believe that's the problem.

    Correct.
     
  17. macrumors 6502a

    chenks

    #17
    ok sorted.

    i revoked the certificate in developer tools and re-uploaded a new one, and then downloaded that and imported into keychain.

    now resolved.
     

Share This Page