Skip to content

Commit 62606d3

Browse files
committed
Don't extract info plist and code sign from build configuration
1 parent 509970a commit 62606d3

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

Sources/RswiftCore/ResourceTypes/Xcodeproj.swift

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ import XcodeEdit
1212

1313
struct BuildConfiguration {
1414
let name: String
15-
let infoPlistPath: Path
16-
let entitlementsPath: Path?
1715
}
1816

1917
struct Xcodeproj: WhiteListedExtensionsResourceType {
@@ -85,16 +83,7 @@ struct Xcodeproj: WhiteListedExtensionsResourceType {
8583
let buildConfigurations = buildConfigurationList.buildConfigurations
8684
.compactMap { $0.value }
8785
.compactMap { configuration -> BuildConfiguration? in
88-
guard let infoPlistFile = configuration.buildSettings["INFOPLIST_FILE"] as? String else { return nil }
89-
let infoPlistPath = Path.relativeTo(.sourceRoot, infoPlistFile)
90-
91-
let codeSignEntitlements = configuration.buildSettings["CODE_SIGN_ENTITLEMENTS"] as? String
92-
let entitlementsPath = codeSignEntitlements.map { Path.relativeTo(.sourceRoot, $0) }
93-
94-
return BuildConfiguration(
95-
name: configuration.name,
96-
infoPlistPath: infoPlistPath,
97-
entitlementsPath: entitlementsPath)
86+
return BuildConfiguration(name: configuration.name)
9887
}
9988

10089
return buildConfigurations

0 commit comments

Comments
 (0)