kvs-coder / health_kit_reporter

A Flutter wrapper for the HealthKitReporter library
https://pub.dev/packages/health_kit_reporter
MIT License
38 stars 38 forks source link

Cannot run example app #2

Closed spiritinlife closed 3 years ago

spiritinlife commented 4 years ago

Describe the bug Cannot run example app. It breaks with a couple of swift compiler errors. For instance Use of undeclared type 'Harmonized' and Use of undeclared type 'HKElectrocardiogram'

Additional context Tested with flutter 1.20 and 1.22

kvs-coder commented 4 years ago

Thank you for your report. Please specify your environment for iOS, like version, Xcode building tools version, etc.

Please also check, what version of HealthKitReporter (the original CocoaPod library you use). The latest is 1.2.6 https://cocoapods.org/pods/HealthKitReporter . You should see it in your Pods project.

I was not able to reproduce the issue with crashing. Tried to launch from Xcode 12.2 and from IntelliJ 2020.2.

Added an example how to read Electrocardiograms. (HKElectrocardiogram works only with iOS 14 and higher https://github.com/VictorKachalov/health_kit_reporter#requirements)

Please try version 1.0.2. pub.dev

spiritinlife commented 3 years ago

Hey @VictorKachalov thank you for your help.

I am using 1.0.2 but xcode is at 11.5. I am going to update xcode soon, to see if it resolves the issue.

spiritinlife commented 3 years ago

@VictorKachalov Didn't get the chance to download latest xcode, but a colleague of mine managed to execute your example with the latest xcode.

So the issue i see, is related to my environment.