Conversation
Xcode 27 / the iOS 27 SDK asserts at startup unless the app uses a scene-based lifecycle. Create the React Native window from SceneDelegate using the 0.87 startReactNative(launchOptions:) API. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Apps generated from this 0.87 template crash immediately on launch when built with Xcode 27 / the iOS 27 SDK. UIKit asserts in
___UIApplicationEvaluateRuntimeIssueForNoSceneLifecycleAdoptionbecause the template still createsUIWindowfromAppDelegateand does not declare a scene manifest.This migrates the iOS template to the UIScene lifecycle using APIs that already exist on React Native 0.87 (
startReactNative(withModuleName:in:launchOptions:)). It does not depend onRCTSceneDelegateorconnectionOptions:, which only landed on 0.88+/main.Related:
Changelog
[IOS] [FIXED] - Adopt UIScene lifecycle so apps built with Xcode 27 launch on iOS 27
Test Plan
NoSceneLifecycleAdoptionyarn testin this repoMade with Cursor