Skip to content

Commit 9be12c5

Browse files
authored
Fix an XCBuild compatibility issue (#6753)
Some newer versions of XCBuild require a new build setting for opting into generation of the resource accessor. rdar://112991922 (cherry picked from commit 6478e27)
1 parent 904f896 commit 9be12c5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Sources/XCBuildSupport/PIF.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -957,6 +957,7 @@ public enum PIF {
957957
case MARKETING_VERSION
958958
case CURRENT_PROJECT_VERSION
959959
case SWIFT_EMIT_MODULE_INTERFACE
960+
case GENERATE_RESOURCE_ACCESSORS
960961
}
961962

962963
public enum MultipleValueSetting: String, Codable {

Sources/XCBuildSupport/PIFBuilder.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,7 @@ final class PackagePIFProjectBuilder: PIFProjectBuilder {
464464

465465
if let resourceBundle = addResourceBundle(for: mainTarget, in: pifTarget) {
466466
settings[.PACKAGE_RESOURCE_BUNDLE_NAME] = resourceBundle
467+
settings[.GENERATE_RESOURCE_ACCESSORS] = "YES"
467468
}
468469

469470
// For targets, we use the common build settings for both the "Debug" and the "Release" configurations (all

0 commit comments

Comments
 (0)