有半個月沒有動代碼,今天老板突然說出現(xiàn)奔潰。原來他手機升到10 了。找了半天沒有找到原因。
有遇見相同的可以指教一下,程序直接奔潰到main.m函數(shù)里面的
1,我用了全局?jǐn)帱c也沒有辦法提示問題所在
2,后面捕捉異常,提示
CRASH: -[NSNull hasColorGlyphsInRange:attributes:]: unrecognized selector sent to instance 0x3b38dba0
但是,我代碼里面沒有用到hasColorGlyphsInRange。
求解決哈
2016-10-09 15:05:47.910 xxxxx[481:52585] Stack Trace: (
0? CoreFoundation? ? ? ? ? ? ? ? ? ? ? 0x1eaa9e1f+ 154
1? libobjc.A.dylib? ? ? ? ? ? ? ? ? ? 0x1dd0f077 objc_exception_throw + 38
2? CoreFoundation? ? ? ? ? ? ? ? ? ? ? 0x1eaaf515+ 0
3? CoreFoundation? ? ? ? ? ? ? ? ? ? ? 0x1eaad589+ 700
4? CoreFoundation? ? ? ? ? ? ? ? ? ? ? 0x1e9d2f08 _CF_forwarding_prep_0 + 24
5? UIKit? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 0x23ecacbf+ 1474
6? UIKit? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 0x23ecb437+ 28
7? UIKit? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 0x23de4de3+ 56
8? QuartzCore? ? ? ? ? ? ? ? ? ? ? ? ? 0x21917351+ 144
9? QuartzCore? ? ? ? ? ? ? ? ? ? ? ? ? 0x2190c41b+ 206
10? QuartzCore? ? ? ? ? ? ? ? ? ? ? ? ? 0x2190c487+ 24
11? QuartzCore? ? ? ? ? ? ? ? ? ? ? ? ? 0x2189cf6b+ 370
12? QuartzCore? ? ? ? ? ? ? ? ? ? ? ? ? 0x218bb535+ 564
13? QuartzCore? ? ? ? ? ? ? ? ? ? ? ? ? 0x218bbfd3+ 162
14? CoreFoundation? ? ? ? ? ? ? ? ? ? ? 0x1ea65485+ 20
15? CoreFoundation? ? ? ? ? ? ? ? ? ? ? 0x1ea63701+ 282
16? CoreFoundation? ? ? ? ? ? ? ? ? ? ? 0x1ea63b17+ 934
17? CoreFoundation? ? ? ? ? ? ? ? ? ? ? 0x1e9b3073 CFRunLoopRunSpecific + 486
18? CoreFoundation? ? ? ? ? ? ? ? ? ? ? 0x1e9b2e81 CFRunLoopRunInMode + 104
19? GraphicsServices? ? ? ? ? ? ? ? ? ? 0x2015bbfd GSEventRunModal + 156
20? UIKit? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 0x23b5aacf+ 574
21? UIKit? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 0x23b55201 UIApplicationMain + 150
22? ê∞¥ê??áêé?¥¢áaè? ? ? ? ? ? ? ? ? ? 0x0028a4f5 main + 228
23? libdyld.dylib? ? ? ? ? ? ? ? ? ? ? 0x1e17e50b+ 2
)
后面發(fā)現(xiàn),還是返回值變了。ios9 跟ios10返回值不一樣。出現(xiàn)一個為nil的。表示很尷尬