Skip to content

Commit 6e977d1

Browse files
miriamkwclaude
andcommitted
fix: use Swift 5.10 for Windows to resolve circular dependency
- Windows CI now uses Swift 5.10 to avoid ucrt/_Builtin_intrinsics cycle - macOS/Linux continue using Swift 6.0 for LoopAlgorithm compatibility - Simplified Package.swift to use 5.10 tools version for cross-platform support - Removed complex Windows conditional logic that wasn't working Resolves: cyclic dependency in module 'ucrt': ucrt -> _Builtin_intrinsics -> ucrt 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 9b386cc commit 6e977d1

2 files changed

Lines changed: 3 additions & 25 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
if: matrix.os == 'windows-latest'
4343
uses: SwiftyLab/setup-swift@latest
4444
with:
45-
swift-version: "6.0"
45+
swift-version: "5.10"
4646

4747
- name: Install dependencies
4848
shell: bash

Package.swift

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,9 @@
1-
// swift-tools-version: 6.0
1+
// swift-tools-version: 5.10
22
import PackageDescription
33

4-
let packagePlatforms: [SupportedPlatform]
5-
let packageLocalization: LanguageTag?
6-
7-
#if os(Windows)
8-
packagePlatforms = [
9-
.macOS(.v13),
10-
.iOS(.v15),
11-
.tvOS(.v15),
12-
.watchOS(.v8)
13-
]
14-
packageLocalization = nil
15-
#else
16-
packagePlatforms = [
17-
.macOS(.v13),
18-
.iOS(.v15),
19-
.tvOS(.v15),
20-
.watchOS(.v8)
21-
]
22-
packageLocalization = "no"
23-
#endif
24-
254
let package = Package(
265
name: "LoopAlgorithmToPython",
27-
defaultLocalization: packageLocalization,
28-
platforms: packagePlatforms,
6+
defaultLocalization: "no",
297
products: [
308
.library(
319
name: "LoopAlgorithmToPython",

0 commit comments

Comments
 (0)