Skip to content

SR-2262 Generated Xcode projects should leave the boilerplate framework Info.plist files out of the project hierarchy #587

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 3, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 1 addition & 14 deletions Sources/Xcodeproj/pbxproj().swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,20 +92,7 @@ public func pbxproj(srcroot: AbsolutePath, projectRoot: AbsolutePath, xcodeprojP
let sourceFileRefs = fileRefs(forModuleSources: module, srcroot: srcroot)

// Make an array of all the source file reference ids to add to the main group.
var sourceRefIds = sourceFileRefs.map{ $0.refId }

////// Info.plist file reference if this a framework target
if module.isLibrary {
let infoPlistFileRef = fileRef(ofInfoPlistFor: module, srcroot: xcodeprojPath)
print(" \(infoPlistFileRef.refId) = {")
print(" isa = PBXFileReference;")
print(" lastKnownFileType = text.plist.xml;")
print(" path = '\(infoPlistFileRef.path.relative(to: projectRoot).asString)';")
print(" sourceTree = SOURCE_ROOT;")
print(" };")
sourceRefIds.append(infoPlistFileRef.refId)
}

let sourceRefIds = sourceFileRefs.map{ $0.refId }

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