gpt4 book ai didi

ios - Xcode 7 每次打开时都会崩溃

转载 作者:行者123 更新时间:2023-12-03 15:26:11 25 4
gpt4 key购买 nike

更新 Xcode 7.0.1 后,我无法打开我的工作区,每次都崩溃。阅读完所有这些文字后,我明白这是关于集合 View 的流布局,以及一些负面值(value)。假设我没有机会回到 Xcode 6。有没有人有类似的问题,或者知道如何解决这个问题?

异常(exception):

negative sizes are not supported in the flow layout

关于我的工作区:

使用
  • cocoa bean
  • Storyboard
  • 自动布局(某些文件中的纯布局)
  • 未检查尺码类别

  • 操作系统
    OS X 10.11 (macosx10.11):

    这是崩溃日志:

    XCODE VERSION INFO:

    Version = 7.0.1 (7A1001) Plugin Version = 8191 Beta Version = 0 OS Version = 10.10.5 (14F27)

    ASSERTION:

    Failed to determine the values for ibLayoutInset, intrinsicContentSize, baselineOffsetFromBottom, firstBaselineOffsetFromTop, ibLayoutMargins, ibContentSize, ibCellFrames, ibSectionHeaderViewFrames, ibSectionFooterViewFrames, and ibBackgroundViewFrame of IBUICollectionView.

    Exception name: NSInternalInconsistencyException Exception reason: negative sizes are not supported in the flow layout Exception backtrace: 0. CoreFoundation 0x00000001033d5f4d __exceptionPreprocess 1. libobjc.A.dylib 0x0000000102e4fdeb objc_exception_throw

    1. CoreFoundation 0x00000001033d5dca +[NSExceptionraise:format:arguments:]

    2. Foundation 0x0000000102a9dae2 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]

    3. UIKit 0x00000001010db6ff -[UICollectionViewFlowLayout _getSizingInfos]

    4. UIKit 0x00000001010dcef5 -[UICollectionViewFlowLayout _fetchItemsInfoForRect:]
    5. UIKit 0x00000001010d669d -[UICollectionViewFlowLayout prepareLayout]
    6. UIKit 0x00000001010f6ef1 -[UICollectionViewData _prepareToLoadData]
    7. UIKit 0x00000001010f767a -[UICollectionViewData validateLayoutInRect:]
    8. UIKit 0x00000001010a883e -[UICollectionView layoutSubviews]

      1. UIKit 0x000000010094911c -[UIView(CALayerDelegate) layoutSublayersOfLayer:]
      2. QuartzCore 0x00000001028bd36a -[CALayer layoutSublayers]
      3. QuartzCore 0x00000001028b1bd0 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE
      4. UIKit 0x0000000100938d7b -[UIView(Hierarchy) layoutBelowIfNeeded]
      5. IBCocoaTouchToolFoundation 0x00000001007c6920 -[UIView(IBCocoaTouchToolIntegration) awakeAfterMarshallerDidEstablishRelationshipsWithContext:populatingWarningMessages:]
      6. IBCocoaTouchToolFoundation 0x00000001007e72ab -[IBCocoaTouchToolObjectPackage initWithRequest:globalMarshallingContext:]
      7. IBCocoaTouchToolFoundation 0x00000001007e4533 +[IBCocoaTouchToolObjectPackage objectPackageFromRequest:]
      8. IBCocoaTouchToolFoundation 0x00000001007c321e -[IBCocoaTouchTool _objectFromRequest:]
      9. IBCocoaTouchToolFoundation 0x00000001007c361e -[IBCocoaTouchTool valuesForKeyPaths:ofMarshalledObjectRequest:resultMarshallerClassNames:resultMarshallerContexts:]
      10. IBFoundation 0x00000001026cc54f __80-[IBMessageReceiveChannel deliverMessage:toTarget:withArguments:context:result:]_block_invoke
      11. IBFoundation 0x00000001026cc25f -[IBMessageReceiveChannel deliverMessage:toTarget:withArguments:context:result:]
      12. IBFoundation 0x00000001026cbf58 __88-[IBMessageReceiveChannel runBlockingReceiveLoopNotifyingQueue:notifyingTarget:context:]_block_invoke
      13. libdispatch.dylib 0x00000001070ad4a7 _dispatch_client_callout
      14. libdispatch.dylib 0x0000000107098f9b _dispatch_barrier_sync_f_slow_invoke
      15. libdispatch.dylib 0x00000001070ad4a7 _dispatch_client_callout
      16. libdispatch.dylib 0x0000000107097fc9 _dispatch_main_queue_callback_4CF
      17. CoreFoundation 0x00000001033363e9 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE
      18. CoreFoundation 0x00000001032f7939 __CFRunLoopRun
      19. CoreFoundation 0x00000001032f6e98 CFRunLoopRunSpecific
      20. Foundation 0x0000000102a3d891 -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
      21. IBFoundation 0x00000001026a9c94 -[IBAbstractPlatformTool startServingReceiveChannel:]
      22. IBFoundation 0x00000001026a9e70 -[IBAbstractPlatformTool startServingWriteDescriptor:readDescriptor:]
      23. IBFoundation 0x00000001026aa97a +[IBAbstractPlatformTool main]
      24. ??? 0x0000000100743bc7 ???
      25. libdyld.dylib 0x00000001070dc92d start Exception info:{ }

      EXCEPTION :

    negative sizes are not supported in the flow layout

    EXCEPTION BACKTRACE
    1. CoreFoundation 0x00000001033d5f4d __exceptionPreprocess
    2. libobjc.A.dylib 0x0000000102e4fdeb objc_exception_throw
    3. CoreFoundation 0x00000001033d5dca +[NSException raise:format:arguments:]
    4. Foundation 0x0000000102a9dae2 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
    5. UIKit 0x00000001010db6ff -[UICollectionViewFlowLayout _getSizingInfos]
    6. UIKit 0x00000001010dcef5 -[UICollectionViewFlowLayout _fetchItemsInfoForRect:]
    7. UIKit 0x00000001010d669d -[UICollectionViewFlowLayout prepareLayout]
    8. UIKit 0x00000001010f6ef1 -[UICollectionViewData _prepareToLoadData]
    9. UIKit 0x00000001010f767a -[UICollectionViewData validateLayoutInRect:]
    10. UIKit 0x00000001010a883e -[UICollectionView layoutSubviews]
      1. UIKit 0x000000010094911c -[UIView(CALayerDelegate) layoutSublayersOfLayer:]
      2. QuartzCore 0x00000001028bd36a -[CALayer layoutSublayers]
      3. QuartzCore 0x00000001028b1bd0 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE
      4. UIKit 0x0000000100938d7b -[UIView(Hierarchy) layoutBelowIfNeeded]
      5. IBCocoaTouchToolFoundation 0x00000001007c6920 -[UIView(IBCocoaTouchToolIntegration) awakeAfterMarshallerDidEstablishRelationshipsWithContext:populatingWarningMessages:]
      6. IBCocoaTouchToolFoundation 0x00000001007e72ab -[IBCocoaTouchToolObjectPackage initWithRequest:globalMarshallingContext:]
      7. IBCocoaTouchToolFoundation 0x00000001007e4533 +[IBCocoaTouchToolObjectPackage objectPackageFromRequest:]
      8. IBCocoaTouchToolFoundation 0x00000001007c321e -[IBCocoaTouchTool _objectFromRequest:]
      9. IBCocoaTouchToolFoundation 0x00000001007c361e -[IBCocoaTouchTool valuesForKeyPaths:ofMarshalledObjectRequest:resultMarshallerClassNames:resultMarshallerContexts:]
      10. IBFoundation 0x00000001026cc54f __80-[IBMessageReceiveChannel deliverMessage:toTarget:withArguments:context:result:]_block_invoke
      11. IBFoundation 0x00000001026cc25f -[IBMessageReceiveChannel deliverMessage:toTarget:withArguments:context:result:]
      12. IBFoundation 0x00000001026cbf58 __88-[IBMessageReceiveChannel runBlockingReceiveLoopNotifyingQueue:notifyingTarget:context:]_block_invoke
      13. libdispatch.dylib 0x00000001070ad4a7 _dispatch_client_callout
      14. libdispatch.dylib 0x0000000107098f9b _dispatch_barrier_sync_f_slow_invoke
      15. libdispatch.dylib 0x00000001070ad4a7 _dispatch_client_callout
      16. libdispatch.dylib 0x0000000107097fc9 _dispatch_main_queue_callback_4CF
      17. CoreFoundation 0x00000001033363e9 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE
      18. CoreFoundation 0x00000001032f7939 __CFRunLoopRun
      19. CoreFoundation 0x00000001032f6e98 CFRunLoopRunSpecific
      20. Foundation 0x0000000102a3d891 -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
      21. IBFoundation 0x00000001026a9c94 -[IBAbstractPlatformTool startServingReceiveChannel:]
      22. IBFoundation 0x00000001026a9e70 -[IBAbstractPlatformTool startServingWriteDescriptor:readDescriptor:]
      23. IBFoundation 0x00000001026aa97a +[IBAbstractPlatformTool main]
      24. ??? 0x0000000100743bc7 ???
      25. libdyld.dylib 0x00000001070dc92d start

    最佳答案

    进入具有负值的 Storyboard或 Nib 并修改xml?

    关于ios - Xcode 7 每次打开时都会崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32889567/

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