Xcode 7每次打开时都会崩溃

时间:2015-10-01 14:01:30

标签: ios crash storyboard xcode7 flowlayout

更新Xcode 7.0.1后,每次崩溃时我都无法打开我的工作区。阅读完所有这些文字后,我理解它是关于集合视图的流布局,以及一些负面价值。让我们说我没有机会回到Xcode 6.有没有人有类似的问题,或者知道如何解决这个问题?

例外:

negative sizes are not supported in the flow layout

关于我的工作区:

使用

  • 的CocoaPods
  • 故事板
  • 自动布局(某些文件中的纯布局)
  • 未检查尺寸类

OS OS X 10.11(macosx10.11):

以下是崩溃日志:

  

XCODE VERSION INFO:

     

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

     

ASSERTION:

     

无法确定ibLayoutInset的值,   intrinsicContentSize,baselineOffsetFromBottom,   firstBaselineOffsetFromTop,ibLayoutMargins,ibContentSize,   ibCellFrames,ibSectionHeaderViewFrames,ibSectionFooterViewFrames,   和IBUICollectionView的ibBackgroundViewFrame。

     

异常名称:NSInternalInconsistencyException异常原因:   流布局异常不支持负大小   回溯:     0. CoreFoundation 0x00000001033d5f4d __exceptionPreprocess   1. libobjc.A.dylib 0x0000000102e4fdeb objc_exception_throw

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

  2.   
  3. 基金会0x0000000102a9dae2 - [NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]

  4.   
  5. UIKit 0x00000001010db6ff - [UICollectionViewFlowLayout _getSizingInfos]

  6.   
  7. UIKit 0x00000001010dcef5 - [UICollectionViewFlowLayout _fetchItemsInfoForRect:]
  8.   
  9. UIKit 0x00000001010d669d - [UICollectionViewFlowLayout prepareLayout]
  10.   
  11. UIKit 0x00000001010f6ef1 - [UICollectionViewData _prepareToLoadData]
  12.   
  13. UIKit 0x00000001010f767a - [UICollectionViewData validateLayoutInRect:]
  14.   
  15. UIKit 0x00000001010a883e - [UICollectionView layoutSubviews]

         
        
    1. UIKit 0x000000010094911c - [UIView(CALayerDelegate)layoutSublayersOfLayer:]
    2.   
    3. QuartzCore 0x00000001028bd36a - [CALayer layoutSublayers]
    4.   
    5. QuartzCore 0x00000001028b1bd0 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE
    6.   
    7. UIKit 0x0000000100938d7b - [UIView(Hierarchy)layoutBelowIfNeeded]
    8.   
    9. IBCocoaTouchToolFoundation 0x00000001007c6920 - [UIView(IBCocoaTouchToolIntegration)awakeAfterMarshallerDidEstablishRelationshipsWithContext:populatingWarningMessages:]
    10.   
    11. IBCocoaTouchToolFoundation 0x00000001007e72ab - [IBCocoaTouchToolObjectPackage initWithRequest:globalMarshallingContext:]
    12.   
    13. IBCocoaTouchToolFoundation 0x00000001007e4533 + [IBCocoaTouchToolObjectPackage objectPackageFromRequest:]
    14.   
    15. IBCocoaTouchToolFoundation 0x00000001007c321e - [IBCocoaTouchTool _objectFromRequest:]
    16.   
    17. IBCocoaTouchToolFoundation 0x00000001007c361e - [IBCocoaTouchTool valuesForKeyPaths:ofMarshalledObjectRequest:resultMarshallerClassNames:resultMarshallerContexts:]
    18.   
    19. IBFoundation 0x00000001026cc54f __80- [IBMessageReceiveChannel deliverMessage:toTarget:withArguments:context:result:] _ block_invoke
    20.   
    21. IBFoundation 0x00000001026cc25f - [IBMessageReceiveChannel deliverMessage:toTarget:withArguments:context:result:]
    22.   
    23. IBFoundation 0x00000001026cbf58 __88- [IBMessageReceiveChannel runBlockingReceiveLoopNotifyingQueue:notifyingTarget:context:] _ block_invoke
    24.   
    25. libdispatch.dylib 0x00000001070ad4a7 _dispatch_client_callout
    26.   
    27. libdispatch.dylib 0x0000000107098f9b _dispatch_barrier_sync_f_slow_invoke
    28.   
    29. libdispatch.dylib 0x00000001070ad4a7 _dispatch_client_callout
    30.   
    31. libdispatch.dylib 0x0000000107097fc9 _dispatch_main_queue_callback_4CF
    32.   
    33. CoreFoundation 0x00000001033363e9 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE
    34.   
    35. CoreFoundation 0x00000001032f7939 __CFRunLoopRun
    36.   
    37. CoreFoundation 0x00000001032f6e98 CFRunLoopRunSpecific
    38.   
    39. 基金会0x0000000102a3d891 - [NSRunLoop(NSRunLoop)runMode:beforeDate:]
    40.   
    41. IBFoundation 0x00000001026a9c94 - [IBAbstractPlatformTool startServingReceiveChannel:]
    42.   
    43. IBFoundation 0x00000001026a9e70 - [IBAbstractPlatformTool startServingWriteDescriptor:readDescriptor:]
    44.   
    45. IBFoundation 0x00000001026aa97a + [IBAbstractPlatformTool main]
    46.   
    47. ??? 0x0000000100743bc7 ???
    48.   
    49. libdyld.dylib 0x00000001070dc92d start异常信息:{}
    50.         

      例外:

              

      流布局

      不支持负尺寸
      EXCEPTION BACKTRACE
      
           
          
      1. CoreFoundation 0x00000001033d5f4d __exceptionPreprocess
      2.   
      3. libobjc.A.dylib 0x0000000102e4fdeb objc_exception_throw
      4.   
      5. CoreFoundation 0x00000001033d5dca + [NSException raise:format:arguments:]
      6.   
      7. 基金会0x0000000102a9dae2 - [NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
      8.   
      9. UIKit 0x00000001010db6ff - [UICollectionViewFlowLayout _getSizingInfos]
      10.   
      11. UIKit 0x00000001010dcef5 - [UICollectionViewFlowLayout _fetchItemsInfoForRect:]
      12.   
      13. UIKit 0x00000001010d669d - [UICollectionViewFlowLayout prepareLayout]
      14.   
      15. UIKit 0x00000001010f6ef1 - [UICollectionViewData _prepareToLoadData]
      16.   
      17. UIKit 0x00000001010f767a - [UICollectionViewData validateLayoutInRect:]
      18.   
      19. UIKit 0x00000001010a883e - [UICollectionView layoutSubviews]      
            
        1. UIKit 0x000000010094911c - [UIView(CALayerDelegate)layoutSublayersOfLayer:]
        2.   
        3. QuartzCore 0x00000001028bd36a - [CALayer layoutSublayers]
        4.   
        5. QuartzCore 0x00000001028b1bd0 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE
        6.   
        7. UIKit 0x0000000100938d7b - [UIView(Hierarchy)layoutBelowIfNeeded]
        8.   
        9. IBCocoaTouchToolFoundation 0x00000001007c6920 - [UIView(IBCocoaTouchToolIntegration)awakeAfterMarshallerDidEstablishRelationshipsWithContext:populatingWarningMessages:]
        10.   
        11. IBCocoaTouchToolFoundation 0x00000001007e72ab - [IBCocoaTouchToolObjectPackage initWithRequest:globalMarshallingContext:]
        12.   
        13. IBCocoaTouchToolFoundation 0x00000001007e4533 + [IBCocoaTouchToolObjectPackage objectPackageFromRequest:]
        14.   
        15. IBCocoaTouchToolFoundation 0x00000001007c321e - [IBCocoaTouchTool _objectFromRequest:]
        16.   
        17. IBCocoaTouchToolFoundation 0x00000001007c361e - [IBCocoaTouchTool valuesForKeyPaths:ofMarshalledObjectRequest:resultMarshallerClassNames:resultMarshallerContexts:]
        18.   
        19. IBFoundation 0x00000001026cc54f __80- [IBMessageReceiveChannel deliverMessage:toTarget:withArguments:context:result:] _ block_invoke
        20.   
        21. IBFoundation 0x00000001026cc25f - [IBMessageReceiveChannel deliverMessage:toTarget:withArguments:context:result:]
        22.   
        23. IBFoundation 0x00000001026cbf58 __88- [IBMessageReceiveChannel runBlockingReceiveLoopNotifyingQueue:notifyingTarget:context:] _ block_invoke
        24.   
        25. libdispatch.dylib 0x00000001070ad4a7 _dispatch_client_callout
        26.   
        27. libdispatch.dylib 0x0000000107098f9b _dispatch_barrier_sync_f_slow_invoke
        28.   
        29. libdispatch.dylib 0x00000001070ad4a7 _dispatch_client_callout
        30.   
        31. libdispatch.dylib 0x0000000107097fc9 _dispatch_main_queue_callback_4CF
        32.   
        33. CoreFoundation 0x00000001033363e9 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE
        34.   
        35. CoreFoundation 0x00000001032f7939 __CFRunLoopRun
        36.   
        37. CoreFoundation 0x00000001032f6e98 CFRunLoopRunSpecific
        38.   
        39. 基金会0x0000000102a3d891 - [NSRunLoop(NSRunLoop)runMode:beforeDate:]
        40.   
        41. IBFoundation 0x00000001026a9c94 - [IBAbstractPlatformTool startServingReceiveChannel:]
        42.   
        43. IBFoundation 0x00000001026a9e70 - [IBAbstractPlatformTool startServingWriteDescriptor:readDescriptor:]
        44.   
        45. IBFoundation 0x00000001026aa97a + [IBAbstractPlatformTool main]
        46.   
        47. ??? 0x0000000100743bc7 ???
        48.   
        49. libdyld.dylib 0x00000001070dc92d start
        50.   
      20.   

1 个答案:

答案 0 :(得分:0)

进入具有负值的故事板或笔尖并修改xml?