iOS app with Bluetooth Keyboard

I’m building an iOS app that tries to take input from a Bluetooth keyboard, but I’m running into this error/termination as soon as the first keyboard click is received:

2020-05-07 22:42:58.307372-0700 EchoJamKeyMouse[990:157125] [general] Connection to daemon was invalidated
2020-05-07 22:43:10.013282-0700 EchoJamKeyMouse[990:156887] Can't end BackgroundTask: no background task exists with identifier 2 (0x2), or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug.
2020-05-07 22:43:10.028371-0700 EchoJamKeyMouse[990:156887] [ApplicationLifecycle] UIWindows were created prior to initial application activation. This may result in incorrect visual appearance.
2020-05-07 22:43:10.037963-0700 EchoJamKeyMouse[990:157125] -[_UIRemoteKeyboards proxy]_block_invoke Failed to access remote service: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named was invalidated from this process." UserInfo={NSDebugDescription=The connection to service on pid 0 named was invalidated from this process.}

My research indicated that it may be a permissions issue, so I added the property to the application’s info.plist:

RequestsOpenAccess = Yes

However, I continue to have the same issue (i.e. app terminates) but without the above error.

Has anyone come across this, or related challenges in getting USB input into an iOS ofx app?

Thank you!