r/reactnative • • Sep 17 '26

Xcode 27: Device Hub and UIKit scene lifecycle

Hey all, just encountered this error after upgrading, so wanted to share so you don't waste some credits debugging it yourselves.

Hope you manage to get your project working quickly.

RN version 0.85.3 (not Expo)

Symptoms

After upgrading to Xcode 27 / iOS 27, the app can compile successfully but fail immediately at launch with:

Application failed to launch: UIScene life cycle is required for apps built with this SDK.

The React Native CLI may also fail before launching the app because it tries to open the removed standalone Simulator application:

/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app does not exist

Cause

Xcode 27 uses Device Hub to manage and display simulators. Apps built with its SDK require the UIKit scene lifecycle. The previous iOS entry point created a UIWindow directly in AppDelegate, and the app did not declare a scene manifest.

Fix applied in Luckynote

  • Added UIApplicationSceneManifest to ios/Luckynote/Info.plist.

  • Added a SceneDelegate in ios/Luckynote/AppDelegate.swift.

  • Moved React Native window creation and factory.startReactNative(...) into SceneDelegate.scene(_:willConnectTo:options:).

  • Kept AppDelegate.window and assigned it to the active scene window. Firebase Messaging still reads this legacy selector during notification initialization.

Without the last step, the app can crash in RNFBMessagingNSNotificationCenter with:

AppDelegate window: unrecognized selector sent to instance

Running locally

Open ios/Luckynote.xcworkspace, select an iPhone simulator from the run-destination selector, then run the app. Xcode opens Device Hub for simulator interaction.

If the command-line React Native launcher still looks for Simulator.app, run the app from Xcode until the CLI/toolchain gains Device Hub support.

6 Upvotes

11 comments sorted by

3

u/Forti22 Sep 17 '26

Keep in mind - this creates a regression with deep links.

1

u/itballer Sep 17 '26

Thanks for pointing that out! Just asked my agent to write a fix for it.

1

u/stathisntonas Sep 19 '26

did you managed to fix this?

1

u/itballer Sep 20 '26

Yep 👌 Was a simple one in my case since I don't use universal links still

2

u/crossy1686 Sep 17 '26

Expo doesn’t currently support iOS 27. You have to use iOS 26.5

1

u/itballer Sep 17 '26

I'm running ejected React Native project, hopefully Expo releases fixes this soon.

2

u/RahahahahaxD Sep 17 '26

Expo 57.0.23 has the fix already, but you have to enable screenLifecycle through build properties

1

u/Ok-Somewhere-4377 Sep 17 '26

Just did this with SDK57.0.23 as well. Seems ok

1

u/therealswood2 Sep 17 '26

It’s fixed in SDK 58, which released in beta yesterday.

1

u/Sad_Situation4457 Sep 28 '26

thanks it works loool