[Bug] [iOS] Typeload exception breaks iOS debugger
See original GitHub issueI’m launching this demo on the debugger, and it fails with that error, which I didn’t have the last time I worked with the iOS debugger after installing preview 3. I can’t find a way to get rid of this misleading exception because everything works well on no-debugging mode or when the debugger has exited.
2021-08-12 23:50:50.562266+0200 mauitest[68883:2668356] warning: Can't find custom attr constructor image: data-0x7fbd2f67d000 mtoken: 0x0a000006 due to: Could not resolve type with token 01000008 from typeref (expected class 'System.Drawing.BitmapSuffixInSatelliteAssemblyAttribute' in assembly 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a') assembly:System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a type:System.Drawing.BitmapSuffixInSatelliteAssemblyAttribute member:(null)
**System.TypeLoadException:** 'Could not resolve type with token 01000008 from typeref (expected class 'System.Drawing.BitmapSuffixInSatelliteAssemblyAttribute' in assembly 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a')'
Using VS2022 Preview 3 and XCode 13.0 with Maui Blazor.
Issue Analytics
- State:
- Created 2 years ago
- Comments:9
Top Results From Across the Web
Lost connection to the debugger
After updating Xcode to version 12.5 and using simulator 14.5, I'm getting disconnected all the time from the debugger. Please can someone help...
Read more >Breaking into the debugger on iPhone
For assert macros in my iPhone project, I'm looking for a way to programmatically break into the debugger. On Windows (MSVC++), ...
Read more >Yo Apple: Xcode debugging Swift is *STILL* horribly broken
I've been reporting this problem for a long time now, and it's so bad I ... Yo Apple: Xcode debugging Swift is *STILL*...
Read more >Can't Attach Visual Studio to iOS device
Hello everyone, I've got a problem with iOS managed debugging in VS Community for Mac. I'm using Unity 2018.2.6f1 and Visual Studio ...
Read more >Xamarin iOS debug error "Launch failed. The app directory ...
After upgrading to VS 16.5.2, iOS debugging fails on every attempt for both Simulators and physical devices. Multiple members of my team are ......
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
Same problem here on my MAUI android app. Disabling the XAML Hot Reload works, but error comes back once re enabled.
In my case the fix is to delete the
obj
,debug
and.vs
folders.I filled a bug report to VS bug report site here https://developercommunity.visualstudio.com/t/XAML-Hot-Reload-SystemTypeLoadExcepti/1513744.
I have the same problem on an android device. But I noticed the error goes away when I turn off XAML Hot Reload. Re-enabling hot reload leads to the same error. So for the moment, you can debug your application as long as you don’t use hot reload