Why does XCode11 (beta 4) show error opening any XIB with a UITextView?? "An Internal Error has occurred. Editing functionality may be limited"

Using XCode11 Beta 4 - my project has dozens of XIBs and a bunch of Storyboards. Every one of them which contains a UITextView shows this error when opened in Interface Builder (in XCode).


"An Internal Error has occurred. Editing functionality may be limited"


When this happens, XCode shows only outlines of each subview, no content is visible.


XIBs which do not contain any UITextView objects are unaffected and work fine.


XCode shows a "Report Bug" button when this happens, and clicking it takes me to the IB log file which contains this:


=================================
    EXCEPTION:
=================================
-[UITextView _firstBaselineOffsetFromTop] only valid when using auto layout


I removed the text view from 2 XIBs, as a test, and they started working immediately.


Additionally, I created a test project in Xcode11 Beta4 and as soon as I added a UITextView to a XIB, the same error appeared. I thought the problem might be legacy XIBs created with older versions of XCode, but in fact it seems IB is broken when it comes to UITextView.


Does anyone from Apple know if this is being addressed in the next beta, and WHEN that might be (yeah, I know, but I had to ask, it's my nature).


Thanks.



Below is more from the Log.txt file in the IB-agent-diagnostic folder:


=================================
    ASSERTION:
=================================

Failed to update scene 'i5M-Pr-FkT' with IBLayoutConstraint (x56), UIButton (x4), UILabel (x2), UIScrollView (x1), UITextField (x2), UITextView (x1), and UIView (x6).


Exception name: NSInternalInconsistencyException
Exception reason: -[UITextView _firstBaselineOffsetFromTop] only valid when using auto layout
Exception backtrace:
  0. CoreFoundation           0x00007fff23af9c2e __exceptionPreprocess
  1. libobjc.A.dylib          0x00007fff50131de0 objc_exception_throw
  2. CoreFoundation           0x00007fff23af99b8 +[NSException raise:format:arguments:]
  3. Foundation               0x00007fff255749ad -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
  4. UIKitCore                0x00007fff46fb8184 -[UITextView _firstBaselineOffsetFromTop]
  5. IBCocoaTouchToolFoundation 0x0000000107960cee -[UIView(IBCocoaTouchToolIntegration) ibShadowedFirstBaselineOffsetFromTop]
  6. Foundation               0x00007fff25599c05 _NSGetDoubleValueWithMethod
  7. Foundation               0x00007fff2559d97f -[NSObject(NSKeyValueCoding) valueForKey:]
  8. IBCocoaTouchToolFoundation 0x0000000107979c3b -[IBUICachedGeometryRequest(IBCTTSupport) produceResultForRequest:simulatedMetricsContext:scaleFactor:tool:]
  9. IBCocoaTouchToolFoundation 0x000000010798b57b IBCTTRunProcessingRequestsPopulatingResults
10. IBCocoaTouchToolFoundation 0x000000010798ba8e __IBCTTProduceResultForSceneUpdateRequest_block_invoke_2
11. IBCocoaTouchToolFoundation 0x000000010799253d -[IBCTTUISimulatedMetricsContext applyStatusBarOverrideDuring:]
12. IBCocoaTouchToolFoundation 0x0000000107992479 -[IBCTTUISimulatedMetricsContext applyGlobalAndAdditionalSimulatedMetricsForTool:during:]
13. IBCocoaTouchToolFoundation 0x000000010798b0c2 IBCTTProduceResultForSceneUpdateRequest
14. IBCocoaTouchToolFoundation 0x000000010795b152 -[IBCocoaTouchTool updateScenesWithSceneUpdateRequests:]
15. IBFoundation             0x0000000107c2b687 __80-[IBMessageReceiveChannel deliverMessage:toTarget:withArguments:context:result:]_block_invoke
16. IBFoundation             0x0000000107c2b558 -[IBMessageReceiveChannel deliverMessage:toTarget:withArguments:context:result:]
17. IBFoundation             0x0000000107c2af51 __88-[IBMessageReceiveChannel runBlockingReceiveLoopNotifyingQueue:notifyingTarget:context:]_block_invoke
18. libdispatch.dylib        0x00007fff50f72845 _dispatch_client_callout
19. libdispatch.dylib        0x00007fff50f7f934 _dispatch_async_and_wait_invoke
20. libdispatch.dylib        0x00007fff50f72845 _dispatch_client_callout
21. libdispatch.dylib        0x00007fff50f7ed6e _dispatch_main_queue_callback_4CF
22. CoreFoundation           0x00007fff23a5cbf9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
23. CoreFoundation           0x00007fff23a57859 __CFRunLoopRun
24. CoreFoundation           0x00007fff23a56c16 CFRunLoopRunSpecific
25. Foundation               0x00007fff255f5a73 -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
26. IBFoundation             0x0000000107be5a1d -[IBAbstractPlatformTool startServingReceiveChannel:]
27. IBFoundation             0x0000000107be5c75 -[IBAbstractPlatformTool startServingWriteDescriptor:readDescriptor:]
28. IBFoundation             0x0000000107be6af6 +[IBAbstractPlatformTool main]
29. IBAgent-iOS              0x000000010789d957 main
30. libdyld.dylib            0x00007fff50fb24ad start
Exception info:{
}


=================================
    EXCEPTION:
=================================

-[UITextView _firstBaselineOffsetFromTop] only valid when using auto layout


=================================
    EXCEPTION BACKTRACE:
=================================

  0. CoreFoundation           0x00007fff23af9c2e __exceptionPreprocess
  1. libobjc.A.dylib          0x00007fff50131de0 objc_exception_throw
  2. CoreFoundation           0x00007fff23af99b8 +[NSException raise:format:arguments:]
  3. Foundation               0x00007fff255749ad -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
  4. UIKitCore                0x00007fff46fb8184 -[UITextView _firstBaselineOffsetFromTop]
  5. IBCocoaTouchToolFoundation 0x0000000107960cee -[UIView(IBCocoaTouchToolIntegration) ibShadowedFirstBaselineOffsetFromTop]
  6. Foundation               0x00007fff25599c05 _NSGetDoubleValueWithMethod
  7. Foundation               0x00007fff2559d97f -[NSObject(NSKeyValueCoding) valueForKey:]
  8. IBCocoaTouchToolFoundation 0x0000000107979c3b -[IBUICachedGeometryRequest(IBCTTSupport) produceResultForRequest:simulatedMetricsContext:scaleFactor:tool:]
  9. IBCocoaTouchToolFoundation 0x000000010798b57b IBCTTRunProcessingRequestsPopulatingResults
10. IBCocoaTouchToolFoundation 0x000000010798ba8e __IBCTTProduceResultForSceneUpdateRequest_block_invoke_2
11. IBCocoaTouchToolFoundation 0x000000010799253d -[IBCTTUISimulatedMetricsContext applyStatusBarOverrideDuring:]
12. IBCocoaTouchToolFoundation 0x0000000107992479 -[IBCTTUISimulatedMetricsContext applyGlobalAndAdditionalSimulatedMetricsForTool:during:]
13. IBCocoaTouchToolFoundation 0x000000010798b0c2 IBCTTProduceResultForSceneUpdateRequest
14. IBCocoaTouchToolFoundation 0x000000010795b152 -[IBCocoaTouchTool updateScenesWithSceneUpdateRequests:]
15. IBFoundation             0x0000000107c2b687 __80-[IBMessageReceiveChannel deliverMessage:toTarget:withArguments:context:result:]_block_invoke
16. IBFoundation             0x0000000107c2b558 -[IBMessageReceiveChannel deliverMessage:toTarget:withArguments:context:result:]
17. IBFoundation             0x0000000107c2af51 __88-[IBMessageReceiveChannel runBlockingReceiveLoopNotifyingQueue:notifyingTarget:context:]_block_invoke
18. libdispatch.dylib        0x00007fff50f72845 _dispatch_client_callout
19. libdispatch.dylib        0x00007fff50f7f934 _dispatch_async_and_wait_invoke
20. libdispatch.dylib        0x00007fff50f72845 _dispatch_client_callout
21. libdispatch.dylib        0x00007fff50f7ed6e _dispatch_main_queue_callback_4CF
22. CoreFoundation           0x00007fff23a5cbf9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
23. CoreFoundation           0x00007fff23a57859 __CFRunLoopRun
24. CoreFoundation           0x00007fff23a56c16 CFRunLoopRunSpecific
25. Foundation               0x00007fff255f5a73 -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
26. IBFoundation             0x0000000107be5a1d -[IBAbstractPlatformTool startServingReceiveChannel:]
27. IBFoundation             0x0000000107be5c75 -[IBAbstractPlatformTool startServingWriteDescriptor:readDescriptor:]
28. IBFoundation             0x0000000107be6af6 +[IBAbstractPlatformTool main]
29. IBAgent-iOS              0x000000010789d957 main
30. libdyld.dylib            0x00007fff50fb24ad start

Replies

Any solution to this issue yet?
I am using xcode 12.4 on mac os catalina.