iOS18 - NSInternalInconsistencyException

Does any ont encountered such crash? It only occured on iOS18 device.

Application Specific Information:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '_endUndoGroupRemovingIfEmpty:: _UITextUndoManager 0x30d3bca50 is in invalid state, endUndoGrouping called with no matching begin

UserInfo:(null)'

Pthread id: 2420148
Thread 0 Crashed:
0   CoreFoundation                  __exceptionPreprocess + 164
1   libobjc.A.dylib                 objc_exception_throw + 88
2   Foundation                      -[NSUndoManager endUndoGrouping] + 0
3   Foundation                      __NSFirePerformWithOrder + 296
4   CoreFoundation                  __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 36
5   CoreFoundation                  __CFRunLoopDoObservers + 552
6   CoreFoundation                  __CFRunLoopRun + 788
7   CoreFoundation                  CFRunLoopRunSpecific + 588
8   GraphicsServices                GSEventRunModal + 164
9   UIKitCore                       -[UIApplication _run] + 816
10  UIKitCore                       UIApplicationMain + 340
11  application                        main (main.m:39)
12  (null) 0x00000001abfecde8 0x0 + 7180570088

Thanks so much for the post.

I'm unable to work with this crash report as I need to see the complete Apple crash report with its original formatting preserved. Please post the complete Apple crash report as an attachment to preserve its formatting.

Posting a Crash Report explains how to do so.

Do you get the same results with just the relevant code in a small test project? If so, please share a link to your test project. That'll help us better understand what's going on. If you're not familiar with preparing a test project, take a look at Creating a test project.

Albert Pascual
  Worldwide Developer Relations.

iOS18 - NSInternalInconsistencyException
 
 
Q