Skip to content

Translation 🌍

이 페이지를 번역하거나 기존 번역을 개선할 수 있습니다.

기여

ENUM

InfoPlist

Contents

  • Cases
    • file(path:)
    • dictionary(_:)
    • extendingDefault(with:)
    • variable(_:)
  • Properties
    • default
    • path
swift
public enum InfoPlist: Codable, Equatable, Sendable

A info plist from a file, a custom dictionary or a extended defaults.

Cases

file(path:)

swift
case file(path: Path)

The path to an existing Info.plist file.

dictionary(_:)

swift
case dictionary([String: Plist.Value])

A dictionary with the Info.plist content. Tuist generates the Info.plist file at the generation time.

extendingDefault(with:)

swift
case extendingDefault(with: [String: Plist.Value])

Generate an Info.plist file with the default content for the target product extended with the values in the given dictionary.

variable(_:)

swift
case variable(String)

A user defined xcconfig variable map to Info.plist file.

This should be used when the project has different Info.plist files per config (aka: debug, release, staging, etc.).

Example:

.target(
    ...
    infoPlist: .variable("$(INFO_PLIST_FILE_VARIABLE)")
)

Or, as literal string:

.target(
    ...
    infoPlist: $(INFO_PLIST_FILE_VARIABLE)
)

Properties

default

swift
public static var `default`: InfoPlist

Generate the default content for the target the InfoPlist belongs to.

path

swift
public var path: Path?

Released under the MIT License.