Post

Replies

Boosts

Views

Activity

[NSPersistentCloudKitContainer][Mac Catalyst specific crash] app is constantly crashing within a minute or two
Core Data, Catalyst, CloudKIt engineers need your assistance. I have an app that uses NSPersistentCloudKitContainer. It works great on iOS, but on the mac (Catalyst), the app is constantly crashing and is unusable. The CloudKit scheduler "com.apple.xpc.activity.com.apple.cloudkit.scheduler.com.apple.coredata.cloudkit.activity.export" seems to be at fault. It's crashing inside a generic dispatch block, so it's impossible to debug. Found a similar thread: https://developer.apple.com/forums/thread/128131?page=1 This is on Catalina 10.15.5 (19F101). MacBook Pro (Retina, 13-inch, Early 2015) Any ideas on how to debug/solve the root cause of this issue? Here's the image of the crash report (image hosted on imgbb.com): ibb.co nQy6rwm Thread 19 Queue : com.apple.xpc.activity.com.apple.cloudkit.scheduler.com.apple.coredata.cloudkit.activity.export (serial) #0 0x00007fff73de0436 in __xpcactivitydispatchblockinvoke.109.cold.3 () #1 0x00007fff73dde82b in _xpcactivitydispatchblockinvoke.109 () #2 0x000000010040f844 in dispatchcallblockandrelease () #3 0x0000000100410826 in dispatchclientcallout () #4 0x0000000100417dd7 in dispatchlaneserialdrain () #5 0x0000000100418b90 in dispatchlaneinvoke () #6 0x0000000100425fe0 in dispatchworkloopworkerthread () #7 0x000000010049e361 in pthreadwqthread () #8 0x000000010049d49b in startwqthread () Enqueued from com.apple.root.background-qos (Thread 18) Queue : com.apple.root.background-qos (serial) #0 0x000000010041547c in dispatchasync () #1 0x00007fff73dc8c3c in xpcactivitydispatch () #2 0x00007fff73dc52bc in xpcconnectioncalleventhandler () #3 0x00007fff73dc41cb in xpcconnectionmachevent () #4 0x00000001004108c6 in dispatchclientcallout4 () #5 0x000000010042dbcc in dispatchmachmsginvoke () #6 0x0000000100417be6 in dispatchlaneserialdrain () #7 0x000000010042ef6c in dispatchmachinvoke () #8 0x0000000100425fe0 in dispatchworkloopworkerthread () #9 0x000000010049e361 in pthreadwqthread () #10 0x000000010049d49b in startwqthread () libxpc.dylib`_xpcactivitydispatchblockinvoke.109.cold.3:   0x7fff73de0423 <+0>: pushq %rbp   0x7fff73de0424 <+1>: movq  %rsp, %rbp   0x7fff73de0427 <+4>: xorl  %edi, %edi   0x7fff73de0429 <+6>: callq 0x7fff73de04d8      ; symbol stub for: osassertlog   0x7fff73de042e <+11>: movq  %rax, %rdi   0x7fff73de0431 <+14>: callq 0x7fff73de04ea      ; symbol stub for: oscrash> 0x7fff73de0436 <+19>: ud2    Thread 19: EXCBADINSTRUCTION (code=EXCI386INVOP, subcode=0x0)
1
0
901
Aug ’20
[NSPersistentCloudKitContainer] CloudKit integration forbids renaming 'OldEntityName' to 'NewEntityName'. Older devices can't process the new records. How to proceed?
I used a renaming identifier to rename an Entity Name, but it doesn't seem to work and it causes a crash at start during in-place migration. How to rename an Entity Name when using NSPersistentCloudKitContainer? I get this exception at start: CloudKit integration forbids renaming 'OldEntityName' to 'NewEntityName'. Older devices can't process the new records. Unresolved error Error Domain=NSCocoaErrorDomain Code=134110 "An error occurred during persistent store migration." App is not in production, need a way to rename 'OldEntityName' to 'NewEntityName'. How to achieve this?
1
1
886
Sep ’20
Is it possible to rename Entities after using NSPersistentCloudKitContainer in Core Data?
I've tried using renaming Identifier: 1) Automatic / Lightweight migration seems to fail, because "CloudKit integration forbids renaming entities. older devices cannot process these records" 2) Tried using just NSPersistentContainer, and the lightweight migration still fails with the above message. NSPersistentCloudKitContainer seems to have marked/tainted the persistent store / SQLite so that renaming of entities is not possible at all. Does anyone know if it is possible to rename entities once you start using NSPersistentCloudKitContainer? (heavyweight migration or such?) Has anyone done this before, in a production app or otherwise?
1
0
1k
Sep ’20
iOS 14 UISplitViewController Triple-Column Layout in Interface Builder, show only Two Columns in Landscape on iPhone?
Previously you could set the width of the preferredSupplementaryColumnWidth to automaticSupplementaryFillDimension, but this API seems to have been removed. hideColumn: method seems to have no effect. Any one manage to show only Two Columns in Landscape on iPhone using UISplitViewController with a triple-column IB setup? Triple column layout is utilized on the iPad/Mac, but want two columns, max, on iPhone in landscape.
0
0
681
Sep ’20