xcodebuild-axi 0.1.6 → 0.1.8

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.
Files changed (78) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/README.md +98 -2
  3. package/dist/src/args.d.ts +11 -0
  4. package/dist/src/args.js +30 -0
  5. package/dist/src/args.js.map +1 -1
  6. package/dist/src/cli.d.ts +8 -0
  7. package/dist/src/cli.js +53 -22
  8. package/dist/src/cli.js.map +1 -1
  9. package/dist/src/commands/analyze.d.ts +2 -0
  10. package/dist/src/commands/analyze.js +3 -1
  11. package/dist/src/commands/analyze.js.map +1 -1
  12. package/dist/src/commands/archive.d.ts +1 -0
  13. package/dist/src/commands/archive.js +6 -2
  14. package/dist/src/commands/archive.js.map +1 -1
  15. package/dist/src/commands/build.d.ts +1 -0
  16. package/dist/src/commands/build.js +2 -2
  17. package/dist/src/commands/build.js.map +1 -1
  18. package/dist/src/commands/clean.d.ts +1 -0
  19. package/dist/src/commands/clean.js +6 -2
  20. package/dist/src/commands/clean.js.map +1 -1
  21. package/dist/src/commands/coverage.d.ts +1 -0
  22. package/dist/src/commands/coverage.js +7 -2
  23. package/dist/src/commands/coverage.js.map +1 -1
  24. package/dist/src/commands/destinations.d.ts +1 -0
  25. package/dist/src/commands/destinations.js +6 -2
  26. package/dist/src/commands/destinations.js.map +1 -1
  27. package/dist/src/commands/export.d.ts +2 -0
  28. package/dist/src/commands/export.js +11 -5
  29. package/dist/src/commands/export.js.map +1 -1
  30. package/dist/src/commands/find.d.ts +1 -0
  31. package/dist/src/commands/find.js +2 -2
  32. package/dist/src/commands/find.js.map +1 -1
  33. package/dist/src/commands/info.d.ts +1 -0
  34. package/dist/src/commands/info.js +2 -2
  35. package/dist/src/commands/info.js.map +1 -1
  36. package/dist/src/commands/localize.d.ts +1 -0
  37. package/dist/src/commands/localize.js +2 -2
  38. package/dist/src/commands/localize.js.map +1 -1
  39. package/dist/src/commands/migrate.d.ts +1 -0
  40. package/dist/src/commands/migrate.js +2 -2
  41. package/dist/src/commands/migrate.js.map +1 -1
  42. package/dist/src/commands/packages.d.ts +1 -0
  43. package/dist/src/commands/packages.js +7 -2
  44. package/dist/src/commands/packages.js.map +1 -1
  45. package/dist/src/commands/platforms.d.ts +1 -0
  46. package/dist/src/commands/platforms.js +2 -2
  47. package/dist/src/commands/platforms.js.map +1 -1
  48. package/dist/src/commands/result.d.ts +1 -0
  49. package/dist/src/commands/result.js +7 -2
  50. package/dist/src/commands/result.js.map +1 -1
  51. package/dist/src/commands/schemes.d.ts +1 -0
  52. package/dist/src/commands/schemes.js +2 -1
  53. package/dist/src/commands/schemes.js.map +1 -1
  54. package/dist/src/commands/settings.d.ts +1 -0
  55. package/dist/src/commands/settings.js +2 -2
  56. package/dist/src/commands/settings.js.map +1 -1
  57. package/dist/src/commands/setup.d.ts +1 -0
  58. package/dist/src/commands/setup.js +2 -2
  59. package/dist/src/commands/setup.js.map +1 -1
  60. package/dist/src/commands/sim.d.ts +1 -0
  61. package/dist/src/commands/sim.js +2 -2
  62. package/dist/src/commands/sim.js.map +1 -1
  63. package/dist/src/commands/test.d.ts +1 -0
  64. package/dist/src/commands/test.js +2 -2
  65. package/dist/src/commands/test.js.map +1 -1
  66. package/dist/src/commands/testplans.d.ts +1 -0
  67. package/dist/src/commands/testplans.js +2 -1
  68. package/dist/src/commands/testplans.js.map +1 -1
  69. package/dist/src/commands/tests.d.ts +1 -0
  70. package/dist/src/commands/tests.js +2 -2
  71. package/dist/src/commands/tests.js.map +1 -1
  72. package/dist/src/commands/xcframework.d.ts +19 -1
  73. package/dist/src/commands/xcframework.js +116 -27
  74. package/dist/src/commands/xcframework.js.map +1 -1
  75. package/dist/src/surface.d.ts +133 -1
  76. package/dist/src/surface.js +712 -265
  77. package/dist/src/surface.js.map +1 -1
  78. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -8,6 +8,63 @@ Notable changes to `xcodebuild-axi`. Versions follow
8
8
 
9
9
  ### Added
10
10
 
11
+ - `xcframework` takes `--archive`, `--debug-symbols` and
12
+ `--allow-internal-distribution`, which is the other half of
13
+ `-create-xcframework`. The workflow it was missing is the usual one: archive
14
+ once per platform, then bundle the slices by name out of those archives.
15
+ Without `--archive` the only way in was a path to a built product, which is
16
+ not what an archive-based build has.
17
+
18
+ `--debug-symbols` matters more than it looks. Every `.xcframework` this tool
19
+ produced until now shipped without dSYMs, so nothing built from one could be
20
+ symbolicated — a crash report from a binary distributed this way was
21
+ addresses and nothing else.
22
+
23
+ - `--headers` and `--debug-symbols` now attach to the `--framework` or
24
+ `--library` they follow, the way xcodebuild reads them positionally. They
25
+ used to be paired by index, so headers given after the second library were
26
+ applied to the first.
27
+
28
+ - Coverage is now measured along four axes instead of one, and `src/surface.ts`
29
+ declares all four. The old number asked "does any command reach this
30
+ option?", answered 100%, and hid every gap that has been found since — so it
31
+ now also asks which commands reach it, what the options _behind_ an option
32
+ are, and how much of the companion tools is wrapped.
33
+
34
+ - **Reach** counts one pair per command an option applies to. An option
35
+ declares the surface it belongs to, and every command in that surface must
36
+ be recorded as reached, declined with a reason, or missing; silence fails
37
+ the test suite. 93.6% of 328 pairs today, with 21 open.
38
+ - **Leaves** counts switches rather than options: the 18 keys of
39
+ `-exportOptionsPlist`, the 8 arguments of `-create-xcframework`, and the
40
+ second forms that `-help` mentions only inside a usage line, all of which
41
+ used to ride free on the one option that names them. 89.4% of 160.
42
+ - **Companion tools** — `xcresulttool`, `xccov`, `simctl` — are classified
43
+ for the first time, separately from xcodebuild's own number. 16.9% of 71.
44
+
45
+ The claims are checked against the commands themselves rather than trusted:
46
+ every command exports its flag list, `COMMAND_FLAGS` collects them, and
47
+ `test/surface.test.ts` fails if the map says `settings --target` while
48
+ `settings` would reject it.
49
+
50
+ - The README's coverage section grew a **Still open** table — every known gap,
51
+ what it costs, and the command it will land on. It is generated, so it
52
+ shrinks as the gaps close rather than going stale.
53
+
54
+ ## [0.1.7] - 2026-09-21
55
+
56
+ ### Fixed
57
+
58
+ - `export --artifacts-dir <path>` — the flag `build`, `archive` and `test`
59
+ gained in 0.1.5, on the one command a release pipeline cannot do without.
60
+ Its log went to the tool's cache regardless, so a failed upload left its
61
+ transcript exactly where CI's artifact step does not look. The command that
62
+ talks to App Store Connect was the worst one to leave behind.
63
+
64
+ ## [0.1.6] - 2026-09-21
65
+
66
+ ### Added
67
+
11
68
  - `export --upload` writes `destination: upload` into the generated options
12
69
  plist, so a CI ship can hand the build to App Store Connect instead of
13
70
  writing an `.ipa` nobody collects. Without it, `--method` could only ever
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  <a href="https://www.npmjs.com/package/xcodebuild-axi"><img alt="npm" src="https://img.shields.io/npm/v/xcodebuild-axi?style=flat-square" /></a>
5
5
  <a href="https://axi.md/"><img alt="AXI" src="https://img.shields.io/badge/AXI-compliant-blue?style=flat-square" /></a>
6
6
  <img alt="Platform" src="https://img.shields.io/badge/platform-macOS-lightgrey?style=flat-square" />
7
- <!-- coverage-badge:start --><img alt="xcodebuild coverage" src="https://img.shields.io/badge/xcodebuild_coverage-100%25-brightgreen?style=flat-square" /><!-- coverage-badge:end -->
7
+ <!-- coverage-badge:start --><img alt="xcodebuild coverage" src="https://img.shields.io/badge/xcodebuild_coverage-91.3%25-brightgreen?style=flat-square" /><!-- coverage-badge:end -->
8
8
  <img alt="License" src="https://img.shields.io/badge/license-MIT-green?style=flat-square" />
9
9
  </p>
10
10
 
@@ -171,7 +171,20 @@ Every command takes `--help`.
171
171
 
172
172
  <!-- coverage:start -->
173
173
 
174
- **Coverage: 100% — every one of the 117 options `xcodebuild -help` lists, and 9 of its 10 build actions.**
174
+ **Coverage: 91.3% of the 160 leaves `xcodebuild` documents** — every option, build action, export options key, `-create-xcframework` argument, and the second forms that only a usage line mentions.
175
+
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
+
178
+ | Surface | Leaves | Covered |
179
+ | ------------------------------------------------------ | ------- | --------------- |
180
+ | `xcodebuild -help` options | 117 | 117 (100%) |
181
+ | build actions | 10 | 9 (90%) |
182
+ | second forms (`-version <infoitem>`, `-license check`) | 7 | 6 (85.7%) |
183
+ | `-exportOptionsPlist` keys | 18 | 6 (33.3%) |
184
+ | `-create-xcframework` options | 8 | 8 (100%) |
185
+ | **total** | **160** | **146 (91.3%)** |
186
+
187
+ **Reach: 93.6%** 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`. 21 pairs are open.
175
188
 
176
189
  108 options map to an `xcodebuild-axi` flag. The other 9 are reachable without one:
177
190
 
@@ -189,6 +202,89 @@ Every command takes `--help`.
189
202
 
190
203
  The one action left out is `installsrc` — it copies sources into `SRCROOT` as root, which is a packaging step rather than anything an agent loop needs.
191
204
 
205
+ ### Companion tools
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. **16.9% of 71 leaves**, counted the same way:
208
+
209
+ | Tool | Leaves | Covered |
210
+ | -------------- | ------ | --------- |
211
+ | `xcresulttool` | 21 | 3 (14.3%) |
212
+ | `xccov` | 9 | 4 (44.4%) |
213
+ | `simctl` | 41 | 5 (12.2%) |
214
+
215
+ ### Still open
216
+
217
+ 66 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
+ | `-alltargets` | `settings` | resolves a scheme only, so target-mode projects cannot be asked |
222
+ | `-alltargets` | `clean` | `clean` takes three flags today and xcodebuild accepts this one on a clean action |
223
+ | `-arch` | `settings` | architecture-dependent settings cannot be asked for one arch |
224
+ | `-arch` | `clean` | `clean` takes three flags today and xcodebuild accepts this one on a clean action |
225
+ | `-derivedDataPath` | `settings` | BUILT_PRODUCTS_DIR cannot be asked for the derived data a CI job uses |
226
+ | `-derivedDataPath` | `packages` | resolved packages land in derived data, which cannot be redirected |
227
+ | `-destination` | `clean` | `clean` takes three flags today and xcodebuild accepts this one on a clean action |
228
+ | `-destination-timeout` | `settings` | resolves a device by name with no say over the wait |
229
+ | `-destination-timeout` | `clean` | `clean` takes three flags today and xcodebuild accepts this one on a clean action |
230
+ | `-only-testing` | `tests` | enumeration cannot be constrained the way the run that follows it is |
231
+ | `-sdk` | `clean` | `clean` takes three flags today and xcodebuild accepts this one on a clean action |
232
+ | `-skip-testing` | `tests` | enumeration cannot be constrained the way the run that follows it is |
233
+ | `-target` | `settings` | resolves a scheme only, so target-mode projects cannot be asked |
234
+ | `-target` | `clean` | `clean` takes three flags today and xcodebuild accepts this one on a clean action |
235
+ | `-toolchain` | `settings` | settings cannot be resolved against a toolchain |
236
+ | `-toolchain` | `clean` | `clean` takes three flags today and xcodebuild accepts this one on a clean action |
237
+ | `-xcconfig` | `settings` | the overrides an xcconfig applies cannot be resolved before a build |
238
+ | `-xcconfig` | `clean` | `clean` takes three flags today and xcodebuild accepts this one on a clean action |
239
+ | `-resultBundlePath` | `clean` | writes a result bundle the caller cannot redirect |
240
+ | `-quiet` | `clean` | the clean log cannot be quieted |
241
+ | `-verbose` | `clean` | the clean log cannot be made verbose |
242
+ | `-version -sdk <name> <infoitem>` | `info` | `info --sdks` lists canonical names; an SDK's Path or ProductBuildVersion cannot be asked for |
243
+ | `provisioningProfiles` (export options) | `export` | manual signing can be asked for but not completed — the profile per executable has no flag |
244
+ | `signingCertificate` (export options) | `export` | manual signing cannot name the certificate to sign with |
245
+ | `installerSigningCertificate` (export options) | `export` | a macOS installer package cannot name its signing certificate |
246
+ | `thinning` (export options) | `export` | non-App Store exports cannot be thinned for a device variant |
247
+ | `stripSwiftSymbols` (export options) | `export` | Swift symbols are always stripped, with no way to keep them |
248
+ | `testFlightInternalTestingOnly` (export options) | `export` | a build cannot be marked internal-only, which is what a PR build wants |
249
+ | `distributionBundleIdentifier` (export options) | `export` | an archive with several apps cannot pick which one to export |
250
+ | `generateAppStoreInformation` (export options) | `export` | App Store information cannot be generated for an upload |
251
+ | `iCloudContainerEnvironment` (export options) | `export` | a CloudKit app cannot choose the Development or Production container |
252
+ | `manifest` (export options) | `export` | an over-the-web distribution manifest cannot be written |
253
+ | `embedOnDemandResourcesAssetPacksInBundle` (export options) | `export` | on-demand resource asset packs cannot be embedded for testing |
254
+ | `onDemandResourcesAssetPacksBaseURL` (export options) | `export` | on-demand resource asset packs cannot be pointed at a host |
255
+ | `xcresulttool get test-results tests` | `result` | the full test tree of a finished run cannot be listed |
256
+ | `xcresulttool get test-results test-details` | `result` | the only source of a per-failure file and line; without it a failing test reports a message and no location |
257
+ | `xcresulttool get test-results activities` | `result` | the step-by-step activity trail of a failing test cannot be read |
258
+ | `xcresulttool get test-results insights` | `result` | Xcode's own diagnosis of a run is left on the floor |
259
+ | `xcresulttool get test-results metrics` | `result` | `test --perf-diagnostics` collects performance metrics nothing can read back |
260
+ | `xcresulttool get log` | `result` | the build log inside the bundle is reachable only as the raw transcript file |
261
+ | `xcresulttool get content-availability` | `result` | whether a bundle even has coverage or test results is found out by failing to read it |
262
+ | `xcresulttool export diagnostics` | `result` | `test --diagnostics` collects a diagnostics report that cannot be extracted |
263
+ | `xcresulttool export attachments` | `result` | UI test screenshots and attachments cannot be got out of the bundle |
264
+ | `xcresulttool export metrics` | `result` | performance measurements cannot be exported as CSV |
265
+ | `xcresulttool export evaluations` | `result` | evaluation attachments cannot be exported |
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 |
287
+
192
288
  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.
193
289
 
194
290
  <!-- coverage:end -->
@@ -10,6 +10,17 @@ export declare function getFlag(args: string[], name: string): string | undefine
10
10
  export declare function hasFlag(args: string[], name: string): boolean;
11
11
  /** Read a `--flag a,b,c` list, also accepting the flag repeated. */
12
12
  export declare function getListFlag(args: string[], name: string): string[];
13
+ /**
14
+ * Every occurrence of the named flags, in the order they were written.
15
+ *
16
+ * Order is meaning for a few xcodebuild options: `-headers` belongs to the
17
+ * `-library` before it and `-debug-symbols` to the slice before that, so a
18
+ * command that regrouped them by flag would pair the wrong ones together.
19
+ */
20
+ export declare function orderedFlags(args: string[], names: readonly string[]): Array<{
21
+ flag: string;
22
+ value: string;
23
+ }>;
13
24
  /** Read an integer flag, rejecting values that are not numbers. */
14
25
  export declare function getIntFlag(args: string[], name: string): number | undefined;
15
26
  /** Positional arguments — everything that is not a flag or a flag's value. */
package/dist/src/args.js CHANGED
@@ -43,6 +43,36 @@ export function getListFlag(args, name) {
43
43
  }
44
44
  return out.flatMap((v) => v.split(",")).filter((v) => v.length > 0);
45
45
  }
46
+ /**
47
+ * Every occurrence of the named flags, in the order they were written.
48
+ *
49
+ * Order is meaning for a few xcodebuild options: `-headers` belongs to the
50
+ * `-library` before it and `-debug-symbols` to the slice before that, so a
51
+ * command that regrouped them by flag would pair the wrong ones together.
52
+ */
53
+ export function orderedFlags(args, names) {
54
+ const out = [];
55
+ for (let i = 0; i < args.length; i++) {
56
+ const arg = args[i];
57
+ if (arg === undefined)
58
+ continue;
59
+ if (arg === "--")
60
+ break;
61
+ const equals = arg.indexOf("=");
62
+ const bare = equals < 0 ? arg : arg.slice(0, equals);
63
+ if (!names.includes(bare))
64
+ continue;
65
+ if (equals >= 0) {
66
+ out.push({ flag: bare, value: arg.slice(equals + 1) });
67
+ continue;
68
+ }
69
+ const value = args[i + 1];
70
+ if (value !== undefined)
71
+ out.push({ flag: bare, value });
72
+ i++;
73
+ }
74
+ return out;
75
+ }
46
76
  /** Read an integer flag, rejecting values that are not numbers. */
47
77
  export function getIntFlag(args, name) {
48
78
  const raw = getFlag(args, name);
@@ -1 +1 @@
1
- {"version":3,"file":"args.js","sourceRoot":"","sources":["../../src/args.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC;;;;;;GAMG;AAEH,kEAAkE;AAClE,MAAM,UAAU,OAAO,CAAC,IAAc,EAAE,IAAY;IAClD,MAAM,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC;IAC1B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACrC,MAAM,GAAG,GAAG,IA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@ -1,6 +1,14 @@
1
1
  export declare const DESCRIPTION = "Agent-ergonomic wrapper around xcodebuild. Prefer it over raw `xcodebuild` for any build / test / inspect of an Xcode project.";
2
2
  export declare const TOP_HELP = "usage: xcodebuild-axi [command] [flags]\ncommands[23]:\n (none)=dashboard\n build, test, tests, clean, analyze, archive, export\n schemes, destinations, testplans, settings, packages, info\n result, coverage, sim, platforms, setup\n localize, xcframework, find, migrate\nflags[2]:\n --help, -v/-V/--version\nenv[2]:\n XCODEBUILD_BIN override the wrapped xcodebuild binary\n DEVELOPER_DIR select an Xcode, as xcodebuild itself reads it\nexit:\n 0 success, 1 the build or tests failed, 2 usage error\nexamples:\n xcodebuild-axi\n xcodebuild-axi build --scheme MyApp\n xcodebuild-axi test --scheme MyApp --device \"iPhone 17 Pro\" --coverage\n xcodebuild-axi settings --key PRODUCT_BUNDLE_IDENTIFIER\n xcodebuild-axi setup hooks\n";
3
3
  export declare const COMMAND_HELP: Record<string, string>;
4
+ /**
5
+ * Every command's accepted flag set, keyed by command name.
6
+ *
7
+ * `src/surface.ts` declares which commands *should* reach a given xcodebuild
8
+ * option; this is the ground truth it is checked against, so a `via` that
9
+ * names a flag the command would reject fails the build rather than the user.
10
+ */
11
+ export declare const COMMAND_FLAGS: Record<string, readonly string[]>;
4
12
  type CliStdout = {
5
13
  write: (chunk: string) => unknown;
6
14
  };
package/dist/src/cli.js CHANGED
@@ -3,28 +3,28 @@ import { runAxiCli } from "axi-sdk-js";
3
3
  import { AxiError, exitCodeForError } from "./errors.js";
4
4
  import { VERSION } from "./version.js";
5
5
  import { homeCommand } from "./commands/home.js";
6
- import { buildCommand, BUILD_HELP } from "./commands/build.js";
7
- import { testCommand, TEST_HELP } from "./commands/test.js";
8
- import { testsCommand, TESTS_HELP } from "./commands/tests.js";
9
- import { cleanCommand, CLEAN_HELP } from "./commands/clean.js";
10
- import { analyzeCommand, ANALYZE_HELP } from "./commands/analyze.js";
11
- import { archiveCommand, ARCHIVE_HELP } from "./commands/archive.js";
12
- import { exportCommand, EXPORT_HELP } from "./commands/export.js";
13
- import { schemesCommand, SCHEMES_HELP } from "./commands/schemes.js";
14
- import { destinationsCommand, DESTINATIONS_HELP, } from "./commands/destinations.js";
15
- import { testplansCommand, TESTPLANS_HELP } from "./commands/testplans.js";
16
- import { settingsCommand, SETTINGS_HELP } from "./commands/settings.js";
17
- import { packagesCommand, PACKAGES_HELP } from "./commands/packages.js";
18
- import { resultCommand, RESULT_HELP } from "./commands/result.js";
19
- import { coverageCommand, COVERAGE_HELP } from "./commands/coverage.js";
20
- import { simCommand, SIM_HELP } from "./commands/sim.js";
21
- import { infoCommand, INFO_HELP } from "./commands/info.js";
22
- import { localizeCommand, LOCALIZE_HELP } from "./commands/localize.js";
23
- import { xcframeworkCommand, XCFRAMEWORK_HELP, } from "./commands/xcframework.js";
24
- import { findCommand, FIND_HELP } from "./commands/find.js";
25
- import { platformsCommand, PLATFORMS_HELP } from "./commands/platforms.js";
26
- import { migrateCommand, MIGRATE_HELP } from "./commands/migrate.js";
27
- import { setupCommand, SETUP_HELP } from "./commands/setup.js";
6
+ import { buildCommand, BUILD_HELP, BUILD_FLAGS } from "./commands/build.js";
7
+ import { testCommand, TEST_HELP, TEST_FLAGS } from "./commands/test.js";
8
+ import { testsCommand, TESTS_HELP, TESTS_FLAGS } from "./commands/tests.js";
9
+ import { cleanCommand, CLEAN_HELP, CLEAN_FLAGS } from "./commands/clean.js";
10
+ import { analyzeCommand, ANALYZE_HELP, ANALYZE_FLAGS, } from "./commands/analyze.js";
11
+ import { archiveCommand, ARCHIVE_HELP, ARCHIVE_FLAGS, } from "./commands/archive.js";
12
+ import { exportCommand, EXPORT_HELP, EXPORT_FLAGS } from "./commands/export.js";
13
+ import { schemesCommand, SCHEMES_HELP, SCHEMES_FLAGS, } from "./commands/schemes.js";
14
+ import { destinationsCommand, DESTINATIONS_HELP, DESTINATIONS_FLAGS, } from "./commands/destinations.js";
15
+ import { testplansCommand, TESTPLANS_HELP, TESTPLANS_FLAGS, } from "./commands/testplans.js";
16
+ import { settingsCommand, SETTINGS_HELP, SETTINGS_FLAGS, } from "./commands/settings.js";
17
+ import { packagesCommand, PACKAGES_HELP, PACKAGES_FLAGS, } from "./commands/packages.js";
18
+ import { resultCommand, RESULT_HELP, RESULT_FLAGS } from "./commands/result.js";
19
+ import { coverageCommand, COVERAGE_HELP, COVERAGE_FLAGS, } from "./commands/coverage.js";
20
+ import { simCommand, SIM_HELP, SIM_FLAGS } from "./commands/sim.js";
21
+ import { infoCommand, INFO_HELP, INFO_FLAGS } from "./commands/info.js";
22
+ import { localizeCommand, LOCALIZE_HELP, LOCALIZE_FLAGS, } from "./commands/localize.js";
23
+ import { xcframeworkCommand, XCFRAMEWORK_HELP, XCFRAMEWORK_FLAGS, } from "./commands/xcframework.js";
24
+ import { findCommand, FIND_HELP, FIND_FLAGS } from "./commands/find.js";
25
+ import { platformsCommand, PLATFORMS_HELP, PLATFORMS_FLAGS, } from "./commands/platforms.js";
26
+ import { migrateCommand, MIGRATE_HELP, MIGRATE_FLAGS, } from "./commands/migrate.js";
27
+ import { setupCommand, SETUP_HELP, SETUP_FLAGS } from "./commands/setup.js";
28
28
  export const DESCRIPTION = "Agent-ergonomic wrapper around xcodebuild. Prefer it over raw `xcodebuild` for any build / test / inspect of an Xcode project.";
29
29
  export const TOP_HELP = `usage: xcodebuild-axi [command] [flags]
30
30
  commands[23]:
@@ -71,6 +71,37 @@ export const COMMAND_HELP = {
71
71
  find: FIND_HELP,
72
72
  setup: SETUP_HELP,
73
73
  };
74
+ /**
75
+ * Every command's accepted flag set, keyed by command name.
76
+ *
77
+ * `src/surface.ts` declares which commands *should* reach a given xcodebuild
78
+ * option; this is the ground truth it is checked against, so a `via` that
79
+ * names a flag the command would reject fails the build rather than the user.
80
+ */
81
+ export const COMMAND_FLAGS = {
82
+ build: BUILD_FLAGS,
83
+ test: TEST_FLAGS,
84
+ tests: TESTS_FLAGS,
85
+ clean: CLEAN_FLAGS,
86
+ analyze: ANALYZE_FLAGS,
87
+ archive: ARCHIVE_FLAGS,
88
+ export: EXPORT_FLAGS,
89
+ schemes: SCHEMES_FLAGS,
90
+ destinations: DESTINATIONS_FLAGS,
91
+ testplans: TESTPLANS_FLAGS,
92
+ settings: SETTINGS_FLAGS,
93
+ packages: PACKAGES_FLAGS,
94
+ result: RESULT_FLAGS,
95
+ coverage: COVERAGE_FLAGS,
96
+ sim: SIM_FLAGS,
97
+ info: INFO_FLAGS,
98
+ localize: LOCALIZE_FLAGS,
99
+ xcframework: XCFRAMEWORK_FLAGS,
100
+ find: FIND_FLAGS,
101
+ platforms: PLATFORMS_FLAGS,
102
+ migrate: MIGRATE_FLAGS,
103
+ setup: SETUP_FLAGS,
104
+ };
74
105
  const COMMANDS = {
75
106
  build: (args) => buildCommand(args),
76
107
  test: (args) => testCommand(args),
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,uBAAuB,CA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,CAAC,CAAC,EAAE,CAAC;QAC/C,WAAW,EAAE,WAAW;QACxB,OAAO,EAAE,OAAO;QAChB,YAAY,EAAE,QAAQ;QACtB,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACrD,IAAI,EAAE,GAAG,EAAE,CAAC,WAAW,EAAE;QACzB,QAAQ,EAAE,QAAQ;QAClB,cAAc,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC;QAClD,WAAW,EAAE,cAAc;KAC5B,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;QACjB,MAAM,SAAS,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;QACxC,CAAC,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC3D,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAC;IACxC,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -1,2 +1,4 @@
1
1
  export declare const ANALYZE_HELP = "usage: xcodebuild-axi analyze [flags]\nRuns the static analyzer and reports its findings with exact source locations.\nAnalyzer findings are the payload here, not a count \u2014 unlike `build`, where\nthey are noise alongside compiler warnings.\nflags[42]:\n --scheme <name> scheme to act on (required only when the project has more than one)\n --target <name> build a target instead of a scheme; repeatable (project only)\n --all-targets build every target in the project (project only)\n --device <name> simulator or device name, e.g. \"iPhone 17 Pro\" (default: newest simulator)\n --destination <spec> raw xcodebuild destination specifier, passed through untouched\n --configuration <name> build configuration (default: the scheme's own)\n --sdk <name> base SDK, e.g. iphonesimulator\n --arch <arch> architecture to build; 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\n --artifacts-dir <path> where to write this run's log and .xcresult (default: the tool's cache)\n --jobs <n> maximum concurrent build operations\n --setting KEY=VALUE build setting override; repeatable or comma-separated\n --sign allow code signing (off by default, so simulator builds need no team)\n --allow-provisioning let xcodebuild talk to the developer portal for profiles\n --sanitizer <name> address, thread, or undefined; repeatable or comma-separated\n --timing report per-command build timings\n --destination-timeout <secs> how long to wait for the destination device\n --parallelize-targets build independent targets in parallel\n --hide-script-env omit shell script environment variables from the log\n --skip-unavailable-actions skip scheme actions that cannot run instead of failing\n --max-errors <n> errors to list before summarizing the rest (default: 20)\n --full list every warning instead of the first 10\n --codesize <dir> write a code size profile to this directory\n --log-level <level> quiet, normal, or verbose \u2014 how much lands in the log file\n --bundle-version <n> result bundle format version (default: xcodebuild's own)\n --stream <path> also write xcodebuild's live result stream here\n --offline resolve using only the versions already in Package.resolved\n --cache <path> clone remote packages into this directory\n --package-cache <path> shared package cache directory (across projects)\n --no-auto-resolve never resolve automatically; fail if Package.resolved is stale\n --skip-package-updates use the packages already cloned, without checking for updates\n --no-package-cache ignore the shared package repository cache\n --skip-plugin-validation trust build plugins without prompting\n --skip-signature-validation do not verify package signatures\n --package-auth <kind> keychain or netrc\n --registry-url <url> default package registry\n --scm-to-registry <kind> none, identity, or swift-package-registry\n --fingerprint-policy <kind> strict or warn\n --signing-entity-policy <kind> strict or warn\n --scm-provider <kind> system or xcode\nexit:\n 0 the analyze action succeeded (findings do not fail it), 1 it failed, 2 usage error\nexamples:\n xcodebuild-axi analyze\n xcodebuild-axi analyze --scheme MyApp --full\n";
2
+ /** `analyze` takes the shared set unchanged; named so the coverage matrix can read it. */
3
+ export declare const ANALYZE_FLAGS: readonly ["--scheme", "--target", "--all-targets", "--device", "--destination", "--configuration", "--sdk", "--arch", "--toolchain", "--xcconfig", "--derived-data", "--artifacts-dir", "--jobs", "--setting", "--sign", "--allow-provisioning", "--sanitizer", "--timing", "--destination-timeout", "--parallelize-targets", "--hide-script-env", "--skip-unavailable-actions", "--max-errors", "--full", "--codesize", "--log-level", "--bundle-version", "--stream", "--offline", "--cache", "--package-cache", "--no-auto-resolve", "--skip-package-updates", "--no-package-cache", "--skip-plugin-validation", "--skip-signature-validation", "--package-auth", "--registry-url", "--scm-to-registry", "--fingerprint-policy", "--signing-entity-policy", "--scm-provider"];
2
4
  export declare function analyzeCommand(args: string[]): Promise<string>;
@@ -12,8 +12,10 @@ examples:
12
12
  xcodebuild-axi analyze
13
13
  xcodebuild-axi analyze --scheme MyApp --full
14
14
  `;
15
+ /** `analyze` takes the shared set unchanged; named so the coverage matrix can read it. */
16
+ export const ANALYZE_FLAGS = SHARED_BUILD_FLAGS;
15
17
  export async function analyzeCommand(args) {
16
- rejectUnknownFlags(args, "analyze", SHARED_BUILD_FLAGS, SHARED_BUILD_VALUE_FLAGS);
18
+ rejectUnknownFlags(args, "analyze", ANALYZE_FLAGS, SHARED_BUILD_VALUE_FLAGS);
17
19
  const context = await resolveBuildContext({ args, command: "analyze" });
18
20
  const run = await runAction({
19
21
  context,
@@ -1 +1 @@
1
- {"version":3,"file":"analyze.js","sourceRoot":"","sources":["../../../src/commands/analyze.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,SAAS,EACT,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,CAAC,MAAM,YAAY,GAAG;;;;;EAK1B,eAAe;;;;;;CAMhB,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,IAAc;IACjD,kBAAkB,CAChB,IAAI,EACJ,SAAS,EACT,kBAAkB,EAClB,wBAAwB,CACzB,CAAC;IAEF,MAAM,OAAO,GAAG,MAAM,mBAAmB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC;IACxE,MAAM,GAAG,GAAG,MAAM,SAAS,CAAC;QAC1B,OAAO;QACP,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,CAAC,SAAS,CAAC;KACrB,CAAC,CAAC;IAEH,OAAO,YAAY,CAAC;QAClB,OAAO;QACP,GAAG;QACH,GAAG,EAAE,SAAS;QACd,EAAE,EAAE,WAAW;QACf,OAAO,EAAE,SAAS;QAClB,QAAQ,EAAE,IAAI;KACf,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"analyze.js","sourceRoot":"","sources":["../../../src/commands/analyze.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,SAAS,EACT,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,CAAC,MAAM,YAAY,GAAG;;;;;EAK1B,eAAe;;;;;;CAMhB,CAAC;AAEF,0FAA0F;AAC1F,MAAM,CAAC,MAAM,aAAa,GAAG,kBAAkB,CAAC;AAEhD,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,IAAc;IACjD,kBAAkB,CAAC,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE,wBAAwB,CAAC,CAAC;IAE7E,MAAM,OAAO,GAAG,MAAM,mBAAmB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC;IACxE,MAAM,GAAG,GAAG,MAAM,SAAS,CAAC;QAC1B,OAAO;QACP,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,CAAC,SAAS,CAAC;KACrB,CAAC,CAAC;IAEH,OAAO,YAAY,CAAC;QAClB,OAAO;QACP,GAAG;QACH,GAAG,EAAE,SAAS;QACd,EAAE,EAAE,WAAW;QACf,OAAO,EAAE,SAAS;QAClB,QAAQ,EAAE,IAAI;KACf,CAAC,CAAC;AACL,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export declare const ARCHIVE_HELP = "usage: xcodebuild-axi archive [flags]\nArchives a scheme and reports the archive's identity \u2014 bundle id, version, and\nbuild number \u2014 so the next step does not need a second lookup.\nflags[47]:\n --scheme <name> scheme to act on (required only when the project has more than one)\n --target <name> build a target instead of a scheme; repeatable (project only)\n --all-targets build every target in the project (project only)\n --device <name> simulator or device name, e.g. \"iPhone 17 Pro\" (default: newest simulator)\n --destination <spec> raw xcodebuild destination specifier, passed through untouched\n --configuration <name> build configuration (default: the scheme's own)\n --sdk <name> base SDK, e.g. iphonesimulator\n --arch <arch> architecture to build; 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\n --artifacts-dir <path> where to write this run's log and .xcresult (default: the tool's cache)\n --jobs <n> maximum concurrent build operations\n --setting KEY=VALUE build setting override; repeatable or comma-separated\n --sign allow code signing (off by default, so simulator builds need no team)\n --allow-provisioning let xcodebuild talk to the developer portal for profiles\n --sanitizer <name> address, thread, or undefined; repeatable or comma-separated\n --timing report per-command build timings\n --destination-timeout <secs> how long to wait for the destination device\n --parallelize-targets build independent targets in parallel\n --hide-script-env omit shell script environment variables from the log\n --skip-unavailable-actions skip scheme actions that cannot run instead of failing\n --max-errors <n> errors to list before summarizing the rest (default: 20)\n --full list every warning instead of the first 10\n --codesize <dir> write a code size profile to this directory\n --log-level <level> quiet, normal, or verbose \u2014 how much lands in the log file\n --bundle-version <n> result bundle format version (default: xcodebuild's own)\n --stream <path> also write xcodebuild's live result stream here\n --offline resolve using only the versions already in Package.resolved\n --cache <path> clone remote packages into this directory\n --package-cache <path> shared package cache directory (across projects)\n --no-auto-resolve never resolve automatically; fail if Package.resolved is stale\n --skip-package-updates use the packages already cloned, without checking for updates\n --no-package-cache ignore the shared package repository cache\n --skip-plugin-validation trust build plugins without prompting\n --skip-signature-validation do not verify package signatures\n --package-auth <kind> keychain or netrc\n --registry-url <url> default package registry\n --scm-to-registry <kind> none, identity, or swift-package-registry\n --fingerprint-policy <kind> strict or warn\n --signing-entity-policy <kind> strict or warn\n --scm-provider <kind> system or xcode\n --archive-path <path> where to write the .xcarchive (default: the tool's cache)\n --auth-key-path <path> App Store Connect API key (.p8); requires the two flags below\n --auth-key-id <id> key identifier for that key\n --auth-key-issuer <id> issuer identifier for that key\n --allow-device-registration let xcodebuild register the destination device on the portal\nnote:\n Archiving signs by default, unlike `build` \u2014 an unsigned archive cannot be\n exported. Pass --allow-provisioning to let xcodebuild fetch profiles.\nexit:\n 0 archive succeeded, 1 it failed, 2 usage error\nexamples:\n xcodebuild-axi archive --scheme MyApp\n xcodebuild-axi archive --scheme MyApp --archive-path build/MyApp.xcarchive\n";
2
+ export declare const ARCHIVE_FLAGS: readonly ["--scheme", "--target", "--all-targets", "--device", "--destination", "--configuration", "--sdk", "--arch", "--toolchain", "--xcconfig", "--derived-data", "--artifacts-dir", "--jobs", "--setting", "--sign", "--allow-provisioning", "--sanitizer", "--timing", "--destination-timeout", "--parallelize-targets", "--hide-script-env", "--skip-unavailable-actions", "--max-errors", "--full", "--codesize", "--log-level", "--bundle-version", "--stream", "--offline", "--cache", "--package-cache", "--no-auto-resolve", "--skip-package-updates", "--no-package-cache", "--skip-plugin-validation", "--skip-signature-validation", "--package-auth", "--registry-url", "--scm-to-registry", "--fingerprint-policy", "--signing-entity-policy", "--scm-provider", "--archive-path", "--auth-key-path", "--auth-key-id", "--auth-key-issuer", "--allow-device-registration"];
2
3
  export declare function archiveCommand(args: string[]): Promise<string>;
@@ -21,14 +21,18 @@ examples:
21
21
  xcodebuild-axi archive --scheme MyApp
22
22
  xcodebuild-axi archive --scheme MyApp --archive-path build/MyApp.xcarchive
23
23
  `;
24
- const FLAGS = [...SHARED_BUILD_FLAGS, "--archive-path", ...AUTH_FLAGS];
24
+ export const ARCHIVE_FLAGS = [
25
+ ...SHARED_BUILD_FLAGS,
26
+ "--archive-path",
27
+ ...AUTH_FLAGS,
28
+ ];
25
29
  const VALUE_FLAGS = [
26
30
  ...SHARED_BUILD_VALUE_FLAGS,
27
31
  "--archive-path",
28
32
  ...AUTH_VALUE_FLAGS,
29
33
  ];
30
34
  export async function archiveCommand(args) {
31
- rejectUnknownFlags(args, "archive", FLAGS, VALUE_FLAGS);
35
+ rejectUnknownFlags(args, "archive", ARCHIVE_FLAGS, VALUE_FLAGS);
32
36
  // An archive built with CODE_SIGNING_ALLOWED=NO cannot be exported, so
33
37
  // unlike every other build-family command this one signs unless told
34
38
  // otherwise. Injecting --sign keeps that in one place.
@@ -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,eAAe,CAAC;AAChD,OAAO,EACL,QAAQ,EACR,UAAU,EACV,cAAc,EACd,gBAAgB,GACjB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEzD,MAAM,CAAC,MAAM,YAAY,GAAG;;;;EAI1B,eAAe;;EAEf,cAAc;;;;;;;;;CASf,CAAC;AAEF,MAAM,KAAK,GAAG,CAAC,GAAG,kBAAkB,EAAE,gBAAgB,EAAE,GAAG,UAAU,CAAU,CAAC;AAChF,MAAM,WAAW,GAAG;IAClB,GAAG,wBAAwB;IAC3B,gBAAgB;IAChB,GAAG,gBAAgB;CACX,CAAC;AAEX,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,IAAc;IACjD,kBAAkB,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,CAAC,CAAC;IAExD,uEAAuE;IACvE,qEAAqE;IACrE,uDAAuD;IACvD,MAAM,UAAU,GAAG,IAAI,CA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AAE,IAAI,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACrE,GAAG,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAC1D;KACF,CAAC,CAAC;AACL,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export declare const BUILD_HELP = "usage: xcodebuild-axi build [flags]\nBuilds a scheme and reports only what failed, with exact source locations.\nflags[46]:\n --scheme <name> scheme to act on (required only when the project has more than one)\n --target <name> build a target instead of a scheme; repeatable (project only)\n --all-targets build every target in the project (project only)\n --device <name> simulator or device name, e.g. \"iPhone 17 Pro\" (default: newest simulator)\n --destination <spec> raw xcodebuild destination specifier, passed through untouched\n --configuration <name> build configuration (default: the scheme's own)\n --sdk <name> base SDK, e.g. iphonesimulator\n --arch <arch> architecture to build; 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\n --artifacts-dir <path> where to write this run's log and .xcresult (default: the tool's cache)\n --jobs <n> maximum concurrent build operations\n --setting KEY=VALUE build setting override; repeatable or comma-separated\n --sign allow code signing (off by default, so simulator builds need no team)\n --allow-provisioning let xcodebuild talk to the developer portal for profiles\n --sanitizer <name> address, thread, or undefined; repeatable or comma-separated\n --timing report per-command build timings\n --destination-timeout <secs> how long to wait for the destination device\n --parallelize-targets build independent targets in parallel\n --hide-script-env omit shell script environment variables from the log\n --skip-unavailable-actions skip scheme actions that cannot run instead of failing\n --max-errors <n> errors to list before summarizing the rest (default: 20)\n --full list every warning instead of the first 10\n --codesize <dir> write a code size profile to this directory\n --log-level <level> quiet, normal, or verbose \u2014 how much lands in the log file\n --bundle-version <n> result bundle format version (default: xcodebuild's own)\n --stream <path> also write xcodebuild's live result stream here\n --offline resolve using only the versions already in Package.resolved\n --cache <path> clone remote packages into this directory\n --package-cache <path> shared package cache directory (across projects)\n --no-auto-resolve never resolve automatically; fail if Package.resolved is stale\n --skip-package-updates use the packages already cloned, without checking for updates\n --no-package-cache ignore the shared package repository cache\n --skip-plugin-validation trust build plugins without prompting\n --skip-signature-validation do not verify package signatures\n --package-auth <kind> keychain or netrc\n --registry-url <url> default package registry\n --scm-to-registry <kind> none, identity, or swift-package-registry\n --fingerprint-policy <kind> strict or warn\n --signing-entity-policy <kind> strict or warn\n --scm-provider <kind> system or xcode\n --clean clean before building\n --for-testing build the tests too and emit an .xctestrun (build-for-testing)\n --install run the install action instead of build\n --docs build documentation (docbuild) instead of build\nexit:\n 0 build succeeded, 1 build failed, 2 usage error\nexamples:\n xcodebuild-axi build\n xcodebuild-axi build --scheme MyApp --device \"iPhone 17 Pro\"\n xcodebuild-axi build --scheme MyApp --configuration Release --clean\n xcodebuild-axi build --scheme MyApp --for-testing\n";
2
+ export declare const BUILD_FLAGS: readonly ["--scheme", "--target", "--all-targets", "--device", "--destination", "--configuration", "--sdk", "--arch", "--toolchain", "--xcconfig", "--derived-data", "--artifacts-dir", "--jobs", "--setting", "--sign", "--allow-provisioning", "--sanitizer", "--timing", "--destination-timeout", "--parallelize-targets", "--hide-script-env", "--skip-unavailable-actions", "--max-errors", "--full", "--codesize", "--log-level", "--bundle-version", "--stream", "--offline", "--cache", "--package-cache", "--no-auto-resolve", "--skip-package-updates", "--no-package-cache", "--skip-plugin-validation", "--skip-signature-validation", "--package-auth", "--registry-url", "--scm-to-registry", "--fingerprint-policy", "--signing-entity-policy", "--scm-provider", "--clean", "--for-testing", "--install", "--docs"];
2
3
  export declare function buildCommand(args: string[]): Promise<string>;
@@ -17,7 +17,7 @@ examples:
17
17
  xcodebuild-axi build --scheme MyApp --configuration Release --clean
18
18
  xcodebuild-axi build --scheme MyApp --for-testing
19
19
  `;
20
- const FLAGS = [
20
+ export const BUILD_FLAGS = [
21
21
  ...SHARED_BUILD_FLAGS,
22
22
  "--clean",
23
23
  "--for-testing",
@@ -25,7 +25,7 @@ const FLAGS = [
25
25
  "--docs",
26
26
  ];
27
27
  export async function buildCommand(args) {
28
- rejectUnknownFlags(args, "build", FLAGS, SHARED_BUILD_VALUE_FLAGS);
28
+ rejectUnknownFlags(args, "build", BUILD_FLAGS, SHARED_BUILD_VALUE_FLAGS);
29
29
  const action = pickAction(args);
30
30
  const context = await resolveBuildContext({ args, command: "build" });
31
31
  const run = await runAction({
@@ -1 +1 @@
1
- {"version":3,"file":"build.js","sourceRoot":"","sources":["../../../src/commands/build.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,SAAS,EACT,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEzD,MAAM,CAAC,MAAM,UAAU,GAAG;;;EAGxB,eAAe;;;;;;;;;;;;CAYhB,CAAC;AAEF,MAAM,KAAK,GAAG;IACZ,GAAG,kBAAkB;IACrB,SAAS;IACT,eAAe;IACf,WAAW;IACX,QAAQ;CACA,CAAC;AAEX,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,IAAc;IAC/C,kBAAkB,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,wBAAwB,CAAC,CAAC;IAEnE,MAAM,MAAM,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC;IAChC,MAAM,OAAO,GAAG,MAAM,mBAAmB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;IACtE,MAAM,GAAG,GAAG,MAAM,SAAS,CAAC;QAC1B,OAAO;QACP,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM;QAC9C,OAAO,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,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AM,CAAC,CAAC,MAAM,EAAoB,EAAE,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC;IAE7D,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACtB,MAAM,IAAI,QAAQ,CAChB,wGAAwG,EACxG,kBAAkB,EAClB,CAAC,2DAA2D,CAAC,CAC9D,CAAC;IACJ,CAAC;IAED,OAAO,MAAM,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC;AAC9B,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export declare const CLEAN_HELP = "usage: xcodebuild-axi clean [flags]\nRemoves a scheme's build products and intermediates.\nflags[3]:\n --scheme <name> scheme to clean (required only when the project has more than one)\n --configuration <name> configuration to clean (default: the scheme's own)\n --derived-data <path> derived data directory to clean within\nexamples:\n xcodebuild-axi clean\n xcodebuild-axi clean --scheme MyApp --configuration Release\n";
2
+ export declare const CLEAN_FLAGS: readonly ["--scheme", "--configuration", "--derived-data"];
2
3
  export declare function cleanCommand(args: string[]): Promise<string>;
@@ -10,9 +10,13 @@ examples:
10
10
  xcodebuild-axi clean
11
11
  xcodebuild-axi clean --scheme MyApp --configuration Release
12
12
  `;
13
- const FLAGS = ["--scheme", "--configuration", "--derived-data"];
13
+ export const CLEAN_FLAGS = [
14
+ "--scheme",
15
+ "--configuration",
16
+ "--derived-data",
17
+ ];
14
18
  export async function cleanCommand(args) {
15
- rejectUnknownFlags(args, "clean", FLAGS, FLAGS);
19
+ rejectUnknownFlags(args, "clean", CLEAN_FLAGS, CLEAN_FLAGS);
16
20
  // Cleaning needs no destination, and resolving one costs a whole
17
21
  // `-showdestinations` subprocess against a scheme we are about to wipe.
18
22
  const context = await resolveBuildContext({
@@ -1 +1 @@
1
- {"version":3,"file":"clean.js","sourceRoot":"","sources":["../../../src/commands/clean.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC5E,OAAO,EAAE,OAAO,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W,GAAG;IACzB,UAAU;IACV,iBAAiB;IACjB,gBAAgB;CACR,CAAC;AAEX,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,IAAc;IAC/C,kBAAkB,CAAC,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;IAE5D,iEAAiE;IACjE,wEAAwE;IACxE,MAAM,OAAO,GAAG,MAAM,mBAAmB,CAAC;QACxC,IAAI;QACJ,OAAO,EAAE,OAAO;QAChB,gBAAgB,EAAE,KAAK;KACxB,CAAC,CAAC;IACH,MAAM,GAAG,GAAG,MAAM,SAAS,CAAC;QAC1B,OAAO;QACP,OAAO,EAAE,OAAO;QAChB,OAAO,EAAE,CAAC,OAAO,CAAC;KACnB,CAAC,CAAC;IAEH,OAAO,YAAY,CAAC;QAClB,OAAO;QACP,GAAG;QACH,GAAG,EAAE,OAAO;QACZ,EAAE,EAAE,WAAW;QACf,OAAO,EAAE,OAAO;QAChB,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,iBAAiB,CAAC,KAAK,SAAS;YAChD,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,aAAa,EAAE,OAAO,CAAC,IAAI,EAAE,iBAAiB,CAAW,EAAE,EAAE;YAC1E,CAAC,CAAC,EAAE,CAAC;KACR,CAAC,CAAC;AACL,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export declare const COVERAGE_HELP = "usage: xcodebuild-axi coverage <path.xcresult> [flags]\nReads code coverage out of a result bundle \u2014 one percentage per target, not the\nthousands of per-file lines xccov prints by default.\nflags[4]:\n --files list per-file coverage as well as per-target\n --target <name> only this target\n --below <percent> only files under this coverage, e.g. --below 50\n --max <n> rows to list before summarizing the rest (default: 25)\nnote:\n Coverage has to have been collected. Run the tests with\n `xcodebuild-axi test --coverage` if the bundle has none.\nexamples:\n xcodebuild-axi coverage ~/Library/Caches/xcodebuild-axi/MyApps-1a2b3c4d/MyApp-test.xcresult\n xcodebuild-axi coverage build/MyApp.xcresult --files --below 50\n";
2
+ export declare const COVERAGE_FLAGS: readonly ["--files", "--target", "--below", "--max"];
2
3
  export declare function coverageCommand(args: string[]): Promise<string>;
@@ -19,10 +19,15 @@ examples:
19
19
  xcodebuild-axi coverage ~/Library/Caches/xcodebuild-axi/MyApps-1a2b3c4d/MyApp-test.xcresult
20
20
  xcodebuild-axi coverage build/MyApp.xcresult --files --below 50
21
21
  `;
22
- const FLAGS = ["--files", "--target", "--below", "--max"];
22
+ export const COVERAGE_FLAGS = [
23
+ "--files",
24
+ "--target",
25
+ "--below",
26
+ "--max",
27
+ ];
23
28
  const VALUE_FLAGS = ["--target", "--below", "--max"];
24
29
  export async function coverageCommand(args) {
25
- rejectUnknownFlags(args, "coverage", FLAGS, VALUE_FLAGS);
30
+ rejectUnknownFlags(args, "coverage", COVERAGE_FLAGS, VALUE_FLAGS);
26
31
  const [rawPath] = positionals(args, VALUE_FLAGS);
27
32
  if (rawPath === undefined) {
28
33
  throw new AxiError("coverage needs a path to an .xcresult bundle", "VALIDATION_ERROR", [