gpt4 book ai didi

ios - 遇到奇怪的错误 : "DOMException 105" in IOS app. 正在寻找有关如何在我的代码中定位错误的指导

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:32:10 26 4
gpt4 key购买 nike

无法在任何地方找到对此错误的任何引用!

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

谢谢!


    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 天以来,我在寻找解决方案时遇到了同样的问题。今天终于找到了解决方案,要么需要在 viewDidLoad 中添加 self.view.isAccessibilityElement = true,要么在界面中设置 View 的 Attribute 属性,如下图所示。

enter image description here

关于ios - 遇到奇怪的错误 : "DOMException 105" in IOS app. 正在寻找有关如何在我的代码中定位错误的指导,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40425138/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com