NSInvalidUnarchiveOperationException _UIScrollerImpContainerView

一个困扰了一个下午的系统Bug.

dynamic_cast error 2: One or more of the following type_info's has hidden visibility or is defined in more than one translation unit. They should all have public visibility. N10__cxxabiv116__shim_type_infoE, id, N10__cxxabiv117__pbase_type_infoE.

2020-02-13 10:35:41.998879+0800 Notebook[8187:1760657] dynamic_cast error 2: One or more of the following type_info's has hidden visibility or is defined in more than one translation unit. They should all have public visibility. N10__cxxabiv116__shim_type_infoE, id, N10__cxxabiv117__pbase_type_infoE.

2020-02-13 10:35:42.039362+0800 Notebook[8187:1760657] [Bugly] Trapped uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named _UIScrollerImpContainerView because no class named _UIScrollerImpContainerView was found; the class needs to be defined in source code or linked in from a library (ensure the class is part of the correct target)' 

(

 0  CoreFoundation 0x000000018b0c0980 DC2C95C6-B954-39E8-86A2-5E0AF8801E87 + 1255808

 1  libobjc.A.dylib  0x000000018add9028 objc_exception_throw + 60

 2  CoreFoundation 0x000000018afb014c DC2C95C6-B954-39E8-86A2-5E0AF8801E87 + 139596

 3  UIFoundation 0x000000018e70810c 8BADFA0D-F517-39F9-AC82-CECDB0A4AC66 + 446732

 4  UIFoundation 0x000000018e708480 8BADFA0D-F517-39F9-AC82-CECDB0A4AC66 + 447616

 5  UIFoundation 0x000000018e6a300c 8BADFA0D-F517-39F9-AC82-CECDB0A4AC66 + 32780

 6  UIKitCore  0x000000018f643488 AAFEFEBE-C172-3346-8972-810EB8F2F2C6 + 15488136

 7  UIKitCore  0x000000018f5e7264 AAFEFEBE-C172-3346-8972-810EB8F2F2C6 + 15110756

 8  UIKitCore  0x000000018e9e9ac4 AAFEFEBE-C172-3346-8972-810EB8F2F2C6 + 2538180

 9  UIFoundation 0x000000018e70824c 8BADFA0D-F517-39F9-AC82-CECDB0A4AC66 + 447052

 10 UIFoundation 0x000000018e6a300c 8BADFA0D-F517-39F9-AC82-CECDB0A4AC66 + 32780

 11 UIKitCore  0x000000018ee4d9f0 AAFEFEBE-C172-3346-8972-810EB8F2F2C6 + 7141872

 12 UIFoundation 0x000000018e70824c 8BADFA0D-F517-39F9-AC82-CECDB0A4AC66 + 447052

 13 UIFoundation 0x000000018e708480 8BADFA0D-F517-39F9-AC82-CECDB0A4AC66 + 447616

 14 UIFoundation 0x000000018e6a300c 8BADFA0D-F517-39F9-AC82-CECDB0A4AC66 + 32780

 15 UIKitCore  0x000000018ee488f0 AAFEFEBE-C172-3346-8972-810EB8F2F2C6 + 7121136

 16 UIKitCore  0x000000018ee4b528 AAFEFEBE-C172-3346-8972-810EB8F2F2C6 + 7132456

 17 UIKitCore  0x000000018eb7bc88 AAFEFEBE-C172-3346-8972-810EB8F2F2C6 + 4185224

 18 UIKitCore  0x000000018eb7c74c AAFEFEBE-C172-3346-8972-810EB8F2F2C6 + 4187980

 19 UIKitCore  0x000000018eb7ca1c AAFEFEBE-C172-3346-8972-810EB8F2F2C6 + 4188700

 20 UIKitCore  0x000000018eb7d104 AAFEFEBE-C172-3346-8972-810EB8F2F2C6 + 4190468

 21 UIKitCore  0x000000018eaf7c9c AAFEFEBE-C172-3346-8972-810EB8F2F2C6 + 3644572

 22 UIKitCore  0x000000018ea9dfe0 AAFEFEBE-C172-3346-8972-810EB8F2F2C6 + 3276768

 23 UIKitCore  0x000000018ea9a114 AAFEFEBE-C172-3346-8972-810EB8F2F2C6 + 3260692

 24 UIKitCore  0x000000018eb8a640 AAFEFEBE-C172-3346-8972-810EB8F2F2C6 + 4245056

 25 UIKitCore  0x000000018f1cafcc AAFEFEBE-C172-3346-8972-810EB8F2F2C6 + 10801100

 26 UIKitCore  0x000000018f1ba5f0 AAFEFEBE-C172-3346-8972-810EB8F2F2C6 + 10733040

 27 UIKitCore  0x000000018f1eb980 AAFEFEBE-C172-3346-8972-810EB8F2F2C6 + 10934656

 28 CoreFoundation 0x000000018b03b524 DC2C95C6-B954-39E8-86A2-5E0AF8801E87 + 709924

 29 CoreFoundation 0x000000018b0361c4 DC2C95C6-B954-39E8-86A2-5E0AF8801E87 + 688580

 30 CoreFoundation 0x000000018b036774 DC2C95C6-B954-39E8-86A2-5E0AF8801E87 + 690036

 31 CoreFoundation 0x000000018b035f40 CFRunLoopRunSpecific + 480

 32 GraphicsServices 0x00000001952c6534 GSEventRunModal + 108

 33 UIKitCore  0x000000018f1c1580 UIApplicationMain + 1940

 34 Notebook 0x0000000104806128 main + 124

 35 libdyld.dylib  0x000000018aeb4e18 9D122047-19B7-36A2-A892-27401F9E0E6C + 3608

)

2020-02-13 10:35:42.051911+0800 Notebook[8187:1760930] xtArchive : <CKServerChangeToken: 0x283c6cc00; data=AQAAAAAAAKm2f/////////8ijTyGXIlPnoa7mLOWM6O9>

 success in path : /var/mobile/Containers/Data/Application/702B875C-A471-498C-9F81-2BCFCECBCB33/Library/kKeyForPreviousServerChangeToken

<---🏀🏀🏀🏀🏀

<URLProtocol.m : 35> +[URLProtocol canonicalRequestForRequest:]

2020-02-13 10:35:42.078841+0800 Notebook[8187:1760930] [https://ios.bugly.qq.com/rqd/sync?aid=A0F8575E-DD89-462B-B5A0-E0CE72F729C6](https://ios.bugly.qq.com/rqd/sync?aid=A0F8575E-DD89-462B-B5A0-E0CE72F729C6)

🏀🏀🏀🏀🏀--->

2020-02-13 10:35:44.056439+0800 Notebook[8187:1760657] *** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named _UIScrollerImpContainerView because no class named _UIScrollerImpContainerView was found; the class needs to be defined in source code or linked in from a library (ensure the class is part of the correct target)'

*** First throw call stack:

(0x18b0c096c 0x18add9028 0x18afb014c 0x18e70810c 0x18e708480 0x18e6a300c 0x18f643488 0x18f5e7264 0x18e9e9ac4 0x18e70824c 0x18e6a300c 0x18ee4d9f0 0x18e70824c 0x18e708480 0x18e6a300c 0x18ee488f0 0x18ee4b528 0x18eb7bc88 0x18eb7c74c 0x18eb7ca1c 0x18eb7d104 0x18eaf7c9c 0x18ea9dfe0 0x18ea9a114 0x18eb8a640 0x18f1cafcc 0x18f1ba5f0 0x18f1eb980 0x18b03b524 0x18b0361c4 0x18b036774 0x18b035f40 0x1952c6534 0x18f1c1580 0x104806128 0x18aeb4e18)

libc++abi.dylib: terminating with uncaught exception of type NSException


在XCode11.3.1 11.3 11.2.1 均报错如下

Trapped uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named _UIScrollerImpContainerView because no class named _UIScrollerImpContainerView was found; the class needs to be defined in source code or linked in from a library (ensure the class is part of the correct target)'

官网也没有解决方案. 近年Apple的开发一直被吐槽Bug太多. 顶不住了.
看上下文描述. 似乎是用到xib启动的时候出问题. 找不到_UIScrollerImpContainerView这个系统Class.
坑爹.

最后解决方案是下载老版本 Xcode 11.1 打包解决. 或等新版本Xcode解决后更新.

©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 158,736评论 4 362
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 67,167评论 1 291
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 108,442评论 0 243
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 43,902评论 0 204
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 52,302评论 3 287
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 40,573评论 1 216
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 31,847评论 2 312
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 30,562评论 0 197
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 34,260评论 1 241
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 30,531评论 2 245
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 32,021评论 1 258
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 28,367评论 2 253
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 33,016评论 3 235
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 26,068评论 0 8
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 26,827评论 0 194
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 35,610评论 2 274
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 35,514评论 2 269

推荐阅读更多精彩内容

  • pyspark.sql模块 模块上下文 Spark SQL和DataFrames的重要类: pyspark.sql...
    mpro阅读 9,391评论 0 13
  • Xcode 9 Release Notes See more downloads 关于Xcode Accessin...
    印林泉阅读 4,299评论 7 3
  • mean to add the formatted="false" attribute?.[ 46% 47325/...
    ProZoom阅读 2,615评论 0 3
  • 人有傲骨,人有痴情,傲骨九分,痴情一点。傲骨铮铮,痴情绵绵,傲骨朝天,痴情向花...
    冰夫阅读 321评论 2 1
  • 我想我不够理性不够克制,也太留恋你的音容笑貌也太不敢任由情绪掌控自己,终于做了这个决定没有比以前轻松一些也没有不难...
    原来她乱了心跳阅读 134评论 0 0