xcodes icon indicating copy to clipboard operation
xcodes copied to clipboard

AppleID keeps getting locked

Open schwa opened this issue 1 year ago • 18 comments

I keep getting the "your AppleID is locked" error when using Xcodes.

I know there have been a lot of problems with AppleID recently (the great account locking of late April…) but despite that this does seem to be more common in Xcodes and has certainly been happening before the issues AppleID had at the end of April.

For reference (and searchability) the error I get in Xcodes is:

"Unable to install Xcode This Apple ID has been locked for security reasons. Visit Forgot to reset your account (https:///forgot.apple.com)."

And if I try to log in anyways I get a red warning under the login field ("This Apple ID has been locked for security reasons. Visit Forgot to reset your account (https:///forgot.apple.com).")

Is there anything Xcodes can do to mitigate these issues?

I am running Xcodes on 3 machines so I wonder (although I only launch the app when I know there is an Xcode to download) if that is causing the problem. I am unsure if Xcodes installs a persistent helper daemon (nothing in preferences implies it is).

Is it possible to switch from using my appleid and password to using "app specific" passwords?

Thanks

Screenshots attached. Screenshot 2024-05-08 at 09 21 48 Screenshot 2024-05-08 at 09 22 53

schwa avatar May 08 '24 16:05 schwa

Same here. Happened a few times in the last few weeks. Always when utilizing Xcodes.

dfed avatar May 08 '24 17:05 dfed

Is it possible to switch from using my appleid and password to using "app specific" passwords?

I would love love love if Xcodes could not be dependent on apple passwords and use app passwords, but every time I've tried, the 2 systems don't work with each other. ie The login token I get from X doesn't work with Y. They way that Xcodes, Fastlane (and others) have always worked is by faking out the login you do at apple.com and fragile(ly) setting tokens and header keys. AppStoreConnect has a very nice api that supports this, but can't use that same api for developer.apple.com.

Previously in the past, users were getting locked out, because Apple changed and added in a hashcash key https://github.com/XcodesOrg/XcodesApp/pull/361 . They may have well done something again, but I haven't seen anything widespread.

Hopefully all your machines @schwa @dfed are on the latest version? Other than that, I'm not sure what else I can do to help this situation.

MattKiazyk avatar May 08 '24 18:05 MattKiazyk

Yeah all my machines are on 2.1.2. The first time this happened there was this more widespread incident, and I've been getting my account lock relatively consistently when using Xcodes since. As a casual observer, it feels like Apple may have changed something here? That said, I'm far from in this world and I trust your judgement – just reporting my experience thus far.

dfed avatar May 08 '24 18:05 dfed

Yeah latest version here.

Would extra logging help at least provide any insight into what's causing it?

Are you just displaying the error string some HTTP service gives you are you interpreting something else as a lock out? The lock out message is very specific - so I'm curious.

schwa avatar May 08 '24 18:05 schwa

(Anecdotally other folks have mentioned this occurred to them this morning too - maybe somewhat widespread?)

schwa avatar May 08 '24 18:05 schwa

In my case it doesn't say apple id is locked, it simply rejects the correct 2FA code I enter. Tried like 5 times, same error: "The code that was entered is incorrect"

macOS 14.5 (23F79), M2; Xcodes 2.1.2(26)

Screenshot 2024-05-14 at 15 52 57

nalexn avatar May 14 '24 09:05 nalexn

And this morning everything locked again - while rest of account on Mac is just fine.

Are there logs I can check to see what the responses are from Apple?

schwa avatar May 14 '24 16:05 schwa

Seeing this for the first time today, the first time I've tried to update a version in some weeks. Apple ID otherwise fine and able to login in other places.

incanus avatar May 14 '24 16:05 incanus

I haven't seen this in a bit – might have been a blip?

dfed avatar Jun 11 '24 20:06 dfed

I haven't seen this in a bit – might have been a blip?

For me, It's still an issue, cannot log in.

vadimvitvickiy avatar Jun 14 '24 05:06 vadimvitvickiy

After trying to log in to the App Store Connect, I've got the same message, and had to unlock the account from my device.

vadimvitvickiy avatar Jun 18 '24 06:06 vadimvitvickiy

And again today… Screenshot 2024-07-09 at 08 10 48

schwa avatar Jul 09 '24 15:07 schwa

same issue here

halpz avatar Jul 17 '24 16:07 halpz

This happened to me for the first time just now trying to download Xcode 16 Beta 3 using xcodes. Apple account was fine last night.

bunnyhero avatar Jul 18 '24 21:07 bunnyhero

It locked my account again today - Can this work with app-specific passwords ?

halpz avatar Jul 24 '24 10:07 halpz

Same issue here

pmusolino avatar Aug 27 '24 10:08 pmusolino

I haven't seen this in a long time. I moved from using my personal Apple ID with Xcodes to using my work one.

dfed avatar Aug 29 '24 17:08 dfed

Suddenly XCodes has an error reading my Account info. Worked yesterday, but this morning...hooped! Checked my AppleID and all is good. Looks like XCodes did an update.

CleanShot 2024-10-19 at 12 18 02

kct3937 avatar Oct 19 '24 21:10 kct3937

@kct3937 https://github.com/XcodesOrg/XcodesApp/pull/640 fixed this in XcodesApp 2.4.0.

dfed avatar Oct 29 '24 03:10 dfed

At last 2.4.0 allowed me to log into apple account 🔥

nalexn avatar Oct 29 '24 06:10 nalexn

Mine is working too. Good stuff! Thanks to Xcodes

On Mon, 28 Oct 2024 at 23:43, Alexey Naumov @.***> wrote:

At last 2.4.0 allowed me to log into apple account 🔥

— Reply to this email directly, view it on GitHub https://github.com/XcodesOrg/xcodes/issues/365#issuecomment-2443339305, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB4Y655LAZTCQZIM4AOYJJ3Z54VBPAVCNFSM6AAAAABHNJUJTWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBTGMZTSMZQGU . You are receiving this because you were mentioned.Message ID: @.***>

kct3937 avatar Oct 29 '24 18:10 kct3937

I'm guessing that this issue was fixed by https://github.com/XcodesOrg/xcodes/pull/393 and therefore can be closed.

dfed avatar Jan 06 '25 15:01 dfed

the issue is back! Just locked 2 accounts in two days.

frankois944 avatar Jun 11 '25 13:06 frankois944