-
-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash on iPhone 5S ios 12 #37
Comments
Hi @VictorKachalov I'm also experiencing this issue with iPhone 5S iOS 12.4. The app crashes in release mode and is frozen in debug. |
I have the same issue. |
This no longer works. @VictorKachalov Any updates on when this will be fixed? |
Does it also happen for you, if you use the native lib https://github.com/VictorKachalov/HealthKitReporter ? |
Hi all, does it happen now in the 2.1.0 version? Unfortunately I don't have any iOS 12 device by hand. The availability macro was in the wrong place |
Hi @VictorKachalov Even if health_kit_reporter was set to 2.1.0, an error occurred at runtime and it could not be started. (iOS 12.4.1)
In the main project, HealthKit.framework is linked as Optional, but when I added HealthKit.framework as Optional to HealthKitReporter on the Pods side, I was able to start it even on "iOS 12.4.1". Can't it be solved by adding the following to HealthKitReporter.podspec of HealthKitReporter? spec.weak_frameworks = 'HealthKit' |
If you add it directly with Xcode, it will be reset every time you start it via Flutter, so I added the following to the project's ios/Podfile to make a temporary workaround. post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
+
+ if target.name == 'HealthKitReporter'
+ # Add HealthKit.framework with Weak attribute.
+ ref_healthkit = target.project.frameworks_group.new_reference('HealthKit.framework')
+ ref_healthkit.source_tree = 'SDKROOT'
+
+ ref_build_phases_healthkit = target.frameworks_build_phases.add_file_reference(ref_healthkit)
+ ref_build_phases_healthkit.settings = { 'ATTRIBUTES' => ['Weak'] }
+ end
end
end |
dyld: Symbol not found: _OBJC_CLASS_$_HKElectrocardiogramQuery Referenced from: /private/var/containers/Bundle/Application/943403A9-5FAB-401D-B053-3DA33B6223C0/Runner.app/Frameworks/HealthKitReporter.framework/HealthKitReporter Expected in: /System/Library/Frameworks/HealthKit.framework/HealthKit in /private/var/containers/Bundle/Application/943403A9-5FAB-401D-B053-3DA33B6223C0/Runner.app/Frameworks/HealthKitReporter.framework/HealthKitReporter (lldb)
I got an error when i pulled example from your repository on the master branch.
Could you fix this issue?
The text was updated successfully, but these errors were encountered: