STRUCT
BuildableFolderException
Contents
- Properties
excludedcompilerFlagspublicHeadersprivateHeadersplatformFilters
- Methods
exception(excluded:compilerFlags:publicHeaders:privateHeaders:platformFilters:)
public struct BuildableFolderException: Sendable, Codable, Equatable, HashableRepresents exceptions for a buildable folder, such as files to exclude or specific compiler flags to apply.
Properties
excluded
public var excluded: [String]A list of absolute paths to files excluded from the buildable folder.
compilerFlags
public var compilerFlags: [String: String]A dictionary mapping files (referenced by their absolute path) to the compiler flags to apply.
publicHeaders
public var publicHeaders: [String]A list of relative paths to headers that should be public (by default they have project access level)
privateHeaders
public var privateHeaders: [String]A list of relative paths to headers that should be private (by default they have project access level)
platformFilters
public var platformFilters: [String: Set<PlatformFilter>]A dictionary mapping relative file paths within the buildable folder to platform filters. Use this to restrict specific files to certain platforms (e.g., iOS-only or tvOS-only resources).
Methods
exception(excluded:compilerFlags:publicHeaders:privateHeaders:platformFilters:)
public static func exception(
excluded: [String] = [],
compilerFlags: [String: String] = [:],
publicHeaders: [String] = [],
privateHeaders: [String] = [],
platformFilters: [String: Set<PlatformFilter>] = [:]
) -> BuildableFolderExceptionCreates a new BuildableFolderException using the given excluded files and compiler flags.
- Parameters:
- excluded: An array of absolute paths to files that should be excluded from the buildable folder.
- compilerFlags: A dictionary mapping absolute file paths to specific compiler flags to apply to those files.
- platformFilters: A dictionary mapping relative file paths within the buildable folder to platform filters.
Parameters
| Name | Description |
|---|---|
| excluded | An array of absolute paths to files that should be excluded from the buildable folder. |
| compilerFlags | A dictionary mapping absolute file paths to specific compiler flags to apply to those files. |
| platformFilters | A dictionary mapping relative file paths within the buildable folder to platform filters. |
