I'm using NSPersistentCloudKitContainer to save, edit, and delete items, but it only works half of the time. When I delete an item and terminate the app and repoen, sometimes the item is still there and sometimes it isn't. The operations are simple enough:
moc.delete(thing)
try? moc.save()
Here is my DataController. I'm happy to provide more info as needed
class DataController: ObservableObject {
let container: NSPersistentCloudKitContainer
@Published var moc: NSManagedObjectContext
init() {
container = NSPersistentCloudKitContainer(name: "AppName")
container.loadPersistentStores { description, error in
if let error = error {
print("Core Data failed to load: \(error.localizedDescription)")
}
}
#if DEBUG
do {
try container.initializeCloudKitSchema(options: [])
} catch {
print("Error initializing CloudKit schema: \(error.localizedDescription)")
}
#endif
moc = container.viewContext
}
}
Post
Replies
Boosts
Views
Activity
Steps to reproduce:
In Chrome browser, go here: https://developer.apple.com/account/resources/identifiers/bundleId/add/
See this:
At https://appstoreconnect.apple.com/, I have the Admin role (but not Account Holder).
At first, I had the Developer role. When it got switched to Admin, the buttons on the website that only admins should see (for example, the add app button), still weren't visible to me immediately, but I started seeing more of them within 24h.
Now, I can click the add app button (see first screenshot) but when I click the link to add a bundle id (the link is called Certificates, Identifiers & Profiles), it says that I don't have access (see second screenshot).
I am a React Native developer. When I run react-native run-ios, the app starts but the simulator doesn't open. I have to open xcode and run the project from there.
When trying to debug this, I noticed that running xcrun simctl list shows nothing. It creates a newline in the terminal and I have to ctrl+c to exit, but the output is nothing.
Thanks, let me know if I should add more info.