@althoff That did not work for me.
Post
Replies
Boosts
Views
Activity
@hume I"m also seeing this error when I run the app on my iPad.
I've accepted your answer. Thanks for your assistance.
@Frameworks Engineer So, I can fetch models with the SortDescriptor, but not the identifiers with the SortDescriptor because there are pending changes in the ModelContext. I guess, my question is why didn't the model fetch fail if there are pending changes, but the identiifier fetch does. But I will do as you suggest and get back with you.
@FPST This does not return any PersistentIdentifiers unless the FetchDescriptor is
FetchDescriptor().
As I mentioned before, the sort does not work on PersistentIdentifiers. I had to fetch models using the sort and then stuff an array with the PersistentIdentifiers.
@FPST let fetchDescriptor = FetchDescriptor() works fine, but
let fetchDescriptor = FetchDescriptor(sortBy: [SortDescriptor( .title)])
fails with
The operation couldn’t be completed. (SwiftData.SwiftDataError error 1.)
@FPST I am delving into your excellent suggestion. I had issues with what turned out to be the FetchDescriptor for the fetch function. It appears that it needs to be the simplest of FetchDescriptors, so no SortDescriptors.
The more I look at this solution, the more I like it.
I see what you are saying finally about the use of ModelActor. That would solve another concurrency issue as it turns out. Thank you for your assistance.
Actually, there may be another method to fix this. I have been experimenting replacing my UIKit ViewController and CollectionView with a SwiftUI view using @query. I wonder if this will help.
In the beta version of Xcode, I set the deployment target to iOS 13 and was able to build the code.
Yes, it is Sendable.
I’m using UIKit and this form of Predicate works for me.
That image is not of a website. That image is of Xcode. You should have Xcode.
Thank you for your help. Your input did put me onto the entitlements. I did run syspolicy_check on my app that I purchased. When I ran it with notary-submission, I got
AppleMobileFileIntegrity Error
Severity: Fatal
Full Error: No matching profile found
Type: Distribution Error
When I ran it with distribution, I got
Notary Ticket Missing
File: MyApp.app
Severity: Fatal
Full Error: A Notarization ticket is not stapled to this application.
Type: Distribution Error