Could not load the "_IBBrokenImage_" image referenced from a nib in the bundle with identifier

怎么找都找不到错误原因, 直到打开了xib的源码, 发现了xib把image的data数据给搞坏了


Could not load the
数据错误, 系统还不报错, 等着自己找

解决方案:


Could not load the
定位, 更改

定位到具体是哪个抽风的button, 更改相应state里面的图片, 解决!!
目前全网应该我是第二个遇上的, 第一位遇上并发帖的老兄没说解决方案, 我给补齐啦

_IBBrokenImage_ ----旧图片丢失, 或者xib抽风, 凭空添加了一堆乱码数据, 将会导致xib解析的崩溃发生(低概率)

崩溃记录类似这种:

* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BREAKPOINT (code=1, subcode=0x1ff027774)
    frame #0: 0x00000001ff027774 libsystem_malloc.dylib`nanov2_allocate_from_block$VARIANT$mp + 540
    frame #1: 0x00000001ff0269d0 libsystem_malloc.dylib`nanov2_allocate$VARIANT$mp + 140
    frame #2: 0x00000001ff026eec libsystem_malloc.dylib`nanov2_calloc$VARIANT$mp + 136
    frame #3: 0x00000001ff035b74 libsystem_malloc.dylib`malloc_zone_calloc + 140
    frame #4: 0x00000001ff0363fc libsystem_malloc.dylib`calloc + 40
    frame #5: 0x00000001fe638564 libobjc.A.dylib`class_createInstance + 72
    frame #6: 0x00000001fe624d48 libobjc.A.dylib`+[NSObject allocWithZone:] + 24
    frame #7: 0x0000000209ac4ca0 UIFoundation`UINibDecoderDecodeObjectForValue + 708
    frame #8: 0x0000000209ac4f08 UIFoundation`UINibDecoderDecodeObjectForValue + 1324
    frame #9: 0x0000000209a6381c UIFoundation`-[UINibDecoder decodeObjectForKey:] + 320
    frame #10: 0x000000022ca72378 UIKitCore`-[UIView initWithCoder:] + 1672
    frame #11: 0x000000022c086184 UIKitCore`-[UIControl initWithCoder:] + 68
    frame #12: 0x000000022c077fa4 UIKitCore`-[UIButton initWithCoder:] + 96
    frame #13: 0x0000000209ac4cc4 UIFoundation`UINibDecoderDecodeObjectForValue + 744
    frame #14: 0x0000000209a6381c UIFoundation`-[UINibDecoder decodeObjectForKey:] + 320
    frame #15: 0x000000022c2a2804 UIKitCore`-[UIRuntimeConnection initWithCoder:] + 136
    frame #16: 0x000000022c2a2c14 UIKitCore`-[UIRuntimeEventConnection initWithCoder:] + 64
    frame #17: 0x0000000209ac4cc4 UIFoundation`UINibDecoderDecodeObjectForValue + 744
    frame #18: 0x0000000209ac4f08 UIFoundation`UINibDecoderDecodeObjectForValue + 1324
    frame #19: 0x0000000209a6381c UIFoundation`-[UINibDecoder decodeObjectForKey:] + 320
    frame #20: 0x000000022c2a0138 UIKitCore`-[UINib instantiateWithOwner:options:] + 1124
    frame #21: 0x000000022c0308e0 UIKitCore`-[UIViewController _loadViewFromNibNamed:bundle:] + 372

你可能感兴趣的:(Could not load the "_IBBrokenImage_" image referenced from a nib in the bundle with identifier)