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 WZDateSlider, reference main (d78fbc), with Swift 5.9 for macOS (SPM) on 12 Jul 2024 18:13:40 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.46.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/wannabewize/WZDateSlider.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/wannabewize/WZDateSlider
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at d78fbc8 Merge tag 'handling-min,max-date-changing' into develop
Cloned https://github.com/wannabewize/WZDateSlider.git
Revision (git rev-parse @):
d78fbc81bb84c8b6cde340e689b21a9a42f96c41
SUCCESS checkout https://github.com/wannabewize/WZDateSlider.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.9
Building package at path:  $workDir
https://github.com/wannabewize/WZDateSlider.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.2.0.app xcrun swift build --arch arm64
Building for debugging...
[1/4] Emitting module WZDateSlider
[2/4] Compiling WZDateSlider Library.swift
[3/4] Compiling WZDateSlider WZDoubleDateSlider.swift
/Users/admin/builder/spi-builder-workspace/Sources/WZDateSlider/WZDoubleDateSlider.swift:48:30: error: cannot infer return type for closure with multiple statements; add explicit type to disambiguate
        let lowDragGesture = { (width: CGFloat, topLimit: Int, bottomLimit: Int) in
                             ^
                                                                                 -> <#Result#>
[4/4] Compiling WZDateSlider WZSingleDateSlider.swift
/Users/admin/builder/spi-builder-workspace/Sources/WZDateSlider/WZSingleDateSlider.swift:37:27: error: cannot infer return type for closure with multiple statements; add explicit type to disambiguate
        let dragGesture = { (width: CGFloat, lowLimit: Int, highLimit: Int) in
                          ^
                                                                            -> <#Result#>
error: fatalError
BUILD FAILURE 5.9 macosSpm