After updating Xcode 7.0.1, I’m not able to open my workspace, every time it’s crashes. After reading all this text I understand it’s about flow layout of collection view, and some negative value. Let's say I don’t have chance to go back to Xcode 6. Does anyone has similar problem, or know how to fix this?
exception :
negative sizes are not supported in the flow layout
about my workspace :
using
OS OS X 10.11 (macosx10.11):
Here is the crash log :
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
CoreFoundation 0x00000001033d5dca +[NSExceptionraise:format:arguments:]
Foundation 0x0000000102a9dae2 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
UIKit 0x00000001010db6ff -[UICollectionViewFlowLayout _getSizingInfos]
- UIKit 0x00000001010dcef5 -[UICollectionViewFlowLayout _fetchItemsInfoForRect:]
- UIKit 0x00000001010d669d -[UICollectionViewFlowLayout prepareLayout]
- UIKit 0x00000001010f6ef1 -[UICollectionViewData _prepareToLoadData]
- UIKit 0x00000001010f767a -[UICollectionViewData validateLayoutInRect:]
UIKit 0x00000001010a883e -[UICollectionView layoutSubviews]
- UIKit 0x000000010094911c -[UIView(CALayerDelegate) layoutSublayersOfLayer:]
- QuartzCore 0x00000001028bd36a -[CALayer layoutSublayers]
- QuartzCore 0x00000001028b1bd0 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE
- UIKit 0x0000000100938d7b -[UIView(Hierarchy) layoutBelowIfNeeded]
- IBCocoaTouchToolFoundation 0x00000001007c6920 -[UIView(IBCocoaTouchToolIntegration) awakeAfterMarshallerDidEstablishRelationshipsWithContext:populatingWarningMessages:]
- IBCocoaTouchToolFoundation 0x00000001007e72ab -[IBCocoaTouchToolObjectPackage initWithRequest:globalMarshallingContext:]
- IBCocoaTouchToolFoundation 0x00000001007e4533 +[IBCocoaTouchToolObjectPackage objectPackageFromRequest:]
- IBCocoaTouchToolFoundation 0x00000001007c321e -[IBCocoaTouchTool _objectFromRequest:]
- IBCocoaTouchToolFoundation 0x00000001007c361e -[IBCocoaTouchTool valuesForKeyPaths:ofMarshalledObjectRequest:resultMarshallerClassNames:resultMarshallerContexts:]
- IBFoundation 0x00000001026cc54f __80-[IBMessageReceiveChannel deliverMessage:toTarget:withArguments:context:result:]_block_invoke
- IBFoundation 0x00000001026cc25f -[IBMessageReceiveChannel deliverMessage:toTarget:withArguments:context:result:]
- IBFoundation 0x00000001026cbf58 __88-[IBMessageReceiveChannel runBlockingReceiveLoopNotifyingQueue:notifyingTarget:context:]_block_invoke
- libdispatch.dylib 0x00000001070ad4a7 _dispatch_client_callout
- libdispatch.dylib 0x0000000107098f9b _dispatch_barrier_sync_f_slow_invoke
- libdispatch.dylib 0x00000001070ad4a7 _dispatch_client_callout
- libdispatch.dylib 0x0000000107097fc9 _dispatch_main_queue_callback_4CF
- CoreFoundation 0x00000001033363e9 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE
- CoreFoundation 0x00000001032f7939 __CFRunLoopRun
- CoreFoundation 0x00000001032f6e98 CFRunLoopRunSpecific
- Foundation 0x0000000102a3d891 -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
- IBFoundation 0x00000001026a9c94 -[IBAbstractPlatformTool startServingReceiveChannel:]
- IBFoundation 0x00000001026a9e70 -[IBAbstractPlatformTool startServingWriteDescriptor:readDescriptor:]
- IBFoundation 0x00000001026aa97a +[IBAbstractPlatformTool main]
- ??? 0x0000000100743bc7 ???
- libdyld.dylib 0x00000001070dc92d start Exception info:{ }
EXCEPTION :
negative sizes are not supported in the flow layout
EXCEPTION BACKTRACE
- CoreFoundation 0x00000001033d5f4d __exceptionPreprocess
- libobjc.A.dylib 0x0000000102e4fdeb objc_exception_throw
- CoreFoundation 0x00000001033d5dca +[NSException raise:format:arguments:]
- Foundation 0x0000000102a9dae2 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
- UIKit 0x00000001010db6ff -[UICollectionViewFlowLayout _getSizingInfos]
- UIKit 0x00000001010dcef5 -[UICollectionViewFlowLayout _fetchItemsInfoForRect:]
- UIKit 0x00000001010d669d -[UICollectionViewFlowLayout prepareLayout]
- UIKit 0x00000001010f6ef1 -[UICollectionViewData _prepareToLoadData]
- UIKit 0x00000001010f767a -[UICollectionViewData validateLayoutInRect:]
- UIKit 0x00000001010a883e -[UICollectionView layoutSubviews]
- UIKit 0x000000010094911c -[UIView(CALayerDelegate) layoutSublayersOfLayer:]
- QuartzCore 0x00000001028bd36a -[CALayer layoutSublayers]
- QuartzCore 0x00000001028b1bd0 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE
- UIKit 0x0000000100938d7b -[UIView(Hierarchy) layoutBelowIfNeeded]
- IBCocoaTouchToolFoundation 0x00000001007c6920 -[UIView(IBCocoaTouchToolIntegration) awakeAfterMarshallerDidEstablishRelationshipsWithContext:populatingWarningMessages:]
- IBCocoaTouchToolFoundation 0x00000001007e72ab -[IBCocoaTouchToolObjectPackage initWithRequest:globalMarshallingContext:]
- IBCocoaTouchToolFoundation 0x00000001007e4533 +[IBCocoaTouchToolObjectPackage objectPackageFromRequest:]
- IBCocoaTouchToolFoundation 0x00000001007c321e -[IBCocoaTouchTool _objectFromRequest:]
- IBCocoaTouchToolFoundation 0x00000001007c361e -[IBCocoaTouchTool valuesForKeyPaths:ofMarshalledObjectRequest:resultMarshallerClassNames:resultMarshallerContexts:]
- IBFoundation 0x00000001026cc54f __80-[IBMessageReceiveChannel deliverMessage:toTarget:withArguments:context:result:]_block_invoke
- IBFoundation 0x00000001026cc25f -[IBMessageReceiveChannel deliverMessage:toTarget:withArguments:context:result:]
- IBFoundation 0x00000001026cbf58 __88-[IBMessageReceiveChannel runBlockingReceiveLoopNotifyingQueue:notifyingTarget:context:]_block_invoke
- libdispatch.dylib 0x00000001070ad4a7 _dispatch_client_callout
- libdispatch.dylib 0x0000000107098f9b _dispatch_barrier_sync_f_slow_invoke
- libdispatch.dylib 0x00000001070ad4a7 _dispatch_client_callout
- libdispatch.dylib 0x0000000107097fc9 _dispatch_main_queue_callback_4CF
- CoreFoundation 0x00000001033363e9 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE
- CoreFoundation 0x00000001032f7939 __CFRunLoopRun
- CoreFoundation 0x00000001032f6e98 CFRunLoopRunSpecific
- Foundation 0x0000000102a3d891 -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
- IBFoundation 0x00000001026a9c94 -[IBAbstractPlatformTool startServingReceiveChannel:]
- IBFoundation 0x00000001026a9e70 -[IBAbstractPlatformTool startServingWriteDescriptor:readDescriptor:]
- IBFoundation 0x00000001026aa97a +[IBAbstractPlatformTool main]
- ??? 0x0000000100743bc7 ???
- libdyld.dylib 0x00000001070dc92d start
Go into the storyboard or nib that has the negative value and modify the xml?