【发布时间】:2017-05-06 17:28:33
【问题描述】:
当我尝试构建和运行我的键盘扩展时,它有时会崩溃并显示 Thread 1: signal SIGQUIT。
我无法重现该错误。有时我可以构建和运行我的应用程序,但大多数时候键盘只是退出。这发生在实际设备上。在模拟器中它没有打开我的键盘并说Waiting to Attach。
控制台一开始不输出任何错误。但是,如果我在 Debug navigator 中将下拉菜单更改为 View UI Hierachy,我会得到以下描述:
Details: No plist data for fetching view hierarchy: error evaluating expression “(id)[(Class)objc_getClass("DBGViewDebuggerSupport_iOS") fetchViewHierarchyWithOptions:(id)[(Class)objc_getClass("NSDictionary") dictionaryWithObjects:(id)[(id)[(id)[(Class)objc_getClass("NSArray") arrayWithObject:(id)[(Class)objc_getClass("NSNumber") numberWithBool:1]] arrayByAddingObject:(id)[(id)[(Class)objc_getClass("NSArray") arrayWithObject:@"_UIVisualEffectBackdropView"] arrayByAddingObject:@"_UIBackdropEffectView"]] arrayByAddingObject:(id)[(Class)objc_getClass("NSNumber") numberWithBool:0]] forKeys:(id)[(id)[(id)[(Class)objc_getClass("NSArray") arrayWithObject:@"DBGViewDebuggerUseLayersAsSnapshots"] arrayByAddingObject:@"DBGViewDebuggerEffectViewsToSnapshotAsImage"] arrayByAddingObject:@"DBGViewDebuggerAlwaysEncodeLayers"]]]”: error: Execution was interrupted, reason: EXC_BREAKPOINT (code=1, subcode=0x18daddc34).
The process has been returned to the state before expression evaluation.
Method: -[DBGAbstractViewDescriber handleFetchedViewInfo:fetchError:resultHandler:]
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
我还对过程进行了截图。
我是不是做错了什么?如何防止我的键盘扩展在运行时一直退出?它实际上是描述中所说的错误吗?
【问题讨论】:
-
得到了同样的结果。从谷歌来看——这个错误似乎是最近才出现的。似乎是 XCode 8.2.1 问题
-
不幸的是,同样的事情发生在我身上
-
我也深受其害。有人找到解决方案了吗?
-
我也是,这两个答案对我没有任何解决方案?
标签: ios swift custom-keyboard