Debugging low-level issues

What’s your recommended toolset for debugging a plugin that crashes at launch on iOS without even being used yet? I’ve checked that it’s a certain plugin that causes the crash and also that my code never runs.

Preferably I should not have to build for the XCode Simulator. I tried Appetize.io, but it also requires a Simulator build. Test (and log) on a device somehow?

Is there a way to force an application to show low-level errors on a device instead of just crashing?

Thanks in advance.

1 Like

The plugin in question: com.unarin.cordova.beacon
This also fails (fork): @dieter.konrad/com.unarin.cordova.beacon

It runs fine on iPhone 6 with iOS 12.5.5, but not on iPhone 7 or later with iOS 15.0.1. Generic BLE apps work fine, so it’s likely specifically related to using the support for iBeacon in Core Location.

I’m in contact with the main author to see if he can help.

The problem has been solved. See here for description: [Solved] The app crashes (don't start) in iOS 13.2.2 · Issue #431 · petermetz/cordova-plugin-ibeacon · GitHub

So the following will fix the problem:

    <edit-config file="*-Info.plist" target="NSBluetoothAlwaysUsageDescription" mode="merge">
        <string>The app needs access to Bluetooth.</string>
    </edit-config>

Glad you found a solution.