microsoft / vscode-dotnettools

This is a feedback repository to capture issues logged for the C# Dev Kit and related extensions from Visual Studio Code
Other
207 stars 7 forks source link

[BUG] "dynamic_cast error 2" Can not debug in any iOS-simulator #1209

Open DDHSchmidt opened 2 weeks ago

DDHSchmidt commented 2 weeks ago

Describe the Issue

After the upgrade to the .Net Maui Extension v1.1.6 (pre-release) I am unable to debug my MAUI app in any of the iPhone-/iPad-simulators. They all crash with a message similar to the following: dynamic_cast error 2: One or more of the following type_info's has hidden visibility or is defined in more than one translation unit. They should all have public visibility. N3icu6number4impl20AffixPatternProviderE, N3icu6number4impl30PropertiesAffixPatternProviderE, N3icu6number4impl30PropertiesAffixPatternProviderE.

I am aware of Issue #1087 , but the workaround (Disabling the new VSDbg) does nothing for me. I can't provide sources for this project, but can provide any logs you deem necessary

Steps To Reproduce

  1. Select Maui Device for Debugging (iOS 17.4 simulators)
  2. Start Debugging
  3. Wait for debugger to crash

Expected Behavior

I can start my application in the simulator, with the debugger attached.

Environment Information

OS: macOS sonoma 14.5 VSCode: 1.90.1 .Net Maui Extension: v1.1.6 (pre-release) C# extension: v2.33.17 C# Dev Kit extension: v1.7.27 XCode: 15.3 dotnet: 8.0.301

mauroa commented 2 weeks ago

Is this happening just with your app or with any other app? (new or not new). Thanks for your feedback and help