This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 with Swift 6.0 for macOS (SPM).

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/Kitura/Kitura-CouchDB.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/14] Write sources
[2/14] Write CouchDBSample-entitlement.plist
[2/14] Write sources
[8/14] Write swift-version-6F35C1178C84523A.txt
[9/23] Compiling CHTTPParser utils.c
[10/23] Compiling CHTTPParser http_parser.c
[12/23] Compiling Logging MetadataProvider.swift
[13/23] Compiling Logging Logging.swift
[14/23] Compiling Logging Locks.swift
[15/23] Emitting module Logging
[16/23] Compiling Logging LogHandler.swift
[17/25] Compiling LoggerAPI Logger.swift
[18/25] Emitting module LoggerAPI
[19/25] Compiling Socket SocketProtocols.swift
[20/25] Compiling Socket SocketUtils.swift
[21/25] Emitting module Socket
[22/25] Compiling Socket Socket.swift
[23/28] Compiling SSLService SSLPointerTricks.swift
[24/28] Emitting module SSLService
[25/28] Compiling SSLService SSLService.swift
[26/63] Compiling KituraNet IncomingSocketManager.swift
[27/63] Compiling KituraNet IncomingSocketProcessor.swift
[28/63] Compiling KituraNet IncomingSocketProcessorCreator.swift
[29/63] Compiling KituraNet ListenerGroup.swift
[30/63] Compiling KituraNet SPIUtils.swift
[31/63] Compiling KituraNet Server.swift
[32/63] Compiling KituraNet ServerDelegate.swift
[33/66] Compiling KituraNet ServerOptions.swift
[34/66] Compiling KituraNet ServerRequest.swift
[35/66] Compiling KituraNet ServerResponse.swift
[36/66] Compiling KituraNet IncomingHTTPSocketProcessor.swift
[37/66] Compiling KituraNet KeepAliveState.swift
[38/66] Compiling KituraNet HTTPParser.swift
[39/66] Compiling KituraNet HTTPParserStatus.swift
[40/66] Emitting module KituraNet
[41/66] Compiling KituraNet BufferList.swift
[42/66] Compiling KituraNet ClientRequest.swift
[43/66] Compiling KituraNet ClientResponse.swift
[44/66] Compiling KituraNet ConnectionUpgradeFactory.swift
[45/66] Compiling KituraNet ServerLifecycleListener.swift
[46/66] Compiling KituraNet ServerMonitor.swift
[47/66] Compiling KituraNet ServerState.swift
[48/66] Compiling KituraNet ParseResults.swift
[49/66] Compiling KituraNet URLParser.swift
[50/66] Compiling KituraNet HeadersContainer.swift
[51/66] Compiling KituraNet IncomingSocketHandler.swift
[52/66] Compiling KituraNet HTTP.swift
[53/66] Compiling KituraNet HTTPServer.swift
[54/66] Compiling KituraNet HTTPServerRequest.swift
[55/66] Compiling KituraNet HTTPServerResponse.swift
[56/66] Compiling KituraNet ConnectionUpgrader.swift
[57/66] Compiling KituraNet Error.swift
[58/66] Compiling KituraNet FastCGI.swift
[59/66] Compiling KituraNet FastCGIRecordCreate.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 BulkResponse.swift
[65/78] Compiling CouchDB DocumentResponse.swift
[66/78] Compiling CouchDB Document.swift
[67/78] Compiling CouchDB DesignDocument.swift
[68/78] Compiling CouchDB AllDatabaseDocuments.swift
[69/78] Compiling CouchDB CouchDBUtils.swift
[70/78] Compiling CouchDB BulkDocuments.swift
[71/78] Compiling CouchDB CouchErrorResponse.swift
[72/78] Compiling CouchDB ConnectionProperties.swift
[73/78] Compiling CouchDB CouchDBClient.swift
[74/78] Emitting module CouchDB
[75/78] Compiling CouchDB Database.swift
[76/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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated context
209 |         if let error = error {
210 |             print(">> Oops something went wrong; could not delete document.")
[77/80] Emitting module CouchDBSample
Fetching https://github.com/Kitura/Kitura-net.git
Fetching https://github.com/Kitura/LoggerAPI.git
[1/771] Fetching loggerapi
[179/10315] Fetching loggerapi, kitura-net
Fetched https://github.com/Kitura/LoggerAPI.git from cache (1.63s)
Fetched https://github.com/Kitura/Kitura-net.git from cache (1.63s)
Computing version for https://github.com/Kitura/Kitura-net.git
Computed https://github.com/Kitura/Kitura-net.git at 2.4.200 (0.70s)
Fetching https://github.com/Kitura/BlueSSLService.git
Fetching https://github.com/Kitura/BlueSocket.git
[1/2088] Fetching bluesslservice
[22/5030] Fetching bluesslservice, bluesocket
Fetched https://github.com/Kitura/BlueSSLService.git from cache (1.15s)
Fetched https://github.com/Kitura/BlueSocket.git from cache (1.15s)
Computing version for https://github.com/Kitura/LoggerAPI.git
Computed https://github.com/Kitura/LoggerAPI.git at 1.9.200 (0.67s)
Fetching https://github.com/apple/swift-log.git
[1/3361] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (1.16s)
Computing version for https://github.com/Kitura/BlueSSLService.git
Computed https://github.com/Kitura/BlueSSLService.git at 1.0.200 (0.65s)
Computing version for https://github.com/Kitura/BlueSocket.git
Computed https://github.com/Kitura/BlueSocket.git at 1.0.200 (0.69s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.5.4 (0.66s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.5.4
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/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/Kitura/LoggerAPI.git
Working copy of https://github.com/Kitura/LoggerAPI.git resolved at 1.9.200
BUILD FAILURE 6.0 macosSpm
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.