Skip to content

[iOS] Apps without a scene manifest fail to launch on iOS 27 when built with Xcode 27 #25510

Closed

Description

@mikernet

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 UnoUIApplicationDelegate nor the native renderer's Application has 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.RespondsToSelector deliberately hides application:configurationForConnectingSceneSession:options: when the app has no manifest, so an app that hasn't added a manifest and a SceneDelegate stays 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) 🔬

  1. Take an Uno app with the Skia renderer on iOS and no UIApplicationSceneManifest in Platforms/iOS/Info.plist. Any app created from the 6.x templates works.
  2. Build it for the iOS simulator with Xcode 27 (iOS 27.0 SDK).
  3. 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 : UnoUISceneDelegate to the app.
  • On 6.x the only app-side option is a manifest plus a scene delegate that moves the UIWindow returned by Uno.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:

  1. UnoUIApplicationDelegate always implements GetConfiguration. 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.
    public 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;
    }
    (Simplified: ours also guards against Role throwing for a role the bindings don't know.)
  2. The scene delegate attaches the window the app created in OnLaunched (which runs during FinishedLaunching) to the connecting UIWindowScene, 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.
  3. 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.
  4. 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 made Show() find it visible already, so the first Window.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.
  5. 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 raise Application.OnActivated with ProtocolActivatedEventArgs; master already routes these through AppInstance.

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

  1. self-assigned this
    on Oct 19, 2026
  2. ajpinedam commented on Oct 19, 2026

    @ajpinedam
    Contributor

    @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.

  3. mikernet commented on Oct 20, 2026

    @mikernet
    ContributorAuthor

    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:

    • When Info.plist has no UIApplicationSceneManifest, UnoUIApplicationDelegate.RespondsToSelector hides application:configurationForConnectingSceneSession:options: (UnoUIApplicationDelegate.cs#L63-L74). UIKit then keeps the app on the app life cycle, which is what iOS 27 refuses to launch.
    • Nothing adds the manifest for the app: the only one on master is the SamplesApp's. The 7.0 migration guide doesn't ask apps to add one, and windows-ui-xaml-window.md still 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 await in OnLaunched would 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 has UnoUIApplicationDelegate always implement GetConfiguration and 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.

  4. 2 remaining items

  5. ajpinedam commented on Oct 28, 2026

    @ajpinedam
    Contributor

    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:

    * When `Info.plist` has no `UIApplicationSceneManifest`, `UnoUIApplicationDelegate.RespondsToSelector` hides `application:configurationForConnectingSceneSession:options:` ([UnoUIApplicationDelegate.cs#L63-L74](https://github.com/unoplatform/uno/blob/55cddbc52ac2c032078f0997ecdaab3010c7fb0a/src/Uno.UI.Runtime.AppleUIKit/UnoUIApplicationDelegate.cs#L63-L74)). UIKit then keeps the app on the app life cycle, which is what iOS 27 refuses to launch.
    
    * Nothing adds the manifest for the app: the only one on master is the SamplesApp's. The [7.0 migration guide](https://github.com/unoplatform/uno/blob/55cddbc52ac2c032078f0997ecdaab3010c7fb0a/doc/articles/migrating-to-uno-7.md) doesn't ask apps to add one, and [`windows-ui-xaml-window.md`](https://github.com/unoplatform/uno/blob/55cddbc52ac2c032078f0997ecdaab3010c7fb0a/doc/articles/features/windows-ui-xaml-window.md#L44) still 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 await in OnLaunched would 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 has UnoUIApplicationDelegate always implement GetConfiguration and 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.

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions