Repository navigation
Comparing changes
Open a pull request
base repository: xtool-org/xtool
base: 1.19.0
head repository: xtool-org/xtool
compare: 1.19.2
- 9 commits
- 23 files changed
- 3 contributors
Commits on Sep 4, 2026
-
Configuration menu - View commit details
-
Copy full SHA for ae2bef7 - Browse repository at this point
Copy the full SHA ae2bef7View commit details
Commits on Sep 8, 2026
-
http: throw on unsuccessful responses (#246)
Ref #243. `makeRequest` never inspected `response.status`, so a non-2xx body was returned as if it had succeeded. Every caller decodes that body as a property list or JSON, so Apple answering with an HTML error page surfaced as: ``` Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: The given data was not a valid property list.. Underlying error: ... Encountered unknown tag html on line 1 ``` which says nothing about what actually happened. In the case that prompted #243, GSA was returning `503 Service Temporarily Unavailable` for the `apptokens` operation. It now reads: ``` Error: POST https://gsa.apple.com/grandslam/GsService2 failed: HTTP 503 Service Unavailable (text/html): <html> <head><title>503 Service Temporarily Unavailable</title></head> ... ``` ### Notes - The response body is only included in the message for `text/html` and `text/plain`, i.e. gateway error pages. Bodies from the auth endpoints can carry account details (the 2FA requests use `Accept: application/x-buddyml`), and errors get printed verbatim in places such as `DevCommand.swift:164`, so those are left out. It also avoids emitting replacement characters for binary bodies. - The non-2xx path does not report progress, so `XADIProvider`'s download no longer prints `100%` immediately before failing. - Body collection moved to `collect(_:onProgress:)` so there is a single exit point. Buffer pre-sizing and progress reporting are unchanged. - `SDKBuilder` already does this check by hand on `send()`, so it is unaffected. ### Behaviour changes worth a look - `XADIProvider` writes the Apple Music APK download straight to disk; a failed download now throws instead of leaving a corrupt `applemusic.apk`. - The 2FA requests (`GrandSlamTrustedDeviceRequest`, `GrandSlamSMSAuthRequest`, `GrandSlamValidateRequest`) use no-op decoders, so a rejected request is currently discarded and xtool goes on to prompt for a code that was never sent — the symptom in #235. Those now fail loudly. ### Two things I left alone - `GrandSlamTwoFactorAuthenticateOperation.swift:47` catches `GrandSlamOperationError` with code `-21669` to report an incorrect verification code, but that error is only thrown by `GrandSlamOperationDecoder`, which the validate requests do not use, so the catch is unreachable. With this change a wrong code surfaces as a raw HTTP error instead. Mapping the status back to `incorrectVerificationCode` seemed like your call, since I do not know what GSA returns for a bad code. - If any endpoint reports errors in a decodable body under a non-2xx status, this guard would pre-empt it. I could not find one — `developerservices2` returns HTTP 200 with `resultCode`/`userString` in the body, which is untouched here. Built and linted on Linux (`swift build --product xtool`, `make lint`: 0 violations). --------- Co-authored-by: Robetronica <[email protected]> Co-authored-by: Kabir Oberai <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 76b005f - Browse repository at this point
Copy the full SHA 76b005fView commit details
Commits on Sep 9, 2026
-
gsa: disregard keepalive (#247)
GSA seems to, sometimes, reject HTTP requests made on a kept-alive connection with a 503. This was either the real root cause, or a second root cause, for #243. Fix this by creating a new HTTP connection for each GSA request. See also: rileytestut/AltSign#52 and rileytestut/AltSign#47 Speculatively fixes #232
Configuration menu - View commit details
-
Copy full SHA for 8c77ca7 - Browse repository at this point
Copy the full SHA 8c77ca7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 189654c - Browse repository at this point
Copy the full SHA 189654cView commit details -
http: add some debugging knobs (#249)
## What does this PR do? Improves support for HTTP MITM ## How was it tested? Did some MITMing on macOS + Linux via Docker, using Proxyman and mitmproxy. Didn't test `XTL_HTTP_PROXY` but Sol pinkie promises me that it's correct. ## AI tool usage How much of this PR was AI-assisted? (check one) - [ ] **0** - No AI was used to write code - [x] **1** - I was assisted by AI. I reviewed the finished result. - [ ] **2** - I set the AI going and left it to it; nobody has read the result - no review, or AI review only <!-- If an AI agent is filling this in: declare the level honestly, and open as a draft if it is #2. Do not lower the declared level to get the PR reviewed. -->
Configuration menu - View commit details
-
Copy full SHA for b49941a - Browse repository at this point
Copy the full SHA b49941aView commit details -
docs: update contributor guide (#250)
## What does this PR do? Adds more info for contributors, plus AI policy. ## How was it tested? Read the docs on GitHub ## AI tool usage How much of this PR was AI-assisted? (check one) - [x] **0** - No AI was used to write code - [ ] **1** - I was assisted by AI. I reviewed the finished result. - [ ] **2** - I set the AI going and left it to it; nobody has read the result - no review, or AI review only <!-- If an AI agent is filling this in: declare the level honestly, and open as a draft if it is #2. Do not lower the declared level to get the PR reviewed. -->
Configuration menu - View commit details
-
Copy full SHA for 0f42daf - Browse repository at this point
Copy the full SHA 0f42dafView commit details
Commits on Sep 10, 2026
-
sdk: fix permission issue when copying clang resources (#255)
## What does this PR do? Fixes #254 by using `cp -R` instead of `FileManager.copyItem`. The latter tries to preserve the original owner of files instead of using the caller, which fails if you're non-root and the original files are root-owned. ## How was it tested? I was able to repro the original issue by installing an SDK as a non-root user in an xtool Docker container. Applied this patch, tried `xtool sdk install` again, and it worked. ## AI tool usage How much of this PR was AI-assisted? (check one) - [ ] **0** - No AI was used to write code - [x] **1** - I was assisted by AI. I reviewed the finished result. - [ ] **2** - I set the AI going and left it to it; nobody has read the result - no review, or AI review only <!-- If an AI agent is filling this in: declare the level honestly, and open as a draft if it is #2. Do not lower the declared level to get the PR reviewed. -->
Configuration menu - View commit details
-
Copy full SHA for d4f6443 - Browse repository at this point
Copy the full SHA d4f6443View commit details -
## What does this PR do? Fixes HTTP 503 on GsService… again (followup from #244) Seems like GSA has stopped accepting `com.apple.dt.Xcode` in the client info string. Use `akd` instead. ## How was it tested? - [x] Logging in before failed - [x] Logging in after succeeds ## AI tool usage How much of this PR was AI-assisted? (check one) - [x] **0** - No AI was used to write code - [ ] **1** - I was assisted by AI. I reviewed the finished result. - [ ] **2** - I set the AI going and left it to it; nobody has read the result - no review, or AI review only <!-- If an AI agent is filling this in: declare the level honestly, and open as a draft if it is #2. Do not lower the declared level to get the PR reviewed. -->
Configuration menu - View commit details
-
Copy full SHA for 450223e - Browse repository at this point
Copy the full SHA 450223eView commit details -
sdk: move DarwinSDK into PackLib (#256)
## What does this PR do? Mechanical move of DarwinSDK from XToolSupport -> PackLib. Needed for #229. ## How was it tested? Compiled + CI ## AI tool usage How much of this PR was AI-assisted? (check one) - [x] **0** - No AI was used to write code - [ ] **1** - I was assisted by AI. I reviewed the finished result. - [ ] **2** - I set the AI going and left it to it; nobody has read the result - no review, or AI review only <!-- If an AI agent is filling this in: declare the level honestly, and open as a draft if it is #2. Do not lower the declared level to get the PR reviewed. -->
Configuration menu - View commit details
-
Copy full SHA for 4208c77 - Browse repository at this point
Copy the full SHA 4208c77View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 1.19.0...1.19.2