abandonware / noble

A Node.js BLE (Bluetooth Low Energy) central module : Community maintained
https://libraries.io/npm/@abandonware%2Fnoble
MIT License
538 stars 162 forks source link

Update mac gyp binding to match setup guide recommendation #320

Closed jeremywho closed 7 months ago

jeremywho commented 8 months ago

I ran into an issue using noble on Mac.

If building an app using Xcode 15, running on older MacOS version (Big Sur and earlier) would cause a crash. Building and running the same code using Xcode 14 worked as expected.

After some investigation, I found some compiler flag recommendations in the node-addon-api setup docs that solve this issue: https://github.com/nodejs/node-addon-api/blob/main/doc/setup.md#installation-and-usage