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 swift-log-supabase, reference 0.1.0 (2b9e87), with Swift 6.1 for Linux on 27 Apr 2025 01:48:16 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/binaryscraping/swift-log-supabase.git
Reference: 0.1.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/binaryscraping/swift-log-supabase
 * tag               0.1.0      -> FETCH_HEAD
HEAD is now at 2b9e87d Rename library
Cloned https://github.com/binaryscraping/swift-log-supabase.git
Revision (git rev-parse @):
2b9e87db89132a0edde2174279ec3c3338d1bd52
SUCCESS checkout https://github.com/binaryscraping/swift-log-supabase.git at 0.1.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/binaryscraping/swift-log-supabase.git
https://github.com/binaryscraping/swift-log-supabase.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.4.2",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log"
    }
  ],
  "manifest_display_name" : "swift-log-supabase",
  "name" : "swift-log-supabase",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    }
  ],
  "products" : [
    {
      "name" : "SupabaseLogging",
      "targets" : [
        "SupabaseLogging"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SupabaseLoggingTests",
      "module_type" : "SwiftTarget",
      "name" : "SupabaseLoggingTests",
      "path" : "Tests/SupabaseLoggingTests",
      "sources" : [
        "SupabaseLogHandlerTests.swift"
      ],
      "target_dependencies" : [
        "SupabaseLogging"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SupabaseLogging",
      "module_type" : "SwiftTarget",
      "name" : "SupabaseLogging",
      "path" : "Sources/SupabaseLogging",
      "product_dependencies" : [
        "Logging"
      ],
      "product_memberships" : [
        "SupabaseLogging"
      ],
      "sources" : [
        "LogEntry.swift",
        "LogsCache.swift",
        "SupabaseLogHandler.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.6"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/apple/swift-log
[1/3836] Fetching swift-log
Fetched https://github.com/apple/swift-log from cache (0.62s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.6.3 (1.53s)
Creating working copy for https://github.com/apple/swift-log
Working copy of https://github.com/apple/swift-log resolved at 1.6.3
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/8] Compiling Logging LogHandler.swift
[5/8] Compiling Logging MetadataProvider.swift
[6/8] Compiling Logging Locks.swift
[7/8] Emitting module Logging
[8/8] Compiling Logging Logging.swift
[10/13] Compiling SupabaseLogging SupabaseLogHandler.swift
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:44:15: warning: stored property 'logManager' of 'Sendable'-conforming struct 'SupabaseLogHandler' has non-sendable type 'SupabaseLogManager'; this is an error in the Swift 6 language mode
 42 |
 43 |   private let label: String
 44 |   private let logManager: SupabaseLogManager
    |               `- warning: stored property 'logManager' of 'Sendable'-conforming struct 'SupabaseLogHandler' has non-sendable type 'SupabaseLogManager'; this is an error in the Swift 6 language mode
 45 |
 46 |   public init(label: String, config: SupabaseLogConfig) {
    :
 62 | }
 63 |
 64 | final class SupabaseLogManager {
    |             `- note: class 'SupabaseLogManager' does not conform to the 'Sendable' protocol
 65 |
 66 |   let cache: LogsCache<LogEntry>
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:74:22: warning: static property 'instances' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 72 |   private static let queue = DispatchQueue(
 73 |     label: "co.binaryscraping.supabase-log-manager.instances")
 74 |   private static var instances: [SupabaseLogConfig: SupabaseLogManager] = [:]
    |                      |- warning: static property 'instances' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: convert 'instances' to a 'let' constant to make 'Sendable' shared state immutable
    |                      |- note: add '@MainActor' to make static property 'instances' part of global actor 'MainActor'
    |                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 75 |
 76 |   static func shared(_ config: SupabaseLogConfig) -> SupabaseLogManager {
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:125:4: error: Objective-C interoperability is disabled
123 |   }
124 |
125 |   @objc
    |    `- error: Objective-C interoperability is disabled
126 |   private func checkForLogsAndSend() {
127 |     let logs = cache.pop()
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:175:4: error: Objective-C interoperability is disabled
173 |
174 | extension SupabaseLogManager {
175 |   @objc func appWillTerminate() {
    |    `- error: Objective-C interoperability is disabled
176 |     if config.isDebug {
177 |       print(#function)
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:115:17: error: '#selector' can only be used with the Objective-C runtime
113 |     sendTimer = Timer.scheduledTimer(
114 |       timeInterval: minimumWaitTimeBetweenRequests, target: self,
115 |       selector: #selector(checkForLogsAndSend), userInfo: nil, repeats: true)
    |                 `- error: '#selector' can only be used with the Objective-C runtime
116 |
117 |     // Fire the timer to attempt to send any cached logs from a previous session.
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:138:19: error: cannot find 'URLRequest' in scope
136 |     }
137 |
138 |     var request = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
139 |     request.httpMethod = "POST"
140 |     request.addValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:145:42: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
143 |     request.httpBody = data
144 |
145 |     let config = URLSessionConfiguration.default
    |                                          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
146 |     config.waitsForConnectivity = true
147 |     let session = URLSession(configuration: config)
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:147:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
145 |     let config = URLSessionConfiguration.default
146 |     config.waitsForConnectivity = true
147 |     let session = URLSession(configuration: config)
    |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
148 |
149 |     session.dataTask(with: request) { _, response, error in
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:157:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
155 |         guard
156 |           let httpResponse = response as? HTTPURLResponse,
157 |           200..<300 ~= httpResponse.statusCode
    |                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
158 |         else {
159 |           throw URLError(.badServerResponse)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/13] Emitting module SupabaseLogging
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:44:15: warning: stored property 'logManager' of 'Sendable'-conforming struct 'SupabaseLogHandler' has non-sendable type 'SupabaseLogManager'; this is an error in the Swift 6 language mode
 42 |
 43 |   private let label: String
 44 |   private let logManager: SupabaseLogManager
    |               `- warning: stored property 'logManager' of 'Sendable'-conforming struct 'SupabaseLogHandler' has non-sendable type 'SupabaseLogManager'; this is an error in the Swift 6 language mode
 45 |
 46 |   public init(label: String, config: SupabaseLogConfig) {
    :
 62 | }
 63 |
 64 | final class SupabaseLogManager {
    |             `- note: class 'SupabaseLogManager' does not conform to the 'Sendable' protocol
 65 |
 66 |   let cache: LogsCache<LogEntry>
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:74:22: warning: static property 'instances' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 72 |   private static let queue = DispatchQueue(
 73 |     label: "co.binaryscraping.supabase-log-manager.instances")
 74 |   private static var instances: [SupabaseLogConfig: SupabaseLogManager] = [:]
    |                      |- warning: static property 'instances' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: convert 'instances' to a 'let' constant to make 'Sendable' shared state immutable
    |                      |- note: add '@MainActor' to make static property 'instances' part of global actor 'MainActor'
    |                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 75 |
 76 |   static func shared(_ config: SupabaseLogConfig) -> SupabaseLogManager {
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:125:4: error: Objective-C interoperability is disabled
123 |   }
124 |
125 |   @objc
    |    `- error: Objective-C interoperability is disabled
126 |   private func checkForLogsAndSend() {
127 |     let logs = cache.pop()
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:175:4: error: Objective-C interoperability is disabled
173 |
174 | extension SupabaseLogManager {
175 |   @objc func appWillTerminate() {
    |    `- error: Objective-C interoperability is disabled
176 |     if config.isDebug {
177 |       print(#function)
[12/13] Compiling SupabaseLogging LogEntry.swift
[13/13] Compiling SupabaseLogging LogsCache.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/6] Compiling Logging MetadataProvider.swift
[3/6] Compiling Logging Locks.swift
[4/6] Emitting module Logging
[5/6] Compiling Logging LogHandler.swift
[6/6] Compiling Logging Logging.swift
[8/11] Compiling SupabaseLogging SupabaseLogHandler.swift
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:125:4: error: Objective-C interoperability is disabled
123 |   }
124 |
125 |   @objc
    |    `- error: Objective-C interoperability is disabled
126 |   private func checkForLogsAndSend() {
127 |     let logs = cache.pop()
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:175:4: error: Objective-C interoperability is disabled
173 |
174 | extension SupabaseLogManager {
175 |   @objc func appWillTerminate() {
    |    `- error: Objective-C interoperability is disabled
176 |     if config.isDebug {
177 |       print(#function)
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:115:17: error: '#selector' can only be used with the Objective-C runtime
113 |     sendTimer = Timer.scheduledTimer(
114 |       timeInterval: minimumWaitTimeBetweenRequests, target: self,
115 |       selector: #selector(checkForLogsAndSend), userInfo: nil, repeats: true)
    |                 `- error: '#selector' can only be used with the Objective-C runtime
116 |
117 |     // Fire the timer to attempt to send any cached logs from a previous session.
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:138:19: error: cannot find 'URLRequest' in scope
136 |     }
137 |
138 |     var request = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
139 |     request.httpMethod = "POST"
140 |     request.addValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:145:42: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
143 |     request.httpBody = data
144 |
145 |     let config = URLSessionConfiguration.default
    |                                          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
146 |     config.waitsForConnectivity = true
147 |     let session = URLSession(configuration: config)
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:147:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
145 |     let config = URLSessionConfiguration.default
146 |     config.waitsForConnectivity = true
147 |     let session = URLSession(configuration: config)
    |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
148 |
149 |     session.dataTask(with: request) { _, response, error in
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:157:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
155 |         guard
156 |           let httpResponse = response as? HTTPURLResponse,
157 |           200..<300 ~= httpResponse.statusCode
    |                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
158 |         else {
159 |           throw URLError(.badServerResponse)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/11] Emitting module SupabaseLogging
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:125:4: error: Objective-C interoperability is disabled
123 |   }
124 |
125 |   @objc
    |    `- error: Objective-C interoperability is disabled
126 |   private func checkForLogsAndSend() {
127 |     let logs = cache.pop()
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:175:4: error: Objective-C interoperability is disabled
173 |
174 | extension SupabaseLogManager {
175 |   @objc func appWillTerminate() {
    |    `- error: Objective-C interoperability is disabled
176 |     if config.isDebug {
177 |       print(#function)
[10/11] Compiling SupabaseLogging LogEntry.swift
[11/11] Compiling SupabaseLogging LogsCache.swift
BUILD FAILURE 6.1 linux