【问题标题】:Error grabbing View Hierarchy, XCode 8.2.1: "No plist data for fetching view hierarchy"抓取视图层次结构时出错,XCode 8.2.1:“没有用于获取视图层次结构的 plist 数据”
【发布时间】:2016-12-27 10:59:36
【问题描述】:

在尝试调试我的视图层次结构时,我收到以下错误:

Error:    Unable to capture view hierarchy.
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: Expression can't be run, because there is no JIT compiled function

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.

在 iPhone 6 10.2 和 iPhone 5C 9.3.5 上发生。 XCode 是 8.2.1。 Mac 机器是 Sierra 10.12.2 (16C67)。

始终可重现 - 从未让它发挥作用。

有人知道吗?

【问题讨论】:

  • 问题也报告给了 Apple。票号#29814332
  • 你运行的是什么 macOS 版本?
  • 关闭 Xcode?删除了派生数据、构建文件夹、Xcode 缓存等?重新启动Mac?重新安装 Xcode?​​span>

标签: ios objective-c xcode8 view-hierarchy


【解决方案1】:

这发生在我使用 Xcode 8.0 在模拟器上运行时。我能够通过在运行 iOS 10.2 的 iPhone 7(设备)上运行来消除该错误。

可能不是您想听到的答案,但您可以尝试在Apple Developer downloads page. 下载 Xcode 8.0

【讨论】:

  • 我一直在设备上获得它。我不经常使用模拟器(我的投影是基于 SceneKit 的,模拟器的 GL/Metal 性能仍然不是很好)。
  • 我只是在另一部手机上运行该项目,它就可以工作了。我不知道为什么,但感谢您的回答。
猜你喜欢
  • 2017-07-11
  • 2018-05-24
  • 2018-09-14
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-03-02
  • 1970-01-01
相关资源
最近更新 更多