Keep getting "Account authentication error" in xcode - xcode

I have been getting this yellow cloud (Photo attached), that states I am not signed into my account. However, I am when it comes to checking out the accounts page in the general tab of xcode.
I know it is newbie thing, but for the life of me, cannot figure out why it is happening.
My GitHub is also linked, as I have been committing my code.
When I go to "my certificates", my certification is listed, by there is no status under the "status" column heading.
I have signed out. Removed all instances of xcode in keychain. Asked to sign in again, did so - and still met with the authentication error.
Double checked Apple ID and password, both correct.
Is there another reason this may be happening that I am unaware of?
I have signed out. Removed all instances of xcode in keychain. Asked to sign in again, did so - and still met with the authentication error.
Double checked Apple ID and password, both correct.
Thought it may be an initial login error, but that is not the case.

If anyone is wondering, it seems to be a bug with 14.2
Apple forums have numerous cases of the same instance.
I just dismiss the notification for now, and all seems to work perfectly fine.
Hope this helps anyone that may be going through the same issue.

Related

Xcode Simulator Constantly Requires Verification

I'm not sure if this is a recent change, but the simulator in Xcode 14 (I'm now on 14.0.1)
CONSTANTLY requires login. I can't pick up a pattern, but for sure if I leave my
workstation for a while, this verification box will be on the screen.
I have to login many, many times a day. I have not been able to find anything in settings
within the simulator that keeps the login alive. Nor have I found anything in Xcode
preferences that address this issue. And I have not found anything through web searches.
Any guidance would be appreciated.

How do I Generate a Certificate Signing Request?

Every time I try to generate a certificate, I get this error. I have restarted the computer and it is still happening. I have no ideas what to do.
I'm running MacOS 10.15.5 on a 5k iMac. I have never had this issue before.
In the Keychain Access window, make sure you don't have any of the private keys selected. I'm not sure what the interaction is, but it changes what you are requesting from the authority as you can see by the menu text changing:

Can't access iPhone device after installing Xcode 11 and iOS 13

I recently installed latest Xcode 11 update and iOS 13 on my iPhone device. When I started the the device it said code sign wants to use a keychain key and asks me for a password. I tried my usual passwords but with no luck - the passwords don't work. I have used the iPhone device before many times, so I'm confident it has something to do with my recent updates.
I tried accessing my keychain, and found the key in question, but there is no way to look at passwords for keys, this is only available under the password category as far as I know. I took a look under the passwords to see if there was something associated with Xcode or the key. I tried a few but with no luck.
So what's going on here? What password does the device want? How do I get a hold of it? If that can't be done, is there some way I can just reset the device and start from scratch with certificates and such?
Ok, solved it on my own. Posting here if someone runs in to the same problem. Anyway, in keychain I deleted the certificate, then in Xcode there came an immediate error under signing and capabilities saying that the certificate was missing. There was a button called revoke. I pressed it and the certificate was added agin to keychain. I ran the app on the device again asked me again for a password. This time the password worked and I could get access to the device.
Honestly I have no idea what the issue was or why it was solved this way, but there you go.

xcode organizer refreshing provisioning profiles

I have had a look around and everyone seems to be having loads of different issues with the xcode organizer, but they don't seem to be having the same issue so I can't quite isolate my issue.
The issue I am having is when I go to the organizer and refresh the provisioning profiles it produces a message saying
Sign in with your Apple ID
the username and password I provide are both correct but the window goes away and then immediately returns and doesn't say whether or not I enter correct details (I know they are correct) and it will continue asking me this for as long as it takes to refresh the profiles. This also happens when I select a device to use for development, but the device is never actually added to the team provisioning profile even though it says it has been.
Has anyone any idea how I can stop this?
I guess in your position I would carry out the following checks:
Can you log in to your account on the Provisioning Profile. If
you can then your Apple ID and password must be OK
When in Xcode and responding to the 'sign in' message are you
using the username & password remembered by KeyChain? Are you sure
these are both OK? Maybe enter them manually again to make sure
In Xcode go to the Provisioning Profiles screen in the Organiser
tab and right-click a profile and select 'reveal in Finder'. Does
the folder holding your local copies of provisioning profiles
contain any extra files that might be old/corrupted versions? If so,
delete them, return to Xcode and attempt to refresh again.
If the above three checks don't yield anything useful then I
think it must be something corrupted on the provisioning profile
(such as a provisioning profile or certificate) that needs to be
revoked - letting Xcode create it/them anew for you. Or something
out-of-date or corrupted locally (maybe a public or private key or
certificate in KeychainAccess - a local copy of a provisioning
profile). And you may have to start revoking/deleting digital assets
to get things working again (but only do this if you have no other
choices...)
I once had a horrible issue with an iPhone developer certificate that took ages to fix - but perseverance eventually paid off - good luck!

'Valid Signing Identity Not Found' in Xcode 4.2

I know there are other questions that are very similar to this, but their symptoms aren't quite the same as mine.
I have an app that I've been trying to submit to the App Store. I was running Xcode 3.2.6, and I kept getting an Invalid Binary error from iTunes Connect. I eventually found an answer that points to upgrading Xcode, so I downloaded 4.2.
Now the problem is that Xcode won't recognize the distribution certificate that I used for the provisioning profile. I tried adding the profile and it gives the error message in the title. Also, if I try the Automatic Device Provisioning, the Distribution profile disappears completely.
This has been causing me some trouble for quite some time now. I know I have the Distribution certificate in my Keychain, so I think that Xcode is having a hard time seeing it for some strange reason. If you have an answer, please give it. If you need more info, go ahead and ask. I just need to find a solution...
EDIT:
I'm thinking of diving into the project file through text edit and manually adding the distribution profile. At the part that says PROVISIONING_PROFILE = "", what do I put between the quotation marks?
It sounds like you might not have the private key that you used to generate the certificate with Apple originally. If you have the private key installed when you open keychain access and click on certificates there would be a disclosure triangle you should be able to drop down and see the private key for that certificate like so:
If you don't have this key you need to delete the certificate you currently have, go to the iOS provisioning portal, revoke your current certificate and create a new one. The whole process shouldn't take more than 10 minutes.

Resources