在友盟上,出现了一个这样的bug,如下
*** -[NSKeyedUnarchiver initForReadingWithData:]: incomprehensible archive (0x62, 0x70, 0x6c, 0x69, 0x73, 0x74, 0x30, 0x30)
(null)
((
0 CoreFoundation 0x00000001850d70b8 + 160
1 libobjc.A.dylib 0x0000000190ff1d78 objc_exception_throw + 60
2 CoreFoundation 0x00000001850d6fdc + 0
3 Foundation 0x0000000185bc77d8 + 2896
4 Foundation 0x0000000185c2ad4c + 140
5 U17_3.0_tongbutui 0x100202b5c U17_3.0_tongbutui + 2108252
6 U17_3.0_tongbutui 0x1000d0f34 U17_3.0_tongbutui + 855860
7 U17_3.0_tongbutui 0x1000ccc04 U17_3.0_tongbutui + 838660
8 UIKit 0x0000000187faabec + 576
9 UIKit 0x0000000188064524 + 64
10 UIKit 0x0000000188064420 + 248
11 UIKit 0x00000001880638f4 + 112
12 UIKit 0x0000000188063594 + 636
13 UIKit 0x00000001880632b8 + 56
14 UIKit 0x0000000188063238 + 200
15 UIKit 0x0000000187fa56b8 + 348
16 QuartzCore 0x0000000187ba367c + 184
17 QuartzCore 0x0000000187b9e244 + 300
18 QuartzCore 0x0000000187b9e0fc + 32
19 QuartzCore 0x0000000187b9d984 + 280
20 QuartzCore 0x0000000187b9d728 + 424
21 UIKit 0x000000018803111c + 56
22 UIKit 0x0000000188019d1c + 1852
23 UIKit 0x0000000187fabe5c + 3336
24 UIKit 0x0000000187fab04c + 104
25 UIKit 0x0000000188018ff4 + 712
26 GraphicsServices 0x000000018a9f9128 + 676
27 GraphicsServices 0x000000018a9f8c54 + 48
28 CoreFoundation 0x0000000185096fc8 + 56
29 CoreFoundation 0x0000000185096f28 + 444
30 CoreFoundation 0x000000018509514c + 1620
31 CoreFoundation 0x0000000184fd5b78 CFRunLoopRunSpecific + 452
32 UIKit 0x0000000188018218 + 784
33 UIKit 0x000000018801305c UIApplicationMain + 1156
34 U17_3.0_tongbutui 0x1000f77b4 U17_3.0_tongbutui + 1013684
35 libdyld.dylib 0x00000001915dbaa0 + 4
)
dSYM UUID: 2FAC90D8-840D-3542-A98C-F08E409887BB
CPU Type: arm64
Slide Address: 0x0000000100000000
Binary Image: U17_3.0_tongbutui
Base Address: 0x000000010009c000
显示错误出在了这一行
我目前的想法是用@try@carsh包住这段代码,请问有什么更好的解决方案吗
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
if (path.lenth > 0) {
}