如何修复此崩溃 - 映射位置更新

时间:2014-10-19 12:50:51

标签: ios objective-c core-location

当应用程序处于活动状态并且在NSUserdefaults中保存经度和纬度时,我正在获取位置,有时会崩溃 -

编辑 - 这是来自Crashlytics报道 - 任何人现在都可以提供帮助吗?

Crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x00000001
 raw
0
libobjc.A.dylib 
objc_retain + 17
1
TestApp 
IBGSession.m line 339
-[IBGSession getViewHierarchy:fromParent:withMaxDepth:]
2
TestApp 
IBGSession.m line 320
-[IBGSession getViewHierarchy:fromParent:]
3
TestApp 
IBGSession.m line 256
-[IBGSession addAction:to:from:]
4
TestApp 
IBGSession.m line 39
-[UIApplication(IBGApplication) IBGSendAction:to:from:forEvent:]
5
UIKit   
-[UIApplication sendAction:toTarget:fromSender:forEvent:] + 38
6
UIKit   
-[UIControl sendAction:to:forEvent:] + 46
7
UIKit   
-[UIControl _sendActionsForEvents:withEvent:] + 374
8
UIKit   
-[UIControl touchesEnded:withEvent:] + 594
9
UIKit   
_UIGestureRecognizerUpdate + 5528
10   CoreFoundation 
__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 20
16   UIKit  
UIApplicationMain + 1136
17
TestApp 
main.m line 16
main

0 个答案:

没有答案