Skip to content

Commit aec8b60

Browse files
committed
Bump to Swift 6.1 Toolchain
1 parent 86be481 commit aec8b60

File tree

8 files changed

+7
-47
lines changed

8 files changed

+7
-47
lines changed

.github/workflows/compatibility_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
os: [macos-15]
16-
xcode-version: ["16.0"]
16+
xcode-version: ["16.3"]
1717
release: [2024]
1818
runs-on: ${{ matrix.os }}
1919
env:
@@ -60,7 +60,7 @@ jobs:
6060
fail-fast: false
6161
matrix:
6262
os: [macos-15]
63-
xcode-version: ["16.0"]
63+
xcode-version: ["16.3"]
6464
release: [2024]
6565
ios-version: ["18.0"]
6666
include:

.github/workflows/ios.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
os: [macos-15]
16-
xcode-version: ["16.0"]
16+
xcode-version: ["16.3"]
1717
release: [2024]
1818
ios-version: ["18.0"]
1919
include:

.github/workflows/macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
os: [macos-15]
16-
xcode-version: ["16.0"]
16+
xcode-version: ["16.3"]
1717
release: [2024]
1818
runs-on: ${{ matrix.os }}
1919
env:

.github/workflows/ubuntu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
swift_version: ["6.0.1"]
15+
swift_version: ["6.1.0"]
1616
runs-on: ubuntu-22.04
1717
env:
1818
OPENSWIFTUI_WERROR: 1

.github/workflows/wasm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
swift_version: ["6.0.2-RELEASE"]
15+
swift_version: ["6.1-RELEASE"]
1616
os: [ubuntu-22.04]
1717
extra_params: [""]
1818
runs-on: ${{ matrix.os }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ See Example folder and try it with ExampleApp
3232
3333
## Build
3434

35-
The current suggested toolchain to build the project is Swift 6.0 / Xcode 16.0.
35+
The current suggested toolchain to build the project is Swift 6.1 / Xcode 16.3.
3636

3737
### Build without testing framework
3838

Tests/OpenSwiftUICompatibilityTests/SwiftUICore/Modifier/ViewModifier/AppearanceActionModifierTests.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ struct AppearanceActionModifierTests {
3434
#endif
3535
}
3636

37-
#if !DEBUG || compiler(>=6.1)
38-
// For Xcode 16.3-/Swift 6.1-, Xcode will infer OpaqueTypeErasure to be true which will make some difference to the result.
39-
// And there is no way to opt-out it for package yet.
4037
@Test
4138
func idTest() async throws {
4239
enum Helper {
@@ -69,6 +66,5 @@ struct AppearanceActionModifierTests {
6966
#expect(Helper.result.hasPrefix("AAD"))
7067
#endif
7168
}
72-
#endif
7369
}
7470
#endif

Tests/OpenSwiftUICoreTests/Semantic/SemanticsTests.swift

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -61,24 +61,6 @@ struct SemanticsTests {
6161
#expect(isDeployedOnOrAfter(.v5) == false)
6262
#expect(isDeployedOnOrAfter(.v6) == false)
6363
#expect(isDeployedOnOrAfter(.v7) == false)
64-
#elseif compiler(>=6.0)
65-
// Path: /Applications/Xcode-16.0.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Agents/xctest
66-
// SDK version: 18.0
67-
// min version: 14.0
68-
#expect(isLinkedOnOrAfter(.v1) == true)
69-
#expect(isLinkedOnOrAfter(.v2) == true)
70-
#expect(isLinkedOnOrAfter(.v3) == true)
71-
#expect(isLinkedOnOrAfter(.v4) == true)
72-
#expect(isLinkedOnOrAfter(.v5) == true)
73-
#expect(isLinkedOnOrAfter(.v6) == true)
74-
#expect(isLinkedOnOrAfter(.v7) == false)
75-
#expect(isDeployedOnOrAfter(.v1) == true)
76-
#expect(isDeployedOnOrAfter(.v2) == true)
77-
#expect(isDeployedOnOrAfter(.v3) == false)
78-
#expect(isDeployedOnOrAfter(.v4) == false)
79-
#expect(isDeployedOnOrAfter(.v5) == false)
80-
#expect(isDeployedOnOrAfter(.v6) == false)
81-
#expect(isDeployedOnOrAfter(.v7) == false)
8264
#endif
8365
#elseif os(macOS)
8466
#if compiler(<6.2) && compiler(>=6.1)
@@ -99,24 +81,6 @@ struct SemanticsTests {
9981
#expect(isDeployedOnOrAfter(.v5) == true)
10082
#expect(isDeployedOnOrAfter(.v6) == false)
10183
#expect(isDeployedOnOrAfter(.v7) == false)
102-
#elseif compiler(>=6.0)
103-
// Path: /Applications/Xcode-16.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/Agents/xctest
104-
// SDK version: 15.0
105-
// min version: 13.0
106-
#expect(isLinkedOnOrAfter(.v1) == true)
107-
#expect(isLinkedOnOrAfter(.v2) == true)
108-
#expect(isLinkedOnOrAfter(.v3) == true)
109-
#expect(isLinkedOnOrAfter(.v4) == true)
110-
#expect(isLinkedOnOrAfter(.v5) == true)
111-
#expect(isLinkedOnOrAfter(.v6) == true)
112-
#expect(isLinkedOnOrAfter(.v7) == false)
113-
#expect(isDeployedOnOrAfter(.v1) == true)
114-
#expect(isDeployedOnOrAfter(.v2) == true)
115-
#expect(isDeployedOnOrAfter(.v3) == true)
116-
#expect(isDeployedOnOrAfter(.v4) == true)
117-
#expect(isDeployedOnOrAfter(.v5) == false)
118-
#expect(isDeployedOnOrAfter(.v6) == false)
119-
#expect(isDeployedOnOrAfter(.v7) == false)
12084
#endif
12185
#endif
12286
}

0 commit comments

Comments
 (0)