打在奇怪的错误:IOS应用程序中的“DOMException 105”。 寻找如何find我的代码中的错误的指导

无法find任何引用此错误 – 在任何地方!

它每次都发生在同一点 – 就像我点击一个UITableView行元素一样。 下面是堆栈跟踪 – 有人可以提供任何问题可能是什么和/或如何去寻找错误的build议?

谢谢!


2016-11-04 10:12:56.096 Golf W[51137:9704786] *** Terminating app due to uncaught exception 'DOMException', reason: '*** DOMException 105' *** First throw call stack: ( 0 CoreFoundation 0x000000010d51b34b __exceptionPreprocess + 171 1 libobjc.A.dylib 0x000000010cf7c21e objc_exception_throw + 48 2 CoreFoundation 0x000000010d51b299 -[NSException raise] + 9 3 WebCore 0x0000000111f50072 _ZN7WebCore17raiseDOMExceptionEi + 370 4 WebCore 0x0000000111f5008e _ZN7WebCore23raiseTypeErrorExceptionEv + 14 5 WebCore 0x0000000111ed842e -[DOMRange setStart:offset:] + 158 6 UIKit 0x000000010a319143 -[UIWebDocumentView text] + 292 7 UIKit 0x000000010a09a56a _UIViewDescriptionAppendTextIfApplicable + 96 8 UIKit 0x000000010a09a71d -[UIView(UIDebugging) description] + 147 9 CoreFoundation 0x000000010d4f0d4a -[NSArray descriptionWithLocale:indent:] + 362 10 Foundation 0x00000001096ce3be _NSDescriptionWithLocaleFunc + 66 11 CoreFoundation 0x000000010d459407 __CFStringAppendFormatCore + 10983 12 CoreFoundation 0x000000010d4568f7 _CFStringCreateWithFormatAndArgumentsAux2 + 263 13 AccessibilityUtilities 0x000000011e001cd7 _AXStringForArgs + 333 14 UIAccessibility 0x000000011ea0b908 -[UIView(UIAccessibilityElementTraversal) _accessibilitySubviewsForGettingElementsWithOptions:] + 199 15 UIAccessibility 0x000000011ea0c761 -[UIView(UIAccessibilityElementTraversal) _addAccessibilityElementsAndOrderedContainersWithOptions:toCollection:] + 743 16 UIAccessibility 0x000000011ea0c7ec -[UIView(UIAccessibilityElementTraversal) _addAccessibilityElementsAndOrderedContainersWithOptions:toCollection:] + 882 17 UIAccessibility 0x000000011ea0c7ec -[UIView(UIAccessibilityElementTraversal) _addAccessibilityElementsAndOrderedContainersWithOptions:toCollection:] + 882 18 UIAccessibility 0x000000011ea0c7ec -[UIView(UIAccessibilityElementTraversal) _addAccessibilityElementsAndOrderedContainersWithOptions:toCollection:] + 882 19 UIAccessibility 0x000000011ea0c7ec -[UIView(UIAccessibilityElementTraversal) _addAccessibilityElementsAndOrderedContainersWithOptions:toCollection:] + 882 20 UIAccessibility 0x000000011ea0c7ec -[UIView(UIAccessibilityElementTraversal) _addAccessibilityElementsAndOrderedContainersWithOptions:toCollection:] + 882 21 UIAccessibility 0x000000011ea0c7ec -[UIView(UIAccessibilityElementTraversal) _addAccessibilityElementsAndOrderedContainersWithOptions:toCollection:] + 882 22 UIAccessibility 0x000000011ea0c7ec -[UIView(UIAccessibilityElementTraversal) _addAccessibilityElementsAndOrderedContainersWithOptions:toCollection:] + 882 23 UIAccessibility 0x000000011ea0c7ec -[UIView(UIAccessibilityElementTraversal) _addAccessibilityElementsAndOrderedContainersWithOptions:toCollection:] + 882 24 UIAccessibility 0x000000011ea0c7ec -[UIView(UIAccessibilityElementTraversal) _addAccessibilityElementsAndOrderedContainersWithOptions:toCollection:] + 882 25 UIAccessibility 0x000000011ea0ccef +[UIView(UIAccessibilityElementTraversal) _accessibilityElementsAndContainersDescendingFromViews:options:sorted:] + 472 26 UIAccessibility 0x000000011ea0d0ed -[UIApplication(UIAccessibilityElementTraversal) _accessibilityViewChildrenWithOptions:referenceWindow:] + 128 27 UIAccessibility 0x000000011ea0b13e -[NSObject(UIAccessibilityElementTraversal) _accessibilityEnumerateSiblingsWithParent:options:usingBlock:] + 896 28 UIAccessibility 0x000000011ea093d4 -[NSObject(UIAccessibilityElementTraversal) _accessibilityElementsInDirectionWithCount:options:] + 723 29 UIAccessibility 0x000000011ea16903 -[NSObject(AXPrivCategory) accessibilityAttributeValue:forParameter:] + 1360 30 UIAccessibility 0x000000011ea024ae _copyParameterizedAttributeValueCallback + 211 31 AXRuntime 0x000000011e140cbc _AXXMIGCopyParameterizedAttributeValue + 216 32 AXRuntime 0x000000011e13b6a5 _XCopyParameterizedAttributeValue + 447 33 AXRuntime 0x000000011e14a545 mshMIGPerform + 266 34 CoreFoundation 0x000000010d4acf89 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 41 35 CoreFoundation 0x000000010d4acf01 __CFRunLoopDoSource1 + 465 36 CoreFoundation 0x000000010d4a5045 __CFRunLoopRun + 2389 37 CoreFoundation 0x000000010d4a4494 CFRunLoopRunSpecific + 420 38 GraphicsServices 0x0000000110352a6f GSEventRunModal + 161 39 UIKit 0x0000000109fd3f34 UIApplicationMain + 159 40 Golf W 0x00000001087f766f main + 111 41 libdyld.dylib 0x000000010e71168d start + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb) 

自从最近2天以来,我遇到了同样的问题。 最后我今天find了解决scheme,你需要在viewDidLoad添加self.view.isAccessibilityElement = true ,或者在界面中设置视图的属性属性如下图所示。

在这里输入图像说明