RESOLVED FIXED 286441
`run-minibrowser --ipad-simulator` fails ("Incompatible device")
https://bugs.webkit.org/show_bug.cgi?id=286441
Summary `run-minibrowser --ipad-simulator` fails ("Incompatible device")
Sam Sneddon [:gsnedders]
Reported 2025-01-23 14:52:11 PST
``` run-minibrowser --ipad-simulator Unable to create a device for device type: iPad Pro (9.7-inch) (com.apple.CoreSimulator.SimDeviceType.iPad-Pro--9-7-inch-), runtime: iOS iOS 17.4 (17.4 - 21E213) - com.apple.CoreSimulator.SimRuntime.iOS-17-4 An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=403): Incompatible device Couldn't create simulator device: iPad Pro For WebKit Development com.apple.CoreSimulator.SimDeviceType.iPad-Pro--9-7-inch- com.apple.CoreSimulator.SimRuntime.iOS-17-4 at /Volumes/Data/Code/Safari/OpenSource/Tools/Scripts/webkitdirs.pm line 2041. ``` It's pretty obvious what the problem is: ``` % simctl list --json devicetypes | jq '.devicetypes[] | select(.identifier == "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--9-7-inch-")' { "productFamily": "iPad", "bundlePath": "/Library/Developer/CoreSimulator/Profiles/DeviceTypes/iPad Pro (9.7-inch).simdevicetype", "maxRuntimeVersion": 1050880, "maxRuntimeVersionString": "16.9.0", "identifier": "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--9-7-inch-", "modelIdentifier": "iPad6,4", "minRuntimeVersionString": "10.0.0", "minRuntimeVersion": 655360, "name": "iPad Pro (9.7-inch)" } ``` We're trying to create an iPad Simulator with a device type that doesn't support the runtime we're requesting. The device type used comes from `Tools/Scripts/webkitdirs.pm`, which was added in 224547@main (bug 211606). This notably _doesn't match_ what `Tools/Scripts/webkitpy/port/ios_simulator.py` defines (used by `run-webkit-tests`, `run-api-tests`, etc.), which is run on CI and thus is something currently supported. This got added in 208076@main (iPad (5th generation)), changed in 259682@main (iPad (10th generation)), and most recently in 260904@main (iPad (9th generation)). This has never been an iPad Pro — so this has always differed. We should probably keep these two in-sync.
Attachments
Radar WebKit Bug Importer
Comment 1 2025-01-23 14:52:20 PST
Sam Sneddon [:gsnedders]
Comment 2 2025-01-23 15:01:45 PST
EWS
Comment 3 2025-01-24 00:50:08 PST
Committed 289336@main (26f8bc833e26): <https://commits.webkit.org/289336@main> Reviewed commits have been landed. Closing PR #39469 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.