Skip to content

Commit

Permalink
Merge pull request #247 from LinusU/xcode-0930
Browse files Browse the repository at this point in the history
Target Xcode 9.3
  • Loading branch information
yonaskolb authored Apr 10, 2018
2 parents 0d33e05 + 5871a31 commit 0cdddc0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
Expand All @@ -47,7 +46,6 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
shouldUseLaunchSchemeArgsEnv = "YES">
<PreActions>
<ExecutionAction
Expand Down Expand Up @@ -119,7 +118,6 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
Expand Down
4 changes: 2 additions & 2 deletions Sources/xcproj/AEXML+XcodeFormat.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ let attributesOrder: [String: [String]] = [
"selectedLauncherIdentifier",
"language",
"region",
"shouldUseLaunchSchemeArgsEnv",
"codeCoverageEnabled"
"codeCoverageEnabled",
"shouldUseLaunchSchemeArgsEnv"
],
"LaunchAction": [
"buildConfiguration",
Expand Down
9 changes: 7 additions & 2 deletions Sources/xcproj/XCScheme.swift
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,6 @@ final public class XCScheme {
attributes: ["buildConfiguration": buildConfiguration,
"selectedDebuggerIdentifier": selectedDebuggerIdentifier,
"selectedLauncherIdentifier": selectedLauncherIdentifier,
"language": language ?? "",
"launchStyle": launchStyle.rawValue,
"useCustomWorkingDirectory": useCustomWorkingDirectory.xmlString,
"ignoresPersistentStateOnLaunch": ignoresPersistentStateOnLaunch.xmlString,
Expand Down Expand Up @@ -519,6 +518,10 @@ final public class XCScheme {
element.addChild(EnvironmentVariable.xmlElement(from: environmentVariables))
}

if let language = language {
element.attributes["language"] = language
}

if let region = region {
element.attributes["region"] = region
}
Expand Down Expand Up @@ -722,7 +725,9 @@ final public class XCScheme {
attributes["buildConfiguration"] = buildConfiguration
attributes["selectedDebuggerIdentifier"] = selectedDebuggerIdentifier
attributes["selectedLauncherIdentifier"] = selectedLauncherIdentifier
attributes["language"] = language ?? ""
if let language = language {
attributes["language"] = language
}
attributes["region"] = region
attributes["shouldUseLaunchSchemeArgsEnv"] = shouldUseLaunchSchemeArgsEnv.xmlString
if codeCoverageEnabled {
Expand Down

0 comments on commit 0cdddc0

Please sign in to comment.