readIosDeviceSetup function
The setup of a paired physical iPhone on osVersion (e.g. "iOS 27.0"), judged on its own device backend.
Implementation
Future<DeviceSetup> readIosDeviceSetup(String? osVersion, {ProcessRunner run = boundedRun}) async {
final major = osVersion == null ? null : int.tryParse(osVersion.replaceFirst('iOS ', '').split('.').first);
return (
platform: 'ios',
backend: 'device',
runtimeMajor: major,
runtime: osVersion,
xcodeMajor: (await detectXcode(run: run)).major,
hostMajor: await _hostMajor(run),
);
}