The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build Kitura-CouchDB, reference master (5e8c5e), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 00:45:40 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Kitura/Kitura-CouchDB.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Kitura/Kitura-CouchDB
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 5e8c5ef Update package reference to community versions; update domain (#116)
Cloned https://github.com/Kitura/Kitura-CouchDB.git
Revision (git rev-parse @):
5e8c5ef8ea4a48cf6319a6d203a6474c1c06f05f
SUCCESS checkout https://github.com/Kitura/Kitura-CouchDB.git at master
Fetching https://github.com/Kitura/LoggerAPI.git
Fetching https://github.com/Kitura/Kitura-net.git
[1/771] Fetching loggerapi
[163/10315] Fetching loggerapi, kitura-net
Fetched https://github.com/Kitura/LoggerAPI.git from cache (1.52s)
Fetched https://github.com/Kitura/Kitura-net.git from cache (1.52s)
Computing version for https://github.com/Kitura/Kitura-net.git
Computed https://github.com/Kitura/Kitura-net.git at 2.4.200 (0.56s)
Fetching https://github.com/Kitura/BlueSocket.git
Fetching https://github.com/Kitura/BlueSSLService.git
[1/2088] Fetching bluesslservice
[440/5030] Fetching bluesslservice, bluesocket
Fetched https://github.com/Kitura/BlueSSLService.git from cache (1.16s)
Fetched https://github.com/Kitura/BlueSocket.git from cache (1.16s)
Computing version for https://github.com/Kitura/LoggerAPI.git
Computed https://github.com/Kitura/LoggerAPI.git at 1.9.200 (0.54s)
Fetching https://github.com/apple/swift-log.git
[1/3702] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (1.08s)
Computing version for https://github.com/Kitura/BlueSSLService.git
Computed https://github.com/Kitura/BlueSSLService.git at 1.0.200 (0.57s)
Computing version for https://github.com/Kitura/BlueSocket.git
Computed https://github.com/Kitura/BlueSocket.git at 1.0.200 (0.55s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.2 (0.42s)
Creating working copy for https://github.com/Kitura/LoggerAPI.git
Working copy of https://github.com/Kitura/LoggerAPI.git resolved at 1.9.200
Creating working copy for https://github.com/Kitura/Kitura-net.git
Working copy of https://github.com/Kitura/Kitura-net.git resolved at 2.4.200
Creating working copy for https://github.com/Kitura/BlueSSLService.git
Working copy of https://github.com/Kitura/BlueSSLService.git resolved at 1.0.200
Creating working copy for https://github.com/Kitura/BlueSocket.git
Working copy of https://github.com/Kitura/BlueSocket.git resolved at 1.0.200
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.2
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "kitura-couchdb",
      "name": "Kitura-CouchDB",
      "url": "https://github.com/Kitura/Kitura-CouchDB.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Kitura-CouchDB",
      "dependencies": [
        {
          "identity": "loggerapi",
          "name": "LoggerAPI",
          "url": "https://github.com/Kitura/LoggerAPI.git",
          "version": "1.9.200",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/LoggerAPI",
          "dependencies": [
            {
              "identity": "swift-log",
              "name": "swift-log",
              "url": "https://github.com/apple/swift-log.git",
              "version": "1.6.2",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
              "dependencies": [
              ]
            }
          ]
        },
        {
          "identity": "kitura-net",
          "name": "Kitura-net",
          "url": "https://github.com/Kitura/Kitura-net.git",
          "version": "2.4.200",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Kitura-net",
          "dependencies": [
            {
              "identity": "loggerapi",
              "name": "LoggerAPI",
              "url": "https://github.com/Kitura/LoggerAPI.git",
              "version": "1.9.200",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/LoggerAPI",
              "dependencies": [
                {
                  "identity": "swift-log",
                  "name": "swift-log",
                  "url": "https://github.com/apple/swift-log.git",
                  "version": "1.6.2",
                  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
                  "dependencies": [
                  ]
                }
              ]
            },
            {
              "identity": "bluesocket",
              "name": "Socket",
              "url": "https://github.com/Kitura/BlueSocket.git",
              "version": "1.0.200",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BlueSocket",
              "dependencies": [
              ]
            },
            {
              "identity": "bluesslservice",
              "name": "SSLService",
              "url": "https://github.com/Kitura/BlueSSLService.git",
              "version": "1.0.200",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BlueSSLService",
              "dependencies": [
                {
                  "identity": "bluesocket",
                  "name": "Socket",
                  "url": "https://github.com/Kitura/BlueSocket.git",
                  "version": "1.0.200",
                  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BlueSocket",
                  "dependencies": [
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/Kitura/Kitura-CouchDB.git
[1/2502] Fetching kitura-couchdb
Fetched https://github.com/Kitura/Kitura-CouchDB.git from cache (1.03s)
Fetching https://github.com/Kitura/LoggerAPI.git from cache
Fetching https://github.com/Kitura/Kitura-net.git from cache
Fetched https://github.com/Kitura/Kitura-net.git from cache (0.57s)
Fetched https://github.com/Kitura/LoggerAPI.git from cache (0.57s)
Computing version for https://github.com/Kitura/Kitura-net.git
Computed https://github.com/Kitura/Kitura-net.git at 2.4.200 (0.03s)
Fetching https://github.com/Kitura/BlueSocket.git from cache
Fetching https://github.com/Kitura/BlueSSLService.git from cache
Fetched https://github.com/Kitura/BlueSocket.git from cache (0.56s)
Fetched https://github.com/Kitura/BlueSSLService.git from cache (0.56s)
Computing version for https://github.com/Kitura/LoggerAPI.git
Computed https://github.com/Kitura/LoggerAPI.git at 1.9.200 (0.03s)
Fetching https://github.com/apple/swift-log.git from cache
Fetched https://github.com/apple/swift-log.git from cache (0.56s)
Computing version for https://github.com/Kitura/BlueSSLService.git
Computed https://github.com/Kitura/BlueSSLService.git at 1.0.200 (0.03s)
Computing version for https://github.com/Kitura/BlueSocket.git
Computed https://github.com/Kitura/BlueSocket.git at 1.0.200 (0.03s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.2 (0.02s)
Creating working copy for https://github.com/Kitura/LoggerAPI.git
Working copy of https://github.com/Kitura/LoggerAPI.git resolved at 1.9.200
Creating working copy for https://github.com/Kitura/BlueSocket.git
Working copy of https://github.com/Kitura/BlueSocket.git resolved at 1.0.200
Creating working copy for https://github.com/Kitura/BlueSSLService.git
Working copy of https://github.com/Kitura/BlueSSLService.git resolved at 1.0.200
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.2
Creating working copy for https://github.com/Kitura/Kitura-CouchDB.git
Working copy of https://github.com/Kitura/Kitura-CouchDB.git resolved at master (5e8c5ef)
Creating working copy for https://github.com/Kitura/Kitura-net.git
Working copy of https://github.com/Kitura/Kitura-net.git resolved at 2.4.200
warning: '.resolve-product-dependencies': dependency 'kitura-couchdb' is not used by any target
Found 2 product dependencies
  - LoggerAPI
  - Kitura-net
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Kitura/Kitura-CouchDB.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/14] Write sources
[1/14] Write CouchDBSample-entitlement.plist
[1/14] Write sources
[8/14] Write swift-version--7754E27361AE5C74.txt
[9/23] Compiling CHTTPParser utils.c
[10/23] Compiling CHTTPParser http_parser.c
[12/23] Compiling Logging MetadataProvider.swift
[13/23] Compiling Logging LogHandler.swift
[14/23] Emitting module Logging
[15/23] Compiling Logging Logging.swift
[16/23] Compiling Logging Locks.swift
[17/25] Emitting module LoggerAPI
[18/25] Compiling LoggerAPI Logger.swift
[19/25] Compiling Socket SocketUtils.swift
[20/25] Compiling Socket SocketProtocols.swift
[21/25] Compiling Socket Socket.swift
[22/25] Emitting module Socket
[23/28] Compiling SSLService SSLPointerTricks.swift
[24/28] Compiling SSLService SSLService.swift
[25/28] Emitting module SSLService
[26/63] Compiling KituraNet ServerLifecycleListener.swift
[27/63] Compiling KituraNet ServerMonitor.swift
[28/63] Compiling KituraNet ServerState.swift
[29/66] Compiling KituraNet SPIUtils.swift
[30/66] Compiling KituraNet Server.swift
[31/66] Compiling KituraNet ServerDelegate.swift
[32/66] Compiling KituraNet ServerOptions.swift
[33/66] Compiling KituraNet ServerRequest.swift
[34/66] Compiling KituraNet ServerResponse.swift
[35/66] Compiling KituraNet ConnectionUpgrader.swift
[36/66] Compiling KituraNet Error.swift
[37/66] Compiling KituraNet FastCGI.swift
[38/66] Compiling KituraNet FastCGIRecordCreate.swift
[39/66] Emitting module KituraNet
[40/66] Compiling KituraNet ParseResults.swift
[41/66] Compiling KituraNet URLParser.swift
[42/66] Compiling KituraNet HeadersContainer.swift
[43/66] Compiling KituraNet IncomingSocketHandler.swift
[44/66] Compiling KituraNet IncomingSocketManager.swift
[45/66] Compiling KituraNet IncomingSocketProcessor.swift
[46/66] Compiling KituraNet IncomingSocketProcessorCreator.swift
[47/66] Compiling KituraNet ListenerGroup.swift
[48/66] Compiling KituraNet BufferList.swift
[49/66] Compiling KituraNet ClientRequest.swift
[50/66] Compiling KituraNet ClientResponse.swift
[51/66] Compiling KituraNet ConnectionUpgradeFactory.swift
[52/66] Compiling KituraNet IncomingHTTPSocketProcessor.swift
[53/66] Compiling KituraNet KeepAliveState.swift
[54/66] Compiling KituraNet HTTPParser.swift
[55/66] Compiling KituraNet HTTPParserStatus.swift
[56/66] Compiling KituraNet HTTP.swift
[57/66] Compiling KituraNet HTTPServer.swift
[58/66] Compiling KituraNet HTTPServerRequest.swift
[59/66] Compiling KituraNet HTTPServerResponse.swift
[60/66] Compiling KituraNet FastCGIRecordParser.swift
[61/66] Compiling KituraNet FastCGIServer.swift
[62/66] Compiling KituraNet FastCGIServerRequest.swift
[63/66] Compiling KituraNet FastCGIServerResponse.swift
[64/77] Compiling CouchDB Document.swift
[65/78] Compiling CouchDB DocumentResponse.swift
[66/78] Compiling CouchDB AllDatabaseDocuments.swift
[67/78] Compiling CouchDB BulkDocuments.swift
[68/78] Compiling CouchDB BulkResponse.swift
[69/78] Compiling CouchDB DesignDocument.swift
[70/78] Compiling CouchDB CouchErrorResponse.swift
[71/78] Compiling CouchDB CouchDBUtils.swift
[72/78] Emitting module CouchDB
[73/78] Compiling CouchDB ConnectionProperties.swift
[74/78] Compiling CouchDB CouchDBClient.swift
[75/78] Compiling CouchDB Database.swift
[76/80] Emitting module CouchDBSample
[77/80] Compiling CouchDBSample main.swift
/Users/admin/builder/spi-builder-workspace/Sources/CouchDBSample/main.swift:125:5: warning: main actor-isolated let 'couchDBClient' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 89 |
 90 | // Create couchDBClient instance using connection properties
 91 | let couchDBClient = CouchDBClient(connectionProperties: connProperties)
    |     `- note: let declared here
 92 | print("Hostname is: \(couchDBClient.connProperties.host)")
 93 | var database: Database?
    :
122 |
123 | // Create database instance to perform any document operations
124 | func initializeDatabase() {
    |      `- note: add '@MainActor' to make global function 'initializeDatabase()' part of global actor 'MainActor'
125 |     couchDBClient.retrieveDB("kitura_test_db") { (localDatabase, error) in
    |     `- warning: main actor-isolated let 'couchDBClient' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
126 |         if let localDatabase = localDatabase {
127 |             database = localDatabase
/Users/admin/builder/spi-builder-workspace/Sources/CouchDBSample/main.swift:127:13: error: main actor-isolated var 'database' can not be mutated from a nonisolated context
 91 | let couchDBClient = CouchDBClient(connectionProperties: connProperties)
 92 | print("Hostname is: \(couchDBClient.connProperties.host)")
 93 | var database: Database?
    |     `- note: mutation of this var is only permitted within the actor
 94 |
 95 | //// Document ID
    :
125 |     couchDBClient.retrieveDB("kitura_test_db") { (localDatabase, error) in
126 |         if let localDatabase = localDatabase {
127 |             database = localDatabase
    |             `- error: main actor-isolated var 'database' can not be mutated from a nonisolated context
128 |             createDocument()
129 |         } else {
/Users/admin/builder/spi-builder-workspace/Sources/CouchDBSample/main.swift:130:13: warning: main actor-isolated let 'couchDBClient' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 89 |
 90 | // Create couchDBClient instance using connection properties
 91 | let couchDBClient = CouchDBClient(connectionProperties: connProperties)
    |     `- note: let declared here
 92 | print("Hostname is: \(couchDBClient.connProperties.host)")
 93 | var database: Database?
    :
128 |             createDocument()
129 |         } else {
130 |             couchDBClient.createDB("kitura_test_db") { (localDatabase, error) in
    |             `- warning: main actor-isolated let 'couchDBClient' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
131 |                 guard let localDatabase = localDatabase else {
132 |                     print("Error initializing Database: \(String(describing: error))")
/Users/admin/builder/spi-builder-workspace/Sources/CouchDBSample/main.swift:135:17: error: main actor-isolated var 'database' can not be mutated from a nonisolated context
 91 | let couchDBClient = CouchDBClient(connectionProperties: connProperties)
 92 | print("Hostname is: \(couchDBClient.connProperties.host)")
 93 | var database: Database?
    |     `- note: mutation of this var is only permitted within the actor
 94 |
 95 | //// Document ID
    :
133 |                     return
134 |                 }
135 |                 database = localDatabase
    |                 `- error: main actor-isolated var 'database' can not be mutated from a nonisolated context
136 |                 createDocument()
137 |             }
/Users/admin/builder/spi-builder-workspace/Sources/CouchDBSample/main.swift:145:5: error: main actor-isolated var 'database' can not be referenced from a nonisolated context
 91 | let couchDBClient = CouchDBClient(connectionProperties: connProperties)
 92 | print("Hostname is: \(couchDBClient.connProperties.host)")
 93 | var database: Database?
    |     `- note: var declared here
 94 |
 95 | //// Document ID
    :
142 | // MARK: Create document
143 |
144 | func createDocument() {
    |      `- note: add '@MainActor' to make global function 'createDocument()' part of global actor 'MainActor'
145 |     database?.create(myDocument) { (document, error) in
    |     `- error: main actor-isolated var 'database' can not be referenced from a nonisolated context
146 |         if let error = error {
147 |             print(">> Oops something went wrong; could not persist document.")
/Users/admin/builder/spi-builder-workspace/Sources/CouchDBSample/main.swift:145:22: error: main actor-isolated var 'myDocument' can not be referenced from a nonisolated context
104 |     let value: String
105 | }
106 | var myDocument = MyDocument(_id: documentId,
    |     `- note: var declared here
107 |                             _rev: nil,
108 |                             truncated: false,
    :
142 | // MARK: Create document
143 |
144 | func createDocument() {
    |      `- note: add '@MainActor' to make global function 'createDocument()' part of global actor 'MainActor'
145 |     database?.create(myDocument) { (document, error) in
    |                      `- error: main actor-isolated var 'myDocument' can not be referenced from a nonisolated context
146 |         if let error = error {
147 |             print(">> Oops something went wrong; could not persist document.")
/Users/admin/builder/spi-builder-workspace/Sources/CouchDBSample/main.swift:159:5: error: main actor-isolated var 'database' can not be referenced from a nonisolated context
 91 | let couchDBClient = CouchDBClient(connectionProperties: connProperties)
 92 | print("Hostname is: \(couchDBClient.connProperties.host)")
 93 | var database: Database?
    |     `- note: var declared here
 94 |
 95 | //// Document ID
    :
156 | // MARK: Read all documents
157 |
158 | func readAllDocuments() {
    |      `- note: add '@MainActor' to make global function 'readAllDocuments()' part of global actor 'MainActor'
159 |     database?.retrieveAll(includeDocuments: true) { documents, error in
    |     `- error: main actor-isolated var 'database' can not be referenced from a nonisolated context
160 |         if let error = error {
161 |             print("Oops something went wrong; could not read document.")
/Users/admin/builder/spi-builder-workspace/Sources/CouchDBSample/main.swift:175:5: error: main actor-isolated var 'database' can not be referenced from a nonisolated context
 91 | let couchDBClient = CouchDBClient(connectionProperties: connProperties)
 92 | print("Hostname is: \(couchDBClient.connProperties.host)")
 93 | var database: Database?
    |     `- note: var declared here
 94 |
 95 | //// Document ID
    :
172 | // MARK: Read document
173 |
174 | func readDocument() {
    |      `- note: add '@MainActor' to make global function 'readDocument()' part of global actor 'MainActor'
175 |     database?.retrieve(documentId) { (document: MyDocument?, error: CouchDBError?) in
    |     `- error: main actor-isolated var 'database' can not be referenced from a nonisolated context
176 |         if let error = error {
177 |             print("Oops something went wrong; could not read document.")
/Users/admin/builder/spi-builder-workspace/Sources/CouchDBSample/main.swift:191:5: error: main actor-isolated var 'database' can not be referenced from a nonisolated context
 91 | let couchDBClient = CouchDBClient(connectionProperties: connProperties)
 92 | print("Hostname is: \(couchDBClient.connProperties.host)")
 93 | var database: Database?
    |     `- note: var declared here
 94 |
 95 | //// Document ID
    :
188 | // MARK: Update document
189 |
190 | func updateDocument(revisionNumber: String) {
    |      `- note: add '@MainActor' to make global function 'updateDocument(revisionNumber:)' part of global actor 'MainActor'
191 |     database?.update(documentId, rev: revisionNumber, document: myDocument) { (response, error) in
    |     `- error: main actor-isolated var 'database' can not be referenced from a nonisolated context
192 |         if let error = error {
193 |             print(">> Oops something went wrong; could not update document.")
/Users/admin/builder/spi-builder-workspace/Sources/CouchDBSample/main.swift:191:65: error: main actor-isolated var 'myDocument' can not be referenced from a nonisolated context
104 |     let value: String
105 | }
106 | var myDocument = MyDocument(_id: documentId,
    |     `- note: var declared here
107 |                             _rev: nil,
108 |                             truncated: false,
    :
188 | // MARK: Update document
189 |
190 | func updateDocument(revisionNumber: String) {
    |      `- note: add '@MainActor' to make global function 'updateDocument(revisionNumber:)' part of global actor 'MainActor'
191 |     database?.update(documentId, rev: revisionNumber, document: myDocument) { (response, error) in
    |                                                                 `- error: main actor-isolated var 'myDocument' can not be referenced from a nonisolated context
192 |         if let error = error {
193 |             print(">> Oops something went wrong; could not update document.")
/Users/admin/builder/spi-builder-workspace/Sources/CouchDBSample/main.swift:196:13: error: main actor-isolated var 'myDocument' can not be mutated from a nonisolated context
104 |     let value: String
105 | }
106 | var myDocument = MyDocument(_id: documentId,
    |     `- note: mutation of this var is only permitted within the actor
107 |                             _rev: nil,
108 |                             truncated: false,
    :
194 |             print("Error: \(error.description) Code: \(error.statusCode)")
195 |         } else {
196 |             myDocument._rev = response?.rev
    |             `- error: main actor-isolated var 'myDocument' can not be mutated from a nonisolated context
197 |             print(">> Successfully updated the JSON document with ID" +
198 |                 "\(documentId) in CouchDB:\n\t\(String(describing: response))")
/Users/admin/builder/spi-builder-workspace/Sources/CouchDBSample/main.swift:199:21: error: main actor-isolated var 'myDocument' can not be referenced from a nonisolated context
104 |     let value: String
105 | }
106 | var myDocument = MyDocument(_id: documentId,
    |     `- note: var declared here
107 |                             _rev: nil,
108 |                             truncated: false,
    :
197 |             print(">> Successfully updated the JSON document with ID" +
198 |                 "\(documentId) in CouchDB:\n\t\(String(describing: response))")
199 |             chainer(myDocument, next: deleteDocument)
    |                     `- error: main actor-isolated var 'myDocument' can not be referenced from a nonisolated context
200 |         }
201 |     }
/Users/admin/builder/spi-builder-workspace/Sources/CouchDBSample/main.swift:208:5: error: main actor-isolated var 'database' can not be referenced from a nonisolated context
 91 | let couchDBClient = CouchDBClient(connectionProperties: connProperties)
 92 | print("Hostname is: \(couchDBClient.connProperties.host)")
 93 | var database: Database?
    |     `- note: var declared here
 94 |
 95 | //// Document ID
    :
205 | // MARK: Delete document
206 |
207 | func deleteDocument(revisionNumber: String) {
    |      `- note: add '@MainActor' to make global function 'deleteDocument(revisionNumber:)' part of global actor 'MainActor'
208 |     database?.delete(documentId, rev: revisionNumber) { (error) in
    |     `- error: main actor-isolated var 'database' can not be referenced from a nonisolated context
209 |         if let error = error {
210 |             print(">> Oops something went wrong; could not delete document.")
BUILD FAILURE 6.0 macosSpm