Skip to content

Commit 5d34f13

Browse files
authored
Merge pull request #587 from abertelrud/xcodeproj-generation
SR-2262 Generated Xcode projects should leave the boilerplate framework Info.plist files out of the project hierarchy
2 parents cf2afca + c72c0df commit 5d34f13

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

Sources/Xcodeproj/pbxproj().swift

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -92,20 +92,7 @@ public func pbxproj(srcroot: AbsolutePath, projectRoot: AbsolutePath, xcodeprojP
9292
let sourceFileRefs = fileRefs(forModuleSources: module, srcroot: srcroot)
9393

9494
// Make an array of all the source file reference ids to add to the main group.
95-
var sourceRefIds = sourceFileRefs.map{ $0.refId }
96-
97-
////// Info.plist file reference if this a framework target
98-
if module.isLibrary {
99-
let infoPlistFileRef = fileRef(ofInfoPlistFor: module, srcroot: xcodeprojPath)
100-
print(" \(infoPlistFileRef.refId) = {")
101-
print(" isa = PBXFileReference;")
102-
print(" lastKnownFileType = text.plist.xml;")
103-
print(" path = '\(infoPlistFileRef.path.relative(to: projectRoot).asString)';")
104-
print(" sourceTree = SOURCE_ROOT;")
105-
print(" };")
106-
sourceRefIds.append(infoPlistFileRef.refId)
107-
}
108-
95+
let sourceRefIds = sourceFileRefs.map{ $0.refId }
10996

11097
// the “Project Navigator” group for this module
11198
print(" \(module.groupReference) = {")

0 commit comments

Comments
 (0)