Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AppleID not recognized; Invalid JSON #388

Closed
kct3937 opened this issue Oct 19, 2024 · 23 comments · Fixed by #393
Closed

AppleID not recognized; Invalid JSON #388

kct3937 opened this issue Oct 19, 2024 · 23 comments · Fixed by #393

Comments

@kct3937
Copy link

kct3937 commented Oct 19, 2024

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

@bohdanpodvirnyi
Copy link

same issue here

@ElvisFeagin
Copy link

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

@sethbang
Copy link

+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.}))))

@MattKiazyk
Copy link
Contributor

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.

XcodesOrg/XcodesApp#630 for same issue in Xcodes UI

Thanks
-Matt

@MattKiazyk MattKiazyk pinned this issue Oct 20, 2024
@spadafiva
Copy link
Contributor

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

@kct3937
Copy link
Author

kct3937 commented Oct 21, 2024 via email

@MattKiazyk
Copy link
Contributor

@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.

@kct3937
Copy link
Author

kct3937 commented Oct 21, 2024 via email

@spadafiva
Copy link
Contributor

@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?

@MattKiazyk
Copy link
Contributor

@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: XcodesOrg/XcodesApp#622 for reference. It needs Xcode 16.1 Beta 3+ as it uses its xcodebuild command to download the runtime.

@spadafiva
Copy link
Contributor

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?

@MattKiazyk
Copy link
Contributor

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.

@m1entus
Copy link

m1entus commented Oct 21, 2024

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

@MattKiazyk
Copy link
Contributor

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

@jeffypooo
Copy link

I am also seeing similar JSON decode errors now with 1.5.0

@PetterBraka-Trainline
Copy link

I have the same issue

@KyleARector
Copy link

KyleARector commented Oct 24, 2024

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

@calebhearth
Copy link

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.

@PetterBraka-Trainline
Copy link

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."
fastlane/fastlane#26368 (comment)

@khambley
Copy link

Just installed and having same issue

@MattKiazyk
Copy link
Contributor

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/.

@kct3937
Copy link
Author

kct3937 commented Oct 30, 2024 via email

@kct3937
Copy link
Author

kct3937 commented Oct 30, 2024 via email

@MattKiazyk MattKiazyk unpinned this issue Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.