All Questions
18,238
questions
-1
votes
0
answers
19
views
iOS app container structure changed - database not found
Today I'm downloading my in-development iOS app container (.xcappdata) from Xcode's devices and simulators window in order to see what's stored in the app using Core Data (and eventually use that ...
0
votes
0
answers
27
views
UITableViewCell reload while scrolling the screen
I have this UITableView in my iOS chat application, I'm using NSFetchedResultsController to fetch new messages from Coredata and show them to the screen. Insert a new message to the bottom of the ...
0
votes
0
answers
18
views
Core Data Migration Mapping Model createRelationships crash
I've created a heavyweight migration between two database versions using a mapping model & custom policy. Three types are migrated during this migration map.
However, one (or possibly more) types ...
1
vote
0
answers
97
views
CoreData async perform method usage
I faced some UI Hangs when using viewContext. So I used async perform method on viewContext to avoid blocking UI.
But I'm still getting UI Hang reports. Here is my code and main thread stack.
func ...
0
votes
0
answers
35
views
Duplicate Class Implementation in SQLite causing objc[XXXXX] Error in Xcode Project [duplicate]
I'm encountering an issue in my iOS project where I'm getting the following error messages in the console when I run my app:
objc[XXXXX]: Class _TtC6SQLite6Backup is implemented in both /System/...
0
votes
1
answer
44
views
Is persistent history tracking in CoreData supported with legacy stack and Objective C?
Is it possible to implement Persistent History Tracking in an application/framework written in Objective C where Core Data stack has been setup manually in legacy manner? Or does persistent history ...
0
votes
0
answers
33
views
Mix local and sever data in entity Core Data
I have a situation.
I am fetching the data from the server and saving in Core data. That is working fine but my problem is as described, I have made some changes in core data and then I send the ...
0
votes
0
answers
28
views
Finding ranges of all occurrences of a string in core data
I am looking for a way to get ranges of all occurrences of a string in a larger string in Core data.
My current solution involves finding all the objects that have at least one occurrence and then ...
-1
votes
1
answer
32
views
Any way to override or influence the sqlite generated table names used by SwiftData/CoreData?
I have a SwiftData model that has a few many-to-many relationships that require an intersection table.
My question relates to how the intersection tables are automatically named in sqlite.
My model ...
0
votes
0
answers
50
views
Why isn't Staged Migration working for my App?
I referred to "What's new in Core Data" in WWDC23, CoreData Documentation and other Posts related Staged Migrations.
I added three new model version through MyAppDataModel, using Hash ...
0
votes
1
answer
52
views
NSPersistentCloudKitContainer migration with custom NSEntityMigrationPolicy
Recently, I have made quite extensive changes to my schema and need to migrate my CoreData + CloudKit model to a new version. The changes require me to use a custom NSEntityMigrationPolicy because I ...
3
votes
1
answer
35
views
Why does my app hang when breakpoints are disabled?
I have an app that uses several ManagedObjectContexts.
I am using Objective-C.
One MOC is created with NSPrivateQueueConcurrencyType. The rest are created with NSMainQueueConcurrencyType.
I am using [...
0
votes
0
answers
33
views
NSFetchedResultsController with == predicate not updating with new object
I have a VC that displays a game level and its progress (let's call it LevelProgress with an "levelId" attribute). This LevelProgress doesn't exist in CoreData unless the user plays for the ...
0
votes
0
answers
45
views
Troubleshooting Core Data Lightweight Migration: A Real-World Challenge
In my recent endeavor, I aimed to introduce new Fetch Index Elements to the Core Data model of my iOS application. To achieve this, I followed a process of lightweight migration, detailed as follows:
...
0
votes
0
answers
124
views
EXC_BAD_ACCESS (SIGBUS) KERN_PROTECTION_FAILURE when calling Singleton's function inside a Timer's closure
I got this crash log from App Store. This crash only occurred one time to one user about a week ago and after that it never happened again.
On Crashlytics, the crash listed as EXC_BAD_ACCESS ...