GregWilson / react-native-apple-healthkit

A React Native bridge module for interacting with Apple HealthKit data
176 stars 42 forks source link

Some identifiers not compatible with version smaller than iOS 9.3 #11

Closed marcelkalveram closed 3 years ago

marcelkalveram commented 7 years ago

I recently found this error where the identifier HKQuantityTypeIdentifierAppleExerciseTime was crashing the app for iOS versions smaller than 9.3+. Removing that from our fork resolved the issue.

I then checked our log and found a few other ones where it complained about non-supported identifiers, however they didn't seem to crash the app. Not sure which ones exactly but here's list of the files it was generating warnings for:

ambarc commented 7 years ago

We ended up commenting out the line in RCTAppleHealthKit/RCTAppleHealthKit+TypesAndPermissions.m and vendoring the lib and *.a file.