bkonyi / FlutterGeofencing

Rough work for Flutter geofencing plugin
BSD 3-Clause "New" or "Revised" License
337 stars 219 forks source link

Library Crashing when running in iOS #50

Open toniree opened 4 years ago

toniree commented 4 years ago

Hi, I've hooked this library up to my Flutter iOS application, but trying to run the app on my iPhone is crashing with this message:

Launching lib/main.dart on iPhone 8 in debug mode...
Running Xcode build...
Xcode build done.                                           25.9s
*** First throw call stack:
(
    0   CoreFoundation                      0x00007fff23e3cf0e __exceptionPreprocess + 350
    1   libobjc.A.dylib                     0x00007fff50ba89b2 objc_exception_throw + 48
    2   CoreFoundation                      0x00007fff23e3cc88 +[NSException raise:format:arguments:] + 88
    3   Foundation                          0x00007fff258b8bd2 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 191
    4   CoreLocation                        0x00007fff24a1c99b CLClientStopVehicleHeadingUpdates + 27143
    5   geofencing                          0x000000010598efb7 -[GeofencingPlugin init:] + 631
    6   geofencing                          0x000000010598d8d8 +[GeofencingPlugin registerWithRegistrar:] + 120
    7   Runner                              0x00000001036afaa8<…>

Is the FlutterGeofencing library still supported with the latest Flutter versions? Or is the message above tied to common mistakes in implementing this library? The above pops up when trying to run on an iPhone emulator. When trying to run on a physical iPhone, the above message does not pop up, rather, the app launches and crashes immediately with no message or exception.

Things run fine when I run the app with FlutterGeofencing detached and not used, so I know it's the library that is causing the failures.

elouiestudent commented 4 years ago

Check issue #28