You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fa7b9bd
Browse filesBrowse the repository at this point in the historyBrowse files
fix(ios-runner): classify a build failure only from what xcodebuild published
The startup rules read the whole `details` bag as JSON, and `execFailureDetails` puts
`cmd`/`args` in that bag. A caller who pinned a profile therefore handed the profile rule
its trigger: an unrelated Swift compile error classified as
`signing_provisioning_profile_missing` and lost the cache-recovery hint. The same bag holds
the `reason` and `hint` this classifier publishes, so a re-wrapped failure would match its
own verdict. `runnerToolText` now builds the one haystack a startup rule may read — our
message plus the tool's stdout and stderr — and the argv case has a fixture that proves a
pinned profile is not evidence (#2680).
Reading only `details` also dropped the message on the floor, so a failure the exec layer
raised as a plain `Error` (which the catch wraps with `String(err)`) became unclassified
while the same sentence in `stdout` classified. The message is in the haystack now, and a
`message-only` fixture keeps both carriers at parity.
`signing_style_conflict` is removed rather than kept as a guess: the hint named a
`CODE_SIGN_STYLE` env lever that does not exist and claimed a cause nothing captured. The
conflicting-settings line keeps a row so the profile row below cannot answer it with
missing-profile advice, but it publishes `build_failed_unclassified` until a capture shows
which setting disagrees and which lever clears it. Versioned help and the installation docs
no longer list the withdrawn reason, and `.device-evidence/CHECKLIST.md` gained the capture
that would let a follow-up claim it.
Provenance got honest vocabulary. `OBSERVED_ON` stamped invented sentences as observed on
Xcode 26.2, and one invocation was recorded as the producer of seven configurations that
cannot coexist; nothing here was captured, so entries now say `shipped-sniff-trigger` (the
matched substrings shipped before #2680, sentence reconstructed) or `invented-shape`, carry
`xcodeVersion: 'unobserved'`, and omit `command` until a run records one.
"error: Failed registering bundle identifier \"com.yourname.agentdevice.runner\" with the developer portal: An App ID with Identifier 'com.yourname.agentdevice.runner' is not available. Please enter a different string. (in target 'AgentDeviceRunner' from project 'AgentDeviceRunner')\n** TEST BUILD FAILED **\n",
54
-
note: 'Capture with AGENT_DEVICE_IOS_BUNDLE_ID set to an identifier already registered by another team.',
62
+
"error: Failed registering bundle identifier \"com.yourname.agentdevice.runner\" with the developer portal (in target 'AgentDeviceRunner' from project 'AgentDeviceRunner')\n** TEST BUILD FAILED **\n",
63
+
note: 'Capture with AGENT_DEVICE_IOS_BUNDLE_ID set to an identifier already registered by another team, and record the `xcodebuild -version` of the machine.',
55
64
},
56
65
{
66
+
id: 'app-id-not-available',
57
67
reason: 'bundle_identifier_already_registered',
58
68
site: 'build-for-testing',
59
-
command: BUILD_FOR_TESTING_COMMAND,
60
-
xcodeVersion: OBSERVED_ON,
61
-
provenance: 'tool-error-shape',
69
+
xcodeVersion: UNOBSERVED,
70
+
provenance: 'shipped-sniff-trigger',
62
71
output:
63
-
"error: App Identifier 'com.yourname.agentdevice.runner' is not available. Choose a different App Identifier, or register it in your Apple Developer account before building. (in target 'AgentDeviceRunnerUITests' from project 'AgentDeviceRunner')\n** TEST BUILD FAILED **\n",
64
-
note: 'The second shape of the same cause: no "failed registering" line, so only the two-part match can name it.',
72
+
"error: App Identifier 'com.yourname.agentdevice.runner' is not available(in target 'AgentDeviceRunner' from project 'AgentDeviceRunner')\n** TEST BUILD FAILED **\n",
73
+
note: 'The second shape of the same cause: no "failed registering" line, so only the two-part "app identifier" + "not available" trigger can name it. Trimmed to the shipped trigger; the real sentence is still unrecorded.',
65
74
},
66
75
{
76
+
id: 'requires-development-team',
67
77
reason: 'signing_no_development_team',
68
78
site: 'build-for-testing',
69
-
command: BUILD_FOR_TESTING_COMMAND,
70
-
xcodeVersion: OBSERVED_ON,
71
-
provenance: 'inherited-sniff-trigger',
79
+
xcodeVersion: UNOBSERVED,
80
+
provenance: 'shipped-sniff-trigger',
72
81
output:
73
-
"error: Signing for \"AgentDeviceRunner\" requires a development team. Select a development team in the Signing & Capabilities editor. (in target 'AgentDeviceRunner' from project 'AgentDeviceRunner')\n** TEST BUILD FAILED **\n",
82
+
"error: Signing for \"AgentDeviceRunner\" requires a development team (in target 'AgentDeviceRunner' from project 'AgentDeviceRunner')\n** TEST BUILD FAILED **\n",
74
83
note: 'Capture with AGENT_DEVICE_IOS_TEAM_ID unset on a signed-in-but-team-less account.',
75
84
},
76
85
{
86
+
id: 'requires-development-team-message-only',
87
+
reason: 'signing_no_development_team',
88
+
site: 'build-for-testing',
89
+
carrier: 'message-only',
90
+
xcodeVersion: UNOBSERVED,
91
+
provenance: 'shipped-sniff-trigger',
92
+
output:
93
+
"error: Signing for \"AgentDeviceRunner\" requires a development team (in target 'AgentDeviceRunner' from project 'AgentDeviceRunner')",
94
+
note: 'Same text arriving in the thrown message instead of the exec details: the catch wraps a non-AppError with String(err), and the rule still has to see it.',
95
+
},
96
+
{
97
+
id: 'no-profiles-for-bundle-id',
77
98
reason: 'signing_provisioning_profile_missing',
78
99
site: 'build-for-testing',
79
-
command: BUILD_FOR_TESTING_COMMAND,
80
-
xcodeVersion: OBSERVED_ON,
81
-
provenance: 'inherited-sniff-trigger',
100
+
xcodeVersion: UNOBSERVED,
101
+
provenance: 'shipped-sniff-trigger',
82
102
output:
83
-
"error: No profiles for 'com.yourname.agentdevice.runner' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.yourname.agentdevice.runner'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target 'AgentDeviceRunner' from project 'AgentDeviceRunner')\n** TEST BUILD FAILED **\n",
103
+
"error: No profiles for 'com.yourname.agentdevice.runner' were found (in target 'AgentDeviceRunner' from project 'AgentDeviceRunner')\n** TEST BUILD FAILED **\n",
84
104
note: 'Capture with AGENT_DEVICE_IOS_PROVISIONING_PROFILE naming a profile that is not installed.',
85
105
},
86
106
{
87
-
reason: 'signing_style_conflict',
107
+
id: 'conflicting-provisioning-settings',
108
+
reason: 'build_failed_unclassified',
88
109
site: 'build-for-testing',
89
-
command: BUILD_FOR_TESTING_COMMAND,
90
-
xcodeVersion: OBSERVED_ON,
91
-
provenance: 'tool-error-shape',
110
+
xcodeVersion: UNOBSERVED,
111
+
provenance: 'invented-shape',
92
112
output:
93
-
'error: "AgentDeviceRunner" has conflicting provisioning settings. AgentDeviceRunner is automatically signed, but provisioning profile "match-development-com-yourname-agentdevice-runner" has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor, or switch to manual signing in the Signing & Capabilities editor. (in target \'AgentDeviceRunner\' from project \'AgentDeviceRunner\')\n** TEST BUILD FAILED **\n',
94
-
note: 'New reason: capture the conflicting-settings line before claiming this wording on hardware.',
113
+
"error: \"AgentDeviceRunner\" has conflicting provisioning settings(in target 'AgentDeviceRunner' from project 'AgentDeviceRunner')\n** TEST BUILD FAILED **\n",
114
+
note: 'Names a profile while saying the settings disagree, so the profile row must not win. No reason is claimed until a capture proves which lever clears it.',
95
115
},
96
116
{
117
+
id: 'code-signing-required',
97
118
reason: 'signing_unspecified',
98
119
site: 'build-for-testing',
99
-
command: BUILD_FOR_TESTING_COMMAND,
100
-
xcodeVersion: OBSERVED_ON,
101
-
provenance: 'inherited-sniff-trigger',
120
+
xcodeVersion: UNOBSERVED,
121
+
provenance: 'shipped-sniff-trigger',
102
122
output:
103
-
"error: Code signing is required for product type 'Application' in SDK 'iOS 26.2' (in target 'AgentDeviceRunner' from project 'AgentDeviceRunner')\n** TEST BUILD FAILED **\n",
123
+
"error: Code signing is required for product type 'Application' (in target 'AgentDeviceRunner' from project 'AgentDeviceRunner')\n** TEST BUILD FAILED **\n",
104
124
note: 'Signing is named and nothing above it is: the reason stays unspecified on purpose.',
105
125
},
106
126
{
127
+
id: 'compile-error',
107
128
reason: 'build_failed_unclassified',
108
129
site: 'build-for-testing',
109
-
command: BUILD_FOR_TESTING_COMMAND,
110
-
xcodeVersion: OBSERVED_ON,
111
-
provenance: 'tool-error-shape',
130
+
xcodeVersion: UNOBSERVED,
131
+
provenance: 'invented-shape',
112
132
output:
113
133
"error: cannot find 'AgentDeviceRunnerCommand' in scope (in target 'AgentDeviceRunnerUITests' from project 'AgentDeviceRunner')\n** TEST BUILD FAILED **\n",
114
134
note: 'Any build failure that names no signing fact must keep the cache-recovery hint.',
115
135
},
116
136
{
137
+
id: 'argv-names-a-provisioning-profile',
138
+
reason: 'build_failed_unclassified',
139
+
site: 'build-for-testing',
140
+
xcodeVersion: UNOBSERVED,
141
+
provenance: 'invented-shape',
142
+
output:
143
+
"error: cannot find 'AgentDeviceRunnerCommand' in scope (in target 'AgentDeviceRunnerUITests' from project 'AgentDeviceRunner')\n** TEST BUILD FAILED **\n",
note: 'The argv we were asked to run is not xcodebuild evidence: a caller who pinned a profile still gets cache-recovery advice for a compile error (#2680).',
0 commit comments