fixed build phase of none not being applied to folders

This commit is contained in:
Yonas Kolb 2018-04-06 08:38:26 +10:00
parent 92d2e21d93
commit fd3c903595

View File

@ -422,8 +422,15 @@ class SourceGenerator {
if !createIntermediateGroups {
rootGroups.insert(fileReference)
}
let buildPhase: BuildPhase?
if let targetBuildPhase = targetSource.buildPhase {
buildPhase = targetBuildPhase.buildPhase
} else {
buildPhase = .resources
}
let sourceFile = generateSourceFile(targetSource: targetSource, path: folderPath, buildPhase: targetSource.buildPhase?.buildPhase ?? .resources)
let sourceFile = generateSourceFile(targetSource: targetSource, path: folderPath, buildPhase: buildPhase)
sourceFiles.append(sourceFile)
sourceReference = fileReference