遇到如此错误该如何下手?

错误代码如下,非日常开发获取到的,这类bug隐藏很深。

                  Application received signal SIGSEGV
(null)
(	0   CoreFoundation                      0x33e2c2bb <redacted> + 186
	1   libobjc.A.dylib                     0x34cea97f objc_exception_throw + 30
	2   CoreFoundation                      0x33e2c1c5 <redacted> + 0
	3   shoot                               0x000e4659 shoot + 890457
	4   libsystem_c.dylib                   0x3648ce8b _sigtramp + 34
	5   shoot                               0x0008e7a9 shoot + 538537
	6   UIKit                               0x3b6599c5 <redacted> + 1308
	7   UIKit                               0x3b65949f <redacted> + 274
	8   UIKit                               0x3b5efab3 <redacted> + 158
	9   UIKit                               0x3b6648cf <redacted> + 50
	10  QuartzCore                          0x3ac1abd9 <redacted> + 208
	11  libdispatch.dylib                   0x3641b4b7 <redacted> + 22
	12  libdispatch.dylib                   0x3641cdcb <redacted> + 226
	13  CoreFoundation                      0x33dfff3b <redacted> + 1290
	14  CoreFoundation                      0x33d72ebd CFRunLoopRunSpecific + 356
	15  CoreFoundation                      0x33d72d49 CFRunLoopRunInMode + 104
	16  GraphicsServices                    0x3bb702eb GSEventRunModal + 74
	17  UIKit                               0x3b62e2f9 UIApplicationMain + 1120
	18  shoot                               0x0000db97 shoot + 11159
	19  shoot                               0x0000db50 shoot + 11088)


慕斯王
浏览 115回答 1
1回答

慕斯709654

这错误列表,debug 断点,首先你add exception breakpoint,加入断点调试,可以找到代码发生错误的位置。然后信号的类型就两种:1,SIGABRT 2,EXC_BAD_ACCESS(SIGSEGV)要么就是过度release 要么就是unrecogized selector。
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

iOS