This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

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

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/maxxfrazer/ARKit-SCNPath.git
Reference: main
Initialized empty Git repository in /Users/admin/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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/maxxfrazer/ARKit-SCNPath.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/6] Emitting module SCNPath
[4/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
[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 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")
BUILD FAILURE 6.0 macosSpm
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.