Skip to content

Commit 5e09f61

Browse files
authored
refactor: align ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES with the Xcode default (#881)
* fix: aline always_embed_swift_standard_libiraries with the xcode default * delete always_embed_swift_standard_libraries from test targetSettings watchOSApplication * remove no longer used method * fix build error
1 parent 85265f3 commit 5e09f61

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

Sources/XcodeProj/Utils/BuildSettingsProvider.swift

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,6 @@ public class BuildSettingsProvider {
7272
buildSettings.merge(targetSwiftSettings(product: product), uniquingKeysWith: { $1 })
7373
}
7474

75-
if let platform, let product, let swift, swift == true {
76-
buildSettings.merge(targetSwiftSettings(platform: platform, product: product), uniquingKeysWith: { $1 })
77-
}
78-
7975
return buildSettings
8076
}
8177

@@ -370,17 +366,6 @@ public class BuildSettingsProvider {
370366
return [:]
371367
}
372368
}
373-
374-
private static func targetSwiftSettings(platform: Platform, product: Product) -> BuildSettings {
375-
switch (platform, product) {
376-
case (.watchOS, .application):
377-
return [
378-
"ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES": "YES",
379-
]
380-
default:
381-
return [:]
382-
}
383-
}
384369
}
385370

386371
// Overloading `~=` enables customizing switch statement pattern matching

Tests/XcodeProjTests/Utils/BuildSettingsProviderTests.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ class BuildSettingProviderTests: XCTestCase {
135135

136136
// Then
137137
assertEqualSettings(results, [
138-
"ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES": "YES",
139138
"ASSETCATALOG_COMPILER_APPICON_NAME": "AppIcon",
140139
"ENABLE_PREVIEWS": "YES",
141140
"LD_RUNPATH_SEARCH_PATHS": ["$(inherited)", "@executable_path/Frameworks"],

0 commit comments

Comments
 (0)