Skip to content

Commit

Permalink
Update comment to reflect productNameWithExtension() and others (#823)
Browse files Browse the repository at this point in the history
* fix(820): Update comment to reflect productNameWithExtension() and other property values might differ from Xcode

* Update Sources/XcodeProj/Objects/Targets/PBXTarget.swift

Co-authored-by: Kas <[email protected]>

---------

Co-authored-by: Kas <[email protected]>
  • Loading branch information
mikeger and kwridan committed Jul 8, 2024
1 parent 2f6153c commit f3eb906
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/XcodeProj/Objects/Targets/PBXTarget.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ public class PBXTarget: PBXContainerItem {
public var name: String

/// Target product name.
///
/// This property's value may differ from the value displayed in Xcode if the product name is specified through build settings.
public var productName: String?

/// Target product reference.
Expand Down Expand Up @@ -219,6 +221,8 @@ public class PBXTarget: PBXContainerItem {
public extension PBXTarget {
/// Returns the product name with the extension joined with a period.
///
/// This property's value may differ from the value displayed in Xcode if the product name is specified through build settings.
///
/// - Returns: product name with extension.
func productNameWithExtension() -> String? {
guard let productName = self.productName else { return nil }
Expand Down

0 comments on commit f3eb906

Please sign in to comment.