Build Information
Failed to build SunKit, reference main (a18a6f
), with Swift 5.8 for macOS (SPM) on 3 Nov 2024 12:45:24 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-14.3.1.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Sunlitt/SunKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Sunlitt/SunKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at a18a6f7 Created SunKit.yml (#56)
Cloned https://github.com/Sunlitt/SunKit.git
Revision (git rev-parse @):
a18a6f780770680f4f2ffe3488a1f3b335ec5ff6
SUCCESS checkout https://github.com/Sunlitt/SunKit.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 5.8
Building package at path: $PWD
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 HorizonCoordinates.swift
[3/11] Compiling SunKit Sun.swift
/Users/admin/builder/spi-builder-workspace/Sources/SunKit/Sun.swift:840:15: error: consecutive statements on a line must be separated by ';'
return if altitude.degrees > 0 && altitude.degrees < 90 {
^
;
/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:840:9: error: non-void function should return a value
return if altitude.degrees > 0 && altitude.degrees < 90 {
^
/Users/admin/builder/spi-builder-workspace/Sources/SunKit/Sun.swift:841:26: warning: result of operator '/' is unused
objectHeight / tan(altitude.radians)
~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SunKit/Sun.swift:843:13: error: 'nil' requires a contextual type
nil
^
/Users/admin/builder/spi-builder-workspace/Sources/SunKit/Sun.swift:845:13: warning: integer literal is unused
0
^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/11] Compiling SunKit EclipticCoordinates.swift
[5/11] Emitting module SunKit
/Users/admin/builder/spi-builder-workspace/Sources/SunKit/Extensions.swift:22:17: error: unknown attribute 'retroactive'
extension Date: @retroactive Strideable {
^
/Users/admin/builder/spi-builder-workspace/Sources/SunKit/Extensions.swift:22:1: error: inheritance from non-protocol type 'any Strideable'
extension Date: @retroactive Strideable {
^
/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
[6/11] Compiling SunKit Angle.swift
[7/11] Compiling SunKit Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/SunKit/Extensions.swift:22:17: error: unknown attribute 'retroactive'
extension Date: @retroactive Strideable {
^
/Users/admin/builder/spi-builder-workspace/Sources/SunKit/Extensions.swift:22:1: error: inheritance from non-protocol type 'any Strideable'
extension Date: @retroactive Strideable {
^
[8/11] Compiling SunKit DMS.swift
[9/11] Compiling SunKit EquatorialCoordinates.swift
[10/11] Compiling SunKit HMS.swift
[11/11] Compiling SunKit Utils.swift
BUILD FAILURE 5.8 macosSpm