The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SCNPath with Swift 5.9 for macOS (SPM).

Build Command

env DEVELOPER_DIR="/Applications/Xcode-15.0.0-Beta.app" xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/maxxfrazer/ARKit-SCNPath.git
Reference: 1.2.0
Initialized empty Git repository in /Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.git/
From https://github.com/maxxfrazer/ARKit-SCNPath
 * tag               1.2.0      -> FETCH_HEAD
HEAD is now at 368c4eb Version 1.2.0
Cloned https://github.com/maxxfrazer/ARKit-SCNPath.git into spi-builder-workspace
368c4eb715a79354225aae48bcbb99119d73b26f
SUCCESS checkout https://github.com/maxxfrazer/ARKit-SCNPath.git at 1.2.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
env DEVELOPER_DIR="/Applications/Xcode-15.0.0-Beta.app" xcrun swift build --arch arm64
Building ... (attempt 1)
Building for debugging...
[1/4] Emitting module SCNPath
[2/4] Compiling SCNPath SCNGeometry+Extensions.swift
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SCNPath/SCNGeometry+Extensions.swift:46:9: error: cannot convert return expression of type 'CGFloat' to return type 'Float'
        return atan2(vec1.x * vec2.z - vec1.z * vec2.x, vec1.x * vec2.x + vec1.z * vec2.z)
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               Float(                                                                     )
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SCNPath/SCNGeometry+Extensions.swift:63:26: error: cannot find 'UIColor' in scope
                mat.diffuse.contents = UIColor.blue
                                       ^~~~~~~
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SCNPath/SCNGeometry+Extensions.swift:92:9: error: 'os_log(_:dso:log:_:_:)' is only available in macOS 10.14 or newer
        os_log(.error, "curve distance is too low, minimum value is 1")
        ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SCNPath/SCNGeometry+Extensions.swift:92:9: note: add 'if #available' version check
        os_log(.error, "curve distance is too low, minimum value is 1")
        ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SCNPath/SCNGeometry+Extensions.swift:78:13: note: add @available attribute to enclosing class method
        class func path(
                   ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SCNPath/SCNGeometry+Extensions.swift:59:8: note: add @available attribute to enclosing extension
public extension SCNGeometry {
       ^
[3/4] Compiling SCNPath SCNPathNode.swift
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SCNPath/SCNPathNode.swift:95:26: error: cannot find type 'UIImage' in scope
                let img = contents as? UIImage {
                                       ^~~~~~~
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SCNPath/SCNPathNode.swift:98:8: error: cannot convert value of type 'Float' to expected argument type 'CGFloat'
                                1, Float(self.pathLength / (CGFloat(self.width) * img.size.width / img.size.height)), 1)
                                   ^
                                   CGFloat(                                                                         )
[4/4] Compiling SCNPath SCNVector3+Extensions.swift
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SCNPath/SCNVector3+Extensions.swift:29:10: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
                return x*x + y*y + z*z
                       ^~~~~~~~~~~~~~~
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SCNPath/SCNVector3+Extensions.swift:60:10: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
                return x * vector.x + y * vector.y + z * vector.z
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SCNPath/SCNVector3+Extensions.swift:73:10: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
                return SCNVector3(
                       ^~~~~~~~~~~
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SCNPath/SCNVector3+Extensions.swift:92:35: error: cannot convert value of type 'Float' to expected argument type 'CGFloat'
        return SCNVector3Make(vector.x * scalar, vector.y * scalar, vector.z * scalar)
                                         ^
                                         CGFloat( )
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SCNPath/SCNVector3+Extensions.swift:92:54: error: cannot convert value of type 'Float' to expected argument type 'CGFloat'
        return SCNVector3Make(vector.x * scalar, vector.y * scalar, vector.z * scalar)
                                                            ^
                                                            CGFloat( )
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SCNPath/SCNVector3+Extensions.swift:92:73: error: cannot convert value of type 'Float' to expected argument type 'CGFloat'
        return SCNVector3Make(vector.x * scalar, vector.y * scalar, vector.z * scalar)
                                                                               ^
                                                                               CGFloat( )
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SCNPath/SCNVector3+Extensions.swift:104:35: error: cannot convert value of type 'Float' to expected argument type 'CGFloat'
        return SCNVector3Make(vector.x / scalar, vector.y / scalar, vector.z / scalar)
                                         ^
                                         CGFloat( )
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SCNPath/SCNVector3+Extensions.swift:104:54: error: cannot convert value of type 'Float' to expected argument type 'CGFloat'
        return SCNVector3Make(vector.x / scalar, vector.y / scalar, vector.z / scalar)
                                                            ^
                                                            CGFloat( )
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SCNPath/SCNVector3+Extensions.swift:104:73: error: cannot convert value of type 'Float' to expected argument type 'CGFloat'
        return SCNVector3Make(vector.x / scalar, vector.y / scalar, vector.z / scalar)
                                                                               ^
                                                                               CGFloat( )
error: fatalError
Retrying in 0 seconds ...
Building ... (attempt 2)
[0/1] Planning build
Building for debugging...
[1/4] Compiling SCNPath SCNGeometry+Extensions.swift
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SCNPath/SCNGeometry+Extensions.swift:46:9: error: cannot convert return expression of type 'CGFloat' to return type 'Float'
        return atan2(vec1.x * vec2.z - vec1.z * vec2.x, vec1.x * vec2.x + vec1.z * vec2.z)
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               Float(                                                                     )
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SCNPath/SCNGeometry+Extensions.swift:63:26: error: cannot find 'UIColor' in scope
                mat.diffuse.contents = UIColor.blue
                                       ^~~~~~~
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SCNPath/SCNGeometry+Extensions.swift:92:9: error: 'os_log(_:dso:log:_:_:)' is only available in macOS 10.14 or newer
        os_log(.error, "curve distance is too low, minimum value is 1")
        ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SCNPath/SCNGeometry+Extensions.swift:92:9: note: add 'if #available' version check
        os_log(.error, "curve distance is too low, minimum value is 1")
        ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SCNPath/SCNGeometry+Extensions.swift:78:13: note: add @available attribute to enclosing class method
        class func path(
                   ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SCNPath/SCNGeometry+Extensions.swift:59:8: note: add @available attribute to enclosing extension
public extension SCNGeometry {
       ^
[2/4] Emitting module SCNPath
[3/4] Compiling SCNPath SCNVector3+Extensions.swift
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SCNPath/SCNVector3+Extensions.swift:29:10: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
                return x*x + y*y + z*z
                       ^~~~~~~~~~~~~~~
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SCNPath/SCNVector3+Extensions.swift:60:10: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
                return x * vector.x + y * vector.y + z * vector.z
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SCNPath/SCNVector3+Extensions.swift:73:10: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
                return SCNVector3(
                       ^~~~~~~~~~~
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SCNPath/SCNVector3+Extensions.swift:92:35: error: cannot convert value of type 'Float' to expected argument type 'CGFloat'
        return SCNVector3Make(vector.x * scalar, vector.y * scalar, vector.z * scalar)
                                         ^
                                         CGFloat( )
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SCNPath/SCNVector3+Extensions.swift:92:54: error: cannot convert value of type 'Float' to expected argument type 'CGFloat'
        return SCNVector3Make(vector.x * scalar, vector.y * scalar, vector.z * scalar)
                                                            ^
                                                            CGFloat( )
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SCNPath/SCNVector3+Extensions.swift:92:73: error: cannot convert value of type 'Float' to expected argument type 'CGFloat'
        return SCNVector3Make(vector.x * scalar, vector.y * scalar, vector.z * scalar)
                                                                               ^
                                                                               CGFloat( )
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SCNPath/SCNVector3+Extensions.swift:104:35: error: cannot convert value of type 'Float' to expected argument type 'CGFloat'
        return SCNVector3Make(vector.x / scalar, vector.y / scalar, vector.z / scalar)
                                         ^
                                         CGFloat( )
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SCNPath/SCNVector3+Extensions.swift:104:54: error: cannot convert value of type 'Float' to expected argument type 'CGFloat'
        return SCNVector3Make(vector.x / scalar, vector.y / scalar, vector.z / scalar)
                                                            ^
                                                            CGFloat( )
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SCNPath/SCNVector3+Extensions.swift:104:73: error: cannot convert value of type 'Float' to expected argument type 'CGFloat'
        return SCNVector3Make(vector.x / scalar, vector.y / scalar, vector.z / scalar)
                                                                               ^
                                                                               CGFloat( )
[4/4] Compiling SCNPath SCNPathNode.swift
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SCNPath/SCNPathNode.swift:95:26: error: cannot find type 'UIImage' in scope
                let img = contents as? UIImage {
                                       ^~~~~~~
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SCNPath/SCNPathNode.swift:98:8: error: cannot convert value of type 'Float' to expected argument type 'CGFloat'
                                1, Float(self.pathLength / (CGFloat(self.width) * img.size.width / img.size.height)), 1)
                                   ^
                                   CGFloat(                                                                         )
error: fatalError
Retrying in 0 seconds ...
BUILD FAILURE 5.9 macosSpm