Issues related to WebAssembly projects

Don't know how to marshal a return value of type 'System.IntPtr'

This issue may happen for Uno.UI 4.4.20 and later when deploying an application using the iOS Simulator or MacCatalyst when the application contains a TextBox.

In order to fix this, add the following to your csproj (Xamarin, net6.0-ios, net6.0-maccatalyst):

<PropertyGroup>
  <MtouchExtraArgs>$(MtouchExtraArgs) --registrar=static</MtouchExtraArgs>
</PropertyGroup>