app crashes updating to Xcode 11.2 from 11.1

This thread has been locked. Questions are automatically locked after two months of inactivity, or sooner if deemed necessary by a moderator.

My app ran without any crashes while using Xcode 11.1. After updating to XCode 11.2, my app experienced a crash:


*** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named _UITextLayoutView because no class named _UITextLayoutView was found; the class needs to be defined in source code or linked in from a library (ensure the class is part of the correct target)'


This crash seems to occur during a perpare for seque, before any of my views appear on the screen.


Any idea on the cause or solution?


Thanks.

Up vote post of shirefriendship
46k views

Solved Answer

This is addressed in the GM Seed of Xcode 11.2.1. If you are writing a Mac Catalyst app, please also see the release notes for Xcode 11.2.1.


For any other issues you encounter while using Xcode, please file bug reports.

98 Replies

Thank you so much !!! This absolutely worked for me and saved my day...


Steps taken:

For each .xib in my framework:

1 - Delete all views

2 - Save

3 - Ctrl-Z

4 - Save


... Saved!

I'm facing the same issue using XCode 11.3.1 on iOS 10 specifically. I think its not solved yet.



Fatal Exception: NSInvalidUnarchiveOperationException
Could not instantiate class named _UIScrollViewLayoutGuide


Raw Text

0


CoreFoundation


__exceptionPreprocess


2


CoreFoundation


-[NSException initWithCoder:]


3

UIKit


UINibDecoderDecodeObjectForValue


4


UIKit


-[UINibDecoder decodeObjectForKey:]


42


UIKit


UIApplicationMain


43

Athan


main.m line 19
main + 19


44

libdyld.dylib


start


This was causing me massive problems. I found that toggling catalyst off and restarting Xcode a few times solved it for me at least temporarily.
Hi, did you ask this five minutes ago?

We are by now on Xcode 11.5 (11.6 Beta) ;-)

It is important to only use the latest available release. Of course, you can always set lower development targets for older OS versions, but keep your Xcode updated.

This might solve your issue ;-)
Addressed in the GM Seed of Xcode 11.2.1.
I have my game just published in google play but I want to have it here in apple so I would like to communicate with an apple expert to play my game and give me suggestions if they can approve my game
same here.
same here.