Build Information
Failed to build SunKit with Swift 5.8 for macOS (SPM).
Build Command
env DEVELOPER_DIR=/Applications/Xcode-14.3.1.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.43.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Sunlitt/SunKit.git
Reference: 2.8.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Sunlitt/SunKit
* tag 2.8.1 -> FETCH_HEAD
HEAD is now at 086d345 fix-wrong-solar-midnight (#53)
Cloned https://github.com/Sunlitt/SunKit.git
Revision (git rev-parse @):
086d345cd9886b037ae0af0db49fcaf849acb887
SUCCESS checkout https://github.com/Sunlitt/SunKit.git at 2.8.1
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 5.8
Building package at path: $workDir
https://github.com/Sunlitt/SunKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-14.3.1.app xcrun swift build --arch arm64
Building for debugging...
[1/10] Compiling SunKit SunElevationEvents.swift
[2/11] Compiling SunKit Sun.swift
/Users/admin/builder/spi-builder-workspace/Sources/SunKit/Sun.swift:29:29: warning: stored property 'location' of 'Sendable'-conforming struct 'Sun' has non-sendable type 'CLLocation'
public private(set) var location: CLLocation
^
CoreLocation.CLLocation:2:12: note: class 'CLLocation' does not conform to the 'Sendable' protocol
open class CLLocation : NSObject, NSCopying, NSSecureCoding {
^
/Users/admin/builder/spi-builder-workspace/Sources/SunKit/Sun.swift:20:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreLocation'
import CoreLocation
^
@preconcurrency
/Users/admin/builder/spi-builder-workspace/Sources/SunKit/Sun.swift:166:28: warning: result of operator '||' is unused
date < sunrise || date > sunset
~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SunKit/Sun.swift:168:13: warning: expression of type 'Bool' is unused
isAlwaysNight
^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SunKit/Sun.swift:170:5: error: missing return in getter expected to return 'Bool'
}
^
[3/11] Compiling SunKit HorizonCoordinates.swift
[4/11] Compiling SunKit Extensions.swift
[5/11] Compiling SunKit HMS.swift
[6/11] Compiling SunKit EquatorialCoordinates.swift
[7/11] Compiling SunKit Angle.swift
[8/11] Emitting module SunKit
/Users/admin/builder/spi-builder-workspace/Sources/SunKit/Sun.swift:29:29: warning: stored property 'location' of 'Sendable'-conforming struct 'Sun' has non-sendable type 'CLLocation'
public private(set) var location: CLLocation
^
CoreLocation.CLLocation:2:12: note: class 'CLLocation' does not conform to the 'Sendable' protocol
open class CLLocation : NSObject, NSCopying, NSSecureCoding {
^
/Users/admin/builder/spi-builder-workspace/Sources/SunKit/Sun.swift:20:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreLocation'
import CoreLocation
^
@preconcurrency
[9/11] Compiling SunKit EclipticCoordinates.swift
[10/11] Compiling SunKit DMS.swift
[11/11] Compiling SunKit Utils.swift
BUILD FAILURE 5.8 macosSpm