feat: Support DeviceHub for Xcode 27+

Merged
HU
5mo ago
+133-6

Summary

Xcode 27 replaces the iOS Simulator.app with DeviceHub.app and relocates it from /Contents/Developer/Applications to /Contents/Applications, which made run-ios fail when launching the simulator UI.

Follows / inspired by https://github.com/expo/expo/pull/46757.

[!Note]
Open question: Is run-ios actively used these days? We no longer have the i and a key handlers, and instead direct people to the Xcode UI, where the run action handles this implicitly.

Test Plan

Setup

sudo xcode-select -s /Applications/Xcode-27.0.0-Beta.app/Contents/Developer/
yarn link @react-native-community/cli-platform-apple
yarn
yarn start

run-ios with simulator launch

yarn rnc-cli run-ios --scheme RNTester
image

āœ… Successfully opens/focuses Device Hub

Checklist

  • Documentation is up to date.
  • Follows commit message convention described in CONTRIBUTING.md.
  • For functional changes, my test plan has linked these CLI changes into a local react-native checkout (instructions).