question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[M1] 7.0 Maui Blazor app displays blank on iOS 16.2 simulator.

See original GitHub issue

Description

  1. Run 7.0 Maui Blazor app displays blank on iOS 16.2 simulator.
  2. 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

  1. Install the .NET 7.0 SDK.
  2. Download the rollback.json file from here.
  3. Download the NuGet.Config file from here.
  4. 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).
  5. Open a terminal and cd into the directory with the NuGet.Config and rollback.json files.
  6. Run the workload install command: sudo dotnet workload install maui ios maccatalyst android macos tvos --from-rollback-file ./rollback.json
  7. Run the project & ensure you see the application. dotnet build -t:Run -f net7.0-ios
  8. The error is as shown below: image

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:closed
  • Created 8 months ago
  • Reactions:20
  • Comments:27 (5 by maintainers)

github_iconTop GitHub Comments

8reactions
jasonsturgescommented, Mar 23, 2023

@mkArtakMSFT Issue seems isolated to Blazor - as @Thepriestdude indicated, MAUI App (without Blazor) functions perfectly.

3reactions
jasonsturgescommented, Feb 26, 2023

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)

objc[5009]: 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 (0x160edf1d8) 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 (0x15c170eb0). One of the two will be used. Which one is undefined.
objc[5009]: 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 (0x160edfef8) 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 (0x15c1710e0). One of the two will be used. Which one is undefined.
2023-02-26 00:55:34.285352-0600 MauiApp1[5009:37390] Microsoft.iOS: Socket error while connecting to IDE on 127.0.0.1:10000: Connection refused
2023-02-26 00:55:35.871038-0600 MauiApp1[5009:37282] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=5009
2023-02-26 00:55:35.873490-0600 MauiApp1[5009:37282] SecTaskCopyDebugDescription: MauiApp1[5009]/0#-1 LF=0
2023-02-26 00:55:35.941774-0600 MauiApp1[5009:37282] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=5009
2023-02-26 00:55:35.942825-0600 MauiApp1[5009:37282] SecTaskCopyDebugDescription: MauiApp1[5009]/0#-1 LF=0
2023-02-26 00:55:35.990692-0600 MauiApp1[5009:37282] [SceneConfiguration] Info.plist contained no UIScene configuration dictionary (looking for configuration named "(no name)")
2023-02-26 00:55:35.991324-0600 MauiApp1[5009:37282] [SceneConfiguration] Info.plist contained no UIScene configuration dictionary (looking for configuration named "(no name)")
2023-02-26 00:55:36.220521-0600 MauiApp1[5009:37389] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=5009
2023-02-26 00:55:36.221216-0600 MauiApp1[5009:37389] SecTaskCopyDebugDescription: MauiApp1[5009]/0#-1 LF=0
2023-02-26 00:55:36.299340-0600 MauiApp1[5009:37282] [unspecified] container_query_get_single_result: error = 2→(98) NOT_CODESIGNED
2023-02-26 00:55:36.299607-0600 MauiApp1[5009:37282] [unspecified] container_system_group_path_for_identifier: error = ((container_error_t)98) NOT_CODESIGNED
2023-02-26 00:55:36.299683-0600 MauiApp1[5009:37282] [MC] Error getting system group container for systemgroup.com.apple.configurationprofiles: 98
2023-02-26 00:55:36.300382-0600 MauiApp1[5009:37282] [MC] Failed to get profile system group container path. Overriding with expected path: /Users/jasonsturges/Library/Developer/CoreSimulator/Devices/9B68E8C6-299A-4110-B892-1B9F1294C068/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2023-02-26 00:55:36.325292-0600 MauiApp1[5009:37453] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=5009
2023-02-26 00:55:36.326071-0600 MauiApp1[5009:37453] SecTaskCopyDebugDescription: MauiApp1[5009]/0#-1 LF=0
2023-02-26 00:55:36.329970-0600 MauiApp1[5009:37282] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=5009
2023-02-26 00:55:36.330421-0600 MauiApp1[5009:37282] SecTaskCopyDebugDescription: MauiApp1[5009]/0#-1 LF=0
2023-02-26 00:55:36.330563-0600 MauiApp1[5009:37282] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=5009
2023-02-26 00:55:36.330975-0600 MauiApp1[5009:37282] SecTaskCopyDebugDescription: MauiApp1[5009]/0#-1 LF=0
2023-02-26 00:55:36.569434-0600 MauiApp1[5009:37282] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=5009
2023-02-26 00:55:36.570354-0600 MauiApp1[5009:37282] SecTaskCopyDebugDescription: MauiApp1[5009]/0#-1 LF=0
2023-02-26 00:55:37.020705-0600 MauiApp1[5009:37282] [Process] 0x17306c100 - [PID=5026] WebProcessProxy::didClose: (web process 0 crash)
2023-02-26 00:55:37.021000-0600 MauiApp1[5009:37282] [Process] 0x17306c100 - [PID=5026] WebProcessProxy::processDidTerminateOrFailedToLaunch: reason=Crash
2023-02-26 00:55:37.021281-0600 MauiApp1[5009:37282] [ProcessSuspension] 0x173020300 - ProcessAssertion: Failed to acquire RBS Background assertion 'ConnectionTerminationWatchdog' for process because PID 0 is invalid
2023-02-26 00:55:37.021585-0600 MauiApp1[5009:37453] [ProcessSuspension] 0x173020300 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'ConnectionTerminationWatchdog' for process with PID=0, error: (null)
2023-02-26 00:55:37.022420-0600 MauiApp1[5009:37282] [Process] 0x7f9e97e10220 - [pageProxyID=7, webPageID=8, PID=5026] WebPageProxy::processDidTerminate: (pid 5026), reason=Crash
2023-02-26 00:55:37.029158-0600 MauiApp1[5009:37282] [Loading] 0x7f9e97e10220 - [pageProxyID=7, webPageID=8, PID=5026] WebPageProxy::dispatchProcessDidTerminate: reason=Crash
2023-02-26 00:55:37.035221-0600 MauiApp1[5009:37282] [ProcessSuspension] ProcessAssertion::remainingRunTimeInSeconds failed to get handle for process with PID=5026
2023-02-26 00:55:37.036302-0600 MauiApp1[5009:37453] [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-26 00:55:37.036395-0600 MauiApp1[5009:37453] [ProcessSuspension] 0x173020420 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'WebProcess Background Assertion' for process with PID=5026, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}
2023-02-26 00:55:37.038813-0600 MauiApp1[5009:37453] [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-26 00:55:37.038928-0600 MauiApp1[5009:37453] [ProcessSuspension] 0x173020540 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'WebProcess Suspended Assertion' for process with PID=5026, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}
2023-02-26 00:56:06.466250-0600 MauiApp1[5009:37282] [ProcessSuspension] 0x7f9e97e5cab0 - TimedActivity::activityTimedOut:
2023-02-26 00:56:07.024220-0600 MauiApp1[5009:37282] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found