Repository navigation
Description
Current behavior 🐛
Since iOS 27, UIKit refuses to launch an app built with the iOS 27 SDK unless it has adopted the scene-based life cycle (Transitioning to the UIKit scene-based life cycle: "Beginning in iOS 27, iPadOS 27, Mac Catalyst 27, tvOS 27, and visionOS 27, apps built with the latest SDK must adopt the scene-based life cycle or they fail to launch.").
An Uno app built with Xcode 27 without a UIApplicationSceneManifest therefore dies right at launch on iOS 27:
(UIKitCore) failure in void _UIApplicationEvaluateRuntimeIssueForNoSceneLifecycleAdoption(void)_block_invoke (UIApplication_RuntimeIssues.m:106) : Application failed to launch: UIScene life cycle is required for apps built with this SDK. See "Transitioning to the UIKit scene-based life cycle" in the UIKit documentation for more information on migration.
[app<…>] Process exited: <RBSProcessExitContext| specific, status:<RBSProcessExitStatus| domain:signal(2) code:SIGTRAP(5)>>
The crash report shows EXC_BREAKPOINT (SIGTRAP) in __UIApplicationEvaluateRuntimeIssueForNoSceneLifecycleAdoption_block_invoke, called from -[UIApplication workspace:didCreateScene:withTransitionContext:completion:].
- 6.x: neither the Skia
UnoUIApplicationDelegatenor the native renderer'sApplicationhas scene support, so every 6.x iOS app built with Xcode 27 is affected, 6.7 stable included. We hit this in production: an App Store build made with Xcode 27 crashed at launch on iOS 27.0.1 (iPhone 17 Pro Max) and ran fine on iOS 26. - master: scene support (feat: Support for iOS
SceneDelegate#19083) is opt-in.UnoUIApplicationDelegate.RespondsToSelectordeliberately hidesapplication:configurationForConnectingSceneSession:options:when the app has no manifest, so an app that hasn't added a manifest and aSceneDelegatestays on the app life cycle. The templates add both since unoplatform/uno.templates@1bdc4ef, but existing apps don't have them. The docs also present the manifest as an opt-in for secondary windows (windows-ui-xaml-window.md). I haven't run master; this is from reading the code.
Expected behavior 🎯
Uno apps launch on iOS 27 without app-side changes, the way they did before.
Apple documents implementing application(_:configurationForConnecting:options:) as an alternative to the Info.plist manifest. On the iOS 27.0 simulator, this alone passes the check: see the proposal below.
How to reproduce it (as minimally and precisely as possible) 🔬
- Take an Uno app with the Skia renderer on iOS and no
UIApplicationSceneManifestinPlatforms/iOS/Info.plist. Any app created from the 6.x templates works. - Build it for the iOS simulator with Xcode 27 (iOS 27.0 SDK).
- Run it on an iOS 27.0 simulator: it exits immediately with the log above. The same build runs fine on an iOS 26.5 simulator.
Workaround 🛠️
- Build with Xcode 26 (iOS 26 SDK), which doesn't trigger the check.
- On master, add a scene manifest plus a
SceneDelegate : UnoUISceneDelegateto the app. - On 6.x the only app-side option is a manifest plus a scene delegate that moves the
UIWindowreturned byUno.UI.Xaml.WindowHelper.GetNativeWindow()into the scene. I haven't tested that.
Affected platforms 📱💻🖥️
iOS. Per Apple's note, iPadOS, Mac Catalyst and tvOS 27 have the same requirement; I've only tested iOS.
Uno.Sdk version (and other relevant versions) 📦
- Uno.Sdk 6.8.0-dev.60 (Uno.WinUI 6.8.0-dev.212),
net10.0-ios, Skia renderer - .NET 10 iOS workload 27.0.10722
- Xcode 27.0 (27A266a) on macOS 27.0.1
- Crash seen on iPhone 17 Pro Max with iOS 27.0.1, and reproduced on the iOS 27.0 simulator
IDE version 🧑💻
dotnet CLI, building through Pair to Mac.
Anything else we need to know? 💬
Proposal: adopt the scene life cycle by default. We fixed this in a patched 6.8 build, and it needs no app changes:
UnoUIApplicationDelegatealways implementsGetConfiguration. It keeps the configuration UIKit resolved for the session, which includes anything an app's manifest declares. An application-role scene that has no delegate gets the Uno scene delegate. Scenes with other roles get none, so an external display keeps mirroring on iOS 26 and earlier. iOS 27 connects an external-display scene only if the app registers a scene accessory.(Simplified: ours also guards againstpublic override UISceneConfiguration GetConfiguration(UIApplication application, UISceneSession session, UISceneConnectionOptions options) { var configuration = session.Configuration ?? new UISceneConfiguration("Default Configuration", session.Role); if (session.Role == UIWindowSceneSessionRole.Application && configuration.DelegateClass is null) { configuration.DelegateClass = new Class(typeof(UnoUISceneDelegate)); } return configuration; }
Rolethrowing for a role the bindings don't know.)- The scene delegate attaches the window the app created in
OnLaunched(which runs duringFinishedLaunching) to the connectingUIWindowScene, or a window created later to the already-connected scene. A disconnect keeps the window, and the next scene that connects takes it. That's the direction of [iOS] Redesign scene/window binding: eager UIWindow, two-way SceneBinder, session-keyed rebind #24814, and by design it avoids [iOS] Launch scene is destroyed when the initial Window is created after an await in OnLaunched #24812 and [iOS] Scene disconnect closes the XAML Window, but iOS also disconnects backgrounded scenes that can reconnect #24813 for single-window apps. - Lifecycle notifications come only from the window's own scene. Under the scene life cycle an external display (iOS 26 and earlier) is a scene of its own. Its notifications must not background or deactivate the app's window.
- First
VisibilityChanged. Under the scene life cycle UIKit posts the scene's will-enter-foreground notification at launch, before the window is shown. Marking the window visible then madeShow()find it visible already, so the firstWindow.VisibilityChanged(true)was never raised. We now apply native visibility changes only once the window was shown. Master shows the window when the scene connects, so there this likely only matters for an app that activates its window after its scene entered the foreground. - URLs. Under the scene life cycle URLs and universal links reach the scene delegate (connection options,
scene:continueUserActivity:,scene:openURLContexts:), not the app delegate. On 6.8 we raiseApplication.OnActivatedwithProtocolActivatedEventArgs; master already routes these throughAppInstance.
The catch: with the scene life cycle on by default, UIKit stops calling the app delegate's URL, user-activity and shortcut methods for every app. A delegate passed to UseUIApplicationDelegate<T> that relies on them has to move to scene callbacks. That's presumably why master made scenes opt-in. But on iOS 27 staying on the app life cycle isn't an option anymore.
Tested on the simulators with Xcode 27.0, iOS 27.0 and iOS 26.5:
| Scenario | Result |
|---|---|
| Stock 6.8 runtime on iOS 27 | Crashes as above |
| Patched runtime on iOS 27 | Launches without a manifest; survives background and resume |
| Patched runtime on iOS 26.5 | Same Window.Activated / VisibilityChanged / EnteredBackground / Suspending / Resuming / LeavingBackground order as the stock build |
| Custom-scheme URL, cold start | OnActivated right after OnLaunched, as NotRunning |
| Custom-scheme URL, app running or backgrounded | OnActivated as Running |
Not tested: a physical device, universal links, external displays, iPad multitasking, apps with their own UIApplicationDelegate, Mac Catalyst and tvOS. I couldn't trigger a scene disconnect with the process alive on iPhone: RequestSceneSessionDestruction reports that the device doesn't support multiple scenes.
I'm happy to open a PR for master, adapted to the 7.0 structure and AppInstance, and/or for servicing/6.8, if this is the direction you'd like.
Activity
ajpinedam commentedon Oct 19, 2026
@mikernet Thanks for the detailed explanation. We have already implemented this on master (Uno 7.0), and we are in the process of backporting this fix for 6.8. The PR should be up soon.
mikernet commentedon Oct 20, 2026
Thanks @ajpinedam! I had another look at master (55cddbc), and I don't think it covers this case yet. Scene support is there, but only for apps that declare a scene manifest:
Info.plisthas noUIApplicationSceneManifest,UnoUIApplicationDelegate.RespondsToSelectorhidesapplication:configurationForConnectingSceneSession:options:(UnoUIApplicationDelegate.cs#L63-L74). UIKit then keeps the app on the app life cycle, which is what iOS 27 refuses to launch.windows-ui-xaml-window.mdstill presents it as an opt-in for secondary windows.The migration guide also notes that .NET 11 builds with Xcode 27, so an existing app upgraded to 7.0 without a manifest would crash at launch on iOS 27. New apps from the templates are fine.
Requiring the manifest instead, through the docs or the SDK, would also bring #24812 and #24813 to every app, not just multi-window ones. An app that creates its window after an
awaitinOnLaunchedwould lose its launch scene. And a scene that iOS disconnects in the background would close the window, then be destroyed when it reconnects. That's why the proposal hasUnoUIApplicationDelegatealways implementGetConfigurationand give an application-role scene the Uno scene delegate when none is configured, so apps adopt the scene life cycle without any changes. For apps with a manifest, master's per-scene lifecycle and URL routing already cover most of the rest of the proposal.For 6.8, if the backport is the scene support from #19083, it would still be opt-in, so existing 6.8 apps without a manifest would still crash on iOS 27 when built with Xcode 27.
If there's a change for this that hasn't landed on master yet, could you link it? Otherwise I'm happy to open the PRs for master and
servicing/6.8.fix(ios): Adopt the scene lifecycle without a manifest
test(ios): Check the scene hosts the window
docs(ios): Document the scene lifecycle adoption
fix(ios): Adopt the UIKit scene life cycle
fix(sdk): Follow the workload minimum OS version
test(ios): Check the scene hosts the window
docs(ios): Document the UIKit scene life cycle
fix(ios): Adopt the scene lifecycle without a manifest
test(ios): Check the scene hosts the window
docs(ios): Document the scene lifecycle adoption
fix(ios): Adopt the scene lifecycle without a manifest
test(ios): Check the scene hosts the window
2 remaining items
test(ios): Skip the dialog for test activations
refactor(ios): Split out the lifecycle decision
fix(ios): Treat a scene disconnect as background
fix(ios): Log an adopted scene outside its mode
test(ios): Fail the scene test if lookup fails
ajpinedam commentedon Oct 28, 2026
Thaks @mikernet . Early this week, we merged the missing part for the UIScene support as you had described. This is for 7.0, the PR for 6.8 is still pending to be merged #25688
fix(ios): Adopt the UIKit scene life cycle
fix(sdk): Follow the workload minimum OS version
test(ios): Check the scene hosts the window
docs(ios): Document the UIKit scene life cycle
test(ios): Fail the scene test if lookup fails
fix(iOS): Update Info.plist and add SceneDelegate for iOS 27
fix(iOS): Update Info.plist and add SceneDelegate for iOS 27
fix(iOS): Update Info.plist and add SceneDelegate for iOS 27