dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.21k stars 1.75k forks source link

The MAUI Blazor doesn't work on iOS 16.2 arm64 simulator #12124

Closed gdar91 closed 1 year ago

gdar91 commented 1 year ago

Description

After upgrading to iOS 16.2, MAUI Blazor projects started crashing. This applies to devices and simulators.

Steps to Reproduce

  1. Create a new MAUI Blazor project.
  2. Create a simulator device with the new iOS 16.2 OS.
  3. Run the project on the device.
  4. It will display a blank page.

Link to public reproduction project repository

https://github.com/dotnet/maui

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 16.2

Did you find any workaround?

See these comments:

Relevant log output

No response

mkArtakMSFT commented 1 year ago

@gdar91 can you please try this scenario with a MAUI app (not Blazor) and see if that works? Thanks!

ghost commented 1 year ago

Hi @gdar91. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

Shineway02 commented 1 year ago
  1. Create new project and choice .NET MAUI Blazor App 01

  2. Choice .Net 7 02

  3. Run in iPhone14 Plus iOS 16.2 03

  4. Has no "Hello World" 04

`2022-12-16 08:33:37.962221+0800 MauiApp1[21635:318266] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=21635 2022-12-16 08:33:37.963002+0800 MauiApp1[21635:318266] SecTaskCopyDebugDescription: MauiApp1[21635]/0#-1 LF=0 2022-12-16 08:33:38.085610+0800 MauiApp1[21635:317454] [unspecified] container_query_get_single_result: error = 2→(98) NOT_CODESIGNED 2022-12-16 08:33:38.086072+0800 MauiApp1[21635:317454] [unspecified] container_system_group_path_for_identifier: error = ((container_error_t)98) NOT_CODESIGNED 2022-12-16 08:33:38.086140+0800 MauiApp1[21635:317454] [MC] Error getting system group container for systemgroup.com.apple.configurationprofiles: 98 2022-12-16 08:33:38.086962+0800 MauiApp1[21635:317454] [MC] Failed to get profile system group container path. Overriding with expected path: /Users/jianjinyin/Library/Developer/CoreSimulator/Devices/D987C00F-E1C1-4C28-B570-6E615634CECD/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles 2022-12-16 08:33:38.117134+0800 MauiApp1[21635:318269] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=21635 2022-12-16 08:33:38.118086+0800 MauiApp1[21635:318269] SecTaskCopyDebugDescription: MauiApp1[21635]/0#-1 LF=0 2022-12-16 08:33:38.129524+0800 MauiApp1[21635:317454] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=21635 2022-12-16 08:33:38.130305+0800 MauiApp1[21635:317454] SecTaskCopyDebugDescription: MauiApp1[21635]/0#-1 LF=0 2022-12-16 08:33:38.130461+0800 MauiApp1[21635:317454] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=21635 2022-12-16 08:33:38.130895+0800 MauiApp1[21635:317454] SecTaskCopyDebugDescription: MauiApp1[21635]/0#-1 LF=0 2022-12-16 08:33:38.390451+0800 MauiApp1[21635:317454] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=21635 2022-12-16 08:33:38.391292+0800 MauiApp1[21635:317454] SecTaskCopyDebugDescription: MauiApp1[21635]/0#-1 LF=0 Thread started: .NET Timer #5 2022-12-16 08:33:38.972171+0800 MauiApp1[21635:317454] [Process] 0x170068100 - [PID=21686] WebProcessProxy::didClose: (web process 0 crash) 2022-12-16 08:33:38.972477+0800 MauiApp1[21635:317454] [Process] 0x170068100 - [PID=21686] WebProcessProxy::processDidTerminateOrFailedToLaunch: reason=Crash 2022-12-16 08:33:38.972795+0800 MauiApp1[21635:317454] [ProcessSuspension] 0x170020360 - ProcessAssertion: Failed to acquire RBS Background assertion 'ConnectionTerminationWatchdog' for process because PID 0 is invalid 2022-12-16 08:33:38.972908+0800 MauiApp1[21635:318269] [ProcessSuspension] 0x170020360 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'ConnectionTerminationWatchdog' for process with PID=0, error: (null) 2022-12-16 08:33:38.973745+0800 MauiApp1[21635:317454] [Process] 0x7fe0630fd420 - [pageProxyID=7, webPageID=8, PID=21686] WebPageProxy::processDidTerminate: (pid 21686), reason=Crash 2022-12-16 08:33:38.981105+0800 MauiApp1[21635:317454] [Loading] 0x7fe0630fd420 - [pageProxyID=7, webPageID=8, PID=21686] WebPageProxy::dispatchProcessDidTerminate: reason=Crash 2022-12-16 08:33:38.987358+0800 MauiApp1[21635:317454] [ProcessSuspension] ProcessAssertion::remainingRunTimeInSeconds failed to get handle for process with PID=21686 2022-12-16 08:33:38.988458+0800 MauiApp1[21635:318266] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}> 2022-12-16 08:33:38.988538+0800 MauiApp1[21635:318266] [ProcessSuspension] 0x1700203c0 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'WebProcess Background Assertion' for process with PID=21686, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist} 2022-12-16 08:33:38.991056+0800 MauiApp1[21635:318266] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}> 2022-12-16 08:33:38.991159+0800 MauiApp1[21635:318266] [ProcessSuspension] 0x1700204e0 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'WebProcess Suspended Assertion' for process with PID=21686, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist} Thread started: #6 Thread started: .NET ThreadPool Gate #7 Thread started: #8 Loaded assembly: /Users/jianjinyin/Library/Developer/CoreSimulator/Devices/D987C00F-E1C1-4C28-B570-6E615634CECD/data/Containers/Bundle/Application/87249200-8EC9-4AA2-A965-005A48BF7618/MauiApp1.app/System.Xml.XmlSerializer.dll [External] Thread started: #9 Thread started: #10 Thread finished: #10 Thread finished: #6 The thread 0xa has exited with code 0 (0x0). The thread 0x6 has exited with code 0 (0x0). 2022-12-16 08:34:08.282229+0800 MauiApp1[21635:317454] [ProcessSuspension] 0x7fe0629c80b0 - TimedActivity::activityTimedOut: 2022-12-16 08:34:08.975725+0800 MauiApp1[21635:317454] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service

`

drasticactions commented 1 year ago

I think the only way you could test iOS 16.2 is if you're using Xcode 14.2, which was just released and is not supported by the currently shipping iOS SDKs. What version of Xcode are you running?

Shineway02 commented 1 year ago

My Xcode Version 14.2 (14C18)

Murkrow02 commented 1 year ago

I have the same issue, working on every iOS version but not on 16.2, only a blank page is shown :/

MackinnonBuck commented 1 year ago

Thanks for your feedback, @Shineway02 and @Murkrow02.

Could you please check if the issue reproduces on a MAUI project (NOT Blazor) with a normal webview?

ghost commented 1 year ago

Hi @gdar91. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

Murkrow02 commented 1 year ago

Thanks for your feedback, @Shineway02 and @Murkrow02.

Could you please check if the issue reproduces on a MAUI project (NOT Blazor) with a normal webview?

I tried creating a blank MAUI (not blazor) project and added a simple web view. The app is working as expected on iOS 16.2

Screenshot 2022-12-19 alle 18 59 45
Murkrow02 commented 1 year ago

This instead is what happens on 16.2 and 16.0 (running the same application, simple blank starting project for Blazor MAUI)

Screenshot 2022-12-19 alle 19 03 51

This is the full log on iOS 16.2:

xcrun simctl launch --stdout=/dev/ttys000 --stderr=/dev/ttys001 --terminate-running-process 89F0F764-8997-41E7-AB8B-866E61CBBF8D com.companyname.mauicacca -monodevelop-port 10000 com.companyname.mauicacca: 14406 objc[14406]: 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 (0x15ce231d8) 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 (0x15ad6beb0). One of the two will be used. Which one is undefined. objc[14406]: 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 (0x15ce23ef8) 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 (0x15ad6c0e0). One of the two will be used. Which one is undefined. Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/Microsoft.iOS.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Runtime.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Collections.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Runtime.InteropServices.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Threading.Thread.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Threading.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/MauiCacca.dll Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/Microsoft.Maui.Controls.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.ObjectModel.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/Microsoft.Maui.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/Microsoft.AspNetCore.Components.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/Microsoft.Maui.Controls.Xaml.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.ComponentModel.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Private.Uri.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/Microsoft.Maui.Graphics.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Numerics.Vectors.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Xml.ReaderWriter.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Private.Xml.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Memory.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Diagnostics.TraceSource.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Collections.NonGeneric.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Collections.Specialized.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.ComponentModel.Primitives.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Text.RegularExpressions.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Reflection.Emit.ILGeneration.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Collections.Concurrent.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Reflection.Emit.Lightweight.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Reflection.Primitives.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Net.Primitives.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Diagnostics.Tracing.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/Microsoft.Win32.Primitives.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Net.Http.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Net.Security.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Security.Cryptography.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Formats.Asn1.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Text.Encoding.Extensions.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Runtime.Numerics.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Net.Sockets.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Net.NameResolution.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Threading.ThreadPool.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Security.Claims.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Linq.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Diagnostics.DiagnosticSource.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Net.Quic.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.IO.Compression.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.IO.Compression.Brotli.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Threading.Channels.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Net.NetworkInformation.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Reflection.Emit.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Runtime.Loader.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Linq.Expressions.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.ComponentModel.TypeConverter.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Drawing.Primitives.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Runtime.Serialization.Formatters.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Resources.Writer.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Xml.XDocument.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Private.Xml.Linq.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/Microsoft.Extensions.Logging.Abstractions.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/Microsoft.Extensions.DependencyInjection.Abstractions.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/Microsoft.Maui.Essentials.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Console.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/Microsoft.Extensions.Configuration.Abstractions.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/Microsoft.Extensions.Primitives.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/Microsoft.Extensions.Configuration.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/Microsoft.Extensions.Logging.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/Microsoft.Extensions.Options.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/Microsoft.Extensions.DependencyInjection.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/Microsoft.AspNetCore.Components.WebView.Maui.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/Microsoft.AspNetCore.Components.WebView.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/Microsoft.Extensions.FileProviders.Abstractions.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/Microsoft.Extensions.FileSystemGlobbing.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Text.Json.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Text.Encodings.Web.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Runtime.Intrinsics.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/Microsoft.JSInterop.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/Microsoft.AspNetCore.Components.Web.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/Microsoft.AspNetCore.Components.Forms.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.ComponentModel.Annotations.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/Microsoft.Extensions.FileProviders.Embedded.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/Microsoft.Extensions.FileProviders.Composite.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/Microsoft.Extensions.FileProviders.Physical.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.IO.FileSystem.Watcher.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/Microsoft.Extensions.Logging.Debug.dll [External] Resolved pending breakpoint for 'MauiCacca.Program.Main(System.String[])' to /Users/murkrow/Projects/MauiCacca/MauiCacca/Platforms/iOS/Program.cs:10 [0x00000]. Loaded assembly: data-0x7fa84b2cb000 [External] Loaded assembly: data-0x7fa84b2d9000 [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/netstandard.dll [External] Resolved pending breakpoint for 'Xamarin.HotReload.HotReloadAgent.BreakpointSendToIde(System.String)' to /Users/runner/work/1/s/HotReload/Source/Xamarin.HotReload.Agent/HotReloadAgent.cs:423 [0x00000]. Resolved pending breakpoint for 'Xamarin.HotReload.HotReloadAgent.BreakpointCheckpoint()' to /Users/runner/work/1/s/HotReload/Source/Xamarin.HotReload.Agent/HotReloadAgent.cs:418 [0x00000]. 2022-12-19 19:03:24.888582+0100 MauiCacca[14406:400084] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=14406 2022-12-19 19:03:24.893734+0100 MauiCacca[14406:400084] SecTaskCopyDebugDescription: MauiCacca[14406]/0#-1 LF=0 2022-12-19 19:03:25.037344+0100 MauiCacca[14406:400084] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=14406 2022-12-19 19:03:25.038303+0100 MauiCacca[14406:400084] SecTaskCopyDebugDescription: MauiCacca[14406]/0#-1 LF=0 2022-12-19 19:03:25.112068+0100 MauiCacca[14406:400084] [SceneConfiguration] Info.plist contained no UIScene configuration dictionary (looking for configuration named "(no name)") 2022-12-19 19:03:25.112894+0100 MauiCacca[14406:400084] [SceneConfiguration] Info.plist contained no UIScene configuration dictionary (looking for configuration named "(no name)") Thread started: #2 Thread started: #3 Thread started: #4 Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Runtime.Serialization.Json.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Private.DataContractSerialization.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Runtime.Serialization.Xml.dll [External] Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Runtime.Serialization.Primitives.dll [External] 2022-12-19 19:03:25.572147+0100 MauiCacca[14406:400188] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=14406 2022-12-19 19:03:25.572926+0100 MauiCacca[14406:400188] SecTaskCopyDebugDescription: MauiCacca[14406]/0#-1 LF=0 2022-12-19 19:03:25.747418+0100 MauiCacca[14406:400084] [unspecified] container_query_get_single_result: error = 2→(98) NOT_CODESIGNED 2022-12-19 19:03:25.747880+0100 MauiCacca[14406:400084] [unspecified] container_system_group_path_for_identifier: error = ((container_error_t)98) NOT_CODESIGNED 2022-12-19 19:03:25.747968+0100 MauiCacca[14406:400084] [MC] Error getting system group container for systemgroup.com.apple.configurationprofiles: 98 2022-12-19 19:03:25.748927+0100 MauiCacca[14406:400084] [MC] Failed to get profile system group container path. Overriding with expected path: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles 2022-12-19 19:03:25.797888+0100 MauiCacca[14406:400188] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=14406 2022-12-19 19:03:25.798738+0100 MauiCacca[14406:400188] SecTaskCopyDebugDescription: MauiCacca[14406]/0#-1 LF=0 2022-12-19 19:03:25.814609+0100 MauiCacca[14406:400084] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=14406 2022-12-19 19:03:25.815421+0100 MauiCacca[14406:400084] SecTaskCopyDebugDescription: MauiCacca[14406]/0#-1 LF=0 2022-12-19 19:03:25.815577+0100 MauiCacca[14406:400084] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=14406 2022-12-19 19:03:25.816001+0100 MauiCacca[14406:400084] SecTaskCopyDebugDescription: MauiCacca[14406]/0#-1 LF=0 2022-12-19 19:03:26.184602+0100 MauiCacca[14406:400084] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=14406 2022-12-19 19:03:26.185919+0100 MauiCacca[14406:400084] SecTaskCopyDebugDescription: MauiCacca[14406]/0#-1 LF=0 Thread started: .NET Timer #5 2022-12-19 19:03:27.976495+0100 MauiCacca[14406:400084] [Process] 0x17006c100 - [PID=14412] WebProcessProxy::didClose: (web process 0 crash) 2022-12-19 19:03:27.976739+0100 MauiCacca[14406:400084] [Process] 0x17006c100 - [PID=14412] WebProcessProxy::processDidTerminateOrFailedToLaunch: reason=Crash 2022-12-19 19:03:27.977022+0100 MauiCacca[14406:400084] [ProcessSuspension] 0x170020480 - ProcessAssertion: Failed to acquire RBS Background assertion 'ConnectionTerminationWatchdog' for process because PID 0 is invalid 2022-12-19 19:03:27.977129+0100 MauiCacca[14406:400283] [ProcessSuspension] 0x170020480 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'ConnectionTerminationWatchdog' for process with PID=0, error: (null) 2022-12-19 19:03:27.977878+0100 MauiCacca[14406:400084] [Process] 0x7fa84ae07620 - [pageProxyID=7, webPageID=8, PID=14412] WebPageProxy::processDidTerminate: (pid 14412), reason=Crash 2022-12-19 19:03:27.990280+0100 MauiCacca[14406:400084] [Loading] 0x7fa84ae07620 - [pageProxyID=7, webPageID=8, PID=14412] WebPageProxy::dispatchProcessDidTerminate: reason=Crash 2022-12-19 19:03:27.998366+0100 MauiCacca[14406:400084] [ProcessSuspension] ProcessAssertion::remainingRunTimeInSeconds failed to get handle for process with PID=14412 2022-12-19 19:03:27.999274+0100 MauiCacca[14406:400277] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}> 2022-12-19 19:03:27.999369+0100 MauiCacca[14406:400277] [ProcessSuspension] 0x1700205a0 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'WebProcess Background Assertion' for process with PID=14412, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist} 2022-12-19 19:03:28.001847+0100 MauiCacca[14406:400277] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}> 2022-12-19 19:03:28.001929+0100 MauiCacca[14406:400277] [ProcessSuspension] 0x1700206c0 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'WebProcess Suspended Assertion' for process with PID=14412, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist} Thread started: #6 Thread started: .NET ThreadPool Gate #7 Thread started: #8 Loaded assembly: /Users/murkrow/Library/Developer/CoreSimulator/Devices/89F0F764-8997-41E7-AB8B-866E61CBBF8D/data/Containers/Bundle/Application/13C19A62-ED16-4813-A5AE-2EC030780779/MauiCacca.app/System.Xml.XmlSerializer.dll [External] Thread started: #9 Thread finished: #6 2022-12-19 19:03:56.025419+0100 MauiCacca[14406:400084] [ProcessSuspension] 0x7fa84ae08cb0 - TimedActivity::activityTimedOut: 2022-12-19 19:03:57.989011+0100 MauiCacca[14406:400084] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service

Jinjinov commented 1 year ago

I have the same issue. It started when I upgraded macOS to 13.1, Visual Studio for Mac to 17.4.2 and XCode to 14.2

My MAUI Blazor project runs ok on MacCatalyst, but on every iOS 16.2 simulator I only see a blank white screen.

Is there any way I could get it working again?

drasticactions commented 1 year ago

@Jinjinov The current net7.0-ios SDK does not support Xcode 14.2. It would be best if you downgraded back to Xcode 14.1 until it receives support.

This issue could be related to underlying issues within the SDK that needs to be addressed.

mkArtakMSFT commented 1 year ago

@drasticactions do you know of another tracking issue for the SDK issue that you're suspicious of?

ktravelet commented 1 year ago

confirmed that downgrading to 16.1 is working

datvm commented 1 year ago

Also it only affects me on Simulator somehow. Testing on real iPhone works though it sucks because I can no longer use Simulator to take screenshots for the App Store. Will check if downloading lower Simulator image version (without XCode) works.

UPDATE: doesn't work. VS can't see those simulators.

sjbthfc2 commented 1 year ago

Is there an estimation ot ETA of when .NET 7 sdk will work with xCode 14.2?

fzuill commented 1 year ago

Though shows blank UI on iOS 16.2 emulators, app works fine on actual device iPhone 13, iOS 16.3. Using Xcode 14.2, Maui Blazor "hello world" with Maui 7.0.59, .NET 7.0.2, MS.iOS 16.2.1007

Is the problem in the 16.2 simulators and simply need a fix in Xcode to bump and release an Xcode 14.3 with iOS 16.3 simulators? Fred

datvm commented 1 year ago

I am pretty sure the latest VS for Mac works only with XCode 14.2 (I don't know about the Windows connection thing, I could never get it to work for me so I just use VS for Mac).

So here's how it was after I updated to the latest VS for Mac:

So what it means:

Hope these problems can be fixed soon.

hakonn commented 1 year ago

This also makes it impossible to upload apps for review, since the Blazor apps also crashes in the simulator during review. "We were unable to review your app as it crashed on launch."

A fix would be greatly appreciated :-)

datvm commented 1 year ago

Can confirm with @hakonn , now 16.2 simulator simply shows blank screen, while trying to manually install the app through drag-and-drop to older simulators (16.0) would just crash on startup. We have no problem with review though since it runs fine on real devices. It's still an issue that needs to be fixed I believe.

gdar91 commented 1 year ago

They seriously need to review their Xamarin MAUI compilation pipeline and maybe allocate more brainpower for it. Even if they say the GA is there, you can’t depend on it, because when you actually try to use it in production, lots of issues and blockers pop up.

Lazzerman42 commented 1 year ago

why is microsoft so quiet about this? It is a serious bug and we get no information on the progress. Meanwhile they're bashing the drum for hybrid razor on all plattforms. I'm really frustrated - feels like the bad old Xamarin days.

And 5 seconds after I wrote this, I got it working on the 16.0 simulator ... didn't work a couple of days ago.... I did get a new OSX update just 2 days ago, maybe that fixed something!

rolfbjarne commented 1 year ago

Can anyone reproduce this on an intel machine, or does it only happen on M1/M2 macs?

datvm commented 1 year ago

Pretty sure that changed by the recent Visual Studio 2022 for Mac v17.4.5 (VS2022 on Windows has a similar update):

Added support for Xcode 14.2 for Xamarin.iOS and Xamarin.Mac.

I haven't tried the update on my Mac yet (someone mentioned Intel vs M1/M2 Macs, I only have a M2 Mac) but last time I tried, my previous comment was still correct.

Update: after updating VS for Mac to the latest version, I can manually install the Debug build on Simulator 16.0 and run apps without crashing.

Murkrow02 commented 1 year ago

Can anyone reproduce this on an intel machine, or does it only happen on M1/M2 macs?

I can confirm it's only a M1/M2 bug, working fine on my Intel machine. Still an issue if Apple reviewers use Apple silicon (very likely)

rolfbjarne commented 1 year ago

Still an issue if Apple reviewers use Apple silicon (very likely)

AFAIK reviewers use actual devices, and this issue only happens in the simulator.

Does the problem still occur when using iossimulator-arm64 as the RuntimeIdentifier? i.e. add something like this to the csproj:

<PropertyGroup>
    <RuntimeIdentifier>iossimulator-arm64</RuntimeIdentifier>
</PropertyGroup>
datvm commented 1 year ago

Can confirm, we have many iOS apps successfully published and passed reviews without any issue (no RuntimeIdentifier needed). I simply set the Profile in Bundle Signing (in project property dialog).

Annny-Cap-Daniel commented 1 year ago

@rolfbjarne

Does the problem still occur when using iossimulator-arm64 as the RuntimeIdentifier? i.e. add something like this to the csproj:

<PropertyGroup>
    <RuntimeIdentifier>iossimulator-arm64</RuntimeIdentifier>
</PropertyGroup>

If the RuntimeIdentifier is set to iossimulator-arm64, I get the following error:

Xamarin.Shared.Sdk.targets(1225, 3): clang++ exited with code 1:
ld: in /Users/username/Projects/MauiProject/obj/Debug/net7.0-ios/iossimulator-arm64/linker-cache/e_sqlite3.a(sqlite3.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/username/Projects/MauiProject/obj/Debug/net7.0-ios/iossimulator-arm64/linker-cache/e_sqlite3.a'
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I really hope this issue gets resolved soon. Apple already released Xcode 14.3 beta and MAUI doesn't even support 14.2 correctly, which was released over two months ago.

rolfbjarne commented 1 year ago

@rolfbjarne

Does the problem still occur when using iossimulator-arm64 as the RuntimeIdentifier? i.e. add something like this to the csproj:

<PropertyGroup>
    <RuntimeIdentifier>iossimulator-arm64</RuntimeIdentifier>
</PropertyGroup>

If the RuntimeIdentifier is set to iossimulator-arm64, I get the following error:

Xamarin.Shared.Sdk.targets(1225, 3): clang++ exited with code 1:
ld: in /Users/username/Projects/MauiProject/obj/Debug/net7.0-ios/iossimulator-arm64/linker-cache/e_sqlite3.a(sqlite3.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/username/Projects/MauiProject/obj/Debug/net7.0-ios/iossimulator-arm64/linker-cache/e_sqlite3.a'
clang: error: linker command failed with exit code 1 (use -v to see invocation)

It seems you're using a third-party native library that doesn't support arm64 in the simulator.

I really hope this issue gets resolved soon. Apple already released Xcode 14.3 beta and MAUI doesn't even support 14.2 correctly, which was released over two months ago.

This is a bit complicated to investigate, because Apple's web view rendering is remoted into a different process, and the problem is that this other process crashes. I wouldn't be surprised if this turns out to be a bug in the iOS simulator, because realistically nothing we do should be able to crash this other rendering process.

rolfbjarne commented 1 year ago

Still an issue if Apple reviewers use Apple silicon (very likely)

AFAIK reviewers use actual devices, and this issue only happens in the simulator.

Does the problem still occur when using iossimulator-arm64 as the RuntimeIdentifier? i.e. add something like this to the csproj:

<PropertyGroup>
    <RuntimeIdentifier>iossimulator-arm64</RuntimeIdentifier>
</PropertyGroup>

We've tested this a bit, and it seems that this is the solution.

At some point we'll change the default to build for iossimulator-arm64 when using an ARM64 Mac, but this won't be until .NET 8 at least (it's a rather major change, and it also means a lot of third-party libraries need to add support for iossimulator-arm64 as well - as evidenced by this previous comment).

In the meantime it's possible to add this yourself to the project file.

baddinosaur-kyle commented 1 year ago

I can confirm this fixed it for us.

rolfbjarne commented 1 year ago

Here is a solution that handles a few more scenarios (from https://github.com/xamarin/xamarin-macios/issues/17841#issuecomment-1480439593).

Add this to the csproj:

<PropertyGroup>
  <_OSArchitecture>$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)</_OSArchitecture>
  <_TargetPlatformIdentifier>$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)'))</_TargetPlatformIdentifier>
  <RuntimeIdentifier Condition="'$(_TargetPlatformIdentifier)' == 'ios' And '$(_OSArchitecture)' == 'Arm64' And ('$(_iOSRuntimeIdentifier)' == 'iossimulator-x64' Or ('$(_iOSRuntimeIdentifier)' == '' And '$(RuntimeIdentifier)' == ''))">iossimulator-arm64</RuntimeIdentifier>
</PropertyGroup>
Annny-Cap-Daniel commented 1 year ago

Unfortunately, this still didn't fix it for us.

It fails with the following error:

Xamarin.Shared.Sdk.targets(1225, 3): clang++ exited with code 1:
ld: in /Users/username/Projects/MauiProject/obj/Debug/net7.0-ios/iossimulator-arm64/linker-cache/e_sqlite3.a(sqlite3.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/username/Projects/MauiProject/obj/Debug/net7.0-ios/iossimulator-arm64/linker-cache/e_sqlite3.a'
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Any idea why this happens?

MaxwellDAssistek commented 1 year ago

Neither of the workarounds above work for me. I have a slightly unconventional scenario where the blazor webview is in a separate MAUI class library. I tried adding both <RuntimeIdentifier>iossimulator-arm64</RuntimeIdentifier> and the other workaround to both the class library and the main project file with no luck.

Here is the log of the simulator: https://pastebin.com/raw/07wuQiBE

This is very annoying to deal with because I am forced to downgrade to .net 7.0.100 and ios workload 16.1 to be able to still use Xcode 16.1

TranNguyen17893 commented 1 year ago

This is very annoying to deal with because I am forced to downgrade to .net 7.0.100 and ios workload 16.1 to be able to still use Xcode 16.1

Did you try to use the old iOS 16.1 simulator on Xcode 14.2 (iOS 16.2)?

Edit: In my case, it works. I'm using the latest VS Version 17.5.3 Don't need to downgrade VS neither Xcode to use the simulator. image

KSemenenko commented 1 year ago
<PropertyGroup>
    <RuntimeIdentifier>iossimulator-arm64</RuntimeIdentifier>
</PropertyGroup>

this is works fine, xcode 14.2

rolfbjarne commented 1 year ago

Unfortunately, this still didn't fix it for us.

It fails with the following error:

Xamarin.Shared.Sdk.targets(1225, 3): clang++ exited with code 1:
ld: in /Users/username/Projects/MauiProject/obj/Debug/net7.0-ios/iossimulator-arm64/linker-cache/e_sqlite3.a(sqlite3.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/username/Projects/MauiProject/obj/Debug/net7.0-ios/iossimulator-arm64/linker-cache/e_sqlite3.a'
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Any idea why this happens?

My guess is that the native sqlite library you're using doesn't contain an arm64 version for the simulator (it's trying to link in an arm64 version for device, which won't work).

You'll need an updated version of the sqlite library.

mathewgrabau commented 1 year ago

The RuntimeIdentifier workaround worked for me. I am glad that the workaround provided a path forward, but it still leaves me feeling that MAUI is in chaos right now.

foximoxi commented 1 year ago

The problem with this issue is that Apple is using arm64 simulators and does not want to validate working application. Maintenance of any multiplatform application on MAUI is really difficult. I can update MAUI for Android and cannot for iOS because of this.

steinbachio commented 1 year ago

@foximoxi I got it through the verification process by stating in the test notes that they should test it on intel simulators or real hardware and referencing this issue.

hartez commented 1 year ago

Because we have a workaround for this issue (adding the RID), I'm going to close this. There's an issue open to track changing the default, if you are interested in following that progress.

Feel free to comment here or create a new issue if you think we've missed something.