Skip to content

Commit 376fd15

Browse files
authored
Fix integration test for Xcode 13 (#3686)
This fixes `Found multiple targets named 'FooLib'` which is happening in this test when using the XCBuild from Xcode 13. We should figure out separately what to do about that case, but for now it seems most practical to change the test in order to not block other work in SwiftPM.
1 parent 6cb86f7 commit 376fd15

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

IntegrationTests/Fixtures/XCBuild/Libraries/Bar/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import PackageDescription
55
let package = Package(
66
name: "Bar",
77
products: [
8-
.library(name: "BarLib", type: .dynamic, targets: ["BarLib"]),
8+
.library(name: "BarLibProduct", type: .dynamic, targets: ["BarLib"]),
99
],
1010
targets: [
1111
.target(name: "BarLib"),

IntegrationTests/Fixtures/XCBuild/Libraries/Foo/Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ import PackageDescription
55
let package = Package(
66
name: "Foo",
77
products: [
8-
.library(name: "FooLib", type: .static, targets: ["FooLib"]),
8+
.library(name: "FooLibProduct", type: .static, targets: ["FooLib"]),
99
],
1010
dependencies: [
1111
.package(path: "../Bar")
1212
],
1313
targets: [
1414
.target(name: "FooLib", dependencies: ["CFooLib"]),
1515
.target(name: "CFooLib", dependencies: [
16-
.product(name: "BarLib", package: "Bar"),
16+
.product(name: "BarLibProduct", package: "Bar"),
1717
]),
1818
],
1919
swiftLanguageVersions: [.v4_2, .v5]

0 commit comments

Comments
 (0)