The Swift Package Index logo.Swift Package Index

Build Information

Failed to build ARPersistence, reference main (41d3a3), with Swift 6.3 for macOS (SPM) on 22 Apr 2026 12:09:35 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Shiru99/ARPersistence.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Shiru99/ARPersistence
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 41d3a34 Update README.md
Cloned https://github.com/Shiru99/ARPersistence.git
Revision (git rev-parse @):
41d3a34c81d3317c1b0deac7b6ad711fdcf69383
SUCCESS checkout https://github.com/Shiru99/ARPersistence.git at main
========================================
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",
  "traits": [
    "default"
  ],
  "dependencies": [
    {
      "identity": "arpersistence",
      "name": "ARPersistence",
      "url": "https://github.com/Shiru99/ARPersistence.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ARPersistence",
      "traits": [
        "default"
      ],
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/Shiru99/ARPersistence.git
[1/90] Fetching arpersistence
Fetched https://github.com/Shiru99/ARPersistence.git from cache (2.82s)
Creating working copy for https://github.com/Shiru99/ARPersistence.git
Working copy of https://github.com/Shiru99/ARPersistence.git resolved at main (41d3a34)
warning: '.resolve-product-dependencies': dependency 'arpersistence' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/Shiru99/ARPersistence.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--6988338F2F200930.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module ARPersistence
/Users/admin/builder/spi-builder-workspace/Sources/ARPersistence/ARPersistence.swift:17:32: error: 'ARView' is only available in macOS 10.15 or newer
  2 | import RealityKit
  3 |
  4 | public class ARPersistence {
    |              `- note: add '@available' attribute to enclosing class
  5 |     private init(){}
  6 |
    :
 15 |     }()
 16 |
 17 |     public func save(_ uiView: ARView) {
    |                 |              `- error: 'ARView' is only available in macOS 10.15 or newer
    |                 `- note: add '@available' attribute to enclosing instance method
 18 |
 19 |         var modelEntityDetailsDict: [String: [String]] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/ARPersistence/ARPersistence.swift:70:32: error: 'ARView' is only available in macOS 10.15 or newer
  2 | import RealityKit
  3 |
  4 | public class ARPersistence {
    |              `- note: add '@available' attribute to enclosing class
  5 |     private init(){}
  6 |
    :
 68 |     }
 69 |
 70 |     public func load(_ uiView: ARView) {
    |                 |              `- error: 'ARView' is only available in macOS 10.15 or newer
    |                 `- note: add '@available' attribute to enclosing instance method
 71 |
 72 |         // Load AR Anchors
[4/4] Compiling ARPersistence ARPersistence.swift
/Users/admin/builder/spi-builder-workspace/Sources/ARPersistence/ARPersistence.swift:17:32: error: 'ARView' is only available in macOS 10.15 or newer
  2 | import RealityKit
  3 |
  4 | public class ARPersistence {
    |              `- note: add '@available' attribute to enclosing class
  5 |     private init(){}
  6 |
    :
 15 |     }()
 16 |
 17 |     public func save(_ uiView: ARView) {
    |                 |              `- error: 'ARView' is only available in macOS 10.15 or newer
    |                 `- note: add '@available' attribute to enclosing instance method
 18 |
 19 |         var modelEntityDetailsDict: [String: [String]] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/ARPersistence/ARPersistence.swift:70:32: error: 'ARView' is only available in macOS 10.15 or newer
  2 | import RealityKit
  3 |
  4 | public class ARPersistence {
    |              `- note: add '@available' attribute to enclosing class
  5 |     private init(){}
  6 |
    :
 68 |     }
 69 |
 70 |     public func load(_ uiView: ARView) {
    |                 |              `- error: 'ARView' is only available in macOS 10.15 or newer
    |                 `- note: add '@available' attribute to enclosing instance method
 71 |
 72 |         // Load AR Anchors
/Users/admin/builder/spi-builder-workspace/Sources/ARPersistence/ARPersistence.swift:21:35: error: value of type 'ARView' has no member 'session'
 19 |         var modelEntityDetailsDict: [String: [String]] = [:]
 20 |
 21 |         if let arAnchors = uiView.session.currentFrame?.anchors {
    |                                   `- error: value of type 'ARView' has no member 'session'
 22 |             for arAnchor in arAnchors {
 23 |                 if let modelName = arAnchor.name {
/Users/admin/builder/spi-builder-workspace/Sources/ARPersistence/ARPersistence.swift:43:16: error: value of type 'ARView' has no member 'session'
 41 |         let anchorDataURL = self.worldMapDir.appendingPathComponent("ARExperience.map")
 42 |
 43 |         uiView.session.getCurrentWorldMap { (worldMap, error) in
    |                `- error: value of type 'ARView' has no member 'session'
 44 |             guard let worldMap = worldMap else {
 45 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/ARPersistence/ARPersistence.swift:77:79: error: cannot find 'ARWorldMap' in scope
 75 |         do {
 76 |             let anchorData = try Data(contentsOf: anchorDataURL)
 77 |             if let worldMap = try NSKeyedUnarchiver.unarchivedObject(ofClass: ARWorldMap.self, from: anchorData) {
    |                                                                               `- error: cannot find 'ARWorldMap' in scope
 78 |                 let configuration = ARWorldTrackingConfiguration()
 79 |                 configuration.initialWorldMap = worldMap
/Users/admin/builder/spi-builder-workspace/Sources/ARPersistence/ARPersistence.swift:77:53: error: static method 'unarchivedObject(ofClass:from:)' requires that 'NSObject' conform to 'NSCoding'
 75 |         do {
 76 |             let anchorData = try Data(contentsOf: anchorDataURL)
 77 |             if let worldMap = try NSKeyedUnarchiver.unarchivedObject(ofClass: ARWorldMap.self, from: anchorData) {
    |                                                     `- error: static method 'unarchivedObject(ofClass:from:)' requires that 'NSObject' conform to 'NSCoding'
 78 |                 let configuration = ARWorldTrackingConfiguration()
 79 |                 configuration.initialWorldMap = worldMap
Foundation.NSKeyedUnarchiver.unarchivedObject:3:31: note: where 'DecodedObjectType' = 'NSObject'
1 | class NSKeyedUnarchiver {
2 | @available(macOS 10.13, iOS 11.0, watchOS 4.0, tvOS 11.0, *)
3 |   @nonobjc public static func unarchivedObject<DecodedObjectType>(ofClass cls: DecodedObjectType.Type, from data: Data) throws -> DecodedObjectType? where DecodedObjectType : NSObject, DecodedObjectType : NSCoding}
  |                               `- note: where 'DecodedObjectType' = 'NSObject'
4 |
/Users/admin/builder/spi-builder-workspace/Sources/ARPersistence/ARPersistence.swift:78:37: error: cannot find 'ARWorldTrackingConfiguration' in scope
 76 |             let anchorData = try Data(contentsOf: anchorDataURL)
 77 |             if let worldMap = try NSKeyedUnarchiver.unarchivedObject(ofClass: ARWorldMap.self, from: anchorData) {
 78 |                 let configuration = ARWorldTrackingConfiguration()
    |                                     `- error: cannot find 'ARWorldTrackingConfiguration' in scope
 79 |                 configuration.initialWorldMap = worldMap
 80 |                 uiView.session.run(configuration, options: [.resetTracking, .removeExistingAnchors])
/Users/admin/builder/spi-builder-workspace/Sources/ARPersistence/ARPersistence.swift:80:24: error: value of type 'ARView' has no member 'session'
 78 |                 let configuration = ARWorldTrackingConfiguration()
 79 |                 configuration.initialWorldMap = worldMap
 80 |                 uiView.session.run(configuration, options: [.resetTracking, .removeExistingAnchors])
    |                        `- error: value of type 'ARView' has no member 'session'
 81 |             }
 82 |         } catch {
/Users/admin/builder/spi-builder-workspace/Sources/ARPersistence/ARPersistence.swift:80:62: error: reference to member 'resetTracking' cannot be resolved without a contextual type
 78 |                 let configuration = ARWorldTrackingConfiguration()
 79 |                 configuration.initialWorldMap = worldMap
 80 |                 uiView.session.run(configuration, options: [.resetTracking, .removeExistingAnchors])
    |                                                              `- error: reference to member 'resetTracking' cannot be resolved without a contextual type
 81 |             }
 82 |         } catch {
/Users/admin/builder/spi-builder-workspace/Sources/ARPersistence/ARPersistence.swift:80:78: error: reference to member 'removeExistingAnchors' cannot be resolved without a contextual type
 78 |                 let configuration = ARWorldTrackingConfiguration()
 79 |                 configuration.initialWorldMap = worldMap
 80 |                 uiView.session.run(configuration, options: [.resetTracking, .removeExistingAnchors])
    |                                                                              `- error: reference to member 'removeExistingAnchors' cannot be resolved without a contextual type
 81 |             }
 82 |         } catch {
/Users/admin/builder/spi-builder-workspace/Sources/ARPersistence/ARPersistence.swift:108:36: error: 'AnchorEntity' is only available in macOS 10.15 or newer
  2 | import RealityKit
  3 |
  4 | public class ARPersistence {
    |              `- note: add '@available' attribute to enclosing class
  5 |     private init(){}
  6 |
    :
 68 |     }
 69 |
 70 |     public func load(_ uiView: ARView) {
    |                 `- note: add '@available' attribute to enclosing instance method
 71 |
 72 |         // Load AR Anchors
    :
106 |                 let identifier = components[1]
107 |
108 |                 let anchorEntity = AnchorEntity()
    |                                    |- error: 'AnchorEntity' is only available in macOS 10.15 or newer
    |                                    `- note: add 'if #available' version check
109 |                 anchorEntity.name = identifier
110 |                 uiView.scene.addAnchor(anchorEntity)
/Users/admin/builder/spi-builder-workspace/Sources/ARPersistence/ARPersistence.swift:112:34: error: 'ModelEntity' is only available in macOS 10.15 or newer
  2 | import RealityKit
  3 |
  4 | public class ARPersistence {
    |              `- note: add '@available' attribute to enclosing class
  5 |     private init(){}
  6 |
    :
 68 |     }
 69 |
 70 |     public func load(_ uiView: ARView) {
    |                 `- note: add '@available' attribute to enclosing instance method
 71 |
 72 |         // Load AR Anchors
    :
110 |                 uiView.scene.addAnchor(anchorEntity)
111 |
112 |                 let modelEntity: ModelEntity = try ModelEntity.loadModel(named: modelName + ".usdz")
    |                                  |- error: 'ModelEntity' is only available in macOS 10.15 or newer
    |                                  `- note: add 'if #available' version check
113 |                 modelEntity.transform.translation = parseVector3(transformDetails[0])
114 |                 modelEntity.transform.rotation = parseQuaternion(transformDetails[1])
/Users/admin/builder/spi-builder-workspace/Sources/ARPersistence/ARPersistence.swift:112:52: error: 'ModelEntity' is only available in macOS 10.15 or newer
  2 | import RealityKit
  3 |
  4 | public class ARPersistence {
    |              `- note: add '@available' attribute to enclosing class
  5 |     private init(){}
  6 |
    :
 68 |     }
 69 |
 70 |     public func load(_ uiView: ARView) {
    |                 `- note: add '@available' attribute to enclosing instance method
 71 |
 72 |         // Load AR Anchors
    :
110 |                 uiView.scene.addAnchor(anchorEntity)
111 |
112 |                 let modelEntity: ModelEntity = try ModelEntity.loadModel(named: modelName + ".usdz")
    |                                                    |- error: 'ModelEntity' is only available in macOS 10.15 or newer
    |                                                    `- note: add 'if #available' version check
113 |                 modelEntity.transform.translation = parseVector3(transformDetails[0])
114 |                 modelEntity.transform.rotation = parseQuaternion(transformDetails[1])
/Users/admin/builder/spi-builder-workspace/Sources/ARPersistence/ARPersistence.swift:112:64: error: 'loadModel(named:in:)' is only available in macOS 10.15 or newer
  2 | import RealityKit
  3 |
  4 | public class ARPersistence {
    |              `- note: add '@available' attribute to enclosing class
  5 |     private init(){}
  6 |
    :
 68 |     }
 69 |
 70 |     public func load(_ uiView: ARView) {
    |                 `- note: add '@available' attribute to enclosing instance method
 71 |
 72 |         // Load AR Anchors
    :
110 |                 uiView.scene.addAnchor(anchorEntity)
111 |
112 |                 let modelEntity: ModelEntity = try ModelEntity.loadModel(named: modelName + ".usdz")
    |                                                                |- error: 'loadModel(named:in:)' is only available in macOS 10.15 or newer
    |                                                                `- note: add 'if #available' version check
113 |                 modelEntity.transform.translation = parseVector3(transformDetails[0])
114 |                 modelEntity.transform.rotation = parseQuaternion(transformDetails[1])
/Users/admin/builder/spi-builder-workspace/Sources/ARPersistence/ARPersistence.swift:113:29: error: 'transform' is only available in macOS 10.15 or newer
  2 | import RealityKit
  3 |
  4 | public class ARPersistence {
    |              `- note: add '@available' attribute to enclosing class
  5 |     private init(){}
  6 |
    :
 68 |     }
 69 |
 70 |     public func load(_ uiView: ARView) {
    |                 `- note: add '@available' attribute to enclosing instance method
 71 |
 72 |         // Load AR Anchors
    :
111 |
112 |                 let modelEntity: ModelEntity = try ModelEntity.loadModel(named: modelName + ".usdz")
113 |                 modelEntity.transform.translation = parseVector3(transformDetails[0])
    |                             |- error: 'transform' is only available in macOS 10.15 or newer
    |                             `- note: add 'if #available' version check
114 |                 modelEntity.transform.rotation = parseQuaternion(transformDetails[1])
115 |                 modelEntity.transform.scale = parseVector3(transformDetails[2])
/Users/admin/builder/spi-builder-workspace/Sources/ARPersistence/ARPersistence.swift:114:29: error: 'transform' is only available in macOS 10.15 or newer
  2 | import RealityKit
  3 |
  4 | public class ARPersistence {
    |              `- note: add '@available' attribute to enclosing class
  5 |     private init(){}
  6 |
    :
 68 |     }
 69 |
 70 |     public func load(_ uiView: ARView) {
    |                 `- note: add '@available' attribute to enclosing instance method
 71 |
 72 |         // Load AR Anchors
    :
112 |                 let modelEntity: ModelEntity = try ModelEntity.loadModel(named: modelName + ".usdz")
113 |                 modelEntity.transform.translation = parseVector3(transformDetails[0])
114 |                 modelEntity.transform.rotation = parseQuaternion(transformDetails[1])
    |                             |- error: 'transform' is only available in macOS 10.15 or newer
    |                             `- note: add 'if #available' version check
115 |                 modelEntity.transform.scale = parseVector3(transformDetails[2])
116 |                 anchorEntity.addChild(modelEntity)
/Users/admin/builder/spi-builder-workspace/Sources/ARPersistence/ARPersistence.swift:115:29: error: 'transform' is only available in macOS 10.15 or newer
  2 | import RealityKit
  3 |
  4 | public class ARPersistence {
    |              `- note: add '@available' attribute to enclosing class
  5 |     private init(){}
  6 |
    :
 68 |     }
 69 |
 70 |     public func load(_ uiView: ARView) {
    |                 `- note: add '@available' attribute to enclosing instance method
 71 |
 72 |         // Load AR Anchors
    :
113 |                 modelEntity.transform.translation = parseVector3(transformDetails[0])
114 |                 modelEntity.transform.rotation = parseQuaternion(transformDetails[1])
115 |                 modelEntity.transform.scale = parseVector3(transformDetails[2])
    |                             |- error: 'transform' is only available in macOS 10.15 or newer
    |                             `- note: add 'if #available' version check
116 |                 anchorEntity.addChild(modelEntity)
117 |
/Users/admin/builder/spi-builder-workspace/Sources/ARPersistence/ARPersistence.swift:116:30: error: 'addChild(_:preservingWorldTransform:)' is only available in macOS 10.15 or newer
  2 | import RealityKit
  3 |
  4 | public class ARPersistence {
    |              `- note: add '@available' attribute to enclosing class
  5 |     private init(){}
  6 |
    :
 68 |     }
 69 |
 70 |     public func load(_ uiView: ARView) {
    |                 `- note: add '@available' attribute to enclosing instance method
 71 |
 72 |         // Load AR Anchors
    :
114 |                 modelEntity.transform.rotation = parseQuaternion(transformDetails[1])
115 |                 modelEntity.transform.scale = parseVector3(transformDetails[2])
116 |                 anchorEntity.addChild(modelEntity)
    |                              |- error: 'addChild(_:preservingWorldTransform:)' is only available in macOS 10.15 or newer
    |                              `- note: add 'if #available' version check
117 |
118 |                 for animation in modelEntity.availableAnimations {
/Users/admin/builder/spi-builder-workspace/Sources/ARPersistence/ARPersistence.swift:118:46: error: 'availableAnimations' is only available in macOS 10.15 or newer
  2 | import RealityKit
  3 |
  4 | public class ARPersistence {
    |              `- note: add '@available' attribute to enclosing class
  5 |     private init(){}
  6 |
    :
 68 |     }
 69 |
 70 |     public func load(_ uiView: ARView) {
    |                 `- note: add '@available' attribute to enclosing instance method
 71 |
 72 |         // Load AR Anchors
    :
116 |                 anchorEntity.addChild(modelEntity)
117 |
118 |                 for animation in modelEntity.availableAnimations {
    |                                              |- error: 'availableAnimations' is only available in macOS 10.15 or newer
    |                                              `- note: add 'if #available' version check
119 |                     modelEntity.playAnimation(animation.repeat())
120 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/ARPersistence/ARPersistence.swift:119:33: error: 'playAnimation(_:transitionDuration:blendLayerOffset:separateAnimatedValue:startsPaused:clock:)' is only available in macOS 12.0 or newer
  2 | import RealityKit
  3 |
  4 | public class ARPersistence {
    |              `- note: add '@available' attribute to enclosing class
  5 |     private init(){}
  6 |
    :
 68 |     }
 69 |
 70 |     public func load(_ uiView: ARView) {
    |                 `- note: add '@available' attribute to enclosing instance method
 71 |
 72 |         // Load AR Anchors
    :
117 |
118 |                 for animation in modelEntity.availableAnimations {
119 |                     modelEntity.playAnimation(animation.repeat())
    |                                 |- error: 'playAnimation(_:transitionDuration:blendLayerOffset:separateAnimatedValue:startsPaused:clock:)' is only available in macOS 12.0 or newer
    |                                 `- note: add 'if #available' version check
120 |                 }
121 |             }
/Users/admin/builder/spi-builder-workspace/Sources/ARPersistence/ARPersistence.swift:119:57: error: 'repeat(duration:)' is only available in macOS 10.15 or newer
  2 | import RealityKit
  3 |
  4 | public class ARPersistence {
    |              `- note: add '@available' attribute to enclosing class
  5 |     private init(){}
  6 |
    :
 68 |     }
 69 |
 70 |     public func load(_ uiView: ARView) {
    |                 `- note: add '@available' attribute to enclosing instance method
 71 |
 72 |         // Load AR Anchors
    :
117 |
118 |                 for animation in modelEntity.availableAnimations {
119 |                     modelEntity.playAnimation(animation.repeat())
    |                                                         |- error: 'repeat(duration:)' is only available in macOS 10.15 or newer
    |                                                         `- note: add 'if #available' version check
120 |                 }
121 |             }
BUILD FAILURE 6.3 macosSpm