ci(ios): build and test with Xcode 27

The iPhone Duo layout uses UIHingeInteraction, which only exists in
the iOS 27.1 SDK. CI ran Xcode 16.4 (iOS 18.5 SDK) on macos-15, so the
app build failed: #available is a runtime check and cannot hide a
symbol the SDK lacks. ChatView's iOS 26/27 modifiers would have failed
next.

Both jobs now run on the xcode-27 runner image (Xcode 27.1 by default),
the toolchain releases are built with. The READMEs state Xcode 27.1 as
the minimum.

Swift 6.4 also timed out type-checking a long `+` chain in
MultipartEncoderTests, so `swift test` failed to build; the expected
body is now joined from an array.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
weishu
2026-10-28 19:25:18 +08:00
co-authored by Claude Opus 5.5
parent e733dffe10
commit 4b7a1cff90
4 changed files with 20 additions and 17 deletions
@@ -15,18 +15,19 @@ struct MultipartEncoderTests {
data: Data([0x01, 0x02])
)
// Joined rather than `+`-chained: Swift 6.4 times out type-checking the chain.
var expected = Data(
(
"--B\r\n"
+ "Content-Disposition: form-data; name=\"provider\"\r\n\r\n"
+ "openai\r\n"
+ "--B\r\n"
+ "Content-Disposition: form-data; name=\"mode\"\r\n\r\n"
+ "standard\r\n"
+ "--B\r\n"
+ "Content-Disposition: form-data; name=\"file\"; filename=\"clip.m4a\"\r\n"
+ "Content-Type: audio/mp4\r\n\r\n"
).utf8
[
"--B\r\n",
"Content-Disposition: form-data; name=\"provider\"\r\n\r\n",
"openai\r\n",
"--B\r\n",
"Content-Disposition: form-data; name=\"mode\"\r\n\r\n",
"standard\r\n",
"--B\r\n",
"Content-Disposition: form-data; name=\"file\"; filename=\"clip.m4a\"\r\n",
"Content-Type: audio/mp4\r\n\r\n",
].joined().utf8
)
expected.append(Data([0x01, 0x02]))
expected.append(Data("\r\n--B--\r\n".utf8))