AltStore icon indicating copy to clipboard operation
AltStore copied to clipboard

Ios 27 "machineID"

Open radioserega048 opened this issue 5 months ago • 55 comments

When I installing altserver at the iOS 27 I has got error that altserver could not retrieve anisette data value “machineID”.

radioserega048 avatar Jun 10 '26 02:06 radioserega048

same

KilDoomWise avatar Jun 11 '26 14:06 KilDoomWise

same

AppropriateNet2928 avatar Jun 11 '26 19:06 AppropriateNet2928

same

Gyarados4157 avatar Jun 13 '26 06:06 Gyarados4157

The same with Mac on macOS 27, while my iPhone is still on 26.5

skadibtw avatar Jun 13 '26 07:06 skadibtw

Same on me, both MacOS and iOS are on dev beta

eddahlen avatar Jun 13 '26 18:06 eddahlen

same

RahanBenabid avatar Jun 13 '26 18:06 RahanBenabid

same

eason1030715 avatar Jun 14 '26 05:06 eason1030715

same

shrimpwtf avatar Jun 14 '26 19:06 shrimpwtf

I think it's the problem caused by macOS 27, since when I first upgraded to iOS 27 with my macOS still in 26.5, it works well, but when I upgrade mac to 27, I have the same problem

AvalonUltra avatar Jun 14 '26 20:06 AvalonUltra

can confirm, also hitting the same issue

AltServer could not retrieve anisette data value “machineID”.

Failure Reason
AltServer could not retrieve anisette data value “machineID”.

Title
AltStore could not be installed onto <device name>.

Source File
AltServer/AnisetteDataManager.swift

Source Line
138

value
machineID

oddharsh avatar Jun 15 '26 16:06 oddharsh

same, both Mac and iPad are at MacOS/IOS 27 beta

Tythla avatar Jun 16 '26 06:06 Tythla

same

AlexBarinow avatar Jun 16 '26 15:06 AlexBarinow

Same issue. Any fixes yet?

MurometzZ avatar Jun 16 '26 22:06 MurometzZ

same issue on MacOS/IOS 27 beta

PythonicNinja avatar Jun 17 '26 09:06 PythonicNinja

Same issue.

MacOS Golden Gate Developer Beta, iOS 27 Developer Beta.

Refreshing apps through Altstore Classic renders following error message:

Failed to refresh 2 apps.
AltServer could not retrieve anisette data value #machinelD".

Trying to install altstore over altserver on my mac renders error message as well:

AltStore could not be installed onto iPhone 14. AltServer could not retrieve anisette data value “machineID”. 

AltServer.AnisetteError 1
Error Description
AltServer could not retrieve anisette data value “machineID”.

Failure Reason
AltServer could not retrieve anisette data value “machineID”.

Title
AltStore could not be installed onto  iPhone 14.

Source File
AltServer/AnisetteDataManager.swift

Source Line
112

value
machineID

alejandrohix avatar Jun 18 '26 16:06 alejandrohix

Dev team needs to get on this please

RockENZO avatar Jun 21 '26 09:06 RockENZO

run ClaudeCode research on plan mode:

Root cause + investigation: "could not retrieve anisette data value 'machineID'" (#1751)

TL;DR — this is a macOS 27 bug, not iOS 27. On macOS 27, Apple's private anisette/ADI stack no longer returns the device machine-ID + one-time-password, so AltServer's AnisetteDataManager throws missingValue("machineID"). This affects the Mac running AltServer, not the iOS target device. There is currently no working local fix on macOS 27; the practical workaround is to point AltServer at a locally-run anisette server.

Where the error comes from

AltServer/Anisette Data/AnisetteDataManager.swift fetches anisette from the private AOSKit framework:

// AnisetteDataManager.swift:136-138
guard let requestHeaders = AOSUtilities.retrieveOTPHeadersForDSID("-2") else { throw AnisetteError.missingValue("oneTimePassword") }
guard let machineID = requestHeaders["X-Apple-MD-M"] as? String else { throw AnisetteError.missingValue("machineID") }

On macOS 27, retrieveOTPHeadersForDSID("-2") returns a non-nil but empty dictionary, so the first guard passes and the second throws → AnisetteError.missingValue("machineID") → the user-facing "AltServer could not retrieve anisette data value 'machineID'."

Reproduction / evidence (macOS 27.0, build 26A5353q, MacBookPro18,3, signed into an Apple Account)

Standalone Swift probe driving the same private APIs directly:

1. AOSKit (the path AltServer uses) — broken:

AOSKit WARN: A: Info request failed: -45070
retrieveOTPHeadersForDSID(-2) count: 0      ← empty dictionary
  keys: []
  X-Apple-MD-M: <nil>
  machineUDID:        32DE87…(len 36)        ← device identity still works
  machineSerialNumber: QKT4V0…(len 10)

2. AuthKit AKAppleIDSession.appleIDHeadersForRequest: (the API Xcode/AltDaemon use) — also broken:

appleIDHeadersForRequest: count: 3
  X-Apple-I-Client-Time: 2026-0…
  X-Apple-I-Locale: en_US
  X-Apple-I-TimeZone: GMT+2
>>> HAS non-empty X-Apple-I-MD-M: false      ← the ADI machine-ID is gone
>>> HAS non-empty X-Apple-I-MD:   false      ← the OTP is gone
AKDevice.serverFriendlyDescription: <MacBookPro18,3> <macOS;27.0;26A5353q> <com.apple.AuthKit/1 ((null)/1.0)>

So both local system sources fail to produce the ADI-derived X-Apple-I-MD-M (machineID) and X-Apple-I-MD (OTP) on macOS 27. Plain device identity (UDID, serial, serverFriendlyDescription) is fine — it's specifically the ADI OTP computation that no longer works. The machine is signed into an Apple Account and ~/Library/Caches/com.apple.akd is populated, so this is not a sign-in/provisioning-state issue. The -45070 "Info request failed" comes from inside AOSKit's own call.

Why the obvious local fixes don't work on macOS 27

  • Switch AltServer from AOSKit to AuthKit AKAppleIDSession (what AltDaemon does on iOS): proven above — AuthKit returns no MD-M/MD on macOS 27.
  • Call the system CoreADI.framework directly: its binary is not present as a file / not in the dyld shared cache (dlopen fails), adid is a hardened LaunchDaemon (PT_DENY_ATTACH), and the ADI C entry points are obfuscated symbols that belong to the Android libstoreservicescore build, not the macOS Mach-O. No tooling drives system CoreADI directly.
  • Bundle a local ADI implementation (Provision/omnisette-style): the only ADI builds that work for current OSes are the Android .so files extracted from the Apple Music APK, run through an in-process ELF loader + provisioning handshake. omnisette only does this on Linux; its macOS path is AOSUtilities retrieveOTPHeadersForDSID: — i.e. the same call that's broken here. Porting the ELF-loader/provisioning route natively to macOS would mean shipping Apple's proprietary binary and is a large effort with no existing precedent.

Practical workaround for affected users (today)

Until the system stack is fixed, fetch anisette from an anisette server you run locally (so nothing leaves your machine), e.g. Dadoum's anisette-v3-server in Docker — the ADI library runs inside the Linux container, sidestepping the broken macOS path. The community fix kimziro/altserver-macos27-anisette-fix does essentially this (runtime-swizzles AOSUtilities.retrieveOTPHeadersForDSID: and maps anisette-V3 headers to AltServer's legacy keys).

Suggested direction for AltServer

Add an opt-in, off-by-default anisette-server fallback to AnisetteDataManager (e.g. an AnisetteServerURL default in the existing CLI-configurable UserDefaults+AltServer.swift section): if AOSKit/XPC/Mail all fail and a URL is configured, GET the anisette headers from it and map into ALTAnisetteData (the key mapping already exists in AltDaemon/AnisetteDataManager.swift). With no URL set, behavior is unchanged — zero impact on Macs where AOSKit still works. Users on macOS 27 can point it at http://localhost for a fully-local, private setup. This keeps the project's no-bundled-third-party-server stance while unblocking macOS 27.


Environment: macOS 26A5353q (reported as "27"), AltStore marketplace branch. Probe used AOSUtilities.retrieveOTPHeadersForDSID, AKAppleIDSession.appleIDHeadersForRequest:, AKDevice.currentDevice.

PythonicNinja avatar Jun 21 '26 11:06 PythonicNinja

I used my windows computer instead of my mac and it's work (i have MacOS & IOS 27)

Kilianoxo avatar Jun 30 '26 09:06 Kilianoxo

I used my windows computer instead of my mac and it's work (i have MacOS & IOS 27)

moradmakkah avatar Jul 06 '26 15:07 moradmakkah

+1

koboshchan avatar Jul 09 '26 10:07 koboshchan