Skip to content

[BUG] iOS 27: guest apps never get the external display scene accessory, so AirPlay shows black #1694

Open

Description

@KU-Shu

Describe the bug

Since iOS 27, an app built with the iOS 27 SDK only receives a UIWindowSceneSessionRoleExternalDisplayNonInteractive scene through a registered scene accessory (UIViewController.registerSceneAccessory(_:) with UISceneAccessory.externalNonInteractive(sceneConfiguration:), or SwiftUI's .sceneAccessory { ExternalNonInteractiveAccessory { … } }).

Inside LiveContainer the accessory never becomes available: UISceneAccessoryRegistration.isAvailable stays false (SwiftUI's onAvailabilityChange never fires true) with a wired display or AirPlay connected. Instead, the system connects a windowExternalDisplayNonInteractive scene with no delegate (session.configuration.delegateClass == nil) and no window.

Wired displays (HDMI, DP-Alt) work: putting a UIWindow into that unclaimed scene shows on them. AirPlay is broken: the receiver (Mac as AirPlay receiver, Apple TV) shows only black while the audio plays. As soon as that scene exists, mirroring turns into an empty extended display.

The same build installed directly (developer-signed) gets isAvailable == true, its scene delegate gets the scene, and the app's external window shows correctly over AirPlay on both a Mac and an Apple TV.

Instructions to reproduce

  1. Build an app with the iOS 27 SDK that registers an external display scene accessory, e.g. in a view controller:
    let configuration = UISceneConfiguration(name: "External Display", sessionRole: .windowExternalDisplayNonInteractive)
    configuration.delegateClass = ExternalDisplaySceneDelegate.self
    let registration = registerSceneAccessory(.externalNonInteractive(sceneConfiguration: configuration))
    registration.isEnabled = true
    // read registration.isAvailable in updateProperties()
  2. Install it in LiveContainer and launch it.
  3. Start Screen Mirroring to a Mac or Apple TV.
  4. registration.isAvailable stays false, the scene delegate is never called, and the AirPlay receiver shows black.
  5. Install the same IPA directly (developer-signed): isAvailable becomes true, the delegate gets the scene, and the receiver shows the app's external window.

What version of LiveContainer and iOS are you using?

LiveContainer 3.8.11, iOS 27.2 (24B115), iPhone 17 Pro

Verify steps

  • I downloaded LiveContainer from releases / actions section or LiveContainer's AltStore source.
  • I have the latest LiveContainer.
  • I installed LiveContainer through AltStore/SideStore/Impactor/iloader/TrollStore or I'm confident that I signed LiveContainer correctly with all required entitlements.

Crash Log

No crash report is produced.

Other info

Could LiveContainer forward the scene accessory registration (and the external display scene it creates) to the guest app? Happy to test a build or provide logs.

Activity

  1. added
    bug
    on Oct 25, 2026
  2. WouterJN commented on Oct 30, 2026

    @WouterJN

    Same here on an iPad, with a wired display, and a workaround that gets the external display scene to the guest's delegate.

    Setup

    Device iPad Air 11-inch (M3), iPad15,3, iPadOS 27.2 (24B119)
    Display 4K TV over USB-C → HDMI (AirPlay not tested)
    LiveContainer 3.8.0 (GitHub release; DTSDKName = iphoneos26.2), re-signed with a development certificate, JIT-less
    Guest an nxnative game built with the iOS 27.2 SDK, with the external display support from nxnative#367

    The guest registers an external display scene accessory on iOS 27 (registerSceneAccessory: with +[UISceneAccessory externalNonInteractiveSceneAccessoryWithConfiguration:], delegate class DmTVSceneDelegate). Installed natively, its scene delegate gets the TV scene. Inside LiveContainer the display is just mirrored, and the guest's delegate is never called.

    Why I think it happens

    • As far as iPadOS is concerned, LiveContainer is the app. Its Info.plist declares no UIWindowSceneSessionRoleExternalDisplayNonInteractive configuration (UIApplicationSceneManifest only has UIApplicationSupportsMultipleScenes), and its own app delegate answers application:configurationForConnectingSceneSession:options:.
    • LiveContainer is linked against the iOS 26.2 SDK, so iOS seems to handle the process the iOS 26 way: the external display scene is configured from the Info.plist manifest, and the guest's accessory registration has no effect. That would match the delegateClass == nil scene you see.

    Workaround (wired display)

    I added a scene configuration for the external display role, naming the guest's delegate class, to two Info.plist files:

    1. LiveContainer's own Info.plist (then re-signed LiveContainer and installed it over the old one):
      <key>UIApplicationSceneManifest</key>
      <dict>
        <key>UIApplicationSupportsMultipleScenes</key><true/>
        <key>UISceneConfigurations</key>
        <dict>
          <key>UIWindowSceneSessionRoleExternalDisplayNonInteractive</key>
          <array><dict>
            <key>UISceneConfigurationName</key><string>TV</string>
            <key>UISceneDelegateClassName</key><string>DmTVSceneDelegate</string>
          </dict></array>
        </dict>
      </dict>
    2. The guest's Info.plist in Documents/Applications/<bundle>.app/: the same UIWindowSceneSessionRoleExternalDisplayNonInteractive entry.

    The delegate class lives in the guest binary, which is loaded into LiveContainer's process, so UIKit can instantiate it. After that, the guest's scene delegate gets the TV scene and the game fills the TV. Unplugging and plugging the cable back in during play works too (three times in a row): the scene disconnects, the guest moves its view back to the iPad, and gets the new scene when the cable is plugged in again.

    This is obviously guest-specific (the class name is hardcoded), so it's a workaround, not a fix.

    A possible generic fix

    Since LiveContainer can't know the guest's class in its static Info.plist, maybe:

    • declare the external display role in LiveContainer's Info.plist with a LiveContainer-owned proxy scene delegate, and
    • in that proxy (or in application:configurationForConnectingSceneSession:options:), look up the guest's configuration for UIWindowSceneSessionRoleExternalDisplayNonInteractive: either from the guest's own UIApplicationSceneManifest, or from the configuration the guest passed to registerSceneAccessory: (hooking that call to remember it), and hand the scene to the guest's delegate class.

    That would cover both guests that use the iOS 26 manifest and guests that only register an accessory on iOS 27. I don't know if AirPlay behaves the same way once the delegate is set, since I can only test HDMI.

    I'm happy to test a build on this iPad (HDMI), or to try a PR if you think the proxy approach is the right direction.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions