Swift compiler

Compile Swift projects and inspect compiler diagnostics directly from the SwiftBuilder workflow.

Quick answer

What is the SwiftBuilder compiler?

The SwiftBuilder compiler workflow builds Swift projects and provides compiler diagnostics that help developers identify source-code errors and determine whether generated code builds successfully.

Build result

A successful build indicates that the compiler completed the requested compilation without reported errors.

Build status Completed

Diagnostics

When compilation fails, diagnostics identify the relevant source file and provide the compiler's error message.

SettingsView.swift:42

error:
Cannot find 'subscriptionStatus'
in scope

Compiler loop

Compiler diagnostics can be passed into the AI Fix workflow to help identify and repair source-code issues.

Important

A compiler result should always be treated as the source of truth for whether the generated code builds.