I am using Visual studio 2022 building a .net 7 maui project (migrating from Xamarin). I tried to Bind a native library (libWeChatSDK) successfully. (Can call methods or get properties without problem). However when I new its delegate class cause the system instant crash (On physical device, never test on simulator coz it requires installing wechat on physical device).
The Crash point is at code line:
_wechatDelegate = new Platforms.iOS.IosWechatDelegate();
Description
I am using Visual studio 2022 building a .net 7 maui project (migrating from Xamarin). I tried to Bind a native library (libWeChatSDK) successfully. (Can call methods or get properties without problem). However when I new its delegate class cause the system instant crash (On physical device, never test on simulator coz it requires installing wechat on physical device).
The Crash point is at code line:
and I can check the generated code as below:
Steps to Reproduce
1 Create a maui app project 2 Create binding libraray project for Ios 3rd praty SDK (libWechatSDK) 3, put a line
4, Run at physical device (simulator will crash as well) will instantly crash when reach the point above.
Link to public reproduction project repository
none
Version with bug
6.0.312
Last version that worked well
6.0.312
Affected platforms
iOS
Affected platform versions
iOS 15
Did you find any workaround?
NO
Relevant log output