Skip to content

VS2026 latest updates as of 29Sept. .net 10 MAUI does't work with XCode 27 #38992

Open

Description

@xiufengpeng

Description

XCode 27, VS2026 latest updates as of 29Sept. .net 10 MAUI Microsoft.NET.Workloads 10.401.1

  1. Simulator launch stucks in loop "connecting to server/connected to server
  2. Physical device with iOS 27 debug failed with message below.

Steps to Reproduce

Thanks for the effort! but after upgrading vs2026 to the latest release, delete all the bin and obj caches, restarted VS2026 and Windows, I am still get the same error

1. When loading the simulator (after pairing to mac successfully), it still stucks in the connecting to server/connected to server loop
When connecting to my iPhone 17 promax, it errors out with "Hot Reload initialization error: No HotReload connection specified
Terminating MonoVsDbg debug process for project 'C:\Home\Mtestcsproj'...
The app has been terminated.
The program 'xx' has exited with code 0 (0x0).
INFO: Closing debug connection from device (USB)
The MonoVsDbg debug session for project 'C:\Home\Mtest.csproj' has been stopped
INFO: Disposing input and output streams [device -> debugger]...
INFO: Disposing console and debugger streams...
INFO: Disposing input and output streams [debugger -> device]...
INFO: The debug stream is no longer available for writing. Details: USB stream error: EPIPE
INFO: Closing debug connection from remote debugger (TCP)
INFO: Error forwarding stream messages. [debugger -> device]. Details: net_io_readfailure, Operation canceled
"

Link to public reproduction project repository

No response

Version with bug

MAUI Microsoft.NET.Workloads 10.401.1

Is this a regression from previous behavior?

Yes, this used to work with XCode26.x

Last version that worked well

10.0.110

Affected platforms

iOS

Affected platform versions

iOS27

Did you find any workaround?

dotnet workload list
Workload version: 10.0.401.1

Relevant log output

Activity

  1. added
    t/bug
    on Sep 29, 2026
  2. dimustriz commented on Sep 30, 2026

    @dimustriz

    Reproduced independently on macOS + iOS Simulator (not just Windows + physical device)

    Confirming this is a broader issue than the original report — I'm seeing the same underlying failure on macOS, targeting the iOS Simulator, in both Debug and Release configurations.

    Environment

    macOS, Xcode 27.0 (27A266a)
    .NET SDK 10.0.401
    Workload set: 10.0.401.1 (ios manifest 27.0.10722)
    Microsoft.Maui.Controls 10.0.110
    Target: net10.0-ios (unversioned TFM), simulator iossimulator-arm64
    Symptom

    App builds successfully, installs, and starts loading (all managed assemblies load fine), but the UI never renders — black screen. The real failure only appears in the native/OS log, not in the managed debug console (Debug.WriteLine/Console.WriteLine output shows nothing unusual):

    Earlier in the log, before this fatal message:

    Ruled out as a workload/version mismatch

    I confirmed via plutil -p Info.plist that the app bundle genuinely built with the recommended Xcode 27 SDK:

    So this isn't a stale/mismatched workload — the app is built end-to-end with 27.0.10722 + MAUI 10.0.110 (the pairing recommended in the dotnet/macios Xcode 27.0 release notes), and the failure is identical.

    Confirmed Debug and Release both affected

    Built and launched a Release configuration build directly via xcrun simctl install/launch (bypassing the debugger entirely) — identical UIScene life cycle failure. This rules out debugger/Hot Reload injection or Debug-only linker settings (MtouchLink=None/SdkOnly) as the cause.

    Confirmed working on iOS 26.5

    The exact same app/build, run on a fresh iOS 26.5 simulator, launches and renders correctly with no changes. This isolates the issue specifically to iOS 27.0's stricter scene-lifecycle runtime enforcement not being satisfied by MAUI's current scene delegate registration (Microsoft.Maui.Controls.Core currently ships net10.0-ios26.0 as its highest iOS binding target, even in 10.0.110).

    Happy to share a minimal repro project if useful.


    Found a working app-level fix — no MAUI package update needed

    Following up on my earlier repro comment: I tracked this down to dotnet/maui#38601 ("Adopt scene lifecycle and AppActions dispatch", merged to main + backported to release/10.0.1xx-sr11). Key insight from that PR's root-cause section:

    MAUI already has the required runtime implementation... The templates were missing the manifest configuration and an explicitly registered application scene delegate.

    So this is fixable today, in any existing app, without waiting for a new MAUI package — the framework support (MauiUIApplicationDelegate / MauiUISceneDelegate) has been there for a while; it's opt-in via Info.plist, and without it iOS 27 hard-rejects launch.

    Fix (2 files, confirmed working on iOS 27.0 simulator — app renders and reaches the Azure AD login flow):

    Platforms/iOS/SceneDelegate.cs (new):

    [Register("SceneDelegate")]
    public class SceneDelegate : MauiUISceneDelegate { }

    Platforms/iOS/Info.plist (add):

    <key>UIApplicationSceneManifest</key>
    <dict>
        <key>UIApplicationSupportsMultipleScenes</key>
        <false/>
        <key>UISceneConfigurations</key>
        <dict>
            <key>UIWindowSceneSessionRoleApplication</key>
            <array>
                <dict>
                    <key>UISceneConfigurationName</key>
                    <string>__MAUI_DEFAULT_SCENE_CONFIGURATION__</string>
                    <key>UISceneDelegateClassName</key>
                    <string>SceneDelegate</string>
                </dict>
            </array>
        </dict>
    </dict>

    __MAUI_DEFAULT_SCENE_CONFIGURATION__ must match MauiUIApplicationDelegate.MauiSceneConfigurationKey exactly, and SceneDelegate must match the [Register(...)] name. Requires a clean obj/bin rebuild after adding the new file.

    Verified working on both iOS 27.0 and iOS 26.5 — no regression on older OS versions, since scene adoption is additive. Hope this unblocks others hitting the same wall before an official template/SDK fix ships.

  3. danardelean commented on Oct 6, 2026

    @danardelean

    Upgrading Microsoft.Maui.Controls to 10.0.110 does not fix an existing app: #38601 / #38664 changed the project templates, so only newly generated projects get Platforms/iOS/SceneDelegate.cs and the UIApplicationSceneManifest. Existing projects must add both by hand (iOS and Mac Catalyst heads, every flavor-specific Info.plist), then clean bin and obj.

    Reproduced with Xcode 27.0 (27A266a), SDK 10.0.401, workload set 10.0.401.1: the 10.0.110 template launches on the iOS 27 simulator; the same template with the two scene pieces removed crashes in Debug and Release with EXC_BREAKPOINT in UIApplicationEvaluateRuntimeIssueForNoSceneLifecycleAdoption. An iOS 26 simulator does not show it. Mac Catalyst is affected the same way: the no-scene build with the macOS 27.0 SDK crashes identically on macOS 27.0.1.

    After adding the files, also check AppDelegate.OpenUrl overrides (no longer called; use SceneDelegate.OpenUrl) and any startup code that expects the window to exist in FinishedLaunching (it is now created in WillConnect).

    Write-up: https://dev.to/danardelean/your-net-maui-ios-app-will-crash-at-launch-with-xcode-27-here-is-the-two-file-fix-mlm

  4. added
    s/move-to-vs-feedback
    on Oct 18, 2026
  5. dotnet-policy-service commented on Oct 18, 2026

    @dotnet-policy-service
    Contributor

    Thanks for the issue report @@xiufengpeng! This issue appears to be a problem with Visual Studio, so we ask that you use the VS feedback tool to report the issue. That way it will get to the routed to the team that owns this experience in VS.

    If you encounter a problem with Visual Studio, we want to know about it so that we can diagnose and fix it. By using the Report a Problem tool, you can collect detailed information about the problem, and send it to Microsoft with just a few button clicks.

    1. Go to the Visual Studio for Windows feedback tool or Visual Studio for Mac feedback tool to report the issue
    2. Close this bug, and consider adding a link to the VS Feedback issue so that others can follow its activity there.
  6. dotnet-policy-service commented on Oct 18, 2026

    @dotnet-policy-service
    Contributor

    Thanks for the issue report @xiufengpeng! This issue appears to be a problem with Visual Studio (Code), so we ask that you use the VS feedback tool to report the issue. That way it will get routed to the team that owns this experience in VS (Code).

    If you encounter a problem with Visual Studio or the .NET MAUI VS Code Extension, we want to know about it so that we can diagnose and fix it. By using the Report a Problem tool, you can collect detailed information about the problem, and send it to Microsoft with just a few button clicks.

    1. Go to the Visual Studio for Windows feedback tool or .NET MAUI VS Code Extension repository to report the issue
    2. Close this bug, and consider adding a link to the VS Feedback issue so that others can follow its activity there.
  7. espenrl commented on Oct 27, 2026

    @espenrl
    Contributor

    This may or not be your issue. VS introduced a bug with the "Pair to Mac" function making it useless. This was fixed October 20th for the Insider release. It is not in the release notes for the VS stable branch.

    See https://learn.microsoft.com/en-us/visualstudio/releases/2026/release-notes-insiders#12316.00

  8. eqmarcin commented on Nov 10, 2026

    @eqmarcin

    Works again for me after updating Visual Studio to 18.11.3

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

    s/move-to-vs-feedbackt/bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions