iOS中归档和解档的问题
PHP中文网
PHP中文网 2017-04-18 09:20:33
0
1
335

在友盟上,出现了一个这样的bug,如下

*** -[NSKeyedUnarchiver initForReadingWithData:]: incomprehensible archive (0x62, 0x70, 0x6c, 0x69, 0x73, 0x74, 0x30, 0x30)
(null)
((
    0   CoreFoundation                      0x00000001850d70b8 <redacted> + 160
    1   libobjc.A.dylib                     0x0000000190ff1d78 objc_exception_throw + 60
    2   CoreFoundation                      0x00000001850d6fdc <redacted> + 0
    3   Foundation                          0x0000000185bc77d8 <redacted> + 2896
    4   Foundation                          0x0000000185c2ad4c <redacted> + 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 <redacted> + 576
    9   UIKit                               0x0000000188064524 <redacted> + 64
    10  UIKit                               0x0000000188064420 <redacted> + 248
    11  UIKit                               0x00000001880638f4 <redacted> + 112
    12  UIKit                               0x0000000188063594 <redacted> + 636
    13  UIKit                               0x00000001880632b8 <redacted> + 56
    14  UIKit                               0x0000000188063238 <redacted> + 200
    15  UIKit                               0x0000000187fa56b8 <redacted> + 348
    16  QuartzCore                          0x0000000187ba367c <redacted> + 184
    17  QuartzCore                          0x0000000187b9e244 <redacted> + 300
    18  QuartzCore                          0x0000000187b9e0fc <redacted> + 32
    19  QuartzCore                          0x0000000187b9d984 <redacted> + 280
    20  QuartzCore                          0x0000000187b9d728 <redacted> + 424
    21  UIKit                               0x000000018803111c <redacted> + 56
    22  UIKit                               0x0000000188019d1c <redacted> + 1852
    23  UIKit                               0x0000000187fabe5c <redacted> + 3336
    24  UIKit                               0x0000000187fab04c <redacted> + 104
    25  UIKit                               0x0000000188018ff4 <redacted> + 712
    26  GraphicsServices                    0x000000018a9f9128 <redacted> + 676
    27  GraphicsServices                    0x000000018a9f8c54 <redacted> + 48
    28  CoreFoundation                      0x0000000185096fc8 <redacted> + 56
    29  CoreFoundation                      0x0000000185096f28 <redacted> + 444
    30  CoreFoundation                      0x000000018509514c <redacted> + 1620
    31  CoreFoundation                      0x0000000184fd5b78 CFRunLoopRunSpecific + 452
    32  UIKit                               0x0000000188018218 <redacted> + 784
    33  UIKit                               0x000000018801305c UIApplicationMain + 1156
    34  U17_3.0_tongbutui                   0x1000f77b4 U17_3.0_tongbutui + 1013684
    35  libdyld.dylib                       0x00000001915dbaa0 <redacted> + 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包住这段代码,请问有什么更好的解决方案吗

PHP中文网
PHP中文网

认证高级PHP讲师

全部回覆(1)
伊谢尔伦

if (路徑長度> 0) {

雷雷
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板