iOS18 Crash FetchedProperty CoreData

Hi Folks,

starting with iOS18 and using Xcode16, accessing fetchedProperties results in an error. I identified the issue to occur as soon as the initialization of a fetched property with external binary data storage starts.

Console output during debugging:

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'This expression has evaluation disabled'
*** First throw call stack:
[...]
libc++abi: terminating due to uncaught exception of type NSException

Console output when trying to "print" the item via the contact menu of the debugger:

Printing description of variable:
error: error: Execution was interrupted, reason: internal ObjC exception breakpoint(-6)..
The process has been returned to the state before expression evaluation.
Message from debugger: killed

The identical code works with iOS before iOS 18 (same for iPadOS 18).

Does anyone observed a similar issue and figured out a solution already?

Cheers, folox

Yeah, Core Data fetched property is broken in iOS 18, and the team is actively working on that. The error message I saw was pretty much the same as what you provided, but I’d still suggest that you file your own feedback report so your use case is covered by the potential fix – If you do so, please share your report ID here for folks to track.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

Hello,

Is there any new about this? We are experiencing the same issue.

I need a solution, how do you fix this?

iOS18 Crash FetchedProperty CoreData
 
 
Q