jicang / healywatch_reactive

ff
0 stars 3 forks source link

Should not connect to Healy Watch App on iOS #3

Closed aBuder closed 2 years ago

aBuder commented 3 years ago

I start to search and connect to the Healy Watch device, I get the following error:

Environment

os: iOS 14.7.1 device: iPhone 12 Mini Flutter: 2.5.2

Video

https://user-images.githubusercontent.com/1265139/137714629-94732604-4e51-42dc-9566-faf7d37f410e.MP4

Logs


The plugin `flutter_nordic_dfu` uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.
Launching lib/main.dart on iPhone von Alexander in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: CE5WFJZUPT
Running Xcode build...
Xcode build done.                                            9,7s
Installing and launching...
[VERBOSE-2:FlutterObservatoryPublisher.mm(101)] Failed to register observatory port with mDNS with error -65555.
[VERBOSE-2:FlutterObservatoryPublisher.mm(103)] On iOS 14+, local network broadcast in apps need to be declared in the app's Info.plist. Debug and profile Flutter apps and modules host VM services on the local network to support debugging features such as hot reload and DevTools. To make your Flutter app or module attachable and debuggable, add a '_dartobservatory._tcp' value to the 'NSBonjourServices' key in your Info.plist for the Debug/Profile configurations. For more information, see https://flutter.dev/docs/development/add-to-app/ios/project-setup#local-network-privacy-permissions
[VERBOSE-2:FlutterObservatoryPublisher.mm(101)] Failed to register observatory port with mDNS with error -65555.
[VERBOSE-2:FlutterObservatoryPublisher.mm(103)] On iOS 14+, local network broadcast in apps need to be declared in the app's Info.plist. Debug and profile Flutter apps and modules host VM services on the local network to support debugging features such as hot reload and DevTools. To make your Flutter app or module attachable and debuggable, add a '_dartobservatory._tcp' value to the 'NSBonjourServices' key in your Info.plist for the Debug/Profile configurations. For more information, see https://flutter.dev/docs/development/add-to-app/ios/project-setup#local-network-privacy-permissions
Debug service listening on ws://127.0.0.1:59900/idFHgyPC-EQ=/ws
Syncing files to device iPhone von Alexander...
flutter: Start ble discovery
flutter: /var/mobile/Containers/Data/Application/0E05982D-DC96-422E-ACE2-26CC6CAB3ED3/Documents Directory: '/var/mobile/Containers/Data/Application/0E05982D-DC96-422E-ACE2-26CC6CAB3ED3/Library/Application Support'
flutter: Start connecting to 746646F4-8D14-0E0F-16F8-96DE5C90F8EA
flutter: ConnectionState for device 746646F4-8D14-0E0F-16F8-96DE5C90F8EA : DeviceConnectionState.connecting
flutter: enableNotification DeviceConnectionState.connecting
flutter: Start connecting to 746646F4-8D14-0E0F-16F8-96DE5C90F8EA
reactive_ble_mobile/ConnectTaskController.swift:16: Assertion failed
reactive_ble_mobile/ConnectTaskController.swift:16: Assertion failed
* thread #1, queue = 'com.apple.main-thread', stop reason = Assertion failed
    frame #0: 0x00000001a0a76eac libswiftCore.dylib`_swift_runtime_on_report
libswiftCore.dylib`_swift_runtime_on_report:
->  0x1a0a76eac <+0>: ret    
libswiftCore.dylib`_swift_reportToDebugger:
    0x1a0a76eb0 <+0>: b      0x1a0a76eac               ; _swift_runtime_on_report
libswiftCore.dylib`_swift_shouldReportFatalErrorsToDebugger:
    0x1a0a76eb4 <+0>: adrp   x8, 337372
    0x1a0a76eb8 <+4>: ldrb   w0, [x8, #0x299]
Target 0: (Runner) stopped.
Lost connection to device.

Maybe Solution

https://github.com/PhilipsHue/flutter_reactive_ble/issues/250