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 Background, reference main (11f1bc), with Swift 5.8 for macOS (SPM) on 5 Jul 2024 21:04:05 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-14.3.1.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.45.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ChimeHQ/Background.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ChimeHQ/Background
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 11f1bc9 Another NetworkResponse convenience init
Cloned https://github.com/ChimeHQ/Background.git
Revision (git rev-parse @):
11f1bc95a7ec88c275b522b12883ada9dbc062e6
SPI manifest file found: $workDir/.spi.yml
SUCCESS checkout https://github.com/ChimeHQ/Background.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.8
Building package at path:  $workDir
https://github.com/ChimeHQ/Background.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-14.3.1.app xcrun swift build --arch arm64
Building for debugging...
[1/8] Compiling Background TaskScheduler.swift
/Users/admin/builder/spi-builder-workspace/Sources/Background/TaskScheduler.swift:2:31: warning: unknown operating system for build configuration 'os'
#if os(iOS) || os(tvOS) || os(visionOS)
                              ^
/Users/admin/builder/spi-builder-workspace/Sources/Background/TaskScheduler.swift:2:31: note: did you mean 'iOS'?
#if os(iOS) || os(tvOS) || os(visionOS)
                              ^~~~~~~~
                              iOS
/Users/admin/builder/spi-builder-workspace/Sources/Background/TaskScheduler.swift:2:31: note: did you mean 'Windows'?
#if os(iOS) || os(tvOS) || os(visionOS)
                              ^~~~~~~~
                              Windows
[2/8] Compiling Background Uploader.swift
/Users/admin/builder/spi-builder-workspace/Sources/Background/URLSessionDelegateAdapter.swift:11:46: error: type 'AsyncStream<URLSessionDelegateAdapter.Event>' has no member 'makeStream'
        private let streamPair = AsyncStream<Event>.makeStream()
                                 ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
[3/8] Compiling Background URLResponse+Utilities.swift
/Users/admin/builder/spi-builder-workspace/Sources/Background/URLResponse+Utilities.swift:30:5: error: reference to member 'failure' cannot be resolved without a contextual type
                        .failure(error)
                        ~^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/Background/URLResponse+Utilities.swift:32:5: error: reference to member 'success' cannot be resolved without a contextual type
                        .success(urlResponse)
                        ~^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/Background/URLResponse+Utilities.swift:34:5: error: reference to member 'failure' cannot be resolved without a contextual type
                        .failure(NetworkResponseError.noResponseOrError)
                        ~^~~~~~~
[4/8] Compiling Background URLSessionDelegateAdapter.swift
/Users/admin/builder/spi-builder-workspace/Sources/Background/URLSessionDelegateAdapter.swift:11:46: error: type 'AsyncStream<URLSessionDelegateAdapter.Event>' has no member 'makeStream'
        private let streamPair = AsyncStream<Event>.makeStream()
                                 ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/Background/URLSessionDelegateAdapter.swift:20:23: error: cannot infer contextual base in reference to member 'didFinishEvents'
                streamPair.1.yield(.didFinishEvents)
                                   ~^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/Background/URLSessionDelegateAdapter.swift:26:23: error: cannot infer contextual base in reference to member 'taskComplete'
                streamPair.1.yield(.taskComplete(task, error))
                                   ~^~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/Background/URLSessionDelegateAdapter.swift:32:23: error: cannot infer contextual base in reference to member 'downloadFinished'
                streamPair.1.yield(.downloadFinished(downloadTask, location))
                                   ~^~~~~~~~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/8] Compiling Background NetworkResponse.swift
[6/8] Compiling Background BackgroundTaskConfiguration.swift
[7/8] Emitting module Background
/Users/admin/builder/spi-builder-workspace/Sources/Background/TaskScheduler.swift:2:31: warning: unknown operating system for build configuration 'os'
#if os(iOS) || os(tvOS) || os(visionOS)
                              ^
/Users/admin/builder/spi-builder-workspace/Sources/Background/TaskScheduler.swift:2:31: note: did you mean 'iOS'?
#if os(iOS) || os(tvOS) || os(visionOS)
                              ^~~~~~~~
                              iOS
/Users/admin/builder/spi-builder-workspace/Sources/Background/TaskScheduler.swift:2:31: note: did you mean 'Windows'?
#if os(iOS) || os(tvOS) || os(visionOS)
                              ^~~~~~~~
                              Windows
/Users/admin/builder/spi-builder-workspace/Sources/Background/URLSessionDelegateAdapter.swift:11:46: error: type 'AsyncStream<URLSessionDelegateAdapter.Event>' has no member 'makeStream'
        private let streamPair = AsyncStream<Event>.makeStream()
                                 ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
[8/8] Compiling Background Downloader.swift
/Users/admin/builder/spi-builder-workspace/Sources/Background/URLSessionDelegateAdapter.swift:11:46: error: type 'AsyncStream<URLSessionDelegateAdapter.Event>' has no member 'makeStream'
        private let streamPair = AsyncStream<Event>.makeStream()
                                 ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
BUILD FAILURE 5.8 macosSpm