Skip to content

Commit ef8ccdb

Browse files
authored
Update tests to Xcode 15 and iOS 17 simulator (flutter#5914)
Packages part of flutter#132237.
1 parent 2cc0533 commit ef8ccdb

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.ci.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,25 +85,25 @@ platform_properties:
8585
[
8686
{"dependency": "ruby", "version": "ruby_3.1-pod_1.13"}
8787
]
88-
os: Mac-12|Mac-13
88+
os: Mac-13
8989
device_type: none
9090
cpu: arm64
9191
$flutter/osx_sdk : >-
9292
{
93-
"sdk_version": "14e300c"
93+
"sdk_version": "15a240d"
9494
}
9595
mac_x64:
9696
properties:
9797
dependencies: >-
9898
[
9999
{"dependency": "ruby", "version": "ruby_3.1-pod_1.13"}
100100
]
101-
os: Mac-12|Mac-13
101+
os: Mac-13
102102
device_type: none
103103
cpu: x86
104104
$flutter/osx_sdk : >-
105105
{
106-
"sdk_version": "14e300c"
106+
"sdk_version": "15a240d"
107107
}
108108
109109
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-16-4
12+
readonly OS=com.apple.CoreSimulator.SimRuntime.iOS-17-0
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ tasks:
2121
args: ["xcode-analyze", "--ios", "--ios-min-version=13.0"]
2222
- name: native test
2323
script: script/tool_runner.sh
24-
# Simulator name must match name in create_simulator.sh
25-
args: ["native-test", "--ios", "--ios-destination", "platform=iOS Simulator,name=Flutter-iPhone,OS=16.4"]
24+
# 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"]
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
@@ -296,8 +296,8 @@ Future<int> _runIOSPluginUnitTests(String testPluginPath) async {
296296

297297
const String deviceName = 'Pigeon-Test-iPhone';
298298
const String deviceType = 'com.apple.CoreSimulator.SimDeviceType.iPhone-14';
299-
const String deviceRuntime = 'com.apple.CoreSimulator.SimRuntime.iOS-16-4';
300-
const String deviceOS = '16.4';
299+
const String deviceRuntime = 'com.apple.CoreSimulator.SimRuntime.iOS-17-0';
300+
const String deviceOS = '17.0';
301301
await _createSimulator(deviceName, deviceType, deviceRuntime);
302302
return runXcodeBuild(
303303
'$examplePath/ios',

0 commit comments

Comments
 (0)