сбой моего приложения в uikit happen происходит только на IPhone X и выше, имя исключения NSInternalInconsistencyException - PullRequest
0 голосов
/ 11 апреля 2019

Не удалось загрузить данные растрового изображения ограничивающего пути из менеджера активов для имени ресурса: BoundingPathBitmap-1125x2436-375x812-3.00x

Сбой происходит на viewcontroller содержат UIScrollView при открытии it и происходит только с iPhone X и выше

Мы разрабатываем пользовательский интерфейс приложения с использованием раскадровки

    0 CoreFoundation    ___exceptionPreprocess + 228
    1 libobjc.A.dylib   objc_exception_throw + 56
    2 CoreFoundation    +[_CFXNotificationTokenRegistration keyCallbacks]
    3 Foundation    -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 112
    4 UIKitCore -[_UIScreenBezierBoundingPathUtilities _loadBitmapForScreen:type:] + 1124
    5 UIKitCore -[_UIScreenBezierBoundingPathUtilities initWithScreen:] + 144
    6 UIKitCore +[_UIScreenBoundingPathUtilities boundingPathUtilitiesForScreen:] + 108
    7 UIKitCore -[UIScreen _boundingPathUtilities] + 56
    8 UIKitCore -[UIWindow _boundingPath] + 168
    9 UIKitCore -[UIView(UIViewBoundingPathSupportInternal) _effectiveBoundingPathAndBoundingPathView:] + 256
    10 UIKitCore    -[UIView(UIViewBoundingPathSupport) _inscribedRectInBoundingPathByInsettingRect:onEdges:withOptions:] + 88
    11 UIKitCore    -[UIScrollView(UIScrollViewInternal) _baseInsetsForTrailingEdgeAccessoryWithBoundingPathEdgesToUse:safeAreaInsets:bounds:scale:accessoryWidth:additionalInsetFromEdge:] + 180
    12 UIKitCore    -[UIScrollView(UIScrollViewInternal) _baseInsetsForAccessoryOnEdge:hasCustomClientInsets:accessorySize:additionalInsetFromEdge:] + 1388
    13 UIKitCore    -[UIScrollView(UIScrollViewInternal) _effectiveVerticalScrollIndicatorInsets] + 152
    14 UIKitCore    -[UIScrollView _layoutVerticalScrollIndicatorWithBounds:effectiveInset:contentOffset:fraction:additionalInset:cornerAdjust:showing:recalcSize:] + 252
    15 UIKitCore    -[UIScrollView _adjustScrollerIndicators:alwaysShowingThem:] + 1040
    16 UIKitCore    -[UIScrollView _updateForChangedScrollIndicatorRelatedInsets] + 132
    17 UIKitCore    __UIScrollViewAdjustForOverlayInsetsChangeIfNecessary + 512
    18 UIKitCore    -[UIScrollView(UIScrollViewInternal) setSafeAreaInsets:] + 312
    19 UIKitCore    -[UIView(Geometry) _applyISEngineLayoutValuesToBoundsOnly:] + 1288
    20 UIKitCore    -[UIView(Geometry) _resizeWithOldSuperviewSize:] + 124
    21 UIKitCore    -[UIScrollView(_UIOldConstraintBasedLayoutSupport) _resizeWithOldSuperviewSize:] + 52
    22 CoreFoundation   -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 464
    23 UIKitCore    -[UIView(Geometry) resizeSubviewsWithOldSize:] + 156
    24 UIKitCore    -[UIView(AdditionalLayoutSupport) _is_layout] + 152
    25 UIKitCore    -[UIView(Hierarchy) _updateConstraintsAsNecessaryAndApplyLayoutFromEngine] + 988
    26 UIKitCore    -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1380
    27 QuartzCore   0x00000001ca79e000 + 1309564
    28 QuartzCore   0x00000001ca79e000 + 1329972
    29 QuartzCore   0x00000001ca79e000 + 669080
    30 QuartzCore   0x00000001ca79e000 + 859848
    31 QuartzCore   0x00000001ca79e000 + 863536
    32 CoreFoundation   ___CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
    33 CoreFoundation   ___CFRunLoopDoObservers + 412
    34 CoreFoundation   ___CFRunLoopRun + 1264
    35 CoreFoundation   CFRunLoopRunSpecific + 436
    36 GraphicsServices GSEventRunModal + 100
    37 UIKitCore    UIApplicationMain + 212
    38 live main (main.mm:23)
    39 libdyld.dylib    0x00000001c5d2a000 + 2996

надеюсь, кто-нибудь может дать мне совет, спасибо

1 Ответ

0 голосов
/ 15 апреля 2019

Такая же ошибка произошла и в моем приложении.

Когда я отключил «Показать горизонтальный индикатор» и «Показать вертикальный индикатор» на раскадровке, сбой больше не происходил.

...