Skip to content

Start Apple's account daemon (akd) with the apps service set - #42

Merged
Developing-Gamer merged 1 commit into
Developing-Gamer:mainfrom
Kostas-Xafis:apple-account-service
Nov 27, 2026
Merged

Developing-Gamer merged 1 commit into
Developing-Gamer:mainfrom
Kostas-Xafis:apple-account-service

Conversation

@Kostas-Xafis

Copy link
Copy Markdown
Contributor

Problem

Sign in with Apple failed at once with ASAuthorizationError 1000 (unknown). The app's log had:

The connection to service named com.apple.ak.authorizationservices.xpc was invalidated: Connection init failed at lookup with error 3 - No such process

That service belongs to akd, Apple's account daemon (com.apple.akd). It starts only when asked for, and it is in neither x86Sim's service lists (boot-a64.sh on current main) nor agent-sim's, so the lookup finds nothing. x86Sim's lists do carry AuthenticationServicesAgent, which the request reaches first.

Change

com.apple.akd joins the apps service set in scripts/phone.sh (the default). KNOWN_ISSUES.md and CHANGELOG.md say so.

Verification

iOS 27.2 (iPhone18,1), x86Sim 0.5.2, Ubuntu 24.04 KVM guest (8 vCPU, Ryzen 5 7600X):

  • With akd: an Expo app's "Continue with Apple" (ASAuthorizationAppleIDProvider) brings up Apple's own alert, "Sign in to your Apple Account / You need to sign in to your Apple Account in Settings", as iOS does on a phone without an account. akd starts then (45 MB resident) and was not running before.
  • Cost: two cold boots with bench/run --runs 3, without akd (AGENT_SIM_EXTRA_JOBS = the default list minus akd; checked in the unit's command line) and with it:
without akd with akd
Boot, home screen 24.5 s 22.0 s
Idle CPU (bench's processes) darlingserver 1 %, SpringBoard 2 % darlingserver 1 %, SpringBoard 2 %
Settings scrolling 45.3 fps, p95 29.2 ms 44.0 fps, p95 29.1 ms
VM memory in use 3761 MB 3485 MB

The differences are run-to-run noise: at rest akd is not running.

Not checked: signing in to an Apple Account in Settings itself (it needs a real Apple ID).

Side note from the run: bench/run warns not in the phone's environment: AGENT_SIM_EXTRA_JOBS, because phone.sh puts that variable on the boot command line rather than in the unit's environment; the jobs did apply.

🤖 Generated with Claude Code

Sign in with Apple failed at once with ASAuthorizationError 1000; the
app's log had "com.apple.ak.authorizationservices.xpc was invalidated:
Connection init failed at lookup with error 3 - No such process". That
service belongs to akd, Apple's account daemon, which starts only when
asked for and is in neither x86Sim's service lists nor agent-sim's.

With com.apple.akd in the apps set, Continue with Apple shows Apple's
"Sign in to your Apple Account" alert on a phone without an account, as
iOS does, and akd starts then (45 MB). At rest it does
not run: two cold boots with bench/run on the same VM, without and with
it, gave home screen 24.5 s / 22.0 s and the same idle CPU.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Developing-Gamer
Developing-Gamer merged commit ae3fb96 into Developing-Gamer:main Nov 27, 2026
@Developing-Gamer

Copy link
Copy Markdown
Owner

Merged. The phone boots with com.apple.akd in its service list. Sign in with Apple itself was not tried here (no app that uses it), so that rests on your test. Thanks!

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 this pull request may close these issues.

2 participants