Skip to content

Maui AOT Support #231

@pshoey

Description

@pshoey

When building an AOT configured iOS Release build with full trimming, receive this error performing firmware installation.

ObjCRuntime.RuntimeException: Can't register the class McuMgrBindingsiOS.IOSFirmwareInstaller when the dynamic registrar has been linked away.
at ObjCRuntime.Class.GetClassHandle(Type, Boolean, Boolean&) + 0x1b4
at Foundation.NSObject.AllocIfNeeded() + 0x54
at McuMgrBindingsiOS.IOSFirmwareInstaller..ctor(CBPeripheral, IOSListenerForFirmwareInstaller) + 0x28
at Laerdal.McuMgr.FirmwareInstallation.FirmwareInstaller.IOSNativeFirmwareInstallerProxy..ctor(CBPeripheral bluetoothDevice, INativeFirmwareInstallerCallbacksProxy nativeFirmwareInstallerCallbacksProxy) + 0x48
at Laerdal.McuMgr.FirmwareInstallation.FirmwareInstaller.ValidateArgumentsAndConstructProxy(CBPeripheral bluetoothDevice) + 0x44

Is this a limitation of the underlying nRF libraries or something fixable in the Laerdal.McuMgr library?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions