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, reference 1.2.0 (368c4e), with Swift 6.1 for macOS (SPM) on 24 Apr 2025 19:35:31 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.61.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
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/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/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 from cache (1.41s)
Creating working copy for https://github.com/maxxfrazer/ARKit-SCNPath.git
Working copy of https://github.com/maxxfrazer/ARKit-SCNPath.git resolved at 1.2.0 (368c4eb)
warning: '.resolve-product-dependencies': dependency 'arkit-scnpath' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/maxxfrazer/ARKit-SCNPath.git
https://github.com/maxxfrazer/ARKit-SCNPath.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SCNPath",
  "name" : "SCNPath",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "SCNPath",
      "targets" : [
        "SCNPath"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SCNPathTests",
      "module_type" : "SwiftTarget",
      "name" : "SCNPathTests",
      "path" : "Tests/SCNPathTests",
      "sources" : [
        "SCNPathTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "SCNPath"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SCNPath",
      "module_type" : "SwiftTarget",
      "name" : "SCNPath",
      "path" : "Sources/SCNPath",
      "product_memberships" : [
        "SCNPath"
      ],
      "sources" : [
        "SCNGeometry+Extensions.swift",
        "SCNPathNode.swift",
        "SCNVector3+Extensions.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/6] Emitting module SCNPath
[4/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 |
[5/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
[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")
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/5] Emitting module SCNPath
[3/5] 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
[4/5] 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 |
[5/5] 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.1 macosSpm