The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SCNPath, reference 1.2.0 (368c4e), with Swift 6.2 for macOS (SPM) on 17 Jun 2025 21:09:00 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.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/admin/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
Revision (git rev-parse @):
368c4eb715a79354225aae48bcbb99119d73b26f
SUCCESS checkout https://github.com/maxxfrazer/ARKit-SCNPath.git at 1.2.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/maxxfrazer/ARKit-SCNPath.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
[3/6] Emitting module SCNPath
[4/6] Compiling SCNPath SCNGeometry+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/SCNPath/SCNGeometry+Extensions.swift:46:9: error: cannot convert return expression of type 'CGFloat' to return type 'Float'
 44 | 	let vec1 = points[1] - points[0]
 45 | 	let vec2 = points[2] - points[1]
 46 | 	return atan2(vec1.x * vec2.z - vec1.z * vec2.x, vec1.x * vec2.x + vec1.z * vec2.z)
    |         `- error: cannot convert return expression of type 'CGFloat' to return type 'Float'
 47 | }
 48 |
/Users/admin/builder/spi-builder-workspace/Sources/SCNPath/SCNGeometry+Extensions.swift:63:26: error: cannot find 'UIColor' in scope
 61 | 	private static var defaultSCNPathMaterial: SCNMaterial {
 62 | 		let mat = SCNMaterial()
 63 | 		mat.diffuse.contents = UIColor.blue
    |                          `- error: cannot find 'UIColor' in scope
 64 | 		return mat
 65 | 	}
/Users/admin/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
 57 | }
 58 |
 59 | public extension SCNGeometry {
    |        `- note: add @available attribute to enclosing extension
 60 |
 61 | 	private static var defaultSCNPathMaterial: SCNMaterial {
    :
 76 | 	///   - materials: Materials to be used on the geometry. Only the first will be read.
 77 | 	/// - Returns: A new SCNGeometry representing the path for use with any SceneKit Application.
 78 | 	class func path(
    |             `- note: add @available attribute to enclosing class method
 79 | 		path: [SCNVector3], width: Float = 0.5,
 80 | 		curvePoints: Float = 8, materials: [SCNMaterial] = [],
    :
 90 | 		if curveDistance < 1 {
 91 |       if #available(iOS 12.0, *) {
 92 |         os_log(.error, "curve distance is too low, minimum value is 1")
    |         |- error: 'os_log(_:dso:log:_:_:)' is only available in macOS 10.14 or newer
    |         `- note: add 'if #available' version check
 93 |       } else {
 94 |         fatalError("curve distance is too low, minimum value is 1")
[5/6] Compiling SCNPath SCNVector3+Extensions.swift
/Users/admin/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
 27 | 	/// Returns the squared magnitude of the vector
 28 | 	var lenSq: Float {
 29 | 		return x*x + y*y + z*z
    |          `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
 30 | 	}
 31 |
/Users/admin/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
 58 | 	/// - Returns: Scalar dot product
 59 | 	func dot(vector: SCNVector3) -> Float {
 60 | 		return x * vector.x + y * vector.y + z * vector.z
    |          `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
 61 | 	}
 62 |
/Users/admin/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
 71 | 		let sinAngle = sin(rotation)
 72 | 		let cosAngle = cos(rotation)
 73 | 		return SCNVector3(
    |          `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
 74 | 			x: pointRepositionedXY[0] * cosAngle - pointRepositionedXY[1] * sinAngle + origin.x,
 75 | 			y: self.y,
/Users/admin/builder/spi-builder-workspace/Sources/SCNPath/SCNVector3+Extensions.swift:92:35: error: cannot convert value of type 'Float' to expected argument type 'CGFloat'
 90 |
 91 | internal func * (vector: SCNVector3, scalar: Float) -> SCNVector3 {
 92 | 	return SCNVector3Make(vector.x * scalar, vector.y * scalar, vector.z * scalar)
    |                                   `- error: cannot convert value of type 'Float' to expected argument type 'CGFloat'
 93 | }
 94 |
/Users/admin/builder/spi-builder-workspace/Sources/SCNPath/SCNVector3+Extensions.swift:92:54: error: cannot convert value of type 'Float' to expected argument type 'CGFloat'
 90 |
 91 | internal func * (vector: SCNVector3, scalar: Float) -> SCNVector3 {
 92 | 	return SCNVector3Make(vector.x * scalar, vector.y * scalar, vector.z * scalar)
    |                                                      `- error: cannot convert value of type 'Float' to expected argument type 'CGFloat'
 93 | }
 94 |
/Users/admin/builder/spi-builder-workspace/Sources/SCNPath/SCNVector3+Extensions.swift:92:73: error: cannot convert value of type 'Float' to expected argument type 'CGFloat'
 90 |
 91 | internal func * (vector: SCNVector3, scalar: Float) -> SCNVector3 {
 92 | 	return SCNVector3Make(vector.x * scalar, vector.y * scalar, vector.z * scalar)
    |                                                                         `- error: cannot convert value of type 'Float' to expected argument type 'CGFloat'
 93 | }
 94 |
/Users/admin/builder/spi-builder-workspace/Sources/SCNPath/SCNVector3+Extensions.swift:104:35: error: cannot convert value of type 'Float' to expected argument type 'CGFloat'
102 |
103 | internal func / (vector: SCNVector3, scalar: Float) -> SCNVector3 {
104 | 	return SCNVector3Make(vector.x / scalar, vector.y / scalar, vector.z / scalar)
    |                                   `- error: cannot convert value of type 'Float' to expected argument type 'CGFloat'
105 | }
106 |
/Users/admin/builder/spi-builder-workspace/Sources/SCNPath/SCNVector3+Extensions.swift:104:54: error: cannot convert value of type 'Float' to expected argument type 'CGFloat'
102 |
103 | internal func / (vector: SCNVector3, scalar: Float) -> SCNVector3 {
104 | 	return SCNVector3Make(vector.x / scalar, vector.y / scalar, vector.z / scalar)
    |                                                      `- error: cannot convert value of type 'Float' to expected argument type 'CGFloat'
105 | }
106 |
/Users/admin/builder/spi-builder-workspace/Sources/SCNPath/SCNVector3+Extensions.swift:104:73: error: cannot convert value of type 'Float' to expected argument type 'CGFloat'
102 |
103 | internal func / (vector: SCNVector3, scalar: Float) -> SCNVector3 {
104 | 	return SCNVector3Make(vector.x / scalar, vector.y / scalar, vector.z / scalar)
    |                                                                         `- error: cannot convert value of type 'Float' to expected argument type 'CGFloat'
105 | }
106 |
[6/6] Compiling SCNPath SCNPathNode.swift
/Users/admin/builder/spi-builder-workspace/Sources/SCNPath/SCNPathNode.swift:95:26: error: cannot find type 'UIImage' in scope
 93 | 	private func recalcTextureScale() {
 94 | 		if let contents = self.materials.first?.diffuse.contents,
 95 | 		let img = contents as? UIImage {
    |                          `- error: cannot find type 'UIImage' in scope
 96 | 			let contentsTransform = SCNMatrix4Scale(
 97 | 				SCNMatrix4Identity,
/Users/admin/builder/spi-builder-workspace/Sources/SCNPath/SCNPathNode.swift:98:8: error: cannot convert value of type 'Float' to expected argument type 'CGFloat'
 96 | 			let contentsTransform = SCNMatrix4Scale(
 97 | 				SCNMatrix4Identity,
 98 | 				1, Float(self.pathLength / (CGFloat(self.width) * img.size.width / img.size.height)), 1)
    |        `- error: cannot convert value of type 'Float' to expected argument type 'CGFloat'
 99 | 			self.materials.first?.diffuse.wrapT = .repeat
100 | 			self.materials.first?.diffuse.contentsTransform = contentsTransform
BUILD FAILURE 6.2 macosSpm