The Swift Package Index logo.Swift Package Index

Build Information

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

Build Command

Build command unavailable

Build Log

========================================
RunAll
========================================
Builder version: 4.27.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/maxxfrazer/ARKit-SCNPath.git
Reference: main
Initialized empty Git repository in /Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.git/
From https://github.com/maxxfrazer/ARKit-SCNPath
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at a186243 example is not importing scnpath, files brought in to make development simpler
Cloned https://github.com/maxxfrazer/ARKit-SCNPath.git
Revision (git rev-parse @):
a1862431cdfd31d780f602483cf39746deaa5068
SUCCESS checkout https://github.com/maxxfrazer/ARKit-SCNPath.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "arkit-scnpath",
      "name": "SCNPath",
      "url": "https://github.com/maxxfrazer/ARKit-SCNPath.git",
      "version": "unspecified",
      "path": "/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ARKit-SCNPath",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/maxxfrazer/ARKit-SCNPath.git
[1/320] Fetching arkit-scnpath
Fetched https://github.com/maxxfrazer/ARKit-SCNPath.git (1.44s)
Creating working copy for https://github.com/maxxfrazer/ARKit-SCNPath.git
Working copy of https://github.com/maxxfrazer/ARKit-SCNPath.git resolved at main
warning: '.resolve-product-dependencies': dependency 'arkit-scnpath' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.9
Building package at path:  $PWD/checkout
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.0.0.app xcrun swift build --arch arm64
Building for debugging...
[1/4] Compiling SCNPath SCNGeometry+Extensions.swift
/Users/admin/builds/h8344Zi3/1/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/admin/builds/h8344Zi3/1/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/admin/builds/h8344Zi3/1/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/admin/builds/h8344Zi3/1/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/admin/builds/h8344Zi3/1/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/admin/builds/h8344Zi3/1/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] Compiling SCNPath SCNPathNode.swift
/Users/admin/builds/h8344Zi3/1/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/admin/builds/h8344Zi3/1/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(                                                                         )
[3/4] Emitting module SCNPath
[4/4] Compiling SCNPath SCNVector3+Extensions.swift
/Users/admin/builds/h8344Zi3/1/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/admin/builds/h8344Zi3/1/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/admin/builds/h8344Zi3/1/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/admin/builds/h8344Zi3/1/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/admin/builds/h8344Zi3/1/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/admin/builds/h8344Zi3/1/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/admin/builds/h8344Zi3/1/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/admin/builds/h8344Zi3/1/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/admin/builds/h8344Zi3/1/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
[0/1] Planning build
Building for debugging...
[1/4] Compiling SCNPath SCNPathNode.swift
/Users/admin/builds/h8344Zi3/1/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/admin/builds/h8344Zi3/1/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(                                                                         )
[2/4] Emitting module SCNPath
[3/4] Compiling SCNPath SCNGeometry+Extensions.swift
/Users/admin/builds/h8344Zi3/1/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/admin/builds/h8344Zi3/1/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/admin/builds/h8344Zi3/1/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/admin/builds/h8344Zi3/1/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/admin/builds/h8344Zi3/1/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/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SCNPath/SCNGeometry+Extensions.swift:59:8: note: add @available attribute to enclosing extension
public extension SCNGeometry {
       ^
[4/4] Compiling SCNPath SCNVector3+Extensions.swift
/Users/admin/builds/h8344Zi3/1/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/admin/builds/h8344Zi3/1/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/admin/builds/h8344Zi3/1/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/admin/builds/h8344Zi3/1/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/admin/builds/h8344Zi3/1/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/admin/builds/h8344Zi3/1/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/admin/builds/h8344Zi3/1/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/admin/builds/h8344Zi3/1/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/admin/builds/h8344Zi3/1/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
BUILD FAILURE 5.9 macosSpm