From f3eb906ab1210e6b786d8beb71d02be662fa4432 Mon Sep 17 00:00:00 2001 From: Mike Gerasymenko Date: Mon, 8 Jul 2024 14:18:25 +0200 Subject: [PATCH] Update comment to reflect productNameWithExtension() and others (#823) * 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 --------- Co-authored-by: Kas --- Sources/XcodeProj/Objects/Targets/PBXTarget.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/XcodeProj/Objects/Targets/PBXTarget.swift b/Sources/XcodeProj/Objects/Targets/PBXTarget.swift index b5440059f..07d255493 100644 --- a/Sources/XcodeProj/Objects/Targets/PBXTarget.swift +++ b/Sources/XcodeProj/Objects/Targets/PBXTarget.swift @@ -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. @@ -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 }