Skip to content

Commit

Permalink
Use an array instead
Browse files Browse the repository at this point in the history
  • Loading branch information
pepicrft committed Jan 31, 2024
1 parent 1a22c5f commit f251a26
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Sources/XcodeProj/Utils/BuildSettingsProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ public class BuildSettingsProvider {
case .debug:
return [
"SWIFT_OPTIMIZATION_LEVEL": "-Onone",
"SWIFT_ACTIVE_COMPILATION_CONDITIONS": "$(inherited) DEBUG",
"SWIFT_ACTIVE_COMPILATION_CONDITIONS": ["$(inherited)", "DEBUG"],
"SWIFT_COMPILATION_MODE": "singlefile",
]
case .release:
Expand Down
8 changes: 4 additions & 4 deletions Tests/XcodeProjTests/Utils/BuildSettingsProviderTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class BuildSettingProviderTests: XCTestCase {
"@executable_path/Frameworks",
"@loader_path/Frameworks",
],
"SWIFT_ACTIVE_COMPILATION_CONDITIONS": "$(inherited) DEBUG",
"SWIFT_ACTIVE_COMPILATION_CONDITIONS": ["$(inherited)", "DEBUG"],
"SWIFT_COMPILATION_MODE": "singlefile",
"SWIFT_OPTIMIZATION_LEVEL": "-Onone",
"TARGETED_DEVICE_FAMILY": "1,2",
Expand All @@ -186,7 +186,7 @@ class BuildSettingProviderTests: XCTestCase {
"@executable_path/Frameworks",
"@loader_path/Frameworks",
],
"SWIFT_ACTIVE_COMPILATION_CONDITIONS": "$(inherited) DEBUG",
"SWIFT_ACTIVE_COMPILATION_CONDITIONS": ["$(inherited)", "DEBUG"],
"SWIFT_COMPILATION_MODE": "singlefile",
"SWIFT_OPTIMIZATION_LEVEL": "-Onone",
"TARGETED_DEVICE_FAMILY": "1,2",
Expand All @@ -209,7 +209,7 @@ class BuildSettingProviderTests: XCTestCase {
"@executable_path/../Frameworks",
"@loader_path/../Frameworks",
],
"SWIFT_ACTIVE_COMPILATION_CONDITIONS": "$(inherited) DEBUG",
"SWIFT_ACTIVE_COMPILATION_CONDITIONS": ["$(inherited)", "DEBUG"],
"SWIFT_COMPILATION_MODE": "singlefile",
"SWIFT_OPTIMIZATION_LEVEL": "-Onone",
])
Expand All @@ -230,7 +230,7 @@ class BuildSettingProviderTests: XCTestCase {
"@executable_path/Frameworks",
"@loader_path/Frameworks",
],
"SWIFT_ACTIVE_COMPILATION_CONDITIONS": "$(inherited) DEBUG",
"SWIFT_ACTIVE_COMPILATION_CONDITIONS": ["$(inherited)", "DEBUG"],
"SWIFT_COMPILATION_MODE": "singlefile",
"SWIFT_OPTIMIZATION_LEVEL": "-Onone",
"TARGETED_DEVICE_FAMILY": "3",
Expand Down

0 comments on commit f251a26

Please sign in to comment.