错误抓取View Hierarchy,XCode 8.2.1:"没有用于获取视图层次结构的plist数据"

时间:2016-12-27 10:59:36

标签: ios objective-c xcode8 view-hierarchy

在尝试调试视图层次结构时,出现以下错误:

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)。

总是可以重复 - 永远不会让它发挥作用。

任何人都有线索?

1 个答案:

答案 0 :(得分:1)

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

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