Apple ID login failing?

I can log in to the member center, but Xcode won't login. In the Accounts section of Preferences, under Apple ID, I see:


****@***.com could not sign in.


And there is a Retry button, which does nothing.


Checking the Console, it looks like it wants an app-specific password? I really need to do that for Xcode?


11/12/15 7:34:36.644 AM Xcode[70438]: DeveloperPortal: Completed request 57FFDC0E-389C-4BB8-AF8C-89E67C3D9AB9 (failure): Error Domain=DVTDeveloperAccountErrorDomain Code=5 "****@***.com could not sign in." UserInfo={NSLocalizedRecoverySuggestion=Please sign in with a valid app-specific password. You can manage your passwords at appleid.apple.com., DVTDeveloperAccountErrorAccount=<DVTAppleIDBasedDeveloperAccount: 0x7faf7c6c6010>, NSLocalizedDescription=****@***.com could not sign in., DVTDeveloperAccountErrorPortalResponseDictionary=<CFBasicHash 0x7faf6fc86190 [0x7fff748f2390]>{type = mutable dict, count = 7,

entries =>

2 : <CFString 0x7fff7481cd10 [0x7fff748f2390]>{contents = "protocolVersion"} = A1234

3 : <CFString 0x7faf6fc86e70 [0x7fff748f2390]>{contents = "creationTimeStamp"} = <CFString 0x7faf6fc7b760 [0x7fff748f2390]>{contents = "2015-12-11 12:34:36"}

6 : <CFString 0x7faf6fc79060 [0x7fff748f2390]>{contents = "userLocale"} = US-EN

8 : resultCode = -22938

9 : <CFString 0x7faf6fca2020 [0x7fff748f2390]>{contents = "resultString"} = <CFString 0x7faf870a5400 [0x7fff748f2390]>{contents = "Please sign in with a valid app-specific password. You can manage your passwords at appleid.apple.com."}

10 : userString = <CFString 0x7faf870a5400 [0x7fff748f2390]>{contents = "Please sign in with a valid app-specific password. You can manage your passwords at appleid.apple.com."}

11 : <CFString 0x7faf6fc8eae0 [0x7fff748f2390]>{contents = "responseID"} = <CFString 0x7faf6fc80930 [0x7fff748f2390]>{contents = "46be0d74-637f-4f71-8578-9c1c8c52bf7f"}

}

, DVTDeveloperAccountErrorPortalResponseText=<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

<plist version="1.0"><dict><key>creationTimeStamp</key><string>2015-12-11 12:34:36</string><key>responseID</key><string>46be0d74-637f-4f71-8578-9c1c8c52bf7f</string><key>userLocale</key><string>US-EN</string><key>resultCode</key><string>-22938</string><key>resultString</key><string>Please sign in with a valid app-specific password. You can manage your passwords at appleid.apple.com.</string><key>userString</key><string>Please sign in with a valid app-specific password. You can manage your passwords at appleid.apple.com.</string><key>protocolVersion</key><string>A1234</string></dict></plist>, DVTDeveloperAccountErrorPortalResponseData=<CFData 0x7faf7082b430 [0x7fff748f2390]>{length = 739, capacity = 1024, bytes = 0x3c3f786d6c2076657273696f6e3d2231 ... 3c2f706c6973743e}, DVTDeveloperAccountErrorPortalResultCode=-22938}

Replies

I have the same issue: can log into the developer program just fine in a web browser, but attempting to add my Apple ID into the Accounts panel of Xcode throws a "Please sign in with a valid app-specific password." error.

You can get an app specific password by doing the following:


1. Log in to appleid.apple.com

2. Select Password and Security

3. Generate an app-specific password

4. In Xcode's Account panel, replace your password with the new app-specific password you have generated.

Yes I know I can get an app-specific password, but I shouldn't have to. Xcode has been working just fine with my regular password for ages. And instead of app-specific password, I would expect two-step verification would kick in.

Thanks. That helped. The App-Specific password is certainly non-intuitive. Very odd that Apple would require you to go hunt it down like that.

If you’ve turned on Two-Factor Authentication, it is now enabled in Xcode 7.1 and later on 10.11 and later. You will need an app-specific password if you are on OS X prior to 10.11. For more information, see https://itunespartner.apple.com/en/apps/news/3787931

Oh, that must be it. I'm on 10.11, but I've got Xcode 7.0. I'll upgrade to 7.1 and see what that does. Thanks.

With the information stated below I would just add that for #2 - select Security >> Edit and then you will see the option to Generate app-specific password

k311yNov 12, 2015 10:29 AM(

in response to bss)

You can get an app specific password by doing the following:


1. Log in to appleid.apple.com

2. Select Password and Security

3. Generate an app-specific password

4. In Xcode's Account panel, replace your password with the new app-specific password you have generated.

"4. In Xcode's Account panel, replace your password with the new app-specific password you have generated."

Fine, but the "Retry" button still does NOTHING. So there is no opportunity to use the app-specific password I generated.


It still just says "<my apple id> could not sign in"


Help?

This worked for me. Thanks!

I have the "Two-step verification" on, so I need an App-specific password for Xcode.


I create it, put in my account in Xcode... and it works...


but the day after doesn't work... I have every time to recreate an App-specific password?


I have already delete my account and added again...

I have also contact the developer support in my country (italy) but they say to search here.


every time I see my old App-specific password active on "Manage Apple ID" but just the new one works.