set project attributes

This commit is contained in:
Yonas Kolb
2017-08-30 17:06:41 +02:00
parent 183630159e
commit ea41e6bbc6
3 changed files with 15 additions and 2 deletions
+10 -1
View File
@@ -18,6 +18,7 @@ public class PBXProjGenerator {
let spec: ProjectSpec
let basePath: Path
let currentXcodeVersion = "0830"
var fileReferencesByPath: [Path: String] = [:]
var groupsByPath: [Path: PBXGroup] = [:]
@@ -133,7 +134,15 @@ public class PBXProjGenerator {
addObject(mainGroup)
let knownRegions: [String] = ["en", "Base"]
let root = PBXProject(reference: project.rootObject, buildConfigurationList: buildConfigList.reference, compatibilityVersion: "Xcode 3.2", mainGroup: mainGroup.reference, developmentRegion: "English", knownRegions: knownRegions, targets: targets.referenceList)
let projectAttributes: [String: Any] = spec.attributes.isEmpty ? ["LastUpgradeCheck": currentXcodeVersion] : spec.attributes
let root = PBXProject(reference: project.rootObject,
buildConfigurationList: buildConfigList.reference,
compatibilityVersion: "Xcode 3.2",
mainGroup: mainGroup.reference,
developmentRegion: "English",
knownRegions: knownRegions,
targets: targets.referenceList,
attributes: projectAttributes)
project.projects.append(root)
return project