2 dev-computers?

Discussion in 'iOS Programming' started by Danneman101, Oct 6, 2009.

  1. Danneman101 macrumors 6502

    Joined:
    Aug 14, 2008
    #1
    Ive got two computers: one running leopard, and a laptop I just purchased running snow.

    I want to be able to develop apps on both computers, which I understand means I have to keychain-sign the second computer as well.

    However, since Im registered as an individual I only get one Development Certificate, and this is already signed to my first computer.

    Ive tried following the instructions under "Program Portal->Certificates->HowTo", and did the first step (Generating a Certificate Signing Request) successfully.

    But in step two (Submitting a Certificate Signing Request for Approval) it says Im supposed to press the button "Add Certificate" under "Certificates’ > ‘Development’.

    The problem is there is no such button for me - most probably because Im an individual developer.

    So, is there a way to get development going on my laptop or can I only do it on one computer at a time?
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    You shouldn't need to generate a new CSR. Just copy the original from the first computer to the second and install into into your Keychain from there.
     
  3. Danneman101 thread starter macrumors 6502

    Joined:
    Aug 14, 2008
    #3
    Ok, so I:

    1. Exported the .p12-file from the keychain-program from the first computer.

    2. Double-clicked it on my second computer, and chose "login" in the Keychain-dropdown-box.

    Both a private key and a certificate is now available under "login" in the keychain-program.

    The keychain is valid it says.

    I do have two other keychains (1 private, and 1 public) that was made before I imported the one. Should I remove these?

    3. I then try to drag the various provisioningprofiles I have on my first computer on to xcode in the second computer.

    4. Start xcode, and the provisioningprofiles appear as warnings in the organizer->provisioning profiles, saying:

    "A valid signing identity matching this profile could not be found in your keychain".


    Any idea what Im doing wrong? Should be working, right?
     
  4. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #4
    I've never had any luck installing provisioning profiles via Xcode. I use iTunes instead (a suggested alternative according to the Program Portal).
     
  5. newlearner macrumors member

    newlearner

    Joined:
    Jul 30, 2009
    Location:
    india
    #5
    As as alternative to dragging the profiles into Xcode, try copying them into Library/Mobile Devices/ProvisioningProfiles: this always works for me.
     
  6. Danneman101 thread starter macrumors 6502

    Joined:
    Aug 14, 2008
    #6
    dejo: I could not find anything on how to do it via iTunes. You wouldnt happen to have a link, would you?

    newlearner: Yes, this also works in getting the provisiong-files into xcode, but the same problem occurs with this method - they still say "A valid signing identity matching this profile could not be found in your keychain".


    Ive installed and reinstalled the system, thinking that perhaps I screwed up my keychains somehow and perhaps even exported the wrong key.

    Could someone please tell me what items I need to export from my first computers keychain in order to make it work in computer 2? This is what Ive got:

    login:
    - Apple Worldwide Developers Relations, certificate (valid)
    - MyKey, private key
    - MyKey, public key
    - Iphone Developer: My Name, certificate (valid)
    - Iphone Distribution: My Name, certificate (valid)

    system:
    - Apple Worldwide Developers Relations, certificate (valid)
     
  7. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #7
    Here's what the Program Portal > Provisioning > How To > Installing a Development Provisioning Profile says:
     
  8. firewood macrumors 604

    Joined:
    Jul 29, 2003
    Location:
    Silicon Valley
    #8
    I usually only install one dev certificate in the keychain per user account. Otherwise XCode is reported to sometimes get confused. If you have 2 dev certs in your keychain, delete both and reinstall the one you want to use with that account (from the .p12). Then quit and restart XCode before trying to add your provisions.
     
  9. Danneman101 thread starter macrumors 6502

    Joined:
    Aug 14, 2008
    #9
    Finally, it worked!

    1. Export private key from login on comp 1.
    2. Import and install it to comp 2.
    3. Download and install Certificate.
    4. Download and install WWDRCA.cer (which was the step I stumbled on)
    5. Download and install developers/distr. provisioning profiles to xcode.

    Thanks for you help :)
     
  10. TAJones99 macrumors member

    TAJones99

    Joined:
    Apr 26, 2009
    Location:
    Jacksonville, FL
    #10
    I have the same problem I just got a macbook pro that I want to do my apps on it as well, so the certs I need will be the apple worldwide developer and iPhone Distribute one from my iMac is that right.
     
  11. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #11
    You'll need the WWDR certificate, your developer certificate, your distribution certificate, your private key, your development provisioning profile, and your distribution provisioning profile. Whew. I think that's all of 'em.
     
  12. TAJones99 macrumors member

    TAJones99

    Joined:
    Apr 26, 2009
    Location:
    Jacksonville, FL
    #12
    Ok thanks
     

Share This Page