xcodebuild-axi 0.1.7 → 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 +137 -2
- package/README.md +77 -2
- 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/args.d.ts +11 -0
- package/dist/src/args.js +30 -0
- package/dist/src/args.js.map +1 -1
- package/dist/src/cli.d.ts +8 -0
- package/dist/src/cli.js +53 -22
- package/dist/src/cli.js.map +1 -1
- package/dist/src/commands/analyze.d.ts +2 -0
- package/dist/src/commands/analyze.js +3 -1
- package/dist/src/commands/analyze.js.map +1 -1
- package/dist/src/commands/archive.d.ts +1 -0
- package/dist/src/commands/archive.js +7 -3
- package/dist/src/commands/archive.js.map +1 -1
- package/dist/src/commands/build.d.ts +1 -0
- package/dist/src/commands/build.js +2 -2
- package/dist/src/commands/build.js.map +1 -1
- package/dist/src/commands/clean.d.ts +2 -1
- package/dist/src/commands/clean.js +38 -4
- package/dist/src/commands/clean.js.map +1 -1
- package/dist/src/commands/coverage.d.ts +1 -0
- package/dist/src/commands/coverage.js +7 -2
- package/dist/src/commands/coverage.js.map +1 -1
- package/dist/src/commands/destinations.d.ts +1 -0
- package/dist/src/commands/destinations.js +6 -2
- package/dist/src/commands/destinations.js.map +1 -1
- package/dist/src/commands/find.d.ts +1 -0
- package/dist/src/commands/find.js +2 -2
- package/dist/src/commands/find.js.map +1 -1
- package/dist/src/commands/info.d.ts +1 -0
- package/dist/src/commands/info.js +2 -2
- package/dist/src/commands/info.js.map +1 -1
- package/dist/src/commands/localize.d.ts +1 -0
- package/dist/src/commands/localize.js +2 -2
- package/dist/src/commands/localize.js.map +1 -1
- package/dist/src/commands/migrate.d.ts +1 -0
- package/dist/src/commands/migrate.js +2 -2
- package/dist/src/commands/migrate.js.map +1 -1
- package/dist/src/commands/packages.d.ts +2 -1
- package/dist/src/commands/packages.js +24 -8
- package/dist/src/commands/packages.js.map +1 -1
- package/dist/src/commands/platforms.d.ts +1 -0
- package/dist/src/commands/platforms.js +2 -2
- package/dist/src/commands/platforms.js.map +1 -1
- package/dist/src/commands/result.d.ts +1 -0
- package/dist/src/commands/result.js +10 -11
- package/dist/src/commands/result.js.map +1 -1
- package/dist/src/commands/schemes.d.ts +1 -0
- package/dist/src/commands/schemes.js +2 -1
- package/dist/src/commands/schemes.js.map +1 -1
- package/dist/src/commands/settings.d.ts +7 -1
- package/dist/src/commands/settings.js +136 -22
- package/dist/src/commands/settings.js.map +1 -1
- package/dist/src/commands/setup.d.ts +1 -0
- package/dist/src/commands/setup.js +2 -2
- package/dist/src/commands/setup.js.map +1 -1
- package/dist/src/commands/sim.d.ts +1 -0
- package/dist/src/commands/sim.js +2 -2
- package/dist/src/commands/sim.js.map +1 -1
- package/dist/src/commands/test.d.ts +1 -0
- package/dist/src/commands/test.js +11 -15
- package/dist/src/commands/test.js.map +1 -1
- package/dist/src/commands/testplans.d.ts +1 -0
- package/dist/src/commands/testplans.js +2 -1
- package/dist/src/commands/testplans.js.map +1 -1
- package/dist/src/commands/tests.d.ts +2 -1
- package/dist/src/commands/tests.js +21 -9
- package/dist/src/commands/tests.js.map +1 -1
- package/dist/src/commands/xcframework.d.ts +19 -1
- package/dist/src/commands/xcframework.js +116 -27
- package/dist/src/commands/xcframework.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 +134 -1
- package/dist/src/surface.js +668 -265
- 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/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),
|
package/dist/src/cli.js.map
CHANGED
|
@@ -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;
|
|
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,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACxE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C,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",
|
|
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,
|
|
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
|
|
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",
|
|
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.
|
|
@@ -38,7 +42,7 @@ export async function archiveCommand(args) {
|
|
|
38
42
|
command: "archive",
|
|
39
43
|
});
|
|
40
44
|
const archivePath = getFlag(args, "--archive-path") ??
|
|
41
|
-
join(artifactDir(context.project), `${context.
|
|
45
|
+
join(artifactDir(context.project), `${context.subject.slug}.xcarchive`);
|
|
42
46
|
const run = await runAction({
|
|
43
47
|
context,
|
|
44
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,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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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
|
|
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",
|
|
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,
|
|
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,CAAC,MAAM,WAAW,GAAG;IACzB,GAAG,kBAAkB;IACrB,SAAS;IACT,eAAe;IACf,WAAW;IACX,QAAQ;CACA,CAAC;AAEX,MAAM,CAAC,KAAK,UAA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,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
|
-
export declare const CLEAN_HELP = "usage: xcodebuild-axi clean [flags]\nRemoves a scheme's build products and intermediates.\nflags[
|
|
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"];
|
|
2
3
|
export declare function cleanCommand(args: string[]): Promise<string>;
|
|
@@ -2,19 +2,53 @@ import { reportAction, resolveBuildContext, runAction } from "../action.js";
|
|
|
2
2
|
import { getFlag, rejectUnknownFlags } from "../args.js";
|
|
3
3
|
export const CLEAN_HELP = `usage: xcodebuild-axi clean [flags]
|
|
4
4
|
Removes a scheme's build products and intermediates.
|
|
5
|
-
flags[
|
|
5
|
+
flags[14]:
|
|
6
6
|
--scheme <name> scheme to clean (required only when the project has more than one)
|
|
7
|
+
--target <name> clean a target instead of a scheme; repeatable (project only)
|
|
8
|
+
--all-targets clean every target in the project (project only)
|
|
7
9
|
--configuration <name> configuration to clean (default: the scheme's own)
|
|
10
|
+
--destination <spec> raw xcodebuild destination specifier, passed through untouched
|
|
11
|
+
--device <name> clean the products for this simulator or device by name
|
|
12
|
+
--destination-timeout <secs> how long to wait for the destination device
|
|
13
|
+
--sdk <name> base SDK whose products to clean, e.g. iphonesimulator
|
|
14
|
+
--arch <arch> architecture to clean; repeatable or comma-separated
|
|
15
|
+
--toolchain <name> toolchain identifier or name
|
|
16
|
+
--xcconfig <path> apply build settings from this file as overrides
|
|
8
17
|
--derived-data <path> derived data directory to clean within
|
|
18
|
+
--artifacts-dir <path> where to write this run's log and .xcresult (default: the tool's cache)
|
|
19
|
+
--log-level <level> quiet, normal, or verbose — how much lands in the log file
|
|
20
|
+
note:
|
|
21
|
+
A clean is scoped by the same things a build is. Without a destination or an
|
|
22
|
+
--sdk it cleans the products for xcodebuild's default, which is not what a
|
|
23
|
+
simulator build wrote -- so "cleaned" and "still there" are both true answers
|
|
24
|
+
to different questions.
|
|
9
25
|
examples:
|
|
10
26
|
xcodebuild-axi clean
|
|
11
27
|
xcodebuild-axi clean --scheme MyApp --configuration Release
|
|
28
|
+
xcodebuild-axi clean --all-targets --derived-data build/dd
|
|
12
29
|
`;
|
|
13
|
-
const
|
|
30
|
+
export const CLEAN_FLAGS = [
|
|
31
|
+
"--scheme",
|
|
32
|
+
"--target",
|
|
33
|
+
"--all-targets",
|
|
34
|
+
"--configuration",
|
|
35
|
+
"--destination",
|
|
36
|
+
"--device",
|
|
37
|
+
"--destination-timeout",
|
|
38
|
+
"--sdk",
|
|
39
|
+
"--arch",
|
|
40
|
+
"--toolchain",
|
|
41
|
+
"--xcconfig",
|
|
42
|
+
"--derived-data",
|
|
43
|
+
"--artifacts-dir",
|
|
44
|
+
"--log-level",
|
|
45
|
+
];
|
|
46
|
+
const VALUE_FLAGS = CLEAN_FLAGS.filter((flag) => flag !== "--all-targets");
|
|
14
47
|
export async function cleanCommand(args) {
|
|
15
|
-
rejectUnknownFlags(args, "clean",
|
|
48
|
+
rejectUnknownFlags(args, "clean", CLEAN_FLAGS, VALUE_FLAGS);
|
|
16
49
|
// Cleaning needs no destination, and resolving one costs a whole
|
|
17
|
-
// `-showdestinations` subprocess against a scheme we are about to wipe.
|
|
50
|
+
// `-showdestinations` subprocess against a scheme we are about to wipe. One
|
|
51
|
+
// named explicitly is still resolved, because then it is the answer.
|
|
18
52
|
const context = await resolveBuildContext({
|
|
19
53
|
args,
|
|
20
54
|
command: "clean",
|
|
@@ -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,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEzD,MAAM,CAAC,MAAM,UAAU,GAAG
|
|
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,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEzD,MAAM,CAAC,MAAM,UAAU,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BzB,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,UAAU;IACV,UAAU;IACV,eAAe;IACf,iBAAiB;IACjB,eAAe;IACf,UAAU;IACV,uBAAuB;IACvB,OAAO;IACP,QAAQ;IACR,aAAa;IACb,YAAY;IACZ,gBAAgB;IAChB,iBAAiB;IACjB,aAAa;CACL,CAAC;AAEX,MAAM,WAAW,GAAG,WAAW,CAAC,MAAM,CACpC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,eAAe,CACd,CAAC;AAEvB,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,IAAc;IAC/C,kBAAkB,CAAC,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;IAE5D,iEAAiE;IACjE,4EAA4E;IAC5E,qEAAqE;IACrE,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
|
|
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",
|
|
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", [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coverage.js","sourceRoot":"","sources":["../../../src/commands/coverage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,YAAY,EAAqB,MAAM,aAAa,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;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,EAAE,CAAC;IAC3B,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,KAAK,CAAC,IAAI,CACR,iCAAiC,OAAO,kCAAkC,CAC3E,CAAC;QACF,KAAK,CAAC,IAAI,CACR,iCAAiC,OAAO,6CAA6C,CACtF,CAAC;IACJ,CAAC;IACD,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;IAE/B,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC;AAC9B,CAAC;AAED,SAAS,WAAW,CAAC,IAAY;IAC/B,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACjC,OAAO,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AAC1E,CAAC"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export declare const DESTINATIONS_HELP = "usage: xcodebuild-axi destinations [flags]\nLists the destinations a scheme can actually run on.\nflags[3]:\n --scheme <name> scheme to inspect (required only when the project has more than one)\n --all include ineligible destinations, which xcodebuild hides the reason for\n --simulators simulators only\nexamples:\n xcodebuild-axi destinations\n xcodebuild-axi destinations --scheme MyApp --simulators\n";
|
|
2
|
+
export declare const DESTINATIONS_FLAGS: readonly ["--scheme", "--all", "--simulators"];
|
|
2
3
|
export declare function destinationsCommand(args: string[]): Promise<string>;
|
|
@@ -13,9 +13,13 @@ examples:
|
|
|
13
13
|
xcodebuild-axi destinations
|
|
14
14
|
xcodebuild-axi destinations --scheme MyApp --simulators
|
|
15
15
|
`;
|
|
16
|
-
const
|
|
16
|
+
export const DESTINATIONS_FLAGS = [
|
|
17
|
+
"--scheme",
|
|
18
|
+
"--all",
|
|
19
|
+
"--simulators",
|
|
20
|
+
];
|
|
17
21
|
export async function destinationsCommand(args) {
|
|
18
|
-
rejectUnknownFlags(args, "destinations",
|
|
22
|
+
rejectUnknownFlags(args, "destinations", DESTINATIONS_FLAGS, ["--scheme"]);
|
|
19
23
|
const project = requireProject();
|
|
20
24
|
const scheme = await requireScheme(project, getFlag(args, "--scheme"), "destinations");
|
|
21
25
|
const all = hasFlag(args, "--all");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"destinations.js","sourceRoot":"","sources":["../../../src/commands/destinations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAChF,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAElE,MAAM,CAAC,MAAM,iBAAiB,GAAG;;;;;;;;;CAShC,CAAC;AAEF,MAAM,
|
|
1
|
+
{"version":3,"file":"destinations.js","sourceRoot":"","sources":["../../../src/commands/destinations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAChF,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAElE,MAAM,CAAC,MAAM,iBAAiB,GAAG;;;;;;;;;CAShC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,UAAU;IACV,OAAO;IACP,cAAc;CACN,CAAC;AAEX,MAAM,CAAC,KAAK,U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EAAE,EAAE,WAAW,CAAC,EAAE;QAClB,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAClE,CAAC,CAAC,CAAC;IAEJ,OAAO,YAAY,CAAC;QAClB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;QACxB,UAAU,CAAC,cAAc,EAAE,IAAI,CAAC;QAChC,UAAU,CAAC;YACT,sCAAsC,MAAM,mCAAmC;YAC/E,uCAAuC,MAAM,8CAA8C;SAC5F,CAAC;KACH,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export declare const FIND_HELP = "usage: xcodebuild-axi find <name> [flags]\nResolves an executable or library to its full path in the active toolchain \u2014\nthe same lookup `xcrun` does, without the guesswork about which SDK.\nflags[3]:\n --library look for a library instead of an executable\n --sdk <name> SDK to search, e.g. iphoneos\n --toolchain <name> toolchain to search\nexamples:\n xcodebuild-axi find clang\n xcodebuild-axi find swiftc --sdk iphonesimulator\n xcodebuild-axi find libLTO.dylib --library\n";
|
|
2
|
+
export declare const FIND_FLAGS: readonly ["--library", "--sdk", "--toolchain"];
|
|
2
3
|
export declare function findCommand(args: string[]): Promise<string>;
|
|
@@ -14,10 +14,10 @@ examples:
|
|
|
14
14
|
xcodebuild-axi find swiftc --sdk iphonesimulator
|
|
15
15
|
xcodebuild-axi find libLTO.dylib --library
|
|
16
16
|
`;
|
|
17
|
-
const
|
|
17
|
+
export const FIND_FLAGS = ["--library", "--sdk", "--toolchain"];
|
|
18
18
|
const VALUE_FLAGS = ["--sdk", "--toolchain"];
|
|
19
19
|
export async function findCommand(args) {
|
|
20
|
-
rejectUnknownFlags(args, "find",
|
|
20
|
+
rejectUnknownFlags(args, "find", FIND_FLAGS, VALUE_FLAGS);
|
|
21
21
|
const [name] = positionals(args, VALUE_FLAGS);
|
|
22
22
|
if (name === undefined) {
|
|
23
23
|
throw new AxiError("find needs a name to look for", "VALIDATION_ERROR", [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find.js","sourceRoot":"","sources":["../../../src/commands/find.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEtE,MAAM,CAAC,MAAM,SAAS,GAAG;;;;;;;;;;;CAWxB,CAAC;AAEF,MAAM,
|
|
1
|
+
{"version":3,"file":"find.js","sourceRoot":"","sources":["../../../src/commands/find.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEtE,MAAM,CAAC,MAAM,SAAS,GAAG;;;;;;;;;;;CAWxB,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,WAAW,EAAE,OAAO,EAAE,aAAa,CAAU,CAAC;AACzE,MAAM,WAAW,GAAG,CAAC,OAAO,EAAE,aAAa,CAAU,CAAC;AAEtD,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,IAAc;IAC9C,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,CAAC,CAAC;IAE1D,MAAM,CAAC,IA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AY,WAAW,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC,WAAW,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,EACxF,WAAW,EACX;YACE,OAAO;gBACL,CAAC,CAAC,wFAAwF;gBAC1F,CAAC,CAAC,4DAA4D;YAChE,GAAG,MAAM,CAAC,MAAM,CAAC;SAClB,CACF,CAAC;IACJ,CAAC;IAED,OAAO,YAAY,CAAC;QAClB,YAAY,CAAC;YACX,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,EAAE,IAAI;YAC1C,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC;YACtB,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SACxB,CAAC;QACF,UAAU,CAAC,EAAE,CAAC;KACf,CAAC,CAAC;AACL,CAAC;AAED;4EAC4E;AAC5E,SAAS,MAAM,CAAC,MAAc;IAC5B,MAAM,IAAI,GAAG,aAAa,CAAC,MAAM,CAAC;SAC/B,KAAK,CAAC,IAAI,CAAC;SACX,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;QAC7B,iEAAiE;SAChE,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACrE,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAC5B,CAAC"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export declare const INFO_HELP = "usage: xcodebuild-axi info [flags]\nReports the toolchain this machine will build with.\nflags[2]:\n --sdks list every installed SDK\n --platform <name> filter the SDK list, e.g. iphoneos\nexamples:\n xcodebuild-axi info\n xcodebuild-axi info --sdks --platform iphonesimulator\n";
|
|
2
|
+
export declare const INFO_FLAGS: readonly ["--sdks", "--platform"];
|
|
2
3
|
export declare function infoCommand(args: string[]): Promise<string>;
|
|
@@ -12,9 +12,9 @@ examples:
|
|
|
12
12
|
xcodebuild-axi info
|
|
13
13
|
xcodebuild-axi info --sdks --platform iphonesimulator
|
|
14
14
|
`;
|
|
15
|
-
const
|
|
15
|
+
export const INFO_FLAGS = ["--sdks", "--platform"];
|
|
16
16
|
export async function infoCommand(args) {
|
|
17
|
-
rejectUnknownFlags(args, "info",
|
|
17
|
+
rejectUnknownFlags(args, "info", INFO_FLAGS, ["--platform"]);
|
|
18
18
|
const [version, developerDir, sdks, simulators] = await Promise.all([
|
|
19
19
|
readVersion(),
|
|
20
20
|
readDeveloperDir(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"info.js","sourceRoot":"","sources":["../../../src/commands/info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAElE,MAAM,CAAC,MAAM,SAAS,GAAG;;;;;;;;CAQxB,CAAC;AAEF,MAAM,
|
|
1
|
+
{"version":3,"file":"info.js","sourceRoot":"","sources":["../../../src/commands/info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,SAA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E,CACpE,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export declare const LOCALIZE_HELP = "usage: xcodebuild-axi localize export|import [flags]\nMoves XLIFF localization catalogs in and out of a project.\nflags[6]:\n --path <path> the .xcloc directory to write, or the one to import (required for import)\n --language <code> ISO 639-1 language to export; repeatable or comma-separated\n --default-language <code> the language translations are made from\n --screenshots include localization screenshots in the export\n --merge merge the import into existing translations instead of replacing\n --scheme <name> limit the export to one scheme's targets\nnote:\n Export writes one .xcloc bundle per language. Without --path they land in the\n tool's cache and the path is printed.\nexit:\n 0 succeeded, 1 xcodebuild refused, 2 usage error\nexamples:\n xcodebuild-axi localize export --language fr,de\n xcodebuild-axi localize export --path build/loc --default-language en\n xcodebuild-axi localize import --path build/loc/fr.xcloc --merge\n";
|
|
2
|
+
export declare const LOCALIZE_FLAGS: readonly ["--path", "--language", "--default-language", "--screenshots", "--merge", "--scheme"];
|
|
2
3
|
export declare function localizeCommand(args: string[]): Promise<string>;
|
|
@@ -24,7 +24,7 @@ examples:
|
|
|
24
24
|
xcodebuild-axi localize export --path build/loc --default-language en
|
|
25
25
|
xcodebuild-axi localize import --path build/loc/fr.xcloc --merge
|
|
26
26
|
`;
|
|
27
|
-
const
|
|
27
|
+
export const LOCALIZE_FLAGS = [
|
|
28
28
|
"--path",
|
|
29
29
|
"--language",
|
|
30
30
|
"--default-language",
|
|
@@ -39,7 +39,7 @@ const VALUE_FLAGS = [
|
|
|
39
39
|
"--scheme",
|
|
40
40
|
];
|
|
41
41
|
export async function localizeCommand(args) {
|
|
42
|
-
rejectUnknownFlags(args, "localize",
|
|
42
|
+
rejectUnknownFlags(args, "localize", LOCALIZE_FLAGS, VALUE_FLAGS);
|
|
43
43
|
const [mode] = positionals(args, VALUE_FLAGS);
|
|
44
44
|
if (mode !== "export" && mode !== "import") {
|
|
45
45
|
throw new AxiError(mode === undefined
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localize.js","sourceRoot":"","sources":["../../../src/commands/localize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,SAAS,GACV,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,OAAO,EACP,WAAW,EACX,OAAO,EACP,WAAW,EACX,kBAAkB,GACnB,MAAM,YAAY,CAAC;AAEpB,MAAM,CAAC,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;CAkB5B,CAAC;AAEF,MAAM,
|
|
1
|
+
{"version":3,"file":"localize.js","sourceRoot":"","sources":["../../../src/commands/localize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,SAAS,GACV,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,OAAO,EACP,WAAW,EACX,OAAO,EACP,WAAW,EACX,kBAAkB,GACnB,MAAM,YAAY,CAAC;AAEpB,MA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6C,CAC1D,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const MIGRATE_HELP = "usage: xcodebuild-axi migrate [flags]\nReports the project file format, and converts it to a newer one.\nflags[3]:\n --format <name> the format to convert to, e.g. \"Xcode 27.0\"\n --project <path> which .xcodeproj, when the workspace holds more than one\n --yes actually convert; without it this only reports\nnote:\n This converts a .xcodeproj, not a workspace \u2014 a workspace has no format of\n its own. In a workspace directory the single contained project is picked\n automatically, and named for you when there is more than one.\n\n It also rewrites the .pbxproj in place, so it is the one command here that\n changes files you track. Run it with a clean working tree, and without --yes\n first to see the current format and what is available.\nexit:\n 0 reported or converted, 1 xcodebuild refused, 2 usage error\nexamples:\n xcodebuild-axi migrate\n xcodebuild-axi migrate --format \"Xcode 27.0\" --yes\n xcodebuild-axi migrate --project App/App.xcodeproj --format \"Xcode 27.0\" --yes\n";
|
|
2
|
+
export declare const MIGRATE_FLAGS: readonly ["--format", "--project", "--yes"];
|
|
2
3
|
export declare function migrateCommand(args: string[]): Promise<string>;
|
|
3
4
|
/** Exported for tests: the list only ever appears inside a rejection. */
|
|
4
5
|
export declare function parseFormats(output: string): string[];
|
|
@@ -26,12 +26,12 @@ examples:
|
|
|
26
26
|
xcodebuild-axi migrate --format "Xcode 27.0" --yes
|
|
27
27
|
xcodebuild-axi migrate --project App/App.xcodeproj --format "Xcode 27.0" --yes
|
|
28
28
|
`;
|
|
29
|
-
const
|
|
29
|
+
export const MIGRATE_FLAGS = ["--format", "--project", "--yes"];
|
|
30
30
|
const VALUE_FLAGS = ["--format", "--project"];
|
|
31
31
|
/** A name no Xcode will ever ship, used to make xcodebuild list the real ones. */
|
|
32
32
|
const IMPOSSIBLE_FORMAT = "__xcodebuild-axi-probe__";
|
|
33
33
|
export async function migrateCommand(args) {
|
|
34
|
-
rejectUnknownFlags(args, "migrate",
|
|
34
|
+
rejectUnknownFlags(args, "migrate", MIGRATE_FLAGS, VALUE_FLAGS);
|
|
35
35
|
const context = requireProject();
|
|
36
36
|
if (context.kind === "package") {
|
|
37
37
|
throw new AxiError("A Swift package has no project file format to convert", "VALIDATION_ERROR", ["`migrate` applies to an .xcodeproj, which Package.swift does not have"]);
|