Merge pull request #497 from yonaskolb/update_compatability

Update Xcode compatibility version
This commit is contained in:
Yonas Kolb 2019-01-27 19:16:02 +11:00 committed by GitHub
commit 72ae41e94a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 4 deletions

View File

@ -13,6 +13,9 @@
- Fixed generated schemes for tool targets not setting the executable [#496](https://github.com/yonaskolb/XcodeGen/pull/496) @yonaskolb
- Fixed resolving Carthage dependencies for iOS app with watchOS target. [465](https://github.com/yonaskolb/XcodeGen/pull/465) @raptorxcz
#### Changed
- Updated the Xcode compatability version from 3.2 to 9.3 [#497](https://github.com/yonaskolb/XcodeGen/pull/497) @yonaskolb
## 2.1.0
#### Added

View File

@ -27,7 +27,7 @@ public class PBXProjGenerator {
public init(project: Project) {
self.project = project
pbxProj = PBXProj(rootObject: nil, objectVersion: 46)
pbxProj = PBXProj(rootObject: nil, objectVersion: project.objectVersion)
sourceGenerator = SourceGenerator(project: project, pbxProj: pbxProj)
}
@ -88,7 +88,7 @@ public class PBXProjGenerator {
PBXProject(
name: project.name,
buildConfigurationList: buildConfigList,
compatibilityVersion: "Xcode 3.2",
compatibilityVersion: project.compatabilityVersion,
mainGroup: mainGroup,
developmentRegion: project.options.developmentLanguage ?? "en"
)

View File

@ -11,6 +11,14 @@ extension Project {
return "1.3"
}
var compatabilityVersion: String {
return "Xcode 9.3"
}
var objectVersion: UInt {
return 50
}
public func validateMinimumXcodeGenVersion(_ xcodeGenVersion: Version) throws {
if let minimumXcodeGenVersion = options.minimumXcodeGenVersion, xcodeGenVersion < minimumXcodeGenVersion {
throw SpecValidationError.ValidationError.invalidXcodeGenVersion(minimumVersion: minimumXcodeGenVersion, version: xcodeGenVersion)

View File

@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objectVersion = 50;
objects = {
/* Begin PBXAggregateTarget section */
@ -1435,7 +1435,7 @@
};
};
buildConfigurationList = D91E14E36EC0B415578456F264E0161E /* Build configuration list for PBXProject "Project" */;
compatibilityVersion = "Xcode 3.2";
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (