Repository navigation
chore: [SDK-5759] move React Native demos to the UIScene lifecycle for iOS 27 - #2014
Merged
Merged
Conversation
iOS 27 SDK builds crash at launch without a scene delegate. Start React Native from a SceneDelegate and declare a single-scene manifest. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
nan-li
approved these changes
Nov 17, 2026
nan-li
left a comment
Contributor
There was a problem hiding this comment.
demo app only changes, lgtm
- it would be more appropriate to rename PR to "chore"?
- update build-ios.md to note scene setup
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
|
Thanks! Renamed to chore and added a scene lifecycle section to build-ios.md in 5933dab. |
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.
Description
One Line Summary
Move the React Native iOS demos (
demoanddemo-no-location) to the UIScene lifecycle so they launch when built with the iOS 27 SDK.Details
Motivation
Apps built with the iOS 27 SDK must adopt the UIScene lifecycle. Without it, both demos crash at launch with SIGTRAP in
_UIApplicationEvaluateRuntimeIssueForNoSceneLifecycleAdoption. This blocks the Appium suite on iOS 27.Scope
Examples only, no SDK code changes.
AppDelegate.swiftcreates theRCTReactNativeFactorybut no longer creates the window.SceneDelegate.swiftcreates aUIWindowfor the connected scene and starts React Native in it.Info.plistdeclares a single-sceneUIApplicationSceneManifestpointing at the scene delegate.project.pbxprojaddsSceneDelegate.swiftto thedemotarget.React Native is now started with
launchOptions: nil, since scene-based apps don't receive launch options in the app delegate. The demos don't rely on them, and OneSignal handles cold-start notification taps itself.Testing
Manual testing
Xcode 27.1, temporary simulators.
demo-no-location: Debug and Release builds succeed; Release launches on iOS 27.0.Affected code checklist
Checklist
Overview
Testing
Final pass
🤖 Generated with Claude Code