using ObjCRuntime;
using Firebase.Crashlytics;
...
var stackFramePointer = IntPtr_objc_msgSend_UIntPtr(new Class(typeof(StackFrame)).Handle, Selector.GetHandle("stackFrameWithAddress:"), (UIntPtr)address);
var stackFrame = Runtime.GetNSObject<StackFrame>(stackFramePointer);
Calling
Firebase.Crashlytics.StackFrame.Create(nuint address)
causesunrecognized selector
exception.[Export]
attribute has wrong selector parameterstackFrameWithAddress:address
, while it must bestackFrameWithAddress:
.Workaround
You can invoke method directly as described in documentation.
Declare this method somewhere (usually, in class where you use it):
Then use it like this: