polarofficial / polar-ble-sdk

Repository includes SDK and code examples. More info https://polar.com/en/developers
Other
488 stars 155 forks source link

fix build issue on Mac Catalyst #485

Open lukaskollmer opened 2 months ago

lukaskollmer commented 2 months ago

When compiling the iOS SDK as part of a Mac Catalyst app, the selector int32Value is ambiguous, because it's defined both by NSNumber as well as NSAppleEventDescriptor (which isn't available on iOS, hence why everything works fine when compiling for that).

This PR fixes this issue, thereby adding the ability for Mac Catalyst applications to use the SDK and connect to polar devices.

(We know that the NSNumber cast is fine, bc we only ever add NSNumber instances to the array...)