Post

Replies

Boosts

Views

Activity

[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
815
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
877
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
622
Sep ’20
[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
829
Aug ’20
[Catalina] Xcode 12 Sub-Tabs stop working (won't switch sub-tabs) after clicking on a XIB or Storyboard SUB-TAB
Version 12.0 beta 3 (12A8169g) I'm facing a strange issue, When you activate (click) on a storyboard or XIB SUB-TABS (active sub tab appears in blue, below the main tabs), the SUB TABS all together stop working for the PARENT (Main) TAB, Even closing the Storyboard or XIB sub-tabs has no effect. Restarting Xcode, everything works, UNTIL you click on a storyboard or XIB sub-tab and the problem occurs. Basically once you activate a storyboard or XIB sub-tab, the other sub tabs buttons just stop working. Any one else facing this issue? FB8205630
0
0
673
Jul ’20
API to create a backup/copy of the SQLite Persistent Store, and replicate it on other devices running the same app?
I would like to be able to manually transfer over / replicate / duplicate the SQLite-based persistent store to different devices running the same app, from an originating "master" persistent store. >>>> 1) What is the recommended procedure / API to be able to duplicate the data store to another device running the same app? The options to create a backup file are: a) I see there are three files that store the SQLite database: datamodel.sqlite, DataModel.sqlite-shm, DataModel.sqlite-wal. Zip up the three files and replace the existing files on the another device running the app, programmatically using NSFileManager. Are all three files necessary to create a pristine replica of the SQLite database? b) Is there any API in the CoreData to be able to generate / serialize a single output backup file of the persistent store? And what would be the corresponding API to be able to import (replace existing store) from a backup file?
0
0
625
Jul ’20