intuit/LocationManager

Crash on Simulator

magnusottosson opened this issue · 2 comments

Hi,

It crashes for me on the simulator but works fine on device. Stacktrace:

2017-10-19 16:12:46.452232+0200 SomeAppName[20831:656630] INTULocationManager: Changing location services accuracy level to: medium.
2017-10-19 16:12:46.457386+0200 SomeAppName[20831:656630] -[INTULocationManager locationManager:didUpdateToLocation:fromLocation:]: unrecognized selector sent to instance 0x60000007e780
2017-10-19 16:12:46.470588+0200 SomeAppName[20831:656630] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[INTULocationManager locationManager:didUpdateToLocation:fromLocation:]: unrecognized selector sent to instance 0x60000007e780'
*** First throw call stack:
(
	0   CoreFoundation                      0x0000000113cdd1cb __exceptionPreprocess + 171
	1   libobjc.A.dylib                     0x00000001131f1f41 objc_exception_throw + 48
	2   CoreFoundation                      0x0000000113d5d914 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
	3   CoreFoundation                      0x0000000113c5fed8 ___forwarding___ + 760
	4   CoreFoundation                      0x0000000113c5fb58 _CF_forwarding_prep_0 + 120
	5   SomeAppName                       0x000000010ea017fe -[CLLocationManager(Simulator) startUpdatingLocation] + 142
	6   INTULocationManager                 0x000000010f1ab424 -[INTULocationManager startUpdatingLocationIfNeeded] + 164
	7   INTULocationManager                 0x000000010f1aa0a9 -[INTULocationManager addLocationRequest:] + 937
	8   INTULocationManager                 0x000000010f1a8e1c -[INTULocationManager subscribeToLocationUpdatesWithDesiredAccuracy:block:] + 460
	9   SomeAppName                       0x000000010e9c6297 -[LocationManager init] + 199
	10  SomeAppName                       0x000000010e9c6162 __27+[LocationManager instance]_block_invoke + 50
	11  libdispatch.dylib                   0x000000011424e43c _dispatch_client_callout + 8
	12  libdispatch.dylib                   0x000000011424f9c7 dispatch_once_f + 297
	13  SomeAppName                       0x000000010e9c6105 +[LocationManager instance] + 117
	14  SomeAppName                       0x000000010e9bcf4f -[TheWeatherMapAppDelegate application:didFinishLaunchingWithOptions:] + 207
	15  UIKit                               0x000000010f4b2866 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 267
	16  UIKit                               0x000000010f4b42c3 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4105
	17  UIKit                               0x000000010f4b9751 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1720
	18  UIKit                               0x000000010f87ee00 __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 924
	19  UIKit                               0x000000010fc51840 +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 153
	20  UIKit                               0x000000010f87e9f9 -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 249
	21  UIKit                               0x000000010f87f257 -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 668
	22  UIKit                               0x00000001101f2dd9 __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 262
	23  UIKit                               0x00000001101f2c92 -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 444
	24  UIKit                               0x000000010fed487e __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 420
	25  UIKit                               0x00000001100d1e8e _performActionsWithDelayForTransitionContext + 100
	26  UIKit                               0x000000010fed467a -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 231
	27  UIKit                               0x000000010fc50e9d -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 392
	28  UIKit                               0x000000010f4b7fd2 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 523
	29  UIKit                               0x000000010fa8c89b -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 369
	30  FrontBoardServices                  0x00000001180431b4 -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 338
	31  FrontBoardServices                  0x000000011804bca9 __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 235
	32  libdispatch.dylib                   0x000000011424e43c _dispatch_client_callout + 8
	33  libdispatch.dylib                   0x0000000114253af4 _dispatch_block_invoke_direct + 592
	34  FrontBoardServices                  0x00000001180776ce __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
	35  FrontBoardServices                  0x0000000118077384 -[FBSSerialQueue _performNext] + 464
	36  FrontBoardServices                  0x00000001180778f3 -[FBSSerialQueue _performNextFromRunLoopSource] + 45
	37  CoreFoundation                      0x0000000113c802b1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
	38  CoreFoundation                      0x0000000113d1fd31 __CFRunLoopDoSource0 + 81
	39  CoreFoundation                      0x0000000113c64c19 __CFRunLoopDoSources0 + 185
	40  CoreFoundation                      0x0000000113c641ff __CFRunLoopRun + 1279
	41  CoreFoundation                      0x0000000113c63a89 CFRunLoopRunSpecific + 409
	42  GraphicsServices                    0x000000011614c9c6 GSEventRunModal + 62
	43  UIKit                               0x000000010f4bb23c UIApplicationMain + 159
	44  SomeAppName                       0x000000010e9bce54 main + 100
	45  libdyld.dylib                       0x00000001142cad81 start + 1
	46  ???                                 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

I suspect I've fixed this already with master. Feel free to try that, I'm hoping to release it soon.

Thanks. works now.