File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -66,11 +66,16 @@ public final class ResolvedProduct {
66
66
dependencies: dependencies,
67
67
packageAccess: true , // entry point target so treated as a part of the package
68
68
testEntryPointPath: testEntryPointPath)
69
+ let ( defaultLocalization, platforms) = if let firstTarget = targets. first {
70
+ ( firstTarget. defaultLocalization, firstTarget. platforms)
71
+ } else {
72
+ ( . none, . init( declared: [ ] , derivedXCTestPlatformProvider: . none) ) // safe since this is a derived product
73
+ }
69
74
return ResolvedTarget (
70
75
target: swiftTarget,
71
76
dependencies: targets. map { . target( $0, conditions: [ ] ) } ,
72
- defaultLocalization: targets [ 0 ] . defaultLocalization,
73
- platforms: targets [ 0 ] . platforms
77
+ defaultLocalization: defaultLocalization,
78
+ platforms: platforms
74
79
)
75
80
}
76
81
You can’t perform that action at this time.
0 commit comments