iOS Development Certificate in Keychain

I created my very first app using Xcode. I've tried it in the simulator and it worked perfectly.

I didn't want to publish it, I just wanted to try it on my iphone.

Here's where problems started. When I tried launching the app in my iphone using Xcode, I've been asked to allow keychain sharing. I clickled on allow and the message came back, so I clicked on deny. After that, an error showed up preventing me to launch the app in my iphone.

I figured out it's becaue I clicked on deny keychain sharing, so I tried to allow it from somewhere but I couldn't.


I started playing with the Keychain Access app on my mac trying to solve the problem. Eventually, I deleted the "iOS Development" certificate desperately trying to solve the initial problem.However, this made the problem even bigger, and I realized I made a terrible mistake by deleting that certificate. How can I obtain it agan?


When I tried to launch the app in my iphone through Xcode afterwards, I got more errors and one of them says "No signing certificate "iOS Development" found"

Now my biggest concern is the iOS Development certificate; how can I get it back?

Do you have a paid Developer Program account, or are you using Xcode 'free provisioning'?


Which version Xcode are you using?

Hello,

I was in the exact same position as you were and did a mistake very similar. I don't remember well if it was just the certificate or just the private key associated with it. Any way both were gone and I couldn't do anything.


What I did at one point was:

  1. Go to your Keychain Access
  2. Enter the System tab
  3. On the left pane, select the Keys section
  4. On the bottom of the window, click the '+' button. This will ask you to create a new Key
  5. Name it "iOS Development" and set a password of your choice.


After doing that, XCode fixed the issues and the same prompt for accessing keychain when trying to build the application appeared again. This time instead of using the Enter key to validate the password I clicked on the button (using the Enter didn't work for some reason and the password was not validated). Now everything works and I am able to test applications again on my iPhone.


I hope this process will work for you as well.

Any luck on this yet? im experiencing the exact same problem right now

I had the same error plus other problems with my comp after I hastily reset keychains to default. My problem was fixed after I restored the old keychain as explained here: https://discussions.apple.com/thread/7468150

Alternatively, I was going to system restore
iOS Development Certificate in Keychain
 
 
Q