On a new mac, I installed xcode and needed to set up provisioning for a hello-world project to deploy to my iPad.
NOTE: I am using the new FREE provisioning (do not have a paid Apple account)
- I went to Preferences/Account signed in to my Apple account
- In the project, General tab, Team is set to my (free) Apple Dev account. (all seemed well, it recognized this as valid)
- I tried to deploy to the iPad and I got a build error "codesign failed with exit code 1"
- Supposedly this is to do with certificates. I went to Keychain Access and found "iPhone Developer: my@email.com (...)" in there, which was added when I signed in via my Apple Account.
- I DELETED this key (thinking I would simply re-add my Apple Account and thus this key)
- I then removed and re-added my Apple account from xcode preferences
- I can sign-in, I can see it adds keys, and Keychain Access Get Info on the keys indicates no issues (valid, etc)
- In xcode Preferences, when I click Manage Certificates, it shows "David's MacBook Pro (2)" and a bunch of "Untitled" keys ALL of which have a status of "Missing Private Key".
- xcode/General/Status section says "The username or passphrase you entered is not correct" even though my "Team" is signed in and valid
- Clicking "Try Again" shows "Waiting to repair", followed by "revoking...", followed by "Generating certificates" - which sounds promising, like it's doing exactly what I need, but then fails, private keys still missing, and back to step 9 here in a loop of hell.
ok? How do I get this resolved without flattening my OS back to factory and starting completely over?
Note: there are resolutions on SO that talk about Revoking the keys and generating new private keys from the Dev Console, like this one: How can I add private key to the distribution certificate?
HOWEVER, on a "free" account I have NO access to the Certificates section! I can't manage anything from the Dev portal online. I do, however, see xcode specifically set up to handle certs (see step 9-10 above) but it is not working. I really don't know where to go from here. I'm new to all things Mac and iOS and xcode. Frustrated. Thanks Apple, so much for a simple on-boarding experience on a simple hello-world app.