Posts

Post not yet marked as solved
6 Replies
1.3k Views
I'm using NSPersistentCloudKitContainer in an app and was just studying up on how to do some debugging using the CloudKit Dashboard (watching "Build Better Apps with CloudKit Dashboard" from WWDC17) - in particular, how to look at live and historical server logs. When I go to CloudKit Dashboard > my.app.bundle.id > Development > Logs and select the Live tab, I see the Logs screen with its header, but instead of showing any log entries, it shows a message saying "Logged events will automatically appear here as they happen on the server". If I run my app in development mode (e.g. from Xcode) and update entries, I can see the updated records in CloudKit Dashboard, but the Logs screen stays empty. I can't get CloudKit Dashboard to show any logs at all - live or historical, development or production (yes I know we can't see live production logs, but I get the same blank log area when viewing historical logs for time periods when I know there have been many events). The app is in active development and has been in production for almost a year. Sync works in development and production - I can create entries in the app running in development mode (or production mode), view the records in CloudKit Dashboard, make edits in CloudKit dashboard and view them in the app, etc. Any ideas why I wouldn't see any logs at all?
Posted
by ggruen.
Last updated
.
Post marked as solved
8 Replies
6.5k Views
I'm trying to re-initialize a CloudKit container using the instructions in the docs. This worked in XCode 11 beta 3 or 4 (when I first initialized it), possibly running on Mac OS 10.14.x. I'm now running on Mac OS 10.15 beta 4 (19A512f), running Xcode 11 beta 4, and get "Value of type 'NSPersistentCloudKitContainerOptions' has no member 'shouldInitializeSchema'" for the indicated line below (line 4): // Initialize the CloudKit schema. This should be toggled off or removed when shipping the app. let containerId = "iCloud.com." let options = NSPersistentCloudKitContainerOptions(containerIdentifier: containerId) --> options.shouldInitializeSchema = true // toggle to false when done, or true to initialize iCloud schema description.cloudKitContainerOptions = optionsI've tried running clean build, running xcode-select -s /Applications/Xcode-beta.app, and building to a different iOS device and consistently get this error. The most up-to-date documentation I can find for NSPersistentCloudKitContainerOptions shows that shouldInitializeSchema is a Boolean variable.Thought I'd post here before submitting a bug in Feedback.Thanks!
Posted
by ggruen.
Last updated
.