You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
VS2026 latest updates as of 29Sept. .net 10 MAUI does't work with XCode 27 #38992
XCode 27, VS2026 latest updates as of 29Sept. .net 10 MAUI Microsoft.NET.Workloads 10.401.1
Simulator launch stucks in loop "connecting to server/connected to server
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
"
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.
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):
__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.
Reacted by Steeven Lopes, taenito, Nick Jordan and PMc-Eleco
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).
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.
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.
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.
Activity
dimustriz commentedon Sep 30, 2026
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 torelease/10.0.1xx-sr11). Key insight from that PR's root-cause section: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 viaInfo.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):Platforms/iOS/Info.plist(add):__MAUI_DEFAULT_SCENE_CONFIGURATION__must matchMauiUIApplicationDelegate.MauiSceneConfigurationKeyexactly, andSceneDelegatemust match the[Register(...)]name. Requires a cleanobj/binrebuild 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.
danardelean commentedon Oct 6, 2026
Upgrading
Microsoft.Maui.Controlsto 10.0.110 does not fix an existing app: #38601 / #38664 changed the project templates, so only newly generated projects getPlatforms/iOS/SceneDelegate.csand theUIApplicationSceneManifest. Existing projects must add both by hand (iOS and Mac Catalyst heads, every flavor-specificInfo.plist), then cleanbinandobj.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_BREAKPOINTinUIApplicationEvaluateRuntimeIssueForNoSceneLifecycleAdoption. 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.OpenUrloverrides (no longer called; useSceneDelegate.OpenUrl) and any startup code that expects the window to exist inFinishedLaunching(it is now created inWillConnect).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
dotnet-policy-service commentedon Oct 18, 2026
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.
dotnet-policy-service commentedon Oct 18, 2026
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.
espenrl commentedon Oct 27, 2026
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
eqmarcin commentedon Nov 10, 2026
Works again for me after updating Visual Studio to 18.11.3