OS Manuals

/usr/bin/swift-synthesize-interface

Swift is a high-performance system programming language. It has a clean and modern syntax, offers seamless access to existing C and Objective-C code and frameworks, and is memory-safe by default.

From swift 6.4.2-r0 (enterprise-packages), captured 2026-11-08 by running swift-synthesize-interface --help (exit 1). permalink

OVERVIEW: Swift Interface Synthesizer

USAGE: swift-frontend

OPTIONS:
  -clang-target-variant <value>
                        Separately set the target we should use for internal Clang instance for the 'zippered' code for macCatalyst
  -clang-target <value> Separately set the target we should use for internal Clang instance
  -cxx-interoperability-mode=<value>
                        Enables C++ interoperability; pass 'default' to enable or 'off' to disable
  -disable-safe-interop-wrappers
                        Disable safe interop wrapper generation and bounds attribute parsing
  -Fsystem <value>      Add directory to system framework search path
  -F <value>            Add directory to framework search path
  -help                 Display available options
  -include-submodules   Also print the declarations synthesized for any Clang submodules
  -Isystem <value>      Add directory to the system import search path
  -I <value>            Add directory to the import search path
  -language-mode <mode> Interpret input according to a specific Swift language mode
  -module-cache-path <value>
                        Specifies the module cache path
  -module-name <value>  Name of the module to build
  -o <file>             Write output to <file>
  -print-fully-qualified-types
                        Always print fully qualified type names
  -project-name <value> Name of the project this module to build belongs to
  -resource-dir </usr/lib/swift>
                        The directory that holds the compiler resource files
  -sdk <sdk>            Compile against <sdk>
  -strict-memory-safety:migrate
                        Enable migration to strict memory safety checking
  -strict-memory-safety Enable strict memory safety checking
  -swift-version <vers> Interpret input according to a specific Swift language version number
  -sysroot <sysroot>    Native Platform sysroot
  -target-arch-variant <arch-variant>
                        Generate code for an additional arch/slice variant of the target architectureinto fat mach-o binaries
  -target <triple>      Generate code for the given target <triple>, such as x86_64-apple-macos10.9
  -visualc-tools-root <root>
                        VisualC++ Tools Root
  -visualc-tools-version <version>
                        VisualC++ ToolSet Version
  -v                    Show commands to run and use verbose output
  -windows-sdk-root <root>
                        Windows SDK Root
  -windows-sdk-version <version>
                        Windows SDK Version
  -Xcc <arg>            Pass <arg> to the C/C++/Objective-C compiler
Options (24)
OptionDescriptionSource
-clang-target-variant valueSeparately set the target we should use for internal Clang instance for the 'zippered' code for macCatalysthelp
-cxx-interoperability-mode valueEnables C++ interoperability;help
-disable-safe-interop-wrappersDisable safe interop wrapper generation and bounds attribute parsinghelp
-Fsystem valueAdd directory to system framework search pathhelp
-F valueAdd directory to framework search pathhelp
-helpDisplay available optionshelp
-include-submodulesAlso print the declarations synthesized for any Clang submoduleshelp
-Isystem valueAdd directory to the system import search pathhelp
-I valueAdd directory to the import search pathhelp
-module-cache-path valueSpecifies the module cache pathhelp
-module-name valueName of the module to buildhelp
-o fileWrite output to <file>help
-print-fully-qualified-typesAlways print fully qualified type nameshelp
-resource-dir /usr/lib/swiftThe directory that holds the compiler resource fileshelp
-sdk sdkCompile against <sdk>help
-sysroot sysrootNative Platform sysroothelp
-target-arch-variant arch-variantGenerate code for an additional arch/slice variant of the target architectureinto fat mach-o binarieshelp
-target tripleGenerate code for the given target <triple>, such as x86_64-apple-macos10.9help
-visualc-tools-root rootVisualC++ Tools Roothelp
-visualc-tools-version versionVisualC++ ToolSet Versionhelp
-vShow commands to run and use verbose outputhelp
-windows-sdk-root rootWindows SDK Roothelp
-windows-sdk-version versionWindows SDK Versionhelp
-Xcc argPass <arg> to the C/C++/Objective-C compilerhelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.