- SDK 8.1.0
- Apple M1 Max
- macOS 14.5
I don't know exactly where it crashes, except it's somewhere after the following line:
//! Register the bluetooth profile public function registerProfiles() as Void { System.println("before"); // added for debugging BluetoothLowEnergy.registerProfile(_envProfileDef); // <========== this line does *not* crash System.println("after"); // added for debugging }
Both "before" and "after" are printed to the console. So I don't think it's exactly the same as this previously reported bug: https://forums.garmin.com/developer/connect-iq/i/bug-reports/bluetoothlowenergy-registerprofile-crashes-simulator-with-segmentation-fault-on-mac-m1-max
I am guessing it does have something to do with BLE tho. The app does run for a few seconds before it crashes, so it might have something to do with gathering scan results.