Skip to content

Commit 5cee152

Browse files
authored
Upgrade tests to use Xcode 16 and iOS 18 (#8968)
Fixes flutter/flutter#148956. ## Pre-Review Checklist [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
1 parent 84ef201 commit 5cee152

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.ci.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,25 +90,25 @@ platform_properties:
9090
[
9191
{"dependency": "ruby", "version": "ruby_3.1-pod_1.13"}
9292
]
93-
os: Mac-13|Mac-14
93+
os: Mac-14
9494
device_type: none
9595
cpu: arm64
9696
$flutter/osx_sdk : >-
9797
{
98-
"sdk_version": "15a240d"
98+
"sdk_version": "16c5032a"
9999
}
100100
mac_x64:
101101
properties:
102102
dependencies: >-
103103
[
104104
{"dependency": "ruby", "version": "ruby_3.1-pod_1.13"}
105105
]
106-
os: Mac-13|Mac-14
106+
os: Mac-14
107107
device_type: none
108108
cpu: x86
109109
$flutter/osx_sdk : >-
110110
{
111-
"sdk_version": "15a240d"
111+
"sdk_version": "16c5032a"
112112
}
113113
114114
targets:

.ci/scripts/create_simulator.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ set -o pipefail
99
# The name here must match remove_simulator.sh
1010
readonly DEVICE_NAME=Flutter-iPhone
1111
readonly DEVICE=com.apple.CoreSimulator.SimDeviceType.iPhone-14
12-
readonly OS=com.apple.CoreSimulator.SimRuntime.iOS-17-0
12+
readonly OS=com.apple.CoreSimulator.SimRuntime.iOS-18-2
1313

1414
# Delete any existing devices named Flutter-iPhone. Having more than one may
1515
# cause issues when builds target the device.

.ci/targets/ios_platform_tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ tasks:
2222
- name: native test
2323
script: .ci/scripts/tool_runner.sh
2424
# Simulator name and version must match name and version in create_simulator.sh
25-
args: ["native-test", "--ios", "--ios-destination", "platform=iOS Simulator,name=Flutter-iPhone,OS=17.0", "--xcode-warnings-exceptions=script/configs/xcode_warnings_exceptions.yaml"]
25+
args: ["native-test", "--ios", "--ios-destination", "platform=iOS Simulator,name=Flutter-iPhone,OS=18.2", "--xcode-warnings-exceptions=script/configs/xcode_warnings_exceptions.yaml"]
2626
- name: boot simulator
2727
# Ensure simulator is still booted
2828
script: .ci/scripts/boot_simulator.sh

packages/pigeon/tool/shared/test_suites.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,8 @@ Future<int> _runIOSPluginUnitTests(String testPluginPath) async {
305305

306306
const String deviceName = 'Pigeon-Test-iPhone';
307307
const String deviceType = 'com.apple.CoreSimulator.SimDeviceType.iPhone-14';
308-
const String deviceRuntime = 'com.apple.CoreSimulator.SimRuntime.iOS-17-0';
309-
const String deviceOS = '17.0';
308+
const String deviceRuntime = 'com.apple.CoreSimulator.SimRuntime.iOS-18-2';
309+
const String deviceOS = '18.2';
310310
await _createSimulator(deviceName, deviceType, deviceRuntime);
311311
return runXcodeBuild(
312312
'$examplePath/ios',

0 commit comments

Comments
 (0)