[M1] 7.0 Maui Blazor app displays blank on iOS 16.2 simulator.
See original GitHub issueDescription
- Run 7.0 Maui Blazor app displays blank on iOS 16.2 simulator.
- The download NuGet.Config file need to add the below internal feed. https://pkgs.dev.azure.com/dnceng/internal/_packaging/6.0.406-servicing.23074.33-shipping/nuget/v3/index.json https://pkgs.dev.azure.com/dnceng/internal/_packaging/7.0.200-rtm.23080.6-shipping/nuget/v3/index.json
Steps to Reproduce
- Install the .NET 7.0 SDK.
- Download the rollback.json file from here.
- Download the NuGet.Config file from here.
- Place the NuGet.Config and rollback.json files in the same directory (make sure there’s no global.json file in the directory or directory tree above).
- Open a terminal and cd into the directory with the NuGet.Config and rollback.json files.
- Run the workload install command:
sudo dotnet workload install maui ios maccatalyst android macos tvos --from-rollback-file ./rollback.json
- Run the project & ensure you see the application.
dotnet build -t:Run -f net7.0-ios
- The error is as shown below:
Link to public reproduction project repository
No
Version with bug
Unknown/Other (please specify)
Last version that worked well
Unknown/Other
Affected platforms
macOS
Affected platform versions
MacOS SDK 7.0.300-preview.23101.11
Did you find any workaround?
No
Relevant log output
admin@11098542-04 maui-blazor-cti % dotnet build -t:Run -f net7.0-iosMSBuild version 17.6.0-preview-23101-01+7cfb36cb9 for .NET Determining projects to restore... All projects are up-to-date for restore./usr/local/share/dotnet/sdk/7.0.300-preview.23101.13/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.RuntimeIdentifierInference.targets(287,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [/Users/admin/.nuget/NuGet/maui_from_mac/maui-blazor-cti/maui-blazor-cti.csproj::TargetFramework=net7.0-ios] Detected signing identity: Bundle Id: com.companyname.maui_blazor_cti App Id: com.companyname.maui_blazor_cti maui-blazor-cti -> /Users/admin/.nuget/NuGet/maui_from_mac/maui-blazor-cti/bin/Debug/net7.0-ios/iossimulator-x64/maui-blazor-cti.dll Optimizing assemblies for size may change the behavior of the app. Be sure to test after publishing. See: https://aka.ms/dotnet-illink xcrun simctl launch --stdout=/dev/ttys002 --stderr=/dev/ttys003 --terminate-running-process F0A4F495-4FA3-40A7-9CAF-4F1D1F8839B7 com.companyname.maui_blazor_cti com.companyname.maui_blazor_cti: 39523objc[39523]: Class CDPCAReporter is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/CoreCDPInternal.framework/CoreCDPInternal (0x160c631d8) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/CoreCDP.framework/CoreCDP (0x15bef4eb0). One of the two will be used. Which one is undefined.objc[39523]: Class CDPCABackupRecoveryReporter is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/CoreCDPInternal.framework/CoreCDPInternal (0x160c63ef8) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/CoreCDP.framework/CoreCDP (0x15bef50e0). One of the two will be used. Which one is undefined.2023-02-02 02:39:56.732038-0800 maui-blazor-cti[39523:787342] Microsoft.iOS: Socket error while connecting to IDE on 127.0.0.1:10000: Connection refused2023-02-02 02:39:59.246706-0800 maui-blazor-cti[39523:787165] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=395232023-02-02 02:39:59.249188-0800 maui-blazor-cti[39523:787165] SecTaskCopyDebugDescription: maui-blazor-cti[39523]/0#-1 LF=02023-02-02 02:39:59.316967-0800 maui-blazor-cti[39523:787165] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=395232023-02-02 02:39:59.318155-0800 maui-blazor-cti[39523:787165] SecTaskCopyDebugDescription: maui-blazor-cti[39523]/0#-1 LF=02023-02-02 02:39:59.370799-0800 maui-blazor-cti[39523:787165] [SceneConfiguration] Info.plist contained no UIScene configuration dictionary (looking for configuration named "(no name)")2023-02-02 02:39:59.371483-0800 maui-blazor-cti[39523:787165] [SceneConfiguration] Info.plist contained no UIScene configuration dictionary (looking for configuration named "(no name)")2023-02-02 02:39:59.631399-0800 maui-blazor-cti[39523:787527] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=395232023-02-02 02:39:59.632173-0800 maui-blazor-cti[39523:787527] SecTaskCopyDebugDescription: maui-blazor-cti[39523]/0#-1 LF=02023-02-02 02:39:59.731863-0800 maui-blazor-cti[39523:787165] [unspecified] container_query_get_single_result: error = 2→(98) NOT_CODESIGNED2023-02-02 02:39:59.732149-0800 maui-blazor-cti[39523:787165] [unspecified] container_system_group_path_for_identifier: error = ((container_error_t)98) NOT_CODESIGNED2023-02-02 02:39:59.732232-0800 maui-blazor-cti[39523:787165] [MC] Error getting system group container for systemgroup.com.apple.configurationprofiles: 982023-02-02 02:39:59.733147-0800 maui-blazor-cti[39523:787165] [MC] Failed to get profile system group container path. Overriding with expected path: /Users/admin/Library/Developer/CoreSimulator/Devices/F0A4F495-4FA3-40A7-9CAF-4F1D1F8839B7/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles2023-02-02 02:39:59.761163-0800 maui-blazor-cti[39523:787527] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=395232023-02-02 02:39:59.762484-0800 maui-blazor-cti[39523:787527] SecTaskCopyDebugDescription: maui-blazor-cti[39523]/0#-1 LF=02023-02-02 02:39:59.765718-0800 maui-blazor-cti[39523:787165] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=395232023-02-02 02:39:59.766517-0800 maui-blazor-cti[39523:787165] SecTaskCopyDebugDescription: maui-blazor-cti[39523]/0#-1 LF=02023-02-02 02:39:59.766687-0800 maui-blazor-cti[39523:787165] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=395232023-02-02 02:39:59.767151-0800 maui-blazor-cti[39523:787165] SecTaskCopyDebugDescription: maui-blazor-cti[39523]/0#-1 LF=02023-02-02 02:40:00.045974-0800 maui-blazor-cti[39523:787165] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=395232023-02-02 02:40:00.047138-0800 maui-blazor-cti[39523:787165] SecTaskCopyDebugDescription: maui-blazor-cti[39523]/0#-1 LF=02023-02-02 02:40:00.745740-0800 maui-blazor-cti[39523:787165] [Process] 0x17306c100 - [PID=39549] WebProcessProxy::didClose: (web process 0 crash)2023-02-02 02:40:00.746005-0800 maui-blazor-cti[39523:787165] [Process] 0x17306c100 - [PID=39549] WebProcessProxy::processDidTerminateOrFailedToLaunch: reason=Crash2023-02-02 02:40:00.746283-0800 maui-blazor-cti[39523:787165] [ProcessSuspension] 0x173020540 - ProcessAssertion: Failed to acquire RBS Background assertion 'ConnectionTerminationWatchdog' for process because PID 0 is invalid2023-02-02 02:40:00.746396-0800 maui-blazor-cti[39523:787528] [ProcessSuspension] 0x173020540 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'ConnectionTerminationWatchdog' for process with PID=0, error: (null)2023-02-02 02:40:00.747175-0800 maui-blazor-cti[39523:787165] [Process] 0x7f9ab2c8c420 - [pageProxyID=7, webPageID=8, PID=39549] WebPageProxy::processDidTerminate: (pid 39549), reason=Crash2023-02-02 02:40:00.755084-0800 maui-blazor-cti[39523:787165] [Loading] 0x7f9ab2c8c420 - [pageProxyID=7, webPageID=8, PID=39549] WebPageProxy::dispatchProcessDidTerminate: reason=Crash2023-02-02 02:40:00.762160-0800 maui-blazor-cti[39523:787165] [ProcessSuspension] ProcessAssertion::remainingRunTimeInSeconds failed to get handle for process with PID=395492023-02-02 02:40:00.763151-0800 maui-blazor-cti[39523:787530] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}>2023-02-02 02:40:00.763220-0800 maui-blazor-cti[39523:787530] [ProcessSuspension] 0x1730203c0 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'WebProcess Background Assertion' for process with PID=39549, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}2023-02-02 02:40:00.765686-0800 maui-blazor-cti[39523:787530] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}>2023-02-02 02:40:00.765776-0800 maui-blazor-cti[39523:787530] [ProcessSuspension] 0x1730205a0 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'WebProcess Suspended Assertion' for process with PID=39549, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}2023-02-02 02:40:29.931039-0800 maui-blazor-cti[39523:787165] [ProcessSuspension] 0x7f9ab1bf76b0 - TimedActivity::activityTimedOut:2023-02-02 02:40:30.748040-0800 maui-blazor-cti[39523:787165] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified serviceBuild succeeded. 0 Warning(s) 0 Error(s)
Issue Analytics
- State:
- Created 8 months ago
- Reactions:20
- Comments:27 (5 by maintainers)
Top Results From Across the Web
The MAUI Blazor doesn't work on iOS 16.2 arm64 simulator
However as others said, the Blazor app simply shows a blank screen on iOS Simulator (only Blazor app, MAUI app works well, so...
Read more >Blazor MAUI ios blank screen - Microsoft Q&A
Hi, I have created a stock Blazor MAUI project. It can run fine on Windows, Android and Mac. When I try to run...
Read more >xaml - .NET MAUI Blazor Not Showing Blazor Views on iOS ...
Update: I have found it to be a bug on the newest VS and Xcode. If I start a new Blazor MAUI project...
Read more >Blazor MAUI blank screen on iOS
I have a Blazor Hybrid MAUI App that works great on Android. However, when I compile my code (both from VS and from...
Read more >MAUI with Blazor iOS, how to debug errors?
Just go to Safari > Development > Look for the simulator > it should probably say something like "localhost" and give it a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@mkArtakMSFT Issue seems isolated to Blazor - as @Thepriestdude indicated, MAUI App (without Blazor) functions perfectly.
Likewise, same socket error for iOS simulator while other targets of Android and Mac Catalyst work.
Create a new MAUI Blazor App, and launching the template fails with white screen and mirrors the socket error of the original post here in this issue.
Possibly related to: https://github.com/dotnet/maui/issues/12124
.NET Version: 7.0.101 macOS Monterey 12.6.3 (21G419)