Build Information
Failed to build SmartHitTest, reference 2.0.0 (2b7145
), with Swift 6.2 (beta) for macOS (SPM) on 18 Jun 2025 08:10:29 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-SmartHitTest.git
Reference: 2.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/maxxfrazer/ARKit-SmartHitTest
* tag 2.0.0 -> FETCH_HEAD
HEAD is now at 2b7145d Version 2.0
Cloned https://github.com/maxxfrazer/ARKit-SmartHitTest.git
Revision (git rev-parse @):
2b7145d55ca273f1ec0328783f87e93b9473f9f5
SUCCESS checkout https://github.com/maxxfrazer/ARKit-SmartHitTest.git at 2.0.0
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/maxxfrazer/ARKit-SmartHitTest.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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module SmartHitTest
/Users/admin/builder/spi-builder-workspace/Sources/SmartHitTest/SmartHitTest.swift:12:44: error: cannot find type 'UIView' in scope
10 |
11 | /// It's recommended to use either ARSCNView or ARView when using this protocol
12 | public protocol ARSmartHitTest where Self: UIView {
| `- error: cannot find type 'UIView' in scope
13 |
14 | /// This hitTest function deifnition is provided with both ARSCNView (SceneKit) and ARView (RealityKit)
/Users/admin/builder/spi-builder-workspace/Sources/SmartHitTest/SmartHitTest.swift:17:73: error: cannot find type 'ARHitTestResult' in scope
15 | /// - Parameter point: A point in the view’s coordinate system.
16 | /// - Parameter types: The hit test search type to look for.
17 | func hitTest(_ point: CGPoint, types: ARHitTestResult.ResultType) -> [ARHitTestResult]
| `- error: cannot find type 'ARHitTestResult' in scope
18 | }
19 |
/Users/admin/builder/spi-builder-workspace/Sources/SmartHitTest/SmartHitTest.swift:17:41: error: cannot find type 'ARHitTestResult' in scope
15 | /// - Parameter point: A point in the view’s coordinate system.
16 | /// - Parameter types: The hit test search type to look for.
17 | func hitTest(_ point: CGPoint, types: ARHitTestResult.ResultType) -> [ARHitTestResult]
| `- error: cannot find type 'ARHitTestResult' in scope
18 | }
19 |
/Users/admin/builder/spi-builder-workspace/Sources/SmartHitTest/SmartHitTest.swift:33:10: error: cannot find type 'ARHitTestResult' in scope
31 | _ point: CGPoint? = nil, infinitePlane: Bool = false, objectPosition: SIMD3<Float>? = nil,
32 | allowedAlignments: [ARPlaneAnchor.Alignment] = []
33 | ) -> ARHitTestResult? {
| `- error: cannot find type 'ARHitTestResult' in scope
34 | var alignments = allowedAlignments
35 | var resultTypes: ARHitTestResult.ResultType = []
/Users/admin/builder/spi-builder-workspace/Sources/SmartHitTest/SmartHitTest.swift:32:25: error: cannot find type 'ARPlaneAnchor' in scope
30 | func smartHitTest(
31 | _ point: CGPoint? = nil, infinitePlane: Bool = false, objectPosition: SIMD3<Float>? = nil,
32 | allowedAlignments: [ARPlaneAnchor.Alignment] = []
| `- error: cannot find type 'ARPlaneAnchor' in scope
33 | ) -> ARHitTestResult? {
34 | var alignments = allowedAlignments
/Users/admin/builder/spi-builder-workspace/Sources/SmartHitTest/SmartHitTest.swift:95:10: error: cannot find type 'ARHitTestResult' in scope
93 | allowedAlignments: [ARPlaneAnchor.Alignment],
94 | results: [ARHitTestResult]
95 | ) -> ARHitTestResult? {
| `- error: cannot find type 'ARHitTestResult' in scope
96 | // 3. As a final fallback, check for a result on estimated planes.
97 | var vResult: ARHitTestResult? = nil
/Users/admin/builder/spi-builder-workspace/Sources/SmartHitTest/SmartHitTest.swift:93:25: error: cannot find type 'ARPlaneAnchor' in scope
91 |
92 | func smartHitTestFallback(
93 | allowedAlignments: [ARPlaneAnchor.Alignment],
| `- error: cannot find type 'ARPlaneAnchor' in scope
94 | results: [ARHitTestResult]
95 | ) -> ARHitTestResult? {
/Users/admin/builder/spi-builder-workspace/Sources/SmartHitTest/SmartHitTest.swift:94:15: error: cannot find type 'ARHitTestResult' in scope
92 | func smartHitTestFallback(
93 | allowedAlignments: [ARPlaneAnchor.Alignment],
94 | results: [ARHitTestResult]
| `- error: cannot find type 'ARHitTestResult' in scope
95 | ) -> ARHitTestResult? {
96 | // 3. As a final fallback, check for a result on estimated planes.
[4/4] Compiling SmartHitTest SmartHitTest.swift
/Users/admin/builder/spi-builder-workspace/Sources/SmartHitTest/SmartHitTest.swift:12:44: error: cannot find type 'UIView' in scope
10 |
11 | /// It's recommended to use either ARSCNView or ARView when using this protocol
12 | public protocol ARSmartHitTest where Self: UIView {
| `- error: cannot find type 'UIView' in scope
13 |
14 | /// This hitTest function deifnition is provided with both ARSCNView (SceneKit) and ARView (RealityKit)
/Users/admin/builder/spi-builder-workspace/Sources/SmartHitTest/SmartHitTest.swift:17:73: error: cannot find type 'ARHitTestResult' in scope
15 | /// - Parameter point: A point in the view’s coordinate system.
16 | /// - Parameter types: The hit test search type to look for.
17 | func hitTest(_ point: CGPoint, types: ARHitTestResult.ResultType) -> [ARHitTestResult]
| `- error: cannot find type 'ARHitTestResult' in scope
18 | }
19 |
/Users/admin/builder/spi-builder-workspace/Sources/SmartHitTest/SmartHitTest.swift:17:41: error: cannot find type 'ARHitTestResult' in scope
15 | /// - Parameter point: A point in the view’s coordinate system.
16 | /// - Parameter types: The hit test search type to look for.
17 | func hitTest(_ point: CGPoint, types: ARHitTestResult.ResultType) -> [ARHitTestResult]
| `- error: cannot find type 'ARHitTestResult' in scope
18 | }
19 |
/Users/admin/builder/spi-builder-workspace/Sources/SmartHitTest/SmartHitTest.swift:33:10: error: cannot find type 'ARHitTestResult' in scope
31 | _ point: CGPoint? = nil, infinitePlane: Bool = false, objectPosition: SIMD3<Float>? = nil,
32 | allowedAlignments: [ARPlaneAnchor.Alignment] = []
33 | ) -> ARHitTestResult? {
| `- error: cannot find type 'ARHitTestResult' in scope
34 | var alignments = allowedAlignments
35 | var resultTypes: ARHitTestResult.ResultType = []
/Users/admin/builder/spi-builder-workspace/Sources/SmartHitTest/SmartHitTest.swift:32:25: error: cannot find type 'ARPlaneAnchor' in scope
30 | func smartHitTest(
31 | _ point: CGPoint? = nil, infinitePlane: Bool = false, objectPosition: SIMD3<Float>? = nil,
32 | allowedAlignments: [ARPlaneAnchor.Alignment] = []
| `- error: cannot find type 'ARPlaneAnchor' in scope
33 | ) -> ARHitTestResult? {
34 | var alignments = allowedAlignments
/Users/admin/builder/spi-builder-workspace/Sources/SmartHitTest/SmartHitTest.swift:95:10: error: cannot find type 'ARHitTestResult' in scope
93 | allowedAlignments: [ARPlaneAnchor.Alignment],
94 | results: [ARHitTestResult]
95 | ) -> ARHitTestResult? {
| `- error: cannot find type 'ARHitTestResult' in scope
96 | // 3. As a final fallback, check for a result on estimated planes.
97 | var vResult: ARHitTestResult? = nil
/Users/admin/builder/spi-builder-workspace/Sources/SmartHitTest/SmartHitTest.swift:93:25: error: cannot find type 'ARPlaneAnchor' in scope
91 |
92 | func smartHitTestFallback(
93 | allowedAlignments: [ARPlaneAnchor.Alignment],
| `- error: cannot find type 'ARPlaneAnchor' in scope
94 | results: [ARHitTestResult]
95 | ) -> ARHitTestResult? {
/Users/admin/builder/spi-builder-workspace/Sources/SmartHitTest/SmartHitTest.swift:94:15: error: cannot find type 'ARHitTestResult' in scope
92 | func smartHitTestFallback(
93 | allowedAlignments: [ARPlaneAnchor.Alignment],
94 | results: [ARHitTestResult]
| `- error: cannot find type 'ARHitTestResult' in scope
95 | ) -> ARHitTestResult? {
96 | // 3. As a final fallback, check for a result on estimated planes.
/Users/admin/builder/spi-builder-workspace/Sources/SmartHitTest/SmartHitTest.swift:35:22: error: cannot find type 'ARHitTestResult' in scope
33 | ) -> ARHitTestResult? {
34 | var alignments = allowedAlignments
35 | var resultTypes: ARHitTestResult.ResultType = []
| `- error: cannot find type 'ARHitTestResult' in scope
36 | if alignments.isEmpty {
37 | if #available(iOS 11.3, *) {
/Users/admin/builder/spi-builder-workspace/Sources/SmartHitTest/SmartHitTest.swift:38:24: error: reference to member 'horizontal' cannot be resolved without a contextual type
36 | if alignments.isEmpty {
37 | if #available(iOS 11.3, *) {
38 | alignments = [.horizontal, .vertical]
| `- error: reference to member 'horizontal' cannot be resolved without a contextual type
39 | resultTypes = [.existingPlaneUsingGeometry, .estimatedVerticalPlane, .estimatedHorizontalPlane]
40 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SmartHitTest/SmartHitTest.swift:38:37: error: reference to member 'vertical' cannot be resolved without a contextual type
36 | if alignments.isEmpty {
37 | if #available(iOS 11.3, *) {
38 | alignments = [.horizontal, .vertical]
| `- error: reference to member 'vertical' cannot be resolved without a contextual type
39 | resultTypes = [.existingPlaneUsingGeometry, .estimatedVerticalPlane, .estimatedHorizontalPlane]
40 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SmartHitTest/SmartHitTest.swift:39:25: error: reference to member 'existingPlaneUsingGeometry' cannot be resolved without a contextual type
37 | if #available(iOS 11.3, *) {
38 | alignments = [.horizontal, .vertical]
39 | resultTypes = [.existingPlaneUsingGeometry, .estimatedVerticalPlane, .estimatedHorizontalPlane]
| `- error: reference to member 'existingPlaneUsingGeometry' cannot be resolved without a contextual type
40 | } else {
41 | alignments = [.horizontal]
/Users/admin/builder/spi-builder-workspace/Sources/SmartHitTest/SmartHitTest.swift:39:54: error: reference to member 'estimatedVerticalPlane' cannot be resolved without a contextual type
37 | if #available(iOS 11.3, *) {
38 | alignments = [.horizontal, .vertical]
39 | resultTypes = [.existingPlaneUsingGeometry, .estimatedVerticalPlane, .estimatedHorizontalPlane]
| `- error: reference to member 'estimatedVerticalPlane' cannot be resolved without a contextual type
40 | } else {
41 | alignments = [.horizontal]
/Users/admin/builder/spi-builder-workspace/Sources/SmartHitTest/SmartHitTest.swift:39:79: error: reference to member 'estimatedHorizontalPlane' cannot be resolved without a contextual type
37 | if #available(iOS 11.3, *) {
38 | alignments = [.horizontal, .vertical]
39 | resultTypes = [.existingPlaneUsingGeometry, .estimatedVerticalPlane, .estimatedHorizontalPlane]
| `- error: reference to member 'estimatedHorizontalPlane' cannot be resolved without a contextual type
40 | } else {
41 | alignments = [.horizontal]
/Users/admin/builder/spi-builder-workspace/Sources/SmartHitTest/SmartHitTest.swift:41:24: error: reference to member 'horizontal' cannot be resolved without a contextual type
39 | resultTypes = [.existingPlaneUsingGeometry, .estimatedVerticalPlane, .estimatedHorizontalPlane]
40 | } else {
41 | alignments = [.horizontal]
| `- error: reference to member 'horizontal' cannot be resolved without a contextual type
42 | resultTypes = [.estimatedHorizontalPlane]
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/SmartHitTest/SmartHitTest.swift:42:25: error: reference to member 'estimatedHorizontalPlane' cannot be resolved without a contextual type
40 | } else {
41 | alignments = [.horizontal]
42 | resultTypes = [.estimatedHorizontalPlane]
| `- error: reference to member 'estimatedHorizontalPlane' cannot be resolved without a contextual type
43 | }
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/SmartHitTest/SmartHitTest.swift:46:42: error: value of type 'Self' has no member 'bounds'
44 | }
45 |
46 | let point = point ?? CGPoint(x: self.bounds.midX, y: self.bounds.midY)
| `- error: value of type 'Self' has no member 'bounds'
47 |
48 | // Perform the hit test.
/Users/admin/builder/spi-builder-workspace/Sources/SmartHitTest/SmartHitTest.swift:46:63: error: value of type 'Self' has no member 'bounds'
44 | }
45 |
46 | let point = point ?? CGPoint(x: self.bounds.midX, y: self.bounds.midY)
| `- error: value of type 'Self' has no member 'bounds'
47 |
48 | // Perform the hit test.
/Users/admin/builder/spi-builder-workspace/Sources/SmartHitTest/SmartHitTest.swift:52:105: error: cannot infer contextual base in reference to member 'existingPlaneUsingGeometry'
50 |
51 | // 1. Check for a result on an existing plane using geometry.
52 | if #available(iOS 13, *), let existingPlaneUsingGeometryResult = results.first(where: { $0.type == .existingPlaneUsingGeometry }),
| `- error: cannot infer contextual base in reference to member 'existingPlaneUsingGeometry'
53 | let planeAnchor = existingPlaneUsingGeometryResult.anchor as? ARPlaneAnchor,
54 | alignments.contains(planeAnchor.alignment) {
/Users/admin/builder/spi-builder-workspace/Sources/SmartHitTest/SmartHitTest.swift:53:69: error: cannot find type 'ARPlaneAnchor' in scope
51 | // 1. Check for a result on an existing plane using geometry.
52 | if #available(iOS 13, *), let existingPlaneUsingGeometryResult = results.first(where: { $0.type == .existingPlaneUsingGeometry }),
53 | let planeAnchor = existingPlaneUsingGeometryResult.anchor as? ARPlaneAnchor,
| `- error: cannot find type 'ARPlaneAnchor' in scope
54 | alignments.contains(planeAnchor.alignment) {
55 |
/Users/admin/builder/spi-builder-workspace/Sources/SmartHitTest/SmartHitTest.swift:65:57: error: cannot infer contextual base in reference to member 'existingPlane'
63 | // nearest one (vertical planes) or return the nearest one which is within 5 cm
64 | // of the object's position.
65 | let infinitePlaneResults = hitTest(point, types: .existingPlane)
| `- error: cannot infer contextual base in reference to member 'existingPlane'
66 |
67 | for infinitePlaneResult in infinitePlaneResults {
/Users/admin/builder/spi-builder-workspace/Sources/SmartHitTest/SmartHitTest.swift:97:18: error: cannot find type 'ARHitTestResult' in scope
95 | ) -> ARHitTestResult? {
96 | // 3. As a final fallback, check for a result on estimated planes.
97 | var vResult: ARHitTestResult? = nil
| `- error: cannot find type 'ARHitTestResult' in scope
98 | var containsVertical = false
99 | if #available(iOS 11.3, *) {
/Users/admin/builder/spi-builder-workspace/Sources/SmartHitTest/SmartHitTest.swift:100:52: error: cannot infer contextual base in reference to member 'estimatedVerticalPlane'
98 | var containsVertical = false
99 | if #available(iOS 11.3, *) {
100 | vResult = results.first(where: { $0.type == .estimatedVerticalPlane })
| `- error: cannot infer contextual base in reference to member 'estimatedVerticalPlane'
101 | containsVertical = allowedAlignments.contains(.vertical)
102 | }
/Users/admin/builder/spi-builder-workspace/Sources/SmartHitTest/SmartHitTest.swift:101:54: error: cannot infer contextual base in reference to member 'vertical'
99 | if #available(iOS 11.3, *) {
100 | vResult = results.first(where: { $0.type == .estimatedVerticalPlane })
101 | containsVertical = allowedAlignments.contains(.vertical)
| `- error: cannot infer contextual base in reference to member 'vertical'
102 | }
103 | let hResult = results.first(where: { $0.type == .estimatedHorizontalPlane })
/Users/admin/builder/spi-builder-workspace/Sources/SmartHitTest/SmartHitTest.swift:103:54: error: cannot infer contextual base in reference to member 'estimatedHorizontalPlane'
101 | containsVertical = allowedAlignments.contains(.vertical)
102 | }
103 | let hResult = results.first(where: { $0.type == .estimatedHorizontalPlane })
| `- error: cannot infer contextual base in reference to member 'estimatedHorizontalPlane'
104 | switch (allowedAlignments.contains(.horizontal), containsVertical) {
105 | case (true, false):
/Users/admin/builder/spi-builder-workspace/Sources/SmartHitTest/SmartHitTest.swift:104:41: error: cannot infer contextual base in reference to member 'horizontal'
102 | }
103 | let hResult = results.first(where: { $0.type == .estimatedHorizontalPlane })
104 | switch (allowedAlignments.contains(.horizontal), containsVertical) {
| `- error: cannot infer contextual base in reference to member 'horizontal'
105 | case (true, false):
106 | return hResult
BUILD FAILURE 6.2 macosSpm