Skip to content
Mikhail Kasianov edited this page Nov 25, 2024 · 5 revisions

To integrate CloudKit with Scout, follow these steps:

Enable CloudKit

Ensure CloudKit is enabled in your Apple Developer account and configured for your project. Refer to Enabling CloudKit in Your App.

Note: It may take some time for the database to become fully operational.

Upload Your Database Schema

To upload your database schema to CloudKit, follow these steps:

  1. Navigate to the CloudKit Dashboard and sign in with your Apple Developer account.
  2. Choose the CloudKit container associated with your project.
  3. In the CloudKit Dashboard, go to the "Schema" section and use the "Import Schema" option to upload your exported schema file.
  4. Once your schema is defined, deploy it to the production environment by clicking the "Deploy to Production" button. This ensures that your schema changes are applied and available for use in your application.

Configure Scout

Update Scout's configuration to include your CloudKit container identifier and any necessary authentication details.

import Scout
import Logging

let container = CKContainer(identifier: "YOUR_CONTAINER_ID")

LoggingSystem.bootstrap { label in
    CKLogHandler(label: label, container: container)
}
Clone this wiki locally