This is the same as #44242, just for Mac Catalyst, we need support for dllmaps. Currently calling `mono_dllmap_insert` asserts: ``` frame #8: 0x000000010004bd37 MyCatalystApp`mono_assertion_message_unreachable(file=<unavailable>, line=<unavailable>) at goutput.c:234:2 [opt] frame #9: 0x0000000100116255 MyCatalystApp`mono_dllmap_insert(assembly=<unavailable>, dll=<unavailable>, func=<unavailable>, tdll=<unavailable>, tfunc=<unavailable>) at native-library.c:278:2 [opt] ``` /cc @akoeplinger
Activity
CoffeeFlux commentedon Feb 10, 2021
Any chance I can convince you to migrate to using
PINVOKE_OVERRIDEinstead? That way the code will work with both Mono and CoreCLR.See dotnet/macios#10504
CoffeeFlux commentedon Feb 10, 2021
This issue is also a variant of #43204
In both cases, using
PINVOKE_OVERRIDEinstead seems like the best solution.rolfbjarne commentedon Feb 11, 2021
I can have a look and see if
PINVOKE_OVERRIDEworks for us.[runtime] Redirect to our objc_msgSend wrapper functions when needed …
[runtime] Redirect to our objc_msgSend wrapper functions when needed …
rolfbjarne commentedon Mar 24, 2021
Using
PINVOKE_OVERRIDEseems to work, so I'm closing this.