Note 43 · AI & iOS development
Xcode went green. Check which test your agent ran.
The result belongs to this test.

Name the intended behavior, match the selected test across result bundles and inspect its attempts. Use a focused pass to review the patch, then check the affected target and the actual iPhone flow.
The command succeeded. The bug was still untested.
Trevor Whittingham deliberately ran a passing neighbor of the test he wanted to check. Xcode returned a successful process exit. His verifier, asked about the original test, refused to call the job complete.
In his 27 November 2026 experiment, a second trap was a test that failed before passing on retry. Its attempt history revealed more than the final success status. He used a small Swift package with Xcode 27.2 on macOS, not a released iOS app. We have not independently reproduced those runs.
For a small iOS team delegating a bug fix, the useful question changes: what evidence would let someone else tell that this particular behavior was repaired? An agent’s “tests passed” summary is the start of that conversation.
Choose the product rule before the test filter.
Hypothetical iOS game: the same reward callback arrives twice and grants the same gift twice. The desired rule is that one claim ID grants one reward, while a different valid claim ID can still grant another. Ask the agent to locate that rule and the failing assertion before editing code.
A quick fix that disables every later claim could satisfy the first assertion and break tomorrow’s reward. Add the second claim to the acceptance criteria before the task begins. That turns a vague instruction to “stop duplicates” into a decision about the game’s behavior.
Apple documents selecting one test with -only-testing, using its target, type and function. Record the actual iOS scheme, simulator destination, configuration and selected test alongside the result. Running tests and interpreting results.
Three successful commands can tell different stories.
For this narrow repair, agree on a focused check with one execution of the target test. The comparison below shows how the team could interpret the evidence. These are proposed review decisions, not Xcode’s own status labels.
Same green exit. Different evidence.
A neighbor passed
The selected method checks the starting balance. The duplicate-claim test did not run.
Fix the selectionThe repair is unverified.The target passed on retry
The target’s first attempt failed; a later attempt passed.
Investigate the instabilityThe single-attempt check is unmet.The target passed once
The intended assertion passed in the agreed configuration.
Review the patchThen run the affected target’s tests.
Notice that the last case earns a code review, not automatic release approval. A unit test of reward storage does not establish that the iPhone’s Collect button, displayed balance and persistence work together. Exercise that path separately.
Make the handoff inspectable.
Ask for the original failure, the implementation diff and a fresh result bundle from the repaired version. Keep the agreed test and its expectation visible in the diff. If they changed, resolve that change explicitly before using the new pass as evidence.
Apple’s Xcode 16.3 release notes document structured xcresulttool summaries and test details, and recommend testIdentifierURL to avoid ambiguity across targets. These capabilities predate the November experiment. Match the target’s identity in both bundles; inspect its outcome and attempts rather than reading only the top-level verdict.
If the bundle is missing or the selection ran nothing, diagnose the run. That is missing evidence about the repair, not proof that the implementation needs another rewrite. Retries and multiple destinations can be useful, but agree how to interpret them instead of silently treating them as this single-attempt check.
Once the focused evidence and diff agree, Apple recommends running the affected target’s tests to catch regressions before integration. Its WWDC26 agent workflow also treats building, tests and rendered previews as separate validation tools. Use the one that can answer the remaining question.
For a subscription change, continue through the actual offering and purchase path. For a new feature, return to the user problem it should solve. A correct test result can support a code decision; it cannot choose the product for you.
Sources & further reading
- Trevor Whittingham — original Xcode test experiment, published 27 November 2026; macOS package scope
- Apple — running tests, selecting individual functions and interpreting reports, reviewed 28 November 2026
- Apple — Xcode 16.3 release notes: structured results and test identifier URLs; historical tool support
- Apple — Xcode, agents, and you, WWDC26; existing build, test and preview workflow
Examples are hypothetical unless explicitly attributed to a real product. Hypothetical examples illustrate the method and do not represent Piiko results or industry benchmarks.