xcodebuild-axi 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +88 -2
- package/README.md +55 -76
- package/dist/src/action.d.ts +8 -0
- package/dist/src/action.js +37 -30
- package/dist/src/action.js.map +1 -1
- package/dist/src/commands/archive.js +1 -1
- package/dist/src/commands/archive.js.map +1 -1
- package/dist/src/commands/clean.d.ts +2 -2
- package/dist/src/commands/clean.js +33 -3
- package/dist/src/commands/clean.js.map +1 -1
- package/dist/src/commands/packages.d.ts +2 -2
- package/dist/src/commands/packages.js +17 -6
- package/dist/src/commands/packages.js.map +1 -1
- package/dist/src/commands/result.js +3 -9
- package/dist/src/commands/result.js.map +1 -1
- package/dist/src/commands/settings.d.ts +7 -2
- package/dist/src/commands/settings.js +134 -20
- package/dist/src/commands/settings.js.map +1 -1
- package/dist/src/commands/test.js +9 -13
- package/dist/src/commands/test.js.map +1 -1
- package/dist/src/commands/tests.d.ts +2 -2
- package/dist/src/commands/tests.js +19 -7
- package/dist/src/commands/tests.js.map +1 -1
- package/dist/src/errors.js +10 -0
- package/dist/src/errors.js.map +1 -1
- package/dist/src/report.d.ts +22 -1
- package/dist/src/report.js +40 -0
- package/dist/src/report.js.map +1 -1
- package/dist/src/scheme.d.ts +34 -0
- package/dist/src/scheme.js +46 -0
- package/dist/src/scheme.js.map +1 -1
- package/dist/src/surface.d.ts +1 -0
- package/dist/src/surface.js +20 -64
- package/dist/src/surface.js.map +1 -1
- package/dist/src/xcresult.d.ts +42 -0
- package/dist/src/xcresult.js +41 -0
- package/dist/src/xcresult.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,89 @@ Notable changes to `xcodebuild-axi`. Versions follow
|
|
|
4
4
|
[semver](https://semver.org/); the format follows
|
|
5
5
|
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
6
6
|
|
|
7
|
-
## [
|
|
7
|
+
## [0.1.9] - 2026-09-21
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- **Reach is 100%.** Every option xcodebuild accepts on a command is now
|
|
12
|
+
reachable from that command, all 328 pairs, where the last release reached
|
|
13
|
+
95.7%.
|
|
14
|
+
|
|
15
|
+
- `clean` takes the same subject and scoping flags a build does: `--target`,
|
|
16
|
+
`--all-targets`, `--destination`, `--device`, `--destination-timeout`,
|
|
17
|
+
`--sdk`, `--arch`, `--toolchain`, `--xcconfig`, `--artifacts-dir` and
|
|
18
|
+
`--log-level`, on top of the three it had. A clean is scoped by the same
|
|
19
|
+
things a build is, and a `clean` that cannot say _which_ products to remove
|
|
20
|
+
is a command an agent has to leave for the raw tool.
|
|
21
|
+
- `tests --only` and `--skip` constrain the enumeration itself, so the answer
|
|
22
|
+
is the list `test` would run with the same flags rather than a list this
|
|
23
|
+
tool filtered afterwards. `--filter` still does the latter, and the help now
|
|
24
|
+
says which is which.
|
|
25
|
+
- `packages --resolve --derived-data <path>` puts the resolved checkouts
|
|
26
|
+
where CI can cache them. xcodebuild takes `-derivedDataPath` here only
|
|
27
|
+
alongside a scheme, so one is resolved up front rather than letting the
|
|
28
|
+
refusal reach the caller.
|
|
29
|
+
|
|
30
|
+
- `settings` reaches the rest of what `-showBuildSettings` accepts:
|
|
31
|
+
`--target`, `--all-targets`, `--arch`, `--toolchain`, `--xcconfig`,
|
|
32
|
+
`--derived-data`, `--destination-timeout`, and `--setting KEY=VALUE`.
|
|
33
|
+
|
|
34
|
+
Seven of those were the last reach gaps on a read-only command, and each one
|
|
35
|
+
changes the answer rather than decorating it. `--target` and `--all-targets`
|
|
36
|
+
ask a project that has no scheme for the target; `--setting` and `--xcconfig`
|
|
37
|
+
answer "what would this be if I overrode that", which is the question
|
|
38
|
+
`-showBuildSettings` exists for; `--derived-data` matters because every build
|
|
39
|
+
path hangs off it, so the default answer describes a directory CI does not
|
|
40
|
+
use.
|
|
41
|
+
|
|
42
|
+
- A failing test now reports **where** it failed. The failures table gained
|
|
43
|
+
`file` and `line` columns, in `test` and in `result` alike.
|
|
44
|
+
|
|
45
|
+
A test-results summary carries a name, a target and a message, and no source
|
|
46
|
+
location at all — so until now a failing assertion came back as text an agent
|
|
47
|
+
had to go and search the repository for. The location lives one drill-down
|
|
48
|
+
away, in `xcresulttool get test-results test-details`, which is read once per
|
|
49
|
+
failure actually being printed.
|
|
50
|
+
|
|
51
|
+
These line numbers are one-based, unlike the zero-based ones in a build
|
|
52
|
+
diagnostic's `sourceURL`; both are now documented where the code applies
|
|
53
|
+
them, because an off-by-one here points at the line after the failure.
|
|
54
|
+
|
|
55
|
+
### Fixed
|
|
56
|
+
|
|
57
|
+
- Reports on a target-mode run said `scheme: all targets`, which names
|
|
58
|
+
something that does not exist. Every command in the build family now reports
|
|
59
|
+
`targets:` when targets were what was asked for, and the run's log and
|
|
60
|
+
`.xcresult` are named `all-targets-…` rather than with a space in the path.
|
|
61
|
+
|
|
62
|
+
- A failure xcodebuild refused outright reported `xcodebuild encountered an
|
|
63
|
+
error (70)` and nothing else. That string is what the result bundle records
|
|
64
|
+
when nothing was built, and the transcript fallback only ran when the bundle
|
|
65
|
+
listed _no_ errors — so a bundle with one useless error row suppressed the
|
|
66
|
+
one explanation available. A bundle carrying only that row is now treated as
|
|
67
|
+
the empty answer it is.
|
|
68
|
+
|
|
69
|
+
- A Swift package asked to build with no destination now says so in its own
|
|
70
|
+
terms. xcodebuild's refusal points at `-showdestinations`, which is not
|
|
71
|
+
something this tool asks anyone to run.
|
|
72
|
+
|
|
73
|
+
- `settings` no longer reports a **refusal** as an answer. xcodebuild rejects
|
|
74
|
+
some combinations — `-derivedDataPath` without a scheme is one — by exiting
|
|
75
|
+
non-zero and printing an empty JSON document, which parsed cleanly and came
|
|
76
|
+
back as every key `unset`. That reads exactly like a correct answer about a
|
|
77
|
+
target that has no such setting. The exit code is now checked and
|
|
78
|
+
xcodebuild's own one-line reason is reported.
|
|
79
|
+
|
|
80
|
+
- A scheme that resolves no targets at all says so, instead of reporting every
|
|
81
|
+
key as `unset`. A Swift package's scheme is the common case: it answers
|
|
82
|
+
`-showBuildSettings` with an empty list and exit 0, so `--key SWIFT_VERSION`
|
|
83
|
+
came back as "not set" for a package where it plainly is.
|
|
84
|
+
|
|
85
|
+
- A rerun hint after `--all-targets` said `--target all targets`, which is not
|
|
86
|
+
a command that runs. The selection now carries its own spelling rather than
|
|
87
|
+
having one guessed from its label.
|
|
88
|
+
|
|
89
|
+
## [0.1.8] - 2026-09-21
|
|
8
90
|
|
|
9
91
|
### Added
|
|
10
92
|
|
|
@@ -212,7 +294,11 @@ First release.
|
|
|
212
294
|
- 100% of the 117 options `xcodebuild -help` lists are covered, declared in
|
|
213
295
|
`src/surface.ts` and checked against the installed Xcode in CI.
|
|
214
296
|
|
|
215
|
-
[unreleased]: https://github.com/alexrrouse/xcodebuild-axi/compare/v0.1.
|
|
297
|
+
[unreleased]: https://github.com/alexrrouse/xcodebuild-axi/compare/v0.1.9...HEAD
|
|
298
|
+
[0.1.9]: https://github.com/alexrrouse/xcodebuild-axi/compare/v0.1.8...v0.1.9
|
|
299
|
+
[0.1.8]: https://github.com/alexrrouse/xcodebuild-axi/compare/v0.1.7...v0.1.8
|
|
300
|
+
[0.1.7]: https://github.com/alexrrouse/xcodebuild-axi/compare/v0.1.6...v0.1.7
|
|
301
|
+
[0.1.6]: https://github.com/alexrrouse/xcodebuild-axi/compare/v0.1.5...v0.1.6
|
|
216
302
|
[0.1.5]: https://github.com/alexrrouse/xcodebuild-axi/compare/v0.1.4...v0.1.5
|
|
217
303
|
[0.1.4]: https://github.com/alexrrouse/xcodebuild-axi/compare/v0.1.3...v0.1.4
|
|
218
304
|
[0.1.3]: https://github.com/alexrrouse/xcodebuild-axi/compare/v0.1.2...v0.1.3
|
package/README.md
CHANGED
|
@@ -171,7 +171,7 @@ Every command takes `--help`.
|
|
|
171
171
|
|
|
172
172
|
<!-- coverage:start -->
|
|
173
173
|
|
|
174
|
-
**Coverage: 91.3% of the
|
|
174
|
+
**Coverage: 91.3% of the 161 leaves `xcodebuild` documents** — every option, build action, export options key, `-create-xcframework` argument, and the second forms that only a usage line mentions.
|
|
175
175
|
|
|
176
176
|
A leaf is one switch you could type. Counting options alone says 100% (117/117), which was true and hid every gap below: an option is one thing, and `-exportOptionsPlist` alone opens eighteen more.
|
|
177
177
|
|
|
@@ -179,12 +179,12 @@ A leaf is one switch you could type. Counting options alone says 100% (117/117),
|
|
|
179
179
|
| ------------------------------------------------------ | ------- | --------------- |
|
|
180
180
|
| `xcodebuild -help` options | 117 | 117 (100%) |
|
|
181
181
|
| build actions | 10 | 9 (90%) |
|
|
182
|
-
| second forms (`-version <infoitem>`, `-license check`) |
|
|
182
|
+
| second forms (`-version <infoitem>`, `-license check`) | 8 | 7 (87.5%) |
|
|
183
183
|
| `-exportOptionsPlist` keys | 18 | 6 (33.3%) |
|
|
184
184
|
| `-create-xcframework` options | 8 | 8 (100%) |
|
|
185
|
-
| **total** | **
|
|
185
|
+
| **total** | **161** | **147 (91.3%)** |
|
|
186
186
|
|
|
187
|
-
**Reach:
|
|
187
|
+
**Reach: 100%** of the 328 command-and-option pairs. The same options, counted once per command xcodebuild accepts them on — because `-target` exposed on `build` and missing from `settings` is not covered for anyone asking `settings`. 0 pairs are open.
|
|
188
188
|
|
|
189
189
|
108 options map to an `xcodebuild-axi` flag. The other 9 are reachable without one:
|
|
190
190
|
|
|
@@ -204,86 +204,65 @@ The one action left out is `installsrc` — it copies sources into `SRCROOT` as
|
|
|
204
204
|
|
|
205
205
|
### Companion tools
|
|
206
206
|
|
|
207
|
-
`xcresulttool`, `xccov` and `simctl` are not xcodebuild, so they are not in the number above — but this tool wraps all three, and an agent that has to shell out to one directly has dropped back down. **
|
|
207
|
+
`xcresulttool`, `xccov` and `simctl` are not xcodebuild, so they are not in the number above — but this tool wraps all three, and an agent that has to shell out to one directly has dropped back down. **18.3% of 71 leaves**, counted the same way:
|
|
208
208
|
|
|
209
209
|
| Tool | Leaves | Covered |
|
|
210
210
|
| -------------- | ------ | --------- |
|
|
211
|
-
| `xcresulttool` | 21 |
|
|
211
|
+
| `xcresulttool` | 21 | 4 (19%) |
|
|
212
212
|
| `xccov` | 9 | 4 (44.4%) |
|
|
213
213
|
| `simctl` | 41 | 5 (12.2%) |
|
|
214
214
|
|
|
215
215
|
### Still open
|
|
216
216
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
| Leaf | Unreachable from | What that costs
|
|
220
|
-
| ----------------------------------------------------------- | ---------------- |
|
|
221
|
-
| `-
|
|
222
|
-
|
|
|
223
|
-
|
|
|
224
|
-
|
|
|
225
|
-
|
|
|
226
|
-
|
|
|
227
|
-
|
|
|
228
|
-
|
|
|
229
|
-
|
|
|
230
|
-
|
|
|
231
|
-
|
|
|
232
|
-
|
|
|
233
|
-
|
|
|
234
|
-
|
|
|
235
|
-
|
|
|
236
|
-
|
|
|
237
|
-
|
|
|
238
|
-
|
|
|
239
|
-
|
|
|
240
|
-
|
|
|
241
|
-
|
|
|
242
|
-
|
|
|
243
|
-
| `
|
|
244
|
-
| `
|
|
245
|
-
| `
|
|
246
|
-
| `
|
|
247
|
-
| `
|
|
248
|
-
| `
|
|
249
|
-
| `
|
|
250
|
-
| `
|
|
251
|
-
| `
|
|
252
|
-
| `
|
|
253
|
-
| `
|
|
254
|
-
| `
|
|
255
|
-
| `
|
|
256
|
-
| `
|
|
257
|
-
| `
|
|
258
|
-
| `
|
|
259
|
-
| `
|
|
260
|
-
| `
|
|
261
|
-
| `
|
|
262
|
-
| `
|
|
263
|
-
| `
|
|
264
|
-
| `
|
|
265
|
-
| `
|
|
266
|
-
| `xcresulttool compare` | `result` | two runs cannot be diffed, which is the question CI asks most |
|
|
267
|
-
| `xcresulttool merge` | `result` | the bundles of a sharded test run cannot be combined |
|
|
268
|
-
| `xcresulttool metadata` | `result` | a bundle's own metadata cannot be read |
|
|
269
|
-
| `xccov view --report --functions-for-file` | `coverage` | coverage stops at the file, so the uncovered function has no name |
|
|
270
|
-
| `xccov view --archive` | `coverage` | a standalone .xccovarchive cannot be read, only a result bundle |
|
|
271
|
-
| `xccov view --file` | `coverage` | the per-line coverage of one file cannot be printed |
|
|
272
|
-
| `xccov diff` | `coverage` | 'did coverage drop' cannot be answered from two bundles this tool wrote |
|
|
273
|
-
| `xccov merge` | `coverage` | the coverage of a sharded run cannot be combined |
|
|
274
|
-
| `simctl install` | `sim` | a built .app cannot be put on the simulator it was built for |
|
|
275
|
-
| `simctl launch` | `sim` | the app a build just produced cannot be run |
|
|
276
|
-
| `simctl terminate` | `?` | a running app cannot be stopped |
|
|
277
|
-
| `simctl uninstall` | `?` | an installed app cannot be removed |
|
|
278
|
-
| `simctl listapps` | `sim` | what is installed on a simulator cannot be listed |
|
|
279
|
-
| `simctl create` | `?` | a missing device cannot be created |
|
|
280
|
-
| `simctl delete` | `sim` | stale devices cannot be reclaimed, and they cost gigabytes |
|
|
281
|
-
| `simctl io` | `sim` | a screenshot of a failing UI cannot be taken |
|
|
282
|
-
| `simctl openurl` | `sim` | a deep link cannot be opened, which is how deep links are tested |
|
|
283
|
-
| `simctl privacy` | `sim` | a permission prompt cannot be granted ahead of a UI test |
|
|
284
|
-
| `simctl push` | `sim` | a push notification cannot be simulated |
|
|
285
|
-
| `simctl status_bar` | `sim` | the status bar cannot be pinned, which screenshot tests need |
|
|
286
|
-
| `simctl ui` | `sim` | dark mode and content size cannot be set for a test run |
|
|
217
|
+
45 leaves are known gaps rather than decisions — each one a reason someone would still reach for the raw tool:
|
|
218
|
+
|
|
219
|
+
| Leaf | Unreachable from | What that costs |
|
|
220
|
+
| ----------------------------------------------------------- | ---------------- | ------------------------------------------------------------------------------------------------------- |
|
|
221
|
+
| `-version -sdk <name> <infoitem>` | `info` | `info --sdks` lists canonical names; an SDK's Path or ProductBuildVersion cannot be asked for |
|
|
222
|
+
| `<buildsetting>=<value>` | `build` | an override can be resolved but not built with, so `--setting` answers a question it cannot then act on |
|
|
223
|
+
| `provisioningProfiles` (export options) | `export` | manual signing can be asked for but not completed — the profile per executable has no flag |
|
|
224
|
+
| `signingCertificate` (export options) | `export` | manual signing cannot name the certificate to sign with |
|
|
225
|
+
| `installerSigningCertificate` (export options) | `export` | a macOS installer package cannot name its signing certificate |
|
|
226
|
+
| `thinning` (export options) | `export` | non-App Store exports cannot be thinned for a device variant |
|
|
227
|
+
| `stripSwiftSymbols` (export options) | `export` | Swift symbols are always stripped, with no way to keep them |
|
|
228
|
+
| `testFlightInternalTestingOnly` (export options) | `export` | a build cannot be marked internal-only, which is what a PR build wants |
|
|
229
|
+
| `distributionBundleIdentifier` (export options) | `export` | an archive with several apps cannot pick which one to export |
|
|
230
|
+
| `generateAppStoreInformation` (export options) | `export` | App Store information cannot be generated for an upload |
|
|
231
|
+
| `iCloudContainerEnvironment` (export options) | `export` | a CloudKit app cannot choose the Development or Production container |
|
|
232
|
+
| `manifest` (export options) | `export` | an over-the-web distribution manifest cannot be written |
|
|
233
|
+
| `embedOnDemandResourcesAssetPacksInBundle` (export options) | `export` | on-demand resource asset packs cannot be embedded for testing |
|
|
234
|
+
| `onDemandResourcesAssetPacksBaseURL` (export options) | `export` | on-demand resource asset packs cannot be pointed at a host |
|
|
235
|
+
| `xcresulttool get test-results tests` | `result` | the full test tree of a finished run cannot be listed |
|
|
236
|
+
| `xcresulttool get test-results activities` | `result` | the step-by-step activity trail of a failing test cannot be read |
|
|
237
|
+
| `xcresulttool get test-results insights` | `result` | Xcode's own diagnosis of a run is left on the floor |
|
|
238
|
+
| `xcresulttool get test-results metrics` | `result` | `test --perf-diagnostics` collects performance metrics nothing can read back |
|
|
239
|
+
| `xcresulttool get log` | `result` | the build log inside the bundle is reachable only as the raw transcript file |
|
|
240
|
+
| `xcresulttool get content-availability` | `result` | whether a bundle even has coverage or test results is found out by failing to read it |
|
|
241
|
+
| `xcresulttool export diagnostics` | `result` | `test --diagnostics` collects a diagnostics report that cannot be extracted |
|
|
242
|
+
| `xcresulttool export attachments` | `result` | UI test screenshots and attachments cannot be got out of the bundle |
|
|
243
|
+
| `xcresulttool export metrics` | `result` | performance measurements cannot be exported as CSV |
|
|
244
|
+
| `xcresulttool export evaluations` | `result` | evaluation attachments cannot be exported |
|
|
245
|
+
| `xcresulttool compare` | `result` | two runs cannot be diffed, which is the question CI asks most |
|
|
246
|
+
| `xcresulttool merge` | `result` | the bundles of a sharded test run cannot be combined |
|
|
247
|
+
| `xcresulttool metadata` | `result` | a bundle's own metadata cannot be read |
|
|
248
|
+
| `xccov view --report --functions-for-file` | `coverage` | coverage stops at the file, so the uncovered function has no name |
|
|
249
|
+
| `xccov view --archive` | `coverage` | a standalone .xccovarchive cannot be read, only a result bundle |
|
|
250
|
+
| `xccov view --file` | `coverage` | the per-line coverage of one file cannot be printed |
|
|
251
|
+
| `xccov diff` | `coverage` | 'did coverage drop' cannot be answered from two bundles this tool wrote |
|
|
252
|
+
| `xccov merge` | `coverage` | the coverage of a sharded run cannot be combined |
|
|
253
|
+
| `simctl install` | `sim` | a built .app cannot be put on the simulator it was built for |
|
|
254
|
+
| `simctl launch` | `sim` | the app a build just produced cannot be run |
|
|
255
|
+
| `simctl terminate` | `?` | a running app cannot be stopped |
|
|
256
|
+
| `simctl uninstall` | `?` | an installed app cannot be removed |
|
|
257
|
+
| `simctl listapps` | `sim` | what is installed on a simulator cannot be listed |
|
|
258
|
+
| `simctl create` | `?` | a missing device cannot be created |
|
|
259
|
+
| `simctl delete` | `sim` | stale devices cannot be reclaimed, and they cost gigabytes |
|
|
260
|
+
| `simctl io` | `sim` | a screenshot of a failing UI cannot be taken |
|
|
261
|
+
| `simctl openurl` | `sim` | a deep link cannot be opened, which is how deep links are tested |
|
|
262
|
+
| `simctl privacy` | `sim` | a permission prompt cannot be granted ahead of a UI test |
|
|
263
|
+
| `simctl push` | `sim` | a push notification cannot be simulated |
|
|
264
|
+
| `simctl status_bar` | `sim` | the status bar cannot be pinned, which screenshot tests need |
|
|
265
|
+
| `simctl ui` | `sim` | dark mode and content size cannot be set for a test run |
|
|
287
266
|
|
|
288
267
|
The denominator is read from `xcodebuild -help` rather than hand-maintained, and this table is written against **Xcode 27.0** — the option list moves between releases. `npm run coverage:check` fails on that Xcode if an option here is unclassified or has been dropped, and reports the difference without failing on any other.
|
|
289
268
|
|
package/dist/src/action.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ProjectContext } from "./context.js";
|
|
2
|
+
import { type Subject } from "./scheme.js";
|
|
2
3
|
import { type BuildRun } from "./xcodebuild.js";
|
|
3
4
|
/**
|
|
4
5
|
* The machinery shared by every command that runs an xcodebuild *action* —
|
|
@@ -22,6 +23,8 @@ export interface BuildContext {
|
|
|
22
23
|
project: ProjectContext;
|
|
23
24
|
/** The scheme, or a description of the targets when in target mode. */
|
|
24
25
|
scheme: string;
|
|
26
|
+
/** What was selected, and how to name, spell and file it. */
|
|
27
|
+
subject: Subject;
|
|
25
28
|
/** Human-readable destination, or undefined when the command skipped one. */
|
|
26
29
|
destination: string | undefined;
|
|
27
30
|
/** Everything before the action word. */
|
|
@@ -46,6 +49,11 @@ export declare function resolveBuildContext(options: ResolveBuildContextOptions)
|
|
|
46
49
|
* handed from wherever the process happens to be.
|
|
47
50
|
*/
|
|
48
51
|
export declare function artifactsDirFrom(args: string[]): string | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* `scheme: all targets` is a lie, and the reader's only clue about which
|
|
54
|
+
* question was answered. Every report that names the subject goes through here.
|
|
55
|
+
*/
|
|
56
|
+
export declare function subjectField(context: BuildContext): Record<string, string>;
|
|
49
57
|
/** A filesystem stem that distinguishes runs of different commands and devices. */
|
|
50
58
|
export declare function runLabel(context: BuildContext, command: string): string;
|
|
51
59
|
export interface RunActionOptions {
|
package/dist/src/action.js
CHANGED
|
@@ -2,7 +2,7 @@ import { existsSync, mkdirSync, writeFileSync } from "node:fs";
|
|
|
2
2
|
import { dirname, resolve } from "node:path";
|
|
3
3
|
import { AxiError, mapXcodebuildError } from "./errors.js";
|
|
4
4
|
import { requireProject } from "./context.js";
|
|
5
|
-
import {
|
|
5
|
+
import { resolveSubject } from "./scheme.js";
|
|
6
6
|
import { destinationSlug, resolveDestination } from "./destination.js";
|
|
7
7
|
import { runBuild } from "./xcodebuild.js";
|
|
8
8
|
import { readBuildResults, toDiagnostics } from "./xcresult.js";
|
|
@@ -172,24 +172,15 @@ const SANITIZER_FLAGS = {
|
|
|
172
172
|
export async function resolveBuildContext(options) {
|
|
173
173
|
const { args, command } = options;
|
|
174
174
|
const project = requireProject();
|
|
175
|
-
const
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
}
|
|
185
|
-
if (targetMode && getFlag(args, "--scheme") !== undefined) {
|
|
186
|
-
throw new AxiError("--scheme and --target select different things to build, so only one can be used", "VALIDATION_ERROR", ["Drop one — a scheme already names the targets it builds"]);
|
|
187
|
-
}
|
|
188
|
-
const scheme = targetMode
|
|
189
|
-
? allTargets
|
|
190
|
-
? "all targets"
|
|
191
|
-
: targets.join(",")
|
|
192
|
-
: await requireScheme(project, getFlag(args, "--scheme"), command);
|
|
175
|
+
const subject = await resolveSubject(project, {
|
|
176
|
+
...(getFlag(args, "--scheme") !== undefined
|
|
177
|
+
? { scheme: getFlag(args, "--scheme") }
|
|
178
|
+
: {}),
|
|
179
|
+
targets: getListFlag(args, "--target"),
|
|
180
|
+
allTargets: hasFlag(args, "--all-targets"),
|
|
181
|
+
}, command);
|
|
182
|
+
const scheme = subject.label;
|
|
183
|
+
const targetMode = subject.targetMode;
|
|
193
184
|
const rawDestination = getFlag(args, "--destination");
|
|
194
185
|
const device = getFlag(args, "--device");
|
|
195
186
|
const needsDestination = options.needsDestination !== false;
|
|
@@ -227,11 +218,7 @@ export async function resolveBuildContext(options) {
|
|
|
227
218
|
const destinationTimeout = getIntFlag(args, "--destination-timeout");
|
|
228
219
|
const xcodebuildArgs = [
|
|
229
220
|
...project.flags,
|
|
230
|
-
...
|
|
231
|
-
? allTargets
|
|
232
|
-
? ["-alltargets"]
|
|
233
|
-
: targets.flatMap((target) => ["-target", target])
|
|
234
|
-
: ["-scheme", scheme]),
|
|
221
|
+
...subject.flags,
|
|
235
222
|
...(destination ? ["-destination", destination.specifier] : []),
|
|
236
223
|
...(destinationTimeout !== undefined
|
|
237
224
|
? ["-destination-timeout", String(destinationTimeout)]
|
|
@@ -269,6 +256,7 @@ export async function resolveBuildContext(options) {
|
|
|
269
256
|
return {
|
|
270
257
|
project,
|
|
271
258
|
scheme,
|
|
259
|
+
subject,
|
|
272
260
|
destination: destination?.described,
|
|
273
261
|
xcodebuildArgs,
|
|
274
262
|
maxErrors: getIntFlag(args, "--max-errors") ?? 20,
|
|
@@ -287,12 +275,21 @@ export function artifactsDirFrom(args) {
|
|
|
287
275
|
const dir = getFlag(args, "--artifacts-dir");
|
|
288
276
|
return dir === undefined ? undefined : resolve(dir);
|
|
289
277
|
}
|
|
278
|
+
/**
|
|
279
|
+
* `scheme: all targets` is a lie, and the reader's only clue about which
|
|
280
|
+
* question was answered. Every report that names the subject goes through here.
|
|
281
|
+
*/
|
|
282
|
+
export function subjectField(context) {
|
|
283
|
+
return context.subject.targetMode
|
|
284
|
+
? { targets: context.scheme }
|
|
285
|
+
: { scheme: context.scheme };
|
|
286
|
+
}
|
|
290
287
|
/** A filesystem stem that distinguishes runs of different commands and devices. */
|
|
291
288
|
export function runLabel(context, command) {
|
|
292
289
|
const device = context.destination
|
|
293
290
|
? `-${destinationSlug(context.destination)}`
|
|
294
291
|
: "";
|
|
295
|
-
return `${context.
|
|
292
|
+
return `${context.subject.slug}${device}-${command}`;
|
|
296
293
|
}
|
|
297
294
|
export function runAction(options) {
|
|
298
295
|
return runBuild({
|
|
@@ -308,6 +305,15 @@ export function runAction(options) {
|
|
|
308
305
|
: {}),
|
|
309
306
|
});
|
|
310
307
|
}
|
|
308
|
+
/**
|
|
309
|
+
* "xcodebuild encountered an error (70)" is what a bundle records when
|
|
310
|
+
* xcodebuild refused before doing anything. It is an error row rather than an
|
|
311
|
+
* empty list, so a guard that only looks for emptiness prints the exit code as
|
|
312
|
+
* though it were the diagnosis and never reads the transcript that has one.
|
|
313
|
+
*/
|
|
314
|
+
function isGenericFailure(diagnostic) {
|
|
315
|
+
return /^xcodebuild encountered an error \(\d+\)$/.test(diagnostic.message.trim());
|
|
316
|
+
}
|
|
311
317
|
/**
|
|
312
318
|
* The shared report for any action that compiles something.
|
|
313
319
|
*
|
|
@@ -324,10 +330,11 @@ export async function reportAction(options) {
|
|
|
324
330
|
...(options.analyzer ? [] : (results?.analyzerWarnings ?? [])),
|
|
325
331
|
]);
|
|
326
332
|
const succeeded = run.exitCode === 0;
|
|
327
|
-
// A bundle that records no error for a nonzero exit means xcodebuild
|
|
328
|
-
// before it built anything — a bad scheme, an unmatched destination, a
|
|
333
|
+
// A bundle that records no *usable* error for a nonzero exit means xcodebuild
|
|
334
|
+
// died before it built anything — a bad scheme, an unmatched destination, a
|
|
329
335
|
// missing signing team. The transcript is the only witness.
|
|
330
|
-
|
|
336
|
+
const unexplained = errors.length === 0 || errors.every(isGenericFailure);
|
|
337
|
+
if (!succeeded && unexplained) {
|
|
331
338
|
const mapped = mapXcodebuildError(run.tail);
|
|
332
339
|
if (mapped) {
|
|
333
340
|
throw new AxiError(mapped.message, mapped.code, [
|
|
@@ -339,7 +346,7 @@ export async function reportAction(options) {
|
|
|
339
346
|
const blocks = [
|
|
340
347
|
renderFields({
|
|
341
348
|
[options.key]: succeeded ? options.ok : "failed",
|
|
342
|
-
|
|
349
|
+
...subjectField(context),
|
|
343
350
|
...(context.destination ? { destination: context.destination } : {}),
|
|
344
351
|
duration: duration(run.seconds),
|
|
345
352
|
...(options.extra ?? {}),
|
|
@@ -362,7 +369,7 @@ export async function reportAction(options) {
|
|
|
362
369
|
else if (succeeded && !options.analyzer) {
|
|
363
370
|
blocks.push(renderFields({ warnings: 0 }));
|
|
364
371
|
}
|
|
365
|
-
if (!succeeded &&
|
|
372
|
+
if (!succeeded && unexplained) {
|
|
366
373
|
const tail = transcriptTail(run.tail);
|
|
367
374
|
if (tail)
|
|
368
375
|
blocks.push(tail);
|
package/dist/src/action.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.js","sourceRoot":"","sources":["../../src/action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAuB,MAAM,cAAc,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAiB,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,SAAS,GACV,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACtE,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,mBAAmB,GACpB,MAAM,eAAe,CAAC;AAEvB;;;;;;;GAOG;AAEH,qFAAqF;AACrF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,UAAU;IACV,UAAU;IACV,eAAe;IACf,UAAU;IACV,eAAe;IACf,iBAAiB;IACjB,OAAO;IACP,QAAQ;IACR,aAAa;IACb,YAAY;IACZ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AI,CACR,wBAAwB,OAAO,CAAC,OAAO,iBAAiB,MAAM,CAAC,MAAM,kBAAkB,MAAM,CAAC,MAAM,SAAS,CAC9G,CAAC;IACJ,CAAC;IACD,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,QAAQ,CAAC,MAAM,GAAG,EAAE,EAAE,CAAC;QAC1C,KAAK,CAAC,IAAI,CACR,wBAAwB,OAAO,CAAC,OAAO,yBAAyB,QAAQ,CAAC,MAAM,WAAW,CAC3F,CAAC;IACJ,CAAC;IACD,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,KAAK,CAAC,IAAI,CACR,+BAA+B,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,2CAA2C,CACpG,CAAC;IACJ,CAAC;IACD,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;IAE/B,yEAAyE;IACzE,oEAAoE;IACpE,IAAI,CAAC,SAAS;QAAE,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;IACrC,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC;AAC9B,CAAC"}
|
|
@@ -42,7 +42,7 @@ export async function archiveCommand(args) {
|
|
|
42
42
|
command: "archive",
|
|
43
43
|
});
|
|
44
44
|
const archivePath = getFlag(args, "--archive-path") ??
|
|
45
|
-
join(artifactDir(context.project), `${context.
|
|
45
|
+
join(artifactDir(context.project), `${context.subject.slug}.xcarchive`);
|
|
46
46
|
const run = await runAction({
|
|
47
47
|
context,
|
|
48
48
|
command: "archive",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"archive.js","sourceRoot":"","sources":["../../../src/commands/archive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EACL,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,SAAS,EACT,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,eAAe,EAAE,MAAM,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|
2
|
-
export declare const CLEAN_FLAGS: readonly ["--scheme", "--configuration", "--derived-data"];
|
|
1
|
+
export declare const CLEAN_HELP = "usage: xcodebuild-axi clean [flags]\nRemoves a scheme's build products and intermediates.\nflags[14]:\n --scheme <name> scheme to clean (required only when the project has more than one)\n --target <name> clean a target instead of a scheme; repeatable (project only)\n --all-targets clean every target in the project (project only)\n --configuration <name> configuration to clean (default: the scheme's own)\n --destination <spec> raw xcodebuild destination specifier, passed through untouched\n --device <name> clean the products for this simulator or device by name\n --destination-timeout <secs> how long to wait for the destination device\n --sdk <name> base SDK whose products to clean, e.g. iphonesimulator\n --arch <arch> architecture to clean; repeatable or comma-separated\n --toolchain <name> toolchain identifier or name\n --xcconfig <path> apply build settings from this file as overrides\n --derived-data <path> derived data directory to clean within\n --artifacts-dir <path> where to write this run's log and .xcresult (default: the tool's cache)\n --log-level <level> quiet, normal, or verbose \u2014 how much lands in the log file\nnote:\n A clean is scoped by the same things a build is. Without a destination or an\n --sdk it cleans the products for xcodebuild's default, which is not what a\n simulator build wrote -- so \"cleaned\" and \"still there\" are both true answers\n to different questions.\nexamples:\n xcodebuild-axi clean\n xcodebuild-axi clean --scheme MyApp --configuration Release\n xcodebuild-axi clean --all-targets --derived-data build/dd\n";
|
|
2
|
+
export declare const CLEAN_FLAGS: readonly ["--scheme", "--target", "--all-targets", "--configuration", "--destination", "--device", "--destination-timeout", "--sdk", "--arch", "--toolchain", "--xcconfig", "--derived-data", "--artifacts-dir", "--log-level"];
|
|
3
3
|
export declare function cleanCommand(args: string[]): Promise<string>;
|