xcodes icon indicating copy to clipboard operation
xcodes copied to clipboard

AppleID not recognized; Invalid JSON

Open kct3937 opened this issue 1 year ago • 19 comments

Suddenly XCodes has an error reading my Account info. Worked yesterday, but this morning...hooped! Checked my AppleID and all is good. No Change in the information at all. Looks like XCodes did an update during the night Version: 2.3.0

CleanShot 2024-10-19 at 12 18 02

kct3937 avatar Oct 19 '24 21:10 kct3937

same issue here

bohdanpodvirnyi avatar Oct 20 '24 12:10 bohdanpodvirnyi

Same problem. Running latest version. Cannot Sign in. Checked userid/password. These are correct. Screenshot 2024-10-20 at 6 53 18 AM

ElvisFeagin avatar Oct 20 '24 13:10 ElvisFeagin

+1

Terminal:

xcodes install --latest-prerelease Updating... Latest prerelease version available is 16.1 Beta 3 Apple ID: xxxx Apple ID Password: xxxx

The operation couldn’t be completed. (DecodingError.dataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: "The given data was not valid JSON.", underlyingError: Optional(Error Domain=NSCocoaErrorDomain Code=3840 "Unexpected character '<' around line 1, column 1." UserInfo={NSJSONSerializationErrorIndex=0, NSDebugDescription=Unexpected character '<' around line 1, column 1.}))))

The operation couldn’t be completed. (DecodingError.dataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: "The given data was not valid JSON.", underlyingError: Optional(Error Domain=NSCocoaErrorDomain Code=3840 "Unexpected character '<' around line 1, column 1." UserInfo={NSJSONSerializationErrorIndex=0, NSDebugDescription=Unexpected character '<' around line 1, column 1.}))))

sethbang avatar Oct 20 '24 15:10 sethbang

Hey everybody. Apple removed the way Apple sessions are done so I need to updates both Xcodes to handle the new way. This affected fast lane and others as well.

Please be patient. I'll be doing my best to update and release a fix this week.

https://github.com/XcodesOrg/XcodesApp/issues/630 for same issue in Xcodes UI

Thanks -Matt

MattKiazyk avatar Oct 20 '24 16:10 MattKiazyk

Sorry for the spam, but will this also resolve the issue with the iOS 18 runtimes here or are they unrelated?

spadafiva avatar Oct 21 '24 17:10 spadafiva

Yes they are related. I did not see that posting when I added mine. I did add mine to that thread afterward and thought that I had nuked this. There was an answer yesterday that indicated that the problem is caused by a process change by Apple and they(Xcodes) are working to rectify it this week.

Watch either space.

On Mon, 21 Oct 2024 at 10:30, Joe Spadafora @.***> wrote:

Sorry for the spam, but will this also resolve the issue with the iOS 18 runtimes here https://github.com/XcodesOrg/xcodes/issues/384#issuecomment-2380878485 or are they unrelated?

— Reply to this email directly, view it on GitHub https://github.com/XcodesOrg/xcodes/issues/388#issuecomment-2427319106, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB4Y6562PO2W5UE5Y2LCBETZ4U2ZZAVCNFSM6AAAAABQH2YVEOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRXGMYTSMJQGY . You are receiving this because you authored the thread.Message ID: @.***>

kct3937 avatar Oct 21 '24 17:10 kct3937

@spadafiva for clarification, the issue you are linking is not related. I added iOS 18 runtime downloads to the Xcodes UI, and was starting to add it into the CLI, when the login issue stopped that. Downloading of runtimes does not require any logins.

MattKiazyk avatar Oct 21 '24 18:10 MattKiazyk

Ok, thanks for the clarification.

On Mon, 21 Oct 2024 at 11:01, Matt Kiazyk @.***> wrote:

@spadafiva https://github.com/spadafiva for clarification, the issue you are linking is not related. I added iOS 18 runtime downloads to the Xcodes UI, and was starting to add it into the CLI, when the login issue stopped that. Downloading of runtimes does not require any logins.

— Reply to this email directly, view it on GitHub https://github.com/XcodesOrg/xcodes/issues/388#issuecomment-2427378231, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB4Y653YNJWRS2LGDY5N2TTZ4U6QPAVCNFSM6AAAAABQH2YVEOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRXGM3TQMRTGE . You are receiving this because you authored the thread.Message ID: @.***>

kct3937 avatar Oct 21 '24 18:10 kct3937

@spadafiva for clarification, the issue you are linking is not related. I added iOS 18 runtime downloads to the Xcodes UI, and was starting to add it into the CLI, when the login issue stopped that. Downloading of runtimes does not require any logins.

Is there anything I could do to help with this or translate from the xcodes app into this tool?

spadafiva avatar Oct 21 '24 18:10 spadafiva

@spadafiva for clarification, the issue you are linking is not related. I added iOS 18 runtime downloads to the Xcodes UI, and was starting to add it into the CLI, when the login issue stopped that. Downloading of runtimes does not require any logins.

Is there anything I could do to help with this or translate from the xcodes app into this tool?

The UI PR is here: https://github.com/XcodesOrg/XcodesApp/pull/622 for reference. It needs Xcode 16.1 Beta 3+ as it uses its xcodebuild command to download the runtime.

MattKiazyk avatar Oct 21 '24 18:10 MattKiazyk

The UI PR is here: XcodesOrg/XcodesApp#622 for reference. It needs Xcode 16.1 Beta 3+ as it uses its xcodebuild command to download the runtime.

Awesome, thank you! To clarify, do you know if the 16.1 release candidate also has this change or if it's something particular to that beta?

spadafiva avatar Oct 21 '24 18:10 spadafiva

The UI PR is here: XcodesOrg/XcodesApp#622 for reference. It needs Xcode 16.1 Beta 3+ as it uses its xcodebuild command to download the runtime.

Awesome, thank you! To clarify, do you know if the 16.1 release candidate also has this change or if it's something particular to that beta?

I see it just got released - I haven't tested it, but assuming that anything starting with beta 3 has it going forward. So RC1 should be fine. The user just has to have that Xcode selected/active.

MattKiazyk avatar Oct 21 '24 18:10 MattKiazyk

@MattKiazyk I just tested for 16.1 RC and seems it not working :/ (this is why i am here huh)

m1entus avatar Oct 21 '24 19:10 m1entus

18.0 runtime downloads are not supported (yet) by the CLI. This repo is for the CLI, not the UI.

MattKiazyk avatar Oct 21 '24 19:10 MattKiazyk

I am also seeing similar JSON decode errors now with 1.5.0

jeffypooo avatar Oct 24 '24 01:10 jeffypooo

I have the same issue

PetterBraka-Trainline avatar Oct 24 '24 13:10 PetterBraka-Trainline

I also have the issue, both in the CLI and the App.

KyleARector avatar Oct 24 '24 13:10 KyleARector

Y'all we've been asked to stop +1ing this. If you're trying to follow along there's a notifications picker on the right hand side of this page on desktop.

calebhearth avatar Oct 24 '24 14:10 calebhearth

Fastlane had the same issue. It was caused by "Apple started using their own variant of SRP (Secure Remote Password) using SHA-256 and 2048 bit hashing in the sign in flow." https://github.com/fastlane/fastlane/issues/26368#issuecomment-2435770145

PetterBraka-Trainline avatar Oct 25 '24 10:10 PetterBraka-Trainline

Just installed and having same issue

khambley avatar Oct 27 '24 19:10 khambley

v 1.6.0 is now available to install with support for the SRP Login

NOTE: If you are still having trouble with invalid username/password being returned - people have been having success resetting their password via https://account.apple.com/.

MattKiazyk avatar Oct 30 '24 03:10 MattKiazyk

Awesome, thanks for the update!

Thank you for the good work. It's working as well as before

On Tue, 29 Oct 2024 at 19:27, Matt Kiazyk @.***> wrote:

Closed #388 https://github.com/XcodesOrg/xcodes/issues/388 as completed via #393 https://github.com/XcodesOrg/xcodes/pull/393.

— Reply to this email directly, view it on GitHub https://github.com/XcodesOrg/xcodes/issues/388#event-14994923742, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB4Y6522XATYXA6WIAPFKKDZ6A7Y5AVCNFSM6AAAAABQH2YVEOVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJUHE4TIOJSGM3TIMQ . You are receiving this because you authored the thread.Message ID: @.***>

kct3937 avatar Oct 30 '24 05:10 kct3937

Already done.

On Tue, 29 Oct 2024 at 20:15, Matt Kiazyk @.***> wrote:

v 1.6.0 is now available to install with support for the SRP Login

NOTE: If you are still having trouble with invalid username/password being returned - people have been having success resetting their password via https://account.apple.com/ https://account.apple.com/.

— Reply to this email directly, view it on GitHub https://github.com/XcodesOrg/xcodes/issues/388#issuecomment-2445742400, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB4Y653YXKA4PI7DAWEFUSTZ6BFN3AVCNFSM6AAAAABQH2YVEOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBVG42DENBQGA . You are receiving this because you authored the thread.Message ID: @.***>

kct3937 avatar Oct 30 '24 05:10 kct3937