How Do You Pass Build Artifacts Between Multiple Xcode Cloud Actions? 2026

Apple documents that each Xcode Cloud Action runs in a separate temporary build environment, and that an Action’s artifacts may not be available to other Actions (Apple’s workflow Action documentation). So don’t assume different Actions share a filesystem or workspace. Verify that each required file is available to the next Action under the supported workflow behavior; evaluate independent Mac CI only when you need persistent state or more control over cross-stage execution.

This guide is for Xcode Cloud workflow maintainers moving files or results between build, test, and archive stages; CI/CD platform engineers assessing Action boundaries; and enterprise IT leads deciding whether a task needs an independent Mac environment.

Separate Action environments change the file handoff

A file existing at the end of one Action does not, by itself, establish that a later Action can read it. Apple describes Actions as running in separate temporary build environments and warns that some Action artifacts might not be available to other Actions. That is the boundary to design around—not a claim that every kind of output is always inaccessible.

Keep three things distinct:

  • Workspace files: Files a script reads or writes in its working directory. Their presence in one Action does not prove visibility from another.
  • Action artifacts: Outputs associated with a particular Action. Apple’s documentation discusses their availability, but saving an artifact should not be treated as a blanket promise that every later Action can consume it.
  • Results and diagnostic evidence: Test results, logs, and result bundles can help explain what happened. Their diagnostic value does not prove they are inputs for another Action.

This distinction prevents a common failure mode: a workflow appears correct when viewed as one continuous local build, but a later Action fails because its required input was never made available to that environment.

The Xcode Cloud workflow configuration guide is useful for understanding the workflow being configured. Still, verify each file dependency against the relevant Action’s documented inputs and outputs rather than inferring behavior from the overall workflow layout.

When does a test Action need files from the build Action?

Treat the test Action as a separate consumer with an explicit input contract. First identify whether testing needs a built product, source files, test data, or only the repository state and commands needed to build locally. Then verify which of those inputs are available to the test Action in your actual workflow.

Do not rely on a file path merely because the build Action wrote to that path. Instead, list the required files and test for their presence in the Action that needs them. For example, a diagnostic script can print the current directory and inspect a known expected location:

pwd
find . -maxdepth 3 -type f -print
test -f "path/to/expected-input" || {
  echo "Required input is missing"
  exit 1
}

Replace the example path with a real dependency. This check diagnoses visibility; it does not transfer the file. If the check fails, revise the workflow so the needed input is provided through a documented mechanism, or restructure the test task so it builds what it needs from available inputs.

For source files and test fixtures, make sure the relevant files are part of the repository state available to that Action. For generated binaries or other build outputs, confirm that the workflow’s documented artifact behavior supports the exact handoff you intend. If the documentation does not establish that handoff, do not build a release process around it without a representative test.

A practical acceptance test should record the producer Action, the consumer Action, the expected file path, and the consumer’s observed result. Keep the check in the workflow logs so a later Xcode or workflow change does not silently turn an assumed dependency into a missing file.

Can Xcode Cloud build artifacts feed a later archive or release?

They can only serve as inputs where the documented workflow behavior and the actual Action outputs support that use. “The build completed” and “the later archive Action can access every output” are different claims. Verify the exact artifact and the consuming Action rather than treating a successful build as proof of a complete handoff.

Apple documents build Actions through its Build Actions API reference. Its Artifacts API reference and the endpoint for listing artifacts for a specific build Action provide a way to inspect artifacts associated with an Action. The resource path identifies artifacts by build Action—/v1/ciBuildActions/{id}/artifacts—but that identification alone does not promise that a different Action can access or consume those files.

For an archive or delivery workflow, define the intended output first. Is the next step expected to archive a project, export a distribution-ready product, or collect evidence for review? Those are not interchangeable inputs. Check the required files and format for the consuming step, then confirm that the producer Action exposes them in a form the workflow supports.

A useful release check is to record, for each handoff:

  • Which Action is expected to create the file.
  • The file or artifact identity the next step requires.
  • Where the receiving Action is expected to obtain it.
  • How the receiving Action confirms that it has the correct input.
  • What the workflow should do if the input is missing or incomplete.

If you cannot substantiate the handoff from Apple’s documentation or a repeatable test of your own workflow, avoid describing the process as automatic. Keep the archive or export step dependent only on inputs that the receiving Action can demonstrably access.

Step 1: Audit scripts, caches, and files outside the repository

A custom script may assume more than the Action environment guarantees. It might read a file created earlier, rely on a local cache, or expect a repository-external configuration file to persist. Those are script assumptions; they are not evidence that Xcode Cloud preserves the relevant state between Actions.

Review scripts for:

  • Absolute paths or files outside the checked-out repository.
  • Generated configuration, credentials, or version files produced earlier in the workflow.
  • Cache contents treated as mandatory inputs rather than optional accelerators.
  • Commands that succeed when a file is missing, leaving a later step to fail with a less useful error.

Apple’s custom build script documentation explains how to write scripts for Xcode Cloud, and its environment variable reference documents variables available to scripts. Use the documented environment rather than assuming a local machine’s paths or state are reproduced.

Make required inputs explicit. Put source-controlled configuration in the repository where appropriate. For generated data, identify a supported way to provide it to the consumer Action, or regenerate it there if that is the safer design. Treat caches as disposable: if a clean Action cannot complete without a cache, the cache is functioning as an undocumented dependency.

One workable audit is to search scripts for file reads and writes, then run a clean workflow and capture the paths each relevant Action sees. A simple directory listing is useful for diagnosis, but it does not validate the contents or provenance of a file. Add checks for the expected name, format, and source wherever the output matters to release integrity.

A passing script is not proof of a valid handoff. It may have read a stale file, skipped a missing input, or produced an output that the next Action cannot see.

Step 2: Reuse test evidence without confusing it with an input

Test results, logs, and result bundles answer different operational questions. Logs help investigate command output; test results communicate what ran and what passed or failed; a result bundle may preserve richer test information for review. Whether any of these can be consumed by a later Action depends on the workflow behavior documented for that output.

Start by stating what the downstream task needs. If a release reviewer only needs test status, a verified status or report may be sufficient. If another process needs to parse detailed test evidence, confirm the format and availability of the relevant output. If an Action needs a file as an input, do not substitute “the result was saved” for proof that the consumer can read it.

For an operational test, deliberately make the consumer check for the evidence it requires, then fail clearly if it is absent. Record the producer Action and the evidence type in the workflow notes. If the evidence is intended for an external review system, validate that handoff separately instead of assuming the result bundle is a shared workspace file.

This is especially important when a test task and a release task have different owners. A well-defined contract avoids disputes over whether “the tests ran” means the result is visible, retained, downloadable, or usable by a later automation step.

Step 3: Distinguish workflow-internal needs from external handoffs

A dependency between Actions in one workflow is not the same as passing a result to a separate workflow or an external system. The receiving party may need an artifact identifier, a report, a downloadable file, or a status signal. Confirm the supported delivery method and its prerequisites for that particular handoff.

The Artifacts API documentation describes artifact-related API resources, while the build Action artifact endpoint is scoped to a build Action. Use those references to investigate the documented API surface. Do not infer from an API listing endpoint that it automatically transfers a file to another workflow, provides a particular retention period, or guarantees an external system can download it.

For every external handoff, write down the sender, receiver, required data, supported access method, and failure behavior. Then test the workflow with the actual permissions and credentials the production integration will use. If the documentation does not confirm an interface behavior or automation guarantee, keep that part of the design conditional until validated.

If the requirement is to isolate several app builds or their outputs, a separate environment may also be relevant; see this guide to isolating multiple iOS app remote builds. That is a different design question from whether a particular Xcode Cloud Action exposes a file to another Action.

Compare the workflow options before changing the architecture

The decision depends on the kind of dependency—not simply on whether the workflow has multiple stages.

Requirement First option to evaluate What to verify
Test source or fixtures available in the repository Keep the work in Xcode Cloud Confirm the consumer Action has the expected repository inputs and test data.
A generated build output needed by another Action Use only a documented artifact handoff Confirm the exact output is exposed and accessible to the intended consumer.
Test evidence needed for diagnosis or review Use the appropriate documented result or artifact output Verify the evidence type and the receiving party’s actual access.
A file or state that must persist between tasks Evaluate a supported external handoff or independent Mac CI Confirm persistence, access control, and cleanup requirements.
Custom system state or execution control is a hard requirement Compare Xcode Cloud with an independent Mac environment Test a representative workflow and document what the managed workflow cannot satisfy.

For the Xcode Cloud route, keep the workflow close to its documented Action behavior and avoid implicit dependencies. For independent Mac CI, account for the additional responsibility of managing the execution environment, access, maintenance, and delivery path. Neither option removes the need to validate inputs and outputs.

Decision factor Xcode Cloud workflow Independent Mac CI
Action boundaries Must be designed around the documented Action environment and artifact availability The team can design its own task boundaries, but must implement and maintain them
Persistent files or custom state Do not assume persistence across Actions; verify supported behavior Can be configured for persistence, subject to the team’s storage and cleanup design
Workflow control Use the controls available in the managed workflow Offers more environment control, with more operational ownership
Best fit Tasks whose inputs and outputs fit documented workflow behavior Tasks that demonstrably need persistent state or custom execution control

Use this decision path for a representative pipeline

Apply the conditions to one real build-and-test path before migrating a whole team:

  • If the next Action needs only repository files and documented inputs, keep the task in Xcode Cloud and verify those inputs in the receiving Action.
  • If it needs a generated artifact, confirm that the specific artifact is exposed and usable by that Action. If that cannot be established, redesign the handoff rather than assuming shared storage.
  • If it needs test evidence, identify whether the consumer needs status, logs, or a result bundle, then validate that exact evidence path.
  • If it depends on caches or repository-external state, remove the dependency, regenerate the state, or use a verified delivery mechanism. Do not make a cache mandatory by accident.
  • If it needs state to persist across tasks or needs custom control over the Mac environment, run a representative workflow through an independent Mac CI evaluation and compare the operational work it introduces with the requirement it solves.

Before approving a design, keep a small handoff record beside the workflow configuration:

Producer Consumer Required input Evidence of visibility
Build Action Test Action Named product, source, or test data Consumer-side check and workflow log
Test Action Review or release step Status, log, or result evidence Confirmed output type and receiving-side validation
Workflow External system Agreed artifact or report Verified access method and failure handling

The record is not a substitute for Apple’s documentation or a workflow test. It makes assumptions visible, so maintainers can identify which Action owns each output and how the next task is expected to receive it.

Choose an execution path based on the dependency

Xcode Cloud is a sensible first choice when the workflow can use documented inputs and outputs without relying on persistent files or unverified cross-Action access. Independent Mac CI becomes a stronger candidate when a representative workflow proves that persistent state or custom execution control is necessary. Validate that requirement before changing platforms; a more controllable environment also means the team must own more of its setup and operation.

A workflow built on implicit file sharing can fail late, obscure the source of a missing output, and make test evidence harder to audit. An independent Mac path avoids some managed-workflow constraints, but adds environment ownership and maintenance. If a team’s current CI relies on those assumptions, test one representative pipeline and write down every input, output, and visibility check before committing to an architecture.

For teams that confirm a need for a dedicated Mac execution environment, PullMini’s getting-started guide explains how to begin evaluating the service. The practical next step is to map one pipeline’s Action inputs and outputs first; if that exercise shows a real need for persistent state or tighter execution control, compare the required operating model with PullMini’s connection options before selecting an independent Mac CI path.

Run Independent Mac Builds with PullMini

Rent a dedicated physical Mac mini with native macOS for independent build workflows.

Get a cloud Mac

Choose a setup that fits your project

Check the memory, storage, and rental term first. Choose a rental for continuous availability, or keep using a suitable device you already own.