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?
Post
Replies
Boosts
Views
Activity
Is the wal file supposed to fluctuate in size or just keep on growing in size? It seems to be ever-growing.
data.sqlite - 266KB
data.sqlite-shm - 33KB
data.sqlite-wal - 3.3MB
Are there any zombie objects or such causing the file size to keep on growing? How do I debug what's causing the write-ahead-log file to keep growing in size?
What would be the Objective-C equivalent of "#if targetEnvironment(macCatalyst)" (works in swift but not objc)? I'm getting "Function-like macro 'targetEnvironment' is not defined" error
Is it possible to deploy a "Universal app", only for iPad OS &
Mac Catalyst platforms without iPhone support in the App Store?
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?
Everything worked in beta 6 (would build fine). Xcode 12 GM doesn't seem to recognize iOS 14 APIs in Catalyst apps, getting a whole bunch of 'cannot find type / in scope' errors when compiling for Mac. Also under Deployment info there is no 'macOS 11', which I think was present in the betas.
How could this have happened?
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.
I would like to trigger the macOS's On Screen Volume indicator like the one that appears when you change the volume using MacBook Pro keyboard or Magic keyboard.
I would really appreciate any help on this matter.
How would you inspect function arguments/parameters beyond $arg6? $arg7 appears to be undefined
"use of undeclared identifier '$arg7'"
I'm finding the Separators in UICollectionView's list configuration to be very dim and indistinguishable.
It appears there is no property like "separatorColor" on UICollectionLayoutListConfiguration. Is there a way to change it? FB8365526
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)
Any ideas on how to go about implementing floating Segmented toolbar like in Photos app on the Photos tab?
What view hierarchy should you add the toolbar subview to? (UICollectionView, UINavigationController's view, Tab Bar's view, custom UIWindow]? Is there some special API for this or just plain addSubview?
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
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?