app crashes updating to Xcode 11.2 from 11.1

This thread has been locked by a moderator; it no longer accepts new replies.

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.

Answered by DTS Engineer in 392605022

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.

Boost

> I don't mean to sound condescending, I'm sorry you heard it like that.


No worries.


> Xcode 11.2.1 was released yesterday, with build number 11B500. The GM Seed previously referened by me in other posts on this thread had build number 11B53.


I'll give that a try.


As for GM, once I saw that the crash was occuring, I did what probably every developer out there would do and use the GM version, trusting that it was fixed. Moreover, App Store Connect was happy to accept binaries submitted with GM.


Also, why did it take 7 days before Xcode 11.2.1 hit the App Store? I certainly hope this was just not a marketing thing because of the release of the 16" MacBook Pro and build 11B500 had some new references to it.


Bugs do happen but this lack of communication is bad.


Sorry to be so harsh. Just to make sure, I'm not blaming your personaly. You're probably doing your best and are overworked but something is wrong at Apple right now and I hope management is aware of that.

There is still an issue on Version 11.2.1 (11B500) but on devices with 12.4.1 still getting:

*** 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)'
*** First throw call stack:
(0x1a5d9298c 0x1a4f6b9f8 0x1a5c9cbc0 0x1b0431de8 0x1b043216c 0x1b03d1304 0x1d2c8ce70 0x1d2c3b2e8 0x1d2b44d6c 0x1b0431f28 0x1b043216c 0x1b03d1304 0x1d2c8ce70 0x1d2bed188 0x1b0431f28 0x1b043216c 0x1b03d1304 0x1d2c8ce70 0x1d2bed188 0x1b0431f28 0x1b043216c 0x1b03d1304 0x1d2c8ce70 0x1d2c3b2e8 0x1b0431f28 0x1b03d1304 0x1d24e0508 0x1b0431f28 0x1b043216c 0x1b03d1304 0x1d24dddf0 0x1d227926c 0x1d2279c14 0x1d2279ed8 0x1d227a628 0x1d21d7724 0x1d21eb714 0x1d21ecb3c 0x1d21cfd4c 0x1d2cbb170 0x1aa2cfc60 0x1aa2d4c08 0x1aa2373e4 0x1aa265620 0x1aa26615c 0x1a5d23d08 0x1a5d1ea30 0x1a5d1efac 0x1a5d1e7c0 0x1a7f1f79c 0x1d2823c38 0x100970c08 0x1a57e28e0)
libc++abi.dylib: terminating with uncaught exception of type NSException

Xcode 11.2.1 released with build number 11B500. The GM Seed had build number 11B53 and is not the same as the released build. Please rebuild with this released build, and if you still continue to get these crashes after that, please open a Feedback Assistant ticket and post the number here so I can follow up on it.

Doing this helped on the 11.2.1 (11B500) and devices with 12.4.1 Installed

So it seems that the issue is gone when building with 11B500. However, the description for build 11B53 (GM) clearly stated that it was released to fix the UITextView bug.


It feels like you're blaming developers for trusting Apple that the GM was safe to use given that fact that it took Apple seven (7) days to release build 11B500 on the Mac App Store.


The only party to blame here is Apple. If we cannot trust the company and the tools they provide, what's left?

FB7438077. I have not tested under 11B500. Will try that tomorrow.

The issue appears to be resolved in 11B500. Yay!


I'll close out the feedback.

The bug exists in xcode 11.3. Can not run simplest code (one textedit and one button created in xcode 10.3) in iOS 12.4.2 29/12/2019 Oops looks I am wrong - it works.

I tested with Xcode 11.3 (11C29) for the NSInvalidUnarchiveOperationException that I was able to reproduce before 11B500 (some unfortunate 11.2 releases). UITextViews are doing ok, no problem under iOS 12.4.3 that I tested with.

I am getting this error with Xcode 11.3.1 and also Xcode 11.4 beta 2. I tried setting DEAD_CODE_STRIPPING to NO and that didn't help. I submitted a feedback assistant bug.

I am also getting this error with Xcode 11.3.1. I can't remember when I updated but I am confident it used to work fine until very recently for me. I'll also submit a feedback assistant bug.

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 ;-)
app crashes updating to Xcode 11.2 from 11.1
 
 
Q