Skip to content

Commit 3c48d7c

Browse files
authored
ci: Pin transitive dependency (#410)
The Quick\Nimble framework is targeting CwlPreconditionTesting, allowing for an update to a new major version. CwlPreconditionTesting released a version that references the new visionOS OS type, which older swift versions don't understand. For now, we are going to pin CwlPreconditionTesting to the pre-visionOS-aware version. We can remove this explicit dependency once we have dropped support for older builds (like xcode 13).
1 parent d66afb1 commit 3c48d7c

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

LaunchDarkly.xcodeproj/project.pbxproj

+16
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,7 @@
563563
B4903D9E24BD61EF00F087C4 /* Quick in Frameworks */,
564564
B4903D9B24BD61D000F087C4 /* Nimble in Frameworks */,
565565
B4903D9824BD61B200F087C4 /* OHHTTPStubsSwift in Frameworks */,
566+
A3F4A4812CC2F640006EF480 /* CwlPreconditionTesting in Frameworks */,
566567
8354EFCC1F22491C00C05156 /* LaunchDarkly.framework in Frameworks */,
567568
);
568569
runOnlyForDeploymentPostprocessing = 0;
@@ -1073,6 +1074,7 @@
10731074
B4903D9724BD61B200F087C4 /* OHHTTPStubsSwift */,
10741075
B4903D9A24BD61D000F087C4 /* Nimble */,
10751076
B4903D9D24BD61EF00F087C4 /* Quick */,
1077+
A3F4A4802CC2F640006EF480 /* CwlPreconditionTesting */,
10761078
);
10771079
productName = DarklyTests;
10781080
productReference = 8354EFCB1F22491C00C05156 /* LaunchDarklyTests.xctest */;
@@ -1156,6 +1158,7 @@
11561158
B4903D9C24BD61EF00F087C4 /* XCRemoteSwiftPackageReference "Quick" */,
11571159
B445A6DE24C0D1CD000BAD6D /* XCRemoteSwiftPackageReference "swift-eventsource" */,
11581160
A3647AA12C5BF6DD00902D0C /* XCRemoteSwiftPackageReference "DataCompression" */,
1161+
A3F4A47F2CC2F625006EF480 /* XCRemoteSwiftPackageReference "CwlPreconditionTesting" */,
11591162
);
11601163
productRefGroup = 8354EFC31F22491C00C05156 /* Products */;
11611164
projectDirPath = "";
@@ -2093,6 +2096,14 @@
20932096
minimumVersion = 3.8.0;
20942097
};
20952098
};
2099+
A3F4A47F2CC2F625006EF480 /* XCRemoteSwiftPackageReference "CwlPreconditionTesting" */ = {
2100+
isa = XCRemoteSwiftPackageReference;
2101+
repositoryURL = "https://github.com/mattgallagher/CwlPreconditionTesting";
2102+
requirement = {
2103+
kind = exactVersion;
2104+
version = 2.1.2;
2105+
};
2106+
};
20962107
B445A6DE24C0D1CD000BAD6D /* XCRemoteSwiftPackageReference "swift-eventsource" */ = {
20972108
isa = XCRemoteSwiftPackageReference;
20982109
repositoryURL = "https://github.com/LaunchDarkly/swift-eventsource.git";
@@ -2188,6 +2199,11 @@
21882199
package = A3647AA12C5BF6DD00902D0C /* XCRemoteSwiftPackageReference "DataCompression" */;
21892200
productName = DataCompression;
21902201
};
2202+
A3F4A4802CC2F640006EF480 /* CwlPreconditionTesting */ = {
2203+
isa = XCSwiftPackageProductDependency;
2204+
package = A3F4A47F2CC2F625006EF480 /* XCRemoteSwiftPackageReference "CwlPreconditionTesting" */;
2205+
productName = CwlPreconditionTesting;
2206+
};
21912207
B445A6E324C0D1E3000BAD6D /* LDSwiftEventSource */ = {
21922208
isa = XCSwiftPackageProductDependency;
21932209
package = B445A6DE24C0D1CD000BAD6D /* XCRemoteSwiftPackageReference "swift-eventsource" */;

Package.swift

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ let package = Package(
1919
.package(url: "https://github.com/AliSoftware/OHHTTPStubs.git", .exact("9.1.0")),
2020
.package(url: "https://github.com/Quick/Quick.git", .exact("4.0.0")),
2121
.package(url: "https://github.com/Quick/Nimble.git", .exact("9.2.1")),
22+
.package(url: "https://github.com/mattgallagher/CwlPreconditionTesting", .exact("2.1.2")),
2223
.package(name: "LDSwiftEventSource", url: "https://github.com/LaunchDarkly/swift-eventsource.git", .exact("3.3.0")),
2324
.package(name: "DataCompression", url: "https://github.com/mw99/DataCompression", .exact("3.8.0"))
2425
],
@@ -40,6 +41,7 @@ let package = Package(
4041
"LaunchDarkly",
4142
.product(name: "OHHTTPStubsSwift", package: "OHHTTPStubs"),
4243
.product(name: "Quick", package: "Quick"),
44+
.product(name: "CwlPreconditionTesting", package: "CwlPreconditionTesting"),
4345
.product(name: "Nimble", package: "Nimble")
4446
],
4547
path: "LaunchDarkly",

0 commit comments

Comments
 (0)