mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2026-03-18 20:02:25 +00:00
Update to 1.4.0
This commit is contained in:
@@ -224,7 +224,7 @@ public class PBXProjGenerator {
|
||||
|
||||
var baseConfigurationReference: String?
|
||||
if let configPath = target.configFiles[config.name] {
|
||||
baseConfigurationReference = sourceGenerator.getContainedFileReference(path: spec.basePath + configPath)
|
||||
baseConfigurationReference = sourceGenerator.getContainedFileReference(path: spec.basePath + configPath)
|
||||
}
|
||||
return XCBuildConfiguration(reference: referenceGenerator.generate(XCBuildConfiguration.self, config.name + target.name), name: config.name, baseConfigurationReference: baseConfigurationReference, buildSettings: buildSettings)
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ class SourceGenerator {
|
||||
settings["COMPILER_FLAGS"] = targetSource.compilerFlags.joined(separator: " ")
|
||||
}
|
||||
|
||||
//TODO: add the target name to the reference generator string so shared files don't have same reference (that will be escaped by appending a number)
|
||||
// TODO: add the target name to the reference generator string so shared files don't have same reference (that will be escaped by appending a number)
|
||||
let buildFile = PBXBuildFile(reference: referenceGenerator.generate(PBXBuildFile.self, fileReference + targetName), fileRef: fileReference, settings: settings.isEmpty ? nil : settings)
|
||||
return SourceFile(path: path, fileReference: fileReference, buildFile: buildFile, buildPhase: buildPhase)
|
||||
}
|
||||
@@ -91,7 +91,6 @@ class SourceGenerator {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private func getDefaultBuildPhase(for path: Path) -> BuildPhase? {
|
||||
if path.lastComponent == "Info.plist" {
|
||||
return nil
|
||||
@@ -109,7 +108,7 @@ class SourceGenerator {
|
||||
|
||||
private func getGroup(path: Path, name: String? = nil, mergingChildren children: [String], createIntermediateGroups: Bool, isBaseGroup: Bool) -> PBXGroup {
|
||||
let group: PBXGroup
|
||||
|
||||
|
||||
if let cachedGroup = groupsByPath[path] {
|
||||
// only add the children that aren't already in the cachedGroup
|
||||
cachedGroup.children = Array(Set(cachedGroup.children + children))
|
||||
|
||||
Reference in New Issue
Block a user