Coredata+CloudKit Mirror Catalyst crash: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)

Something that I've been during the development of Mac Catalyst with core data + CloudKit mirror is a crash that happened for "no reason". It's something that only happened when you are running your app by Xcode, I tried to replicate this same error opening the debug version and it didn't happen.

In fact, today I had 2 labs to figure out what's going on: Core data Lab, JUNE 23 TUESDAY AT 12:00 PM PDT, and JUNE 23 TUESDAY AT 1:30 PM PDT, but the bug didn't appear in both. Fortunately / unfortunately, the bug happened when I turned off the Lab call 🧐.

So, here I am again! This time I uploaded to the feedback assistant the radar file with the System Information Report and here is the URL:

https://feedbackassistant.apple.com/feedback/7761898

I Hope helped you guys, I'm looking forward to hearing from you.
there's no crash report in that feedback issue, as it appears you were running with the debugger attached in Xcode.
please get the full stack trace from Xcode
also, give seed 1 a try

Hello,

I updated the files on the Feedback Assistant. I hope this time the sysdiagnose has catch it!
This is fixed in your developer seed. The issue looks like:

com.apple.xpc.activity.com.apple.cloudkit.scheduler.com.apple.coredata.cloudkit.activity.export', stop reason = EXCBADINSTRUCTION (code=EXCI386INVOP, subcode=0x0)
  • frame #0: 0x00007fff69d8a436 libxpc.dylib___xpc_activity_dispatch_block_invoke.109.cold.3 + 19

frame #1: 0x00007fff69d8882b libxpc.dylib__xpcactivitydispatchblockinvoke.109 + 746
frame #2: 0x0000000100494844 libdispatch.dylib`
dispatchcallblockandrelease + 12

in libxpc in Catalyst projects while Xcode is attached.
I am running Catalina 10.15.6 (19G73) and Xcode 11.6 (11E708) an I am getting this exact same error. See Below:

libxpc.dylib`__xpcactivitydispatchblock_invoke.109.cold.3:

This is stopping me submitting this catalyst app to production. Does anyone know of a fix?
Still unresolved in 10.15.6 + Xcode 12 Beta 4.

This is really bad.

Can anyone offer some tips or provide a progress update on this issue?
Coredata+CloudKit Mirror Catalyst crash: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
 
 
Q