The Swift Package Index logo.Swift Package Index

Build Information

Failed to build CameraCapture, reference main (d84247), with Swift 6.4 for visionOS using Xcode 27.0 on 20 Sep 2026 12:27:23 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$PWD/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath $PWD/.derivedData build -scheme CameraCapture -destination generic/platform=xrOS

Build Log

53 |                       zoomOptions: zoomOptions,
54 |                       currentZoom: ZoomScaleToMultiplication.adapt(deviceType: self.adapt(device: device.deviceType), scale: device.videoZoomFactor),
   |                                                                                                                                     `- error: 'videoZoomFactor' is unavailable in visionOS
55 |                       maxZoom: min(ZoomScaleToMultiplication.adapt(deviceType: self.adapt(device: device.deviceType), scale: device.maxAvailableVideoZoomFactor), 10),
56 |                       minZoom: ZoomScaleToMultiplication.adapt(deviceType: self.adapt(device: device.deviceType), scale: device.minAvailableVideoZoomFactor))
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:2068:30: note: 'videoZoomFactor' has been explicitly marked unavailable here
2066 |  @seealso -[AVCaptureDeviceFormat videoMaxZoomFactor], -[AVCaptureDeviceFormat videoZoomFactorUpscaleThreshold], -[AVCaptureDevice minAvailableVideoZoomFactor], -[AVCaptureDevice maxAvailableVideoZoomFactor],  -[AVCaptureDeviceFormat supportedVideoZoomFactorsForDepthDataDelivery], -[AVCaptureDeviceFormat videoMinZoomFactorForCenterStage] and -[AVCaptureDeviceFormat videoMaxZoomFactorForCenterStage]
2067 |  */
2068 | @property(nonatomic) CGFloat videoZoomFactor API_AVAILABLE(ios(7.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
     |                              `- note: 'videoZoomFactor' has been explicitly marked unavailable here
2069 |
2070 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Adapters.swift:55:106: error: 'deviceType' is only available in visionOS 2.1 or newer
27 | }
28 |
29 | enum AVCaptureDeviceToCameraAdapter {
   |      `- note: add '@available' attribute to enclosing enum
30 |
31 |     static func adapt(device: AVCaptureDevice, flashDataSource: FlashDataSource) -> Device {
   |                 `- note: add '@available' attribute to enclosing static method
32 |         var zoomOptions: [Double] = []
33 |
   :
53 |                       zoomOptions: zoomOptions,
54 |                       currentZoom: ZoomScaleToMultiplication.adapt(deviceType: self.adapt(device: device.deviceType), scale: device.videoZoomFactor),
55 |                       maxZoom: min(ZoomScaleToMultiplication.adapt(deviceType: self.adapt(device: device.deviceType), scale: device.maxAvailableVideoZoomFactor), 10),
   |                                                                                                          |- error: 'deviceType' is only available in visionOS 2.1 or newer
   |                                                                                                          `- note: add 'if #available' version check
56 |                       minZoom: ZoomScaleToMultiplication.adapt(deviceType: self.adapt(device: device.deviceType), scale: device.minAvailableVideoZoomFactor))
57 |     }
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Adapters.swift:55:133: error: 'maxAvailableVideoZoomFactor' is unavailable in visionOS
53 |                       zoomOptions: zoomOptions,
54 |                       currentZoom: ZoomScaleToMultiplication.adapt(deviceType: self.adapt(device: device.deviceType), scale: device.videoZoomFactor),
55 |                       maxZoom: min(ZoomScaleToMultiplication.adapt(deviceType: self.adapt(device: device.deviceType), scale: device.maxAvailableVideoZoomFactor), 10),
   |                                                                                                                                     `- error: 'maxAvailableVideoZoomFactor' is unavailable in visionOS
56 |                       minZoom: ZoomScaleToMultiplication.adapt(deviceType: self.adapt(device: device.deviceType), scale: device.minAvailableVideoZoomFactor))
57 |     }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:2392:40: note: 'maxAvailableVideoZoomFactor' has been explicitly marked unavailable here
2390 |     Setting the videoZoomFactor to a value less than or equal to activeFormat.videoMaxZoomFactor, but greater than maxAvailableVideoZoomFactor results in the value being clamped to the maxAvailableVideoZoomFactor. Clients can key value observe the value of this property.
2391 |  */
2392 | @property(nonatomic, readonly) CGFloat maxAvailableVideoZoomFactor API_AVAILABLE(ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
     |                                        `- note: 'maxAvailableVideoZoomFactor' has been explicitly marked unavailable here
2393 |
2394 | @end
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Adapters.swift:56:102: error: 'deviceType' is only available in visionOS 2.1 or newer
27 | }
28 |
29 | enum AVCaptureDeviceToCameraAdapter {
   |      `- note: add '@available' attribute to enclosing enum
30 |
31 |     static func adapt(device: AVCaptureDevice, flashDataSource: FlashDataSource) -> Device {
   |                 `- note: add '@available' attribute to enclosing static method
32 |         var zoomOptions: [Double] = []
33 |
   :
54 |                       currentZoom: ZoomScaleToMultiplication.adapt(deviceType: self.adapt(device: device.deviceType), scale: device.videoZoomFactor),
55 |                       maxZoom: min(ZoomScaleToMultiplication.adapt(deviceType: self.adapt(device: device.deviceType), scale: device.maxAvailableVideoZoomFactor), 10),
56 |                       minZoom: ZoomScaleToMultiplication.adapt(deviceType: self.adapt(device: device.deviceType), scale: device.minAvailableVideoZoomFactor))
   |                                                                                                      |- error: 'deviceType' is only available in visionOS 2.1 or newer
   |                                                                                                      `- note: add 'if #available' version check
57 |     }
58 |
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Adapters.swift:56:129: error: 'minAvailableVideoZoomFactor' is unavailable in visionOS
54 |                       currentZoom: ZoomScaleToMultiplication.adapt(deviceType: self.adapt(device: device.deviceType), scale: device.videoZoomFactor),
55 |                       maxZoom: min(ZoomScaleToMultiplication.adapt(deviceType: self.adapt(device: device.deviceType), scale: device.maxAvailableVideoZoomFactor), 10),
56 |                       minZoom: ZoomScaleToMultiplication.adapt(deviceType: self.adapt(device: device.deviceType), scale: device.minAvailableVideoZoomFactor))
   |                                                                                                                                 `- error: 'minAvailableVideoZoomFactor' is unavailable in visionOS
57 |     }
58 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:2380:40: note: 'minAvailableVideoZoomFactor' has been explicitly marked unavailable here
2378 |     Setting the videoZoomFactor to a value greater than or equal to 1.0, but lower than minAvailableVideoZoomFactor results in the value being clamped to the minAvailableVideoZoomFactor. Clients can key value observe the value of this property.
2379 |  */
2380 | @property(nonatomic, readonly) CGFloat minAvailableVideoZoomFactor API_AVAILABLE(ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
     |                                        `- note: 'minAvailableVideoZoomFactor' has been explicitly marked unavailable here
2381 |
2382 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Adapters.swift:64:15: error: 'builtInUltraWideCamera' is unavailable in visionOS
62 |         }
63 |         switch device {
64 |         case .builtInUltraWideCamera: return .ultraWideCamera
   |               `- error: 'builtInUltraWideCamera' is unavailable in visionOS
65 |         case .builtInTelephotoCamera: return .telephotoCamera
66 |         case .builtInWideAngleCamera: return .wideAngleCamera
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:574:38: note: 'builtInUltraWideCamera' has been explicitly marked unavailable here
 572 |     A built-in camera device with a shorter focal length than a wide angle camera. Note that devices of this type may only be discovered using an AVCaptureDeviceDiscoverySession.
 573 |  */
 574 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInUltraWideCamera API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInUltraWideCamera' has been explicitly marked unavailable here
 575 |
 576 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Adapters.swift:65:15: error: 'builtInTelephotoCamera' is unavailable in visionOS
63 |         switch device {
64 |         case .builtInUltraWideCamera: return .ultraWideCamera
65 |         case .builtInTelephotoCamera: return .telephotoCamera
   |               `- error: 'builtInTelephotoCamera' is unavailable in visionOS
66 |         case .builtInWideAngleCamera: return .wideAngleCamera
67 |         case .builtInDualCamera: return .dualCamera
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:568:38: note: 'builtInTelephotoCamera' has been explicitly marked unavailable here
 566 |     A built-in camera device with a longer focal length than a wide angle camera. Note that devices of this type may only be discovered using an AVCaptureDeviceDiscoverySession.
 567 |  */
 568 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInTelephotoCamera API_AVAILABLE(ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInTelephotoCamera' has been explicitly marked unavailable here
 569 |
 570 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Adapters.swift:66:15: error: 'builtInWideAngleCamera' is only available in visionOS 2.1 or newer
27 | }
28 |
29 | enum AVCaptureDeviceToCameraAdapter {
   |      `- note: add '@available' attribute to enclosing enum
30 |
31 |     static func adapt(device: AVCaptureDevice, flashDataSource: FlashDataSource) -> Device {
   :
57 |     }
58 |
59 |     private static func adapt(device: AVCaptureDevice.DeviceType?) -> DeviceType {
   |                         `- note: add '@available' attribute to enclosing static method
60 |         guard let device = device else {
61 |             return .unspecified
   :
64 |         case .builtInUltraWideCamera: return .ultraWideCamera
65 |         case .builtInTelephotoCamera: return .telephotoCamera
66 |         case .builtInWideAngleCamera: return .wideAngleCamera
   |               |- error: 'builtInWideAngleCamera' is only available in visionOS 2.1 or newer
   |               `- note: add 'if #available' version check
67 |         case .builtInDualCamera: return .dualCamera
68 |         case .builtInDualWideCamera: return .dualWideCamera
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Adapters.swift:67:15: error: 'builtInDualCamera' is unavailable in visionOS
65 |         case .builtInTelephotoCamera: return .telephotoCamera
66 |         case .builtInWideAngleCamera: return .wideAngleCamera
67 |         case .builtInDualCamera: return .dualCamera
   |               `- error: 'builtInDualCamera' is unavailable in visionOS
68 |         case .builtInDualWideCamera: return .dualWideCamera
69 |         case .builtInTripleCamera: return .tripleCamera
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:593:38: note: 'builtInDualCamera' has been explicitly marked unavailable here
 591 |     Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.
 592 |  */
 593 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInDualCamera API_AVAILABLE(ios(10.2), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInDualCamera' has been explicitly marked unavailable here
 594 |
 595 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Adapters.swift:68:15: error: 'builtInDualWideCamera' is unavailable in visionOS
66 |         case .builtInWideAngleCamera: return .wideAngleCamera
67 |         case .builtInDualCamera: return .dualCamera
68 |         case .builtInDualWideCamera: return .dualWideCamera
   |               `- error: 'builtInDualWideCamera' is unavailable in visionOS
69 |         case .builtInTripleCamera: return .tripleCamera
70 |         default:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:611:38: note: 'builtInDualWideCamera' has been explicitly marked unavailable here
 609 |     Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.
 610 |  */
 611 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInDualWideCamera API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInDualWideCamera' has been explicitly marked unavailable here
 612 |
 613 | /*!
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVZoomController.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile AVZoomController.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Adapters.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Adapters.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/CameraRepo.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CameraRepo.swift
SwiftCompile normal arm64 Compiling\ SetCameraUseCase.swift,\ SetFlashStateUseCase.swift,\ SetRotationUseCase.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/SetCameraUseCase.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/SetFlashStateUseCase.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/SetRotationUseCase.swift (in target 'CameraCapture' from project 'CameraCapture')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/SetCameraUseCase.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile SetCameraUseCase.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/SetFlashStateUseCase.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile SetFlashStateUseCase.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/SetRotationUseCase.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile SetRotationUseCase.swift
SwiftCompile normal arm64 Compiling\ AVDataSource.swift,\ AVFlashController.swift,\ AVFocusController.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVDataSource.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVFlashController.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVFocusController.swift (in target 'CameraCapture' from project 'CameraCapture')
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVDataSource.swift:21:54: error: 'DiscoverySession' is only available in visionOS 2.1 or newer
 7 | }
 8 |
 9 | class AVCaptureDeviceDataSource: DataSource {
   |       `- note: add '@available' attribute to enclosing class
10 |
11 |     private let captureSession: AVCaptureSession
   :
18 |     }
19 |
20 |     var cameras: [Device] {
   |         `- note: add '@available' attribute to enclosing property
21 |         let deviceDiscoverySession = AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInDualCamera,
   |                                                      |- error: 'DiscoverySession' is only available in visionOS 2.1 or newer
   |                                                      `- note: add 'if #available' version check
22 |                                                                                     .builtInDualWideCamera,
23 |                                                                                     .builtInTripleCamera,
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVDataSource.swift:21:86: error: 'builtInDualCamera' is unavailable in visionOS
19 |
20 |     var cameras: [Device] {
21 |         let deviceDiscoverySession = AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInDualCamera,
   |                                                                                      `- error: 'builtInDualCamera' is unavailable in visionOS
22 |                                                                                     .builtInDualWideCamera,
23 |                                                                                     .builtInTripleCamera,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:593:38: note: 'builtInDualCamera' has been explicitly marked unavailable here
 591 |     Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.
 592 |  */
 593 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInDualCamera API_AVAILABLE(ios(10.2), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInDualCamera' has been explicitly marked unavailable here
 594 |
 595 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVDataSource.swift:22:86: error: 'builtInDualWideCamera' is unavailable in visionOS
20 |     var cameras: [Device] {
21 |         let deviceDiscoverySession = AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInDualCamera,
22 |                                                                                     .builtInDualWideCamera,
   |                                                                                      `- error: 'builtInDualWideCamera' is unavailable in visionOS
23 |                                                                                     .builtInTripleCamera,
24 |                                                                                     .builtInWideAngleCamera,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:611:38: note: 'builtInDualWideCamera' has been explicitly marked unavailable here
 609 |     Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.
 610 |  */
 611 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInDualWideCamera API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInDualWideCamera' has been explicitly marked unavailable here
 612 |
 613 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVDataSource.swift:23:86: error: 'builtInTripleCamera' is unavailable in visionOS
21 |         let deviceDiscoverySession = AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInDualCamera,
22 |                                                                                     .builtInDualWideCamera,
23 |                                                                                     .builtInTripleCamera,
   |                                                                                      `- error: 'builtInTripleCamera' is unavailable in visionOS
24 |                                                                                     .builtInWideAngleCamera,
25 |                                                                                     .builtInTelephotoCamera,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:628:38: note: 'builtInTripleCamera' has been explicitly marked unavailable here
 626 |     Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.
 627 |  */
 628 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInTripleCamera API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInTripleCamera' has been explicitly marked unavailable here
 629 |
 630 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVDataSource.swift:24:86: error: 'builtInWideAngleCamera' is only available in visionOS 2.1 or newer
 7 | }
 8 |
 9 | class AVCaptureDeviceDataSource: DataSource {
   |       `- note: add '@available' attribute to enclosing class
10 |
11 |     private let captureSession: AVCaptureSession
   :
18 |     }
19 |
20 |     var cameras: [Device] {
   |         `- note: add '@available' attribute to enclosing property
21 |         let deviceDiscoverySession = AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInDualCamera,
22 |                                                                                     .builtInDualWideCamera,
23 |                                                                                     .builtInTripleCamera,
24 |                                                                                     .builtInWideAngleCamera,
   |                                                                                      |- error: 'builtInWideAngleCamera' is only available in visionOS 2.1 or newer
   |                                                                                      `- note: add 'if #available' version check
25 |                                                                                     .builtInTelephotoCamera,
26 |                                                                                     .builtInUltraWideCamera],
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVDataSource.swift:25:86: error: 'builtInTelephotoCamera' is unavailable in visionOS
23 |                                                                                     .builtInTripleCamera,
24 |                                                                                     .builtInWideAngleCamera,
25 |                                                                                     .builtInTelephotoCamera,
   |                                                                                      `- error: 'builtInTelephotoCamera' is unavailable in visionOS
26 |                                                                                     .builtInUltraWideCamera],
27 |                                                                       mediaType: AVMediaType.video,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:568:38: note: 'builtInTelephotoCamera' has been explicitly marked unavailable here
 566 |     A built-in camera device with a longer focal length than a wide angle camera. Note that devices of this type may only be discovered using an AVCaptureDeviceDiscoverySession.
 567 |  */
 568 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInTelephotoCamera API_AVAILABLE(ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInTelephotoCamera' has been explicitly marked unavailable here
 569 |
 570 | /*!
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVDataSource.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile AVDataSource.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVFlashController.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile AVFlashController.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVFocusController.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile AVFocusController.swift
SwiftCompile normal arm64 Compiling\ CaptureHandler.swift,\ DefaultCamera.swift,\ SettingsRepo.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/CaptureHandler.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/DefaultCamera.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/SettingsRepo.swift (in target 'CameraCapture' from project 'CameraCapture')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/CaptureHandler.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CaptureHandler.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/DefaultCamera.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile DefaultCamera.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/SettingsRepo.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile SettingsRepo.swift
SwiftCompile normal arm64 Compiling\ FocusUseCase.swift,\ RetrieveAvailableCamerasUseCase.swift,\ RotateCameraUseCase.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/FocusUseCase.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/RetrieveAvailableCamerasUseCase.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/RotateCameraUseCase.swift (in target 'CameraCapture' from project 'CameraCapture')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/FocusUseCase.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile FocusUseCase.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/RetrieveAvailableCamerasUseCase.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile RetrieveAvailableCamerasUseCase.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/RotateCameraUseCase.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile RotateCameraUseCase.swift
SwiftCompile normal arm64 Compiling\ AVCameraController.swift,\ AVCameraSession.swift,\ AVCaptureDelegate.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraController.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraSession.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCaptureDelegate.swift (in target 'CameraCapture' from project 'CameraCapture')
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraController.swift:12:30: error: 'AVCapturePhotoOutput' is unavailable in visionOS
10 | class AVCameraController: CameraController {
11 |
12 |     private let photoOutput: AVCapturePhotoOutput
   |                              `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
13 |     private let delegate = AVCaptureDelegate()
14 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:50:12: note: 'AVCapturePhotoOutput' has been explicitly marked unavailable here
  48 |  */
  49 | API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
  50 | @interface AVCapturePhotoOutput : AVCaptureOutput
     |            `- note: 'AVCapturePhotoOutput' has been explicitly marked unavailable here
  51 | {
  52 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraController.swift:15:23: error: 'AVCapturePhotoOutput' is unavailable in visionOS
13 |     private let delegate = AVCaptureDelegate()
14 |
15 |     init(photoOutput: AVCapturePhotoOutput) {
   |                       `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
16 |         self.photoOutput = photoOutput
17 |     }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:50:12: note: 'AVCapturePhotoOutput' has been explicitly marked unavailable here
  48 |  */
  49 | API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
  50 | @interface AVCapturePhotoOutput : AVCaptureOutput
     |            `- note: 'AVCapturePhotoOutput' has been explicitly marked unavailable here
  51 | {
  52 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraController.swift:36:66: error: 'FlashMode' is unavailable in visionOS
34 |
35 | enum CameraFlashToAVSettings {
36 |     static func adapt(flashState: FlashState) -> AVCaptureDevice.FlashMode {
   |                                                                  `- error: 'FlashMode' is unavailable in visionOS
37 |         switch flashState {
38 |             case .on:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:967:28: note: 'FlashMode' has been explicitly marked unavailable here
 965 |     Indicates that the flash should be used automatically depending on ambient light conditions.
 966 |  */
 967 | typedef NS_ENUM(NSInteger, AVCaptureFlashMode) {
     |                            `- note: 'FlashMode' has been explicitly marked unavailable here
 968 |     AVCaptureFlashModeOff  = 0,
 969 |     AVCaptureFlashModeOn   = 1,
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraController.swift:49:58: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
47 |
48 | enum CameraOrientationToAVSettings {
49 |     static func adapt(orientation: CameraOrientation) -> AVCaptureVideoOrientation {
   |                                                          `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
50 |         switch orientation {
51 |         case .landscapeLeft:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:104:28: note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
 102 |
 103 | /// Constants indicating video orientation, for use with AVCaptureDeviceRotationCoordinator.
 104 | typedef NS_ENUM(NSInteger, AVCaptureVideoOrientation) {
     |                            `- note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
 105 |     /// Indicates that video should be oriented vertically, port on the bottom.
 106 |     AVCaptureVideoOrientationPortrait           = 1,
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraController.swift:23:24: error: 'AVCapturePhotoSettings' is unavailable in visionOS
21 |                    handler: CaptureHandler) {
22 |         delegate.set(handler)
23 |         let settings = AVCapturePhotoSettings(format: [AVVideoCodecKey: CameraSettingsToAVSettings.adapt(settings: settings)])
   |                        `- error: 'AVCapturePhotoSettings' is unavailable in visionOS
24 |         settings.flashMode = CameraFlashToAVSettings.adapt(flashState: flashState)
25 |         photoOutput.capturePhoto(with: settings,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:1192:12: note: 'AVCapturePhotoSettings' has been explicitly marked unavailable here
1190 |  */
1191 | API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
1192 | @interface AVCapturePhotoSettings : NSObject <NSCopying>
     |            `- note: 'AVCapturePhotoSettings' has been explicitly marked unavailable here
1193 | {
1194 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraController.swift:31:47: error: 'videoOrientation' is unavailable in visionOS
29 |
30 |     func rotate(with orientation: CameraOrientation) {
31 |         photoOutput.connection(with: .video)?.videoOrientation = CameraOrientationToAVSettings.adapt(orientation: orientation)
   |                                               `- error: 'videoOrientation' is unavailable in visionOS
32 |     }
33 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:1111:48: note: 'videoOrientation' has been explicitly marked unavailable here
1109 |     This property is deprecated. Use -videoRotationAngle instead. This property may only be set if -isVideoOrientationSupported returns YES, otherwise an NSInvalidArgumentException is thrown.
1110 |  */
1111 | @property(nonatomic) AVCaptureVideoOrientation videoOrientation API_DEPRECATED("Use -videoRotationAngle instead", macos(10.7, 14.0), ios(4.0, 17.0), macCatalyst(14.0, 17.0)) API_UNAVAILABLE(tvos, visionos);
     |                                                `- note: 'videoOrientation' has been explicitly marked unavailable here
1112 |
1113 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraSession.swift:44:28: error: 'init(uniqueID:)' is only available in visionOS 2.1 or newer
10 | }
11 |
12 | class AVCameraSession: CameraSesion {
   |       `- note: add '@available' attribute to enclosing class
13 |     private let captureSession: AVCaptureSession
14 |     private let flashDataSource: FlashDataSource
   :
41 |     }
42 |
43 |     func addInput(with id: String) {
   |          `- note: add '@available' attribute to enclosing instance method
44 |         guard let device = AVCaptureDevice(uniqueID: id),
   |                            |- error: 'init(uniqueID:)' is only available in visionOS 2.1 or newer
   |                            `- note: add 'if #available' version check
45 |               let captureDeviceInput = try? AVCaptureDeviceInput(device: device) else {
46 |             return
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraSession.swift:49:24: error: 'sessionPreset' is unavailable in visionOS
47 |         }
48 |
49 |         captureSession.sessionPreset = .high
   |                        `- error: 'sessionPreset' is unavailable in visionOS
50 |         if captureSession.canAddInput(captureDeviceInput) {
51 |             captureSession.addInput(captureDeviceInput)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:166:51: note: 'sessionPreset' has been explicitly marked unavailable here
 164 |     The value of this property is an AVCaptureSessionPreset indicating the current session preset in use by the receiver. The sessionPreset property may be set while the receiver is running.
 165 |  */
 166 | @property(nonatomic, copy) AVCaptureSessionPreset sessionPreset API_UNAVAILABLE(visionos);
     |                                                   `- note: 'sessionPreset' has been explicitly marked unavailable here
 167 |
 168 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraSession.swift:49:41: error: 'high' is unavailable in visionOS
47 |         }
48 |
49 |         captureSession.sessionPreset = .high
   |                                         `- error: 'high' is unavailable in visionOS
50 |         if captureSession.canAddInput(captureDeviceInput) {
51 |             captureSession.addInput(captureDeviceInput)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSessionPreset.h:41:41: note: 'high' has been explicitly marked unavailable here
 39 |     Clients may set an AVCaptureSession instance's sessionPreset to AVCaptureSessionPresetHigh to achieve high quality video and audio output. AVCaptureSessionPresetHigh is the default sessionPreset value.
 40 |  */
 41 | AVF_EXPORT AVCaptureSessionPreset const AVCaptureSessionPresetHigh API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
    |                                         `- note: 'high' has been explicitly marked unavailable here
 42 |
 43 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraSession.swift:52:31: error: 'canSetSessionPreset' is unavailable in visionOS
50 |         if captureSession.canAddInput(captureDeviceInput) {
51 |             captureSession.addInput(captureDeviceInput)
52 |             if captureSession.canSetSessionPreset(.hd4K3840x2160) {
   |                               `- error: 'canSetSessionPreset' is unavailable in visionOS
53 |                 captureSession.sessionPreset = .hd4K3840x2160
54 |             } else if captureSession.canSetSessionPreset(.hd1920x1080) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:156:1: note: 'canSetSessionPreset' has been explicitly marked unavailable here
 154 |     An AVCaptureSession instance can be associated with a preset that configures its inputs and outputs to fulfill common use cases. This method can be used to determine if the receiver supports the desired preset given its current input and output configuration. The receiver's sessionPreset property may only be set to a certain preset if this method returns YES for that preset.
 155 |  */
 156 | - (BOOL)canSetSessionPreset:(AVCaptureSessionPreset)preset API_UNAVAILABLE(visionos);
     | `- note: 'canSetSessionPreset' has been explicitly marked unavailable here
 157 |
 158 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraSession.swift:52:52: error: 'hd4K3840x2160' is unavailable in visionOS
50 |         if captureSession.canAddInput(captureDeviceInput) {
51 |             captureSession.addInput(captureDeviceInput)
52 |             if captureSession.canSetSessionPreset(.hd4K3840x2160) {
   |                                                    `- error: 'hd4K3840x2160' is unavailable in visionOS
53 |                 captureSession.sessionPreset = .hd4K3840x2160
54 |             } else if captureSession.canSetSessionPreset(.hd1920x1080) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSessionPreset.h:131:41: note: 'hd4K3840x2160' has been explicitly marked unavailable here
129 |     Clients may set an AVCaptureSession instance's sessionPreset to AVCaptureSessionPreset3840x2160 to achieve 3840x2160 output.
130 |  */
131 | AVF_EXPORT AVCaptureSessionPreset const AVCaptureSessionPreset3840x2160 API_AVAILABLE(macos(10.15), ios(9.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
    |                                         `- note: 'hd4K3840x2160' has been explicitly marked unavailable here
132 |
133 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraSession.swift:53:32: error: 'sessionPreset' is unavailable in visionOS
51 |             captureSession.addInput(captureDeviceInput)
52 |             if captureSession.canSetSessionPreset(.hd4K3840x2160) {
53 |                 captureSession.sessionPreset = .hd4K3840x2160
   |                                `- error: 'sessionPreset' is unavailable in visionOS
54 |             } else if captureSession.canSetSessionPreset(.hd1920x1080) {
55 |                 captureSession.sessionPreset = .hd1920x1080
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:166:51: note: 'sessionPreset' has been explicitly marked unavailable here
 164 |     The value of this property is an AVCaptureSessionPreset indicating the current session preset in use by the receiver. The sessionPreset property may be set while the receiver is running.
 165 |  */
 166 | @property(nonatomic, copy) AVCaptureSessionPreset sessionPreset API_UNAVAILABLE(visionos);
     |                                                   `- note: 'sessionPreset' has been explicitly marked unavailable here
 167 |
 168 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraSession.swift:53:49: error: 'hd4K3840x2160' is unavailable in visionOS
51 |             captureSession.addInput(captureDeviceInput)
52 |             if captureSession.canSetSessionPreset(.hd4K3840x2160) {
53 |                 captureSession.sessionPreset = .hd4K3840x2160
   |                                                 `- error: 'hd4K3840x2160' is unavailable in visionOS
54 |             } else if captureSession.canSetSessionPreset(.hd1920x1080) {
55 |                 captureSession.sessionPreset = .hd1920x1080
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSessionPreset.h:131:41: note: 'hd4K3840x2160' has been explicitly marked unavailable here
129 |     Clients may set an AVCaptureSession instance's sessionPreset to AVCaptureSessionPreset3840x2160 to achieve 3840x2160 output.
130 |  */
131 | AVF_EXPORT AVCaptureSessionPreset const AVCaptureSessionPreset3840x2160 API_AVAILABLE(macos(10.15), ios(9.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
    |                                         `- note: 'hd4K3840x2160' has been explicitly marked unavailable here
132 |
133 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraSession.swift:54:38: error: 'canSetSessionPreset' is unavailable in visionOS
52 |             if captureSession.canSetSessionPreset(.hd4K3840x2160) {
53 |                 captureSession.sessionPreset = .hd4K3840x2160
54 |             } else if captureSession.canSetSessionPreset(.hd1920x1080) {
   |                                      `- error: 'canSetSessionPreset' is unavailable in visionOS
55 |                 captureSession.sessionPreset = .hd1920x1080
56 |             } else {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:156:1: note: 'canSetSessionPreset' has been explicitly marked unavailable here
 154 |     An AVCaptureSession instance can be associated with a preset that configures its inputs and outputs to fulfill common use cases. This method can be used to determine if the receiver supports the desired preset given its current input and output configuration. The receiver's sessionPreset property may only be set to a certain preset if this method returns YES for that preset.
 155 |  */
 156 | - (BOOL)canSetSessionPreset:(AVCaptureSessionPreset)preset API_UNAVAILABLE(visionos);
     | `- note: 'canSetSessionPreset' has been explicitly marked unavailable here
 157 |
 158 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraSession.swift:54:59: error: 'hd1920x1080' is unavailable in visionOS
52 |             if captureSession.canSetSessionPreset(.hd4K3840x2160) {
53 |                 captureSession.sessionPreset = .hd4K3840x2160
54 |             } else if captureSession.canSetSessionPreset(.hd1920x1080) {
   |                                                           `- error: 'hd1920x1080' is unavailable in visionOS
55 |                 captureSession.sessionPreset = .hd1920x1080
56 |             } else {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSessionPreset.h:121:41: note: 'hd1920x1080' has been explicitly marked unavailable here
119 |     Clients may set an AVCaptureSession instance's sessionPreset to AVCaptureSessionPreset1920x1080 to achieve 1920x1080 output.
120 |  */
121 | AVF_EXPORT AVCaptureSessionPreset const AVCaptureSessionPreset1920x1080 API_AVAILABLE(macos(10.15), ios(5.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
    |                                         `- note: 'hd1920x1080' has been explicitly marked unavailable here
122 |
123 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraSession.swift:55:32: error: 'sessionPreset' is unavailable in visionOS
53 |                 captureSession.sessionPreset = .hd4K3840x2160
54 |             } else if captureSession.canSetSessionPreset(.hd1920x1080) {
55 |                 captureSession.sessionPreset = .hd1920x1080
   |                                `- error: 'sessionPreset' is unavailable in visionOS
56 |             } else {
57 |                 captureSession.sessionPreset = .high
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:166:51: note: 'sessionPreset' has been explicitly marked unavailable here
 164 |     The value of this property is an AVCaptureSessionPreset indicating the current session preset in use by the receiver. The sessionPreset property may be set while the receiver is running.
 165 |  */
 166 | @property(nonatomic, copy) AVCaptureSessionPreset sessionPreset API_UNAVAILABLE(visionos);
     |                                                   `- note: 'sessionPreset' has been explicitly marked unavailable here
 167 |
 168 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraSession.swift:55:49: error: 'hd1920x1080' is unavailable in visionOS
53 |                 captureSession.sessionPreset = .hd4K3840x2160
54 |             } else if captureSession.canSetSessionPreset(.hd1920x1080) {
55 |                 captureSession.sessionPreset = .hd1920x1080
   |                                                 `- error: 'hd1920x1080' is unavailable in visionOS
56 |             } else {
57 |                 captureSession.sessionPreset = .high
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSessionPreset.h:121:41: note: 'hd1920x1080' has been explicitly marked unavailable here
119 |     Clients may set an AVCaptureSession instance's sessionPreset to AVCaptureSessionPreset1920x1080 to achieve 1920x1080 output.
120 |  */
121 | AVF_EXPORT AVCaptureSessionPreset const AVCaptureSessionPreset1920x1080 API_AVAILABLE(macos(10.15), ios(5.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
    |                                         `- note: 'hd1920x1080' has been explicitly marked unavailable here
122 |
123 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraSession.swift:57:32: error: 'sessionPreset' is unavailable in visionOS
55 |                 captureSession.sessionPreset = .hd1920x1080
56 |             } else {
57 |                 captureSession.sessionPreset = .high
   |                                `- error: 'sessionPreset' is unavailable in visionOS
58 |             }
59 |         }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:166:51: note: 'sessionPreset' has been explicitly marked unavailable here
 164 |     The value of this property is an AVCaptureSessionPreset indicating the current session preset in use by the receiver. The sessionPreset property may be set while the receiver is running.
 165 |  */
 166 | @property(nonatomic, copy) AVCaptureSessionPreset sessionPreset API_UNAVAILABLE(visionos);
     |                                                   `- note: 'sessionPreset' has been explicitly marked unavailable here
 167 |
 168 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraSession.swift:57:49: error: 'high' is unavailable in visionOS
55 |                 captureSession.sessionPreset = .hd1920x1080
56 |             } else {
57 |                 captureSession.sessionPreset = .high
   |                                                 `- error: 'high' is unavailable in visionOS
58 |             }
59 |         }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSessionPreset.h:41:41: note: 'high' has been explicitly marked unavailable here
 39 |     Clients may set an AVCaptureSession instance's sessionPreset to AVCaptureSessionPresetHigh to achieve high quality video and audio output. AVCaptureSessionPresetHigh is the default sessionPreset value.
 40 |  */
 41 | AVF_EXPORT AVCaptureSessionPreset const AVCaptureSessionPresetHigh API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
    |                                         `- note: 'high' has been explicitly marked unavailable here
 42 |
 43 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCaptureDelegate.swift:12:32: error: 'AVCapturePhotoOutput' is unavailable in visionOS
10 |     }
11 |
12 |     func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
   |                                `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
13 |         handler?.didCapturePhoto(photo.fileDataRepresentation(with: Customizer(photo: photo)), error: error)
14 |     }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:50:12: note: 'AVCapturePhotoOutput' has been explicitly marked unavailable here
  48 |  */
  49 | API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
  50 | @interface AVCapturePhotoOutput : AVCaptureOutput
     |            `- note: 'AVCapturePhotoOutput' has been explicitly marked unavailable here
  51 | {
  52 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCaptureDelegate.swift:12:86: error: 'AVCapturePhoto' is unavailable in visionOS
10 |     }
11 |
12 |     func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
   |                                                                                      `- error: 'AVCapturePhoto' is unavailable in visionOS
13 |         handler?.didCapturePhoto(photo.fileDataRepresentation(with: Customizer(photo: photo)), error: error)
14 |     }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:1979:12: note: 'AVCapturePhoto' has been explicitly marked unavailable here
1977 |  */
1978 | API_AVAILABLE(macos(10.15), ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
1979 | @interface AVCapturePhoto : NSObject
     |            `- note: 'AVCapturePhoto' has been explicitly marked unavailable here
1980 | {
1981 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCaptureDelegate.swift:18:28: error: 'AVCapturePhoto' is unavailable in visionOS
16 |     class Customizer: NSObject, AVCapturePhotoFileDataRepresentationCustomizer {
17 |
18 |         private let photo: AVCapturePhoto
   |                            `- error: 'AVCapturePhoto' is unavailable in visionOS
19 |
20 |         init(photo: AVCapturePhoto) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:1979:12: note: 'AVCapturePhoto' has been explicitly marked unavailable here
1977 |  */
1978 | API_AVAILABLE(macos(10.15), ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
1979 | @interface AVCapturePhoto : NSObject
     |            `- note: 'AVCapturePhoto' has been explicitly marked unavailable here
1980 | {
1981 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCaptureDelegate.swift:20:21: error: 'AVCapturePhoto' is unavailable in visionOS
18 |         private let photo: AVCapturePhoto
19 |
20 |         init(photo: AVCapturePhoto) {
   |                     `- error: 'AVCapturePhoto' is unavailable in visionOS
21 |             self.photo = photo
22 |         }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:1979:12: note: 'AVCapturePhoto' has been explicitly marked unavailable here
1977 |  */
1978 | API_AVAILABLE(macos(10.15), ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
1979 | @interface AVCapturePhoto : NSObject
     |            `- note: 'AVCapturePhoto' has been explicitly marked unavailable here
1980 | {
1981 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCaptureDelegate.swift:24:45: error: 'AVCapturePhoto' is unavailable in visionOS
22 |         }
23 |
24 |         func replacementMetadata(for photo: AVCapturePhoto) -> [String : Any]? {
   |                                             `- error: 'AVCapturePhoto' is unavailable in visionOS
25 |             return photo.metadata
26 |         }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:1979:12: note: 'AVCapturePhoto' has been explicitly marked unavailable here
1977 |  */
1978 | API_AVAILABLE(macos(10.15), ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
1979 | @interface AVCapturePhoto : NSObject
     |            `- note: 'AVCapturePhoto' has been explicitly marked unavailable here
1980 | {
1981 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCaptureDelegate.swift:16:33: error: 'AVCapturePhotoFileDataRepresentationCustomizer' is unavailable in visionOS
14 |     }
15 |
16 |     class Customizer: NSObject, AVCapturePhotoFileDataRepresentationCustomizer {
   |                                 `- error: 'AVCapturePhotoFileDataRepresentationCustomizer' is unavailable in visionOS
17 |
18 |         private let photo: AVCapturePhoto
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:2358:11: note: 'AVCapturePhotoFileDataRepresentationCustomizer' has been explicitly marked unavailable here
2356 |  */
2357 | API_AVAILABLE(ios(12.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos)
2358 | @protocol AVCapturePhotoFileDataRepresentationCustomizer <NSObject>
     |           `- note: 'AVCapturePhotoFileDataRepresentationCustomizer' has been explicitly marked unavailable here
2359 |
2360 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCaptureDelegate.swift:4:36: error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
 2 | import UIKit
 3 |
 4 | class AVCaptureDelegate: NSObject, AVCapturePhotoCaptureDelegate {
   |                                    `- error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
 5 |
 6 |     private var handler: CaptureHandler?
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:990:11: note: 'AVCapturePhotoCaptureDelegate' has been explicitly marked unavailable here
 988 |  */
 989 | API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
 990 | @protocol AVCapturePhotoCaptureDelegate <NSObject>
     |           `- note: 'AVCapturePhotoCaptureDelegate' has been explicitly marked unavailable here
 991 |
 992 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCaptureDelegate.swift:12:10: error: cannot override 'photoOutput' which has been marked unavailable
10 |     }
11 |
12 |     func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
   |          `- error: cannot override 'photoOutput' which has been marked unavailable
13 |         handler?.didCapturePhoto(photo.fileDataRepresentation(with: Customizer(photo: photo)), error: error)
14 |     }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:1053:1: note: 'photoOutput(_:didFinishProcessingPhoto:error:)' has been explicitly marked unavailable here
1051 |     This callback fires resolvedSettings.expectedPhotoCount number of times for a given capture request. Note that the photo parameter is always non nil, even if an error is returned. The delivered AVCapturePhoto's rawPhoto property can be queried to know if it's a RAW image or processed image.
1052 |  */
1053 | - (void)captureOutput:(AVCapturePhotoOutput *)output didFinishProcessingPhoto:(AVCapturePhoto *)photo error:(nullable NSError *)error API_AVAILABLE(ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos);
     | `- note: 'photoOutput(_:didFinishProcessingPhoto:error:)' has been explicitly marked unavailable here
1054 |
1055 | /*!
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraController.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile AVCameraController.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraSession.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile AVCameraSession.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCaptureDelegate.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile AVCaptureDelegate.swift
SwiftCompile normal arm64 Compiling\ PhotoCaptureError.swift,\ ZoomObserver.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Public\ API/Models/PhotoCaptureError.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Public\ API/Models/ZoomObserver.swift (in target 'CameraCapture' from project 'CameraCapture')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Public\ API/Models/PhotoCaptureError.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile PhotoCaptureError.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Public\ API/Models/ZoomObserver.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile ZoomObserver.swift
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
2026-09-20 08:27:11.209 xcodebuild[626:3893] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
2026-09-20 08:27:11.321 xcodebuild[626:3893] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
** BUILD FAILED **
The following build commands failed:
	SwiftCompile normal arm64 (in target 'CameraCapture' from project 'CameraCapture')
	SwiftEmitModule normal arm64 Emitting\ module\ for\ CameraCapture (in target 'CameraCapture' from project 'CameraCapture')
	Building workspace CameraCapture with scheme CameraCapture
(3 failures)
Command line invocation:
    /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -resolvePackageDependencies
Resolve Package Graph
Resolved source packages:
  CameraCapture: /Users/admin/builder/spi-builder-workspace
resolved source packages: CameraCapture
2026-09-20 08:27:19.881 xcodebuild[771:4549] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
2026-09-20 08:27:20.030 xcodebuild[771:4549] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CameraCapture",
  "name" : "CameraCapture",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "CameraCapture",
      "targets" : [
        "CameraCapture"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CameraCaptureTests",
      "module_type" : "SwiftTarget",
      "name" : "CameraCaptureTests",
      "path" : "Tests/CameraCaptureTests",
      "sources" : [
        "CameraSettingsToAVSettingsTests.swift",
        "DeviceAdaptionTests.swift",
        "FocusTests.swift",
        "RetrieveAvailableCamerasTests.swift",
        "RotateCameraTests.swift",
        "SetCameraTests.swift",
        "SetFlashStateTests.swift",
        "StartCameraTests.swift",
        "System.swift",
        "TakePhotoTests.swift",
        "ZoomTests.swift"
      ],
      "target_dependencies" : [
        "CameraCapture"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CameraCapture",
      "module_type" : "SwiftTarget",
      "name" : "CameraCapture",
      "path" : "Sources/CameraCapture",
      "product_memberships" : [
        "CameraCapture"
      ],
      "sources" : [
        "Implementation/AVFoundation/AVCameraController.swift",
        "Implementation/AVFoundation/AVCameraSession.swift",
        "Implementation/AVFoundation/AVCaptureDelegate.swift",
        "Implementation/AVFoundation/AVDataSource.swift",
        "Implementation/AVFoundation/AVFlashController.swift",
        "Implementation/AVFoundation/AVFocusController.swift",
        "Implementation/AVFoundation/AVZoomController.swift",
        "Implementation/Adapters.swift",
        "Implementation/CameraRepo.swift",
        "Implementation/CaptureHandler.swift",
        "Implementation/DefaultCamera.swift",
        "Implementation/SettingsRepo.swift",
        "Implementation/Use Cases/FocusUseCase.swift",
        "Implementation/Use Cases/RetrieveAvailableCamerasUseCase.swift",
        "Implementation/Use Cases/RotateCameraUseCase.swift",
        "Implementation/Use Cases/SetCameraUseCase.swift",
        "Implementation/Use Cases/SetFlashStateUseCase.swift",
        "Implementation/Use Cases/SetRotationUseCase.swift",
        "Implementation/Use Cases/SetZoomUseCase.swift",
        "Implementation/Use Cases/StartCameraUseCase.swift",
        "Implementation/Use Cases/TakePhotoUseCase.swift",
        "Implementation/Views/Presenter.swift",
        "Implementation/Views/PreviewView.swift",
        "Public API/Camera.swift",
        "Public API/CameraFactory.swift",
        "Public API/Models/CameraSettings.swift",
        "Public API/Models/Device.swift",
        "Public API/Models/PhotoCaptureError.swift",
        "Public API/Models/ZoomObserver.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
{
  "workspace" : {
    "name" : "CameraCapture",
    "schemes" : [
      "CameraCapture"
    ]
  }
}
2026-09-20 08:27:21.115 xcodebuild[779:4619] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
2026-09-20 08:27:21.265 xcodebuild[779:4619] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$PWD/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath $PWD/.derivedData build -scheme CameraCapture -destination generic/platform=xrOS
Command line invocation:
    /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath /Users/admin/builder/spi-builder-workspace/.derivedData build -scheme CameraCapture -destination generic/platform=xrOS
Resolve Package Graph
Resolved source packages:
  CameraCapture: /Users/admin/builder/spi-builder-workspace
ComputePackagePrebuildTargetDependencyGraph
Prepare packages
CreateBuildRequest
SendProjectDescription
CreateBuildOperation
ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (2 targets)
    Target 'CameraCapture-product' in project 'CameraCapture'
        ➜ Explicit dependency on target 'CameraCapture' in project 'CameraCapture'
    Target 'CameraCapture' in project 'CameraCapture' (no dependencies)
GatherProvisioningInputs
CreateBuildDescription
ClangStatCache /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/xros27.0-24M361-e829b21a6f8c9b70876ba0858053c044735bd543db762f57723cac368afd1ce4.sdkstatcache
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk -o /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/xros27.0-24M361-e829b21a6f8c9b70876ba0858053c044735bd543db762f57723cac368afd1ce4.sdkstatcache
SwiftDriver CameraCapture normal arm64 com.apple.xcode.tools.swift.compiler (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftDriver -- /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -parse-as-library -module-name CameraCapture -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraCapture.build/Debug-xros/CameraCapture-t.build/Objects-normal/arm64/CameraCapture.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -DXcode -plugin-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk -target arm64-apple-xros1.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -profile-coverage-mapping -profile-generate -enable-testing -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -swift-version 5 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/xros27.0-24M361-e829b21a6f8c9b70876ba0858053c044735bd543db762f57723cac368afd1ce4.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraCapture.build/Debug-xros/CameraCapture-t.build/Objects-normal/arm64/CameraCapture-OutputFileMap.json -save-temps -no-color-diagnostics -explicit-module-build -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -clang-scanner-module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -sdk-module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules -emit-dependencies -emit-module -emit-module-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraCapture.build/Debug-xros/CameraCapture-t.build/Objects-normal/arm64/CameraCapture.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraCapture.build/Debug-xros/CameraCapture-t.build/Objects-normal/arm64/CameraCapture-dependency-scan.dia -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -package-name spi_builder_workspace -emit-const-values -const-gather-protocols-list /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraCapture.build/Debug-xros/CameraCapture-t.build/Objects-normal/arm64/CameraCapture_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraCapture.build/Debug-xros/CameraCapture-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraCapture.build/Debug-xros/CameraCapture-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraCapture.build/Debug-xros/CameraCapture-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -emit-objc-header -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraCapture.build/Debug-xros/CameraCapture-t.build/Objects-normal/arm64/CameraCapture-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftCompile normal arm64 Compiling\ AVDataSource.swift,\ AVFlashController.swift,\ AVFocusController.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVDataSource.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVFlashController.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVFocusController.swift (in target 'CameraCapture' from project 'CameraCapture')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVDataSource.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile AVDataSource.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVFlashController.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile AVFlashController.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVFocusController.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile AVFocusController.swift
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVDataSource.swift:21:54: error: 'DiscoverySession' is only available in visionOS 2.1 or newer
 7 | }
 8 |
 9 | class AVCaptureDeviceDataSource: DataSource {
   |       `- note: add '@available' attribute to enclosing class
10 |
11 |     private let captureSession: AVCaptureSession
   :
18 |     }
19 |
20 |     var cameras: [Device] {
   |         `- note: add '@available' attribute to enclosing property
21 |         let deviceDiscoverySession = AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInDualCamera,
   |                                                      |- error: 'DiscoverySession' is only available in visionOS 2.1 or newer
   |                                                      `- note: add 'if #available' version check
22 |                                                                                     .builtInDualWideCamera,
23 |                                                                                     .builtInTripleCamera,
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVDataSource.swift:21:86: error: 'builtInDualCamera' is unavailable in visionOS
19 |
20 |     var cameras: [Device] {
21 |         let deviceDiscoverySession = AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInDualCamera,
   |                                                                                      `- error: 'builtInDualCamera' is unavailable in visionOS
22 |                                                                                     .builtInDualWideCamera,
23 |                                                                                     .builtInTripleCamera,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:593:38: note: 'builtInDualCamera' has been explicitly marked unavailable here
 591 |     Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.
 592 |  */
 593 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInDualCamera API_AVAILABLE(ios(10.2), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInDualCamera' has been explicitly marked unavailable here
 594 |
 595 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVDataSource.swift:22:86: error: 'builtInDualWideCamera' is unavailable in visionOS
20 |     var cameras: [Device] {
21 |         let deviceDiscoverySession = AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInDualCamera,
22 |                                                                                     .builtInDualWideCamera,
   |                                                                                      `- error: 'builtInDualWideCamera' is unavailable in visionOS
23 |                                                                                     .builtInTripleCamera,
24 |                                                                                     .builtInWideAngleCamera,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:611:38: note: 'builtInDualWideCamera' has been explicitly marked unavailable here
 609 |     Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.
 610 |  */
 611 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInDualWideCamera API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInDualWideCamera' has been explicitly marked unavailable here
 612 |
 613 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVDataSource.swift:23:86: error: 'builtInTripleCamera' is unavailable in visionOS
21 |         let deviceDiscoverySession = AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInDualCamera,
22 |                                                                                     .builtInDualWideCamera,
23 |                                                                                     .builtInTripleCamera,
   |                                                                                      `- error: 'builtInTripleCamera' is unavailable in visionOS
24 |                                                                                     .builtInWideAngleCamera,
25 |                                                                                     .builtInTelephotoCamera,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:628:38: note: 'builtInTripleCamera' has been explicitly marked unavailable here
 626 |     Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.
 627 |  */
 628 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInTripleCamera API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInTripleCamera' has been explicitly marked unavailable here
 629 |
 630 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVDataSource.swift:24:86: error: 'builtInWideAngleCamera' is only available in visionOS 2.1 or newer
 7 | }
 8 |
 9 | class AVCaptureDeviceDataSource: DataSource {
   |       `- note: add '@available' attribute to enclosing class
10 |
11 |     private let captureSession: AVCaptureSession
   :
18 |     }
19 |
20 |     var cameras: [Device] {
   |         `- note: add '@available' attribute to enclosing property
21 |         let deviceDiscoverySession = AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInDualCamera,
22 |                                                                                     .builtInDualWideCamera,
23 |                                                                                     .builtInTripleCamera,
24 |                                                                                     .builtInWideAngleCamera,
   |                                                                                      |- error: 'builtInWideAngleCamera' is only available in visionOS 2.1 or newer
   |                                                                                      `- note: add 'if #available' version check
25 |                                                                                     .builtInTelephotoCamera,
26 |                                                                                     .builtInUltraWideCamera],
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVDataSource.swift:25:86: error: 'builtInTelephotoCamera' is unavailable in visionOS
23 |                                                                                     .builtInTripleCamera,
24 |                                                                                     .builtInWideAngleCamera,
25 |                                                                                     .builtInTelephotoCamera,
   |                                                                                      `- error: 'builtInTelephotoCamera' is unavailable in visionOS
26 |                                                                                     .builtInUltraWideCamera],
27 |                                                                       mediaType: AVMediaType.video,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:568:38: note: 'builtInTelephotoCamera' has been explicitly marked unavailable here
 566 |     A built-in camera device with a longer focal length than a wide angle camera. Note that devices of this type may only be discovered using an AVCaptureDeviceDiscoverySession.
 567 |  */
 568 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInTelephotoCamera API_AVAILABLE(ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInTelephotoCamera' has been explicitly marked unavailable here
 569 |
 570 | /*!
SwiftCompile normal arm64 Compiling\ Presenter.swift,\ PreviewView.swift,\ Camera.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Views/Presenter.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Views/PreviewView.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Public\ API/Camera.swift (in target 'CameraCapture' from project 'CameraCapture')
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Views/PreviewView.swift:6:31: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
  4 | class PreviewView: UIView {
  5 |
  6 |     private let previewLayer: AVCaptureVideoPreviewLayer
    |                               `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
  7 |     private let presenter: Presenter
  8 |     private var pinchRecognizer: UIPinchGestureRecognizer!
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureVideoPreviewLayer.h:33:12: note: 'AVCaptureVideoPreviewLayer' has been explicitly marked unavailable here
 31 |  */
 32 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
 33 | @interface AVCaptureVideoPreviewLayer : CALayer
    |            `- note: 'AVCaptureVideoPreviewLayer' has been explicitly marked unavailable here
 34 | {
 35 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Views/PreviewView.swift:11:24: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
  9 |     private var tapRecognizer: UITapGestureRecognizer!
 10 |
 11 |     init(previewLayer: AVCaptureVideoPreviewLayer,
    |                        `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 12 |          presenter: Presenter) {
 13 |         self.previewLayer = previewLayer
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureVideoPreviewLayer.h:33:12: note: 'AVCaptureVideoPreviewLayer' has been explicitly marked unavailable here
 31 |  */
 32 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
 33 | @interface AVCaptureVideoPreviewLayer : CALayer
    |            `- note: 'AVCaptureVideoPreviewLayer' has been explicitly marked unavailable here
 34 | {
 35 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Views/PreviewView.swift:47:76: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
 45 |     }
 46 |
 47 |     private func videoOrientation(viewOrientation: UIDeviceOrientation) -> AVCaptureVideoOrientation? {
    |                                                                            `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
 48 |         switch viewOrientation {
 49 |         case .portraitUpsideDown: return .portraitUpsideDown
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:104:28: note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
 102 |
 103 | /// Constants indicating video orientation, for use with AVCaptureDeviceRotationCoordinator.
 104 | typedef NS_ENUM(NSInteger, AVCaptureVideoOrientation) {
     |                            `- note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
 105 |     /// Indicates that video should be oriented vertically, port on the bottom.
 106 |     AVCaptureVideoOrientationPortrait           = 1,
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Views/PreviewView.swift:33:62: error: 'orientation' is unavailable in visionOS
 31 |     func setupOrientation() {
 32 |         let currentDevice = UIDevice.current
 33 |         let orientation: UIDeviceOrientation = currentDevice.orientation
    |                                                              `- error: 'orientation' is unavailable in visionOS
 34 |         let videoOrientation: AVCaptureVideoOrientation = videoOrientation(viewOrientation: orientation) ?? .portrait
 35 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h:44:51: note: 'orientation' has been explicitly marked unavailable here
42 | @property(nonatomic,readonly,strong) NSString    *systemName;        // e.g. @"iOS"
43 | @property(nonatomic,readonly,strong) NSString    *systemVersion;     // e.g. @"4.0"
44 | @property(nonatomic,readonly) UIDeviceOrientation orientation API_UNAVAILABLE(tvos, visionos);       // return current device orientation.  this will return UIDeviceOrientationUnknown unless device orientation notifications are being generated.
   |                                                   `- note: 'orientation' has been explicitly marked unavailable here
45 |
46 | @property(nullable, nonatomic,readonly,strong) NSUUID      *identifierForVendor API_AVAILABLE(ios(6.0));      // a UUID that may be used to uniquely identify the device, same across apps from a single vendor.
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Views/PreviewView.swift:34:31: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
 32 |         let currentDevice = UIDevice.current
 33 |         let orientation: UIDeviceOrientation = currentDevice.orientation
 34 |         let videoOrientation: AVCaptureVideoOrientation = videoOrientation(viewOrientation: orientation) ?? .portrait
    |                               `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
 35 |
 36 |         previewLayer.frame = layer.bounds
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:104:28: note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
 102 |
 103 | /// Constants indicating video orientation, for use with AVCaptureDeviceRotationCoordinator.
 104 | typedef NS_ENUM(NSInteger, AVCaptureVideoOrientation) {
     |                            `- note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
 105 |     /// Indicates that video should be oriented vertically, port on the bottom.
 106 |     AVCaptureVideoOrientationPortrait           = 1,
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Views/PreviewView.swift:37:22: error: 'connection' is unavailable in visionOS
 35 |
 36 |         previewLayer.frame = layer.bounds
 37 |         previewLayer.connection?.videoOrientation = videoOrientation
    |                      `- error: 'connection' is unavailable in visionOS
 38 |
 39 |         presenter.didRotateCamera(with: cameraOrientation(viewOrientation: orientation) ?? .portrait)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureVideoPreviewLayer.h:115:63: note: 'connection' has been explicitly marked unavailable here
113 |     When calling initWithSession: or setSession: with a valid AVCaptureSession instance, a connection is formed to the first eligible video AVCaptureInput. If the receiver is detached from a session, the connection property becomes nil.
114 |  */
115 | @property(nonatomic, readonly, nullable) AVCaptureConnection *connection API_AVAILABLE(ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos);
    |                                                               `- note: 'connection' has been explicitly marked unavailable here
116 |
117 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Views/PreviewView.swift:37:34: error: 'videoOrientation' is unavailable in visionOS
 35 |
 36 |         previewLayer.frame = layer.bounds
 37 |         previewLayer.connection?.videoOrientation = videoOrientation
    |                                  `- error: 'videoOrientation' is unavailable in visionOS
 38 |
 39 |         presenter.didRotateCamera(with: cameraOrientation(viewOrientation: orientation) ?? .portrait)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:1111:48: note: 'videoOrientation' has been explicitly marked unavailable here
1109 |     This property is deprecated. Use -videoRotationAngle instead. This property may only be set if -isVideoOrientationSupported returns YES, otherwise an NSInvalidArgumentException is thrown.
1110 |  */
1111 | @property(nonatomic) AVCaptureVideoOrientation videoOrientation API_DEPRECATED("Use -videoRotationAngle instead", macos(10.7, 14.0), ios(4.0, 17.0), macCatalyst(14.0, 17.0)) API_UNAVAILABLE(tvos, visionos);
     |                                                `- note: 'videoOrientation' has been explicitly marked unavailable here
1112 |
1113 | /*!
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Views/Presenter.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Presenter.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Views/PreviewView.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile PreviewView.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Public\ API/Camera.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Camera.swift
SwiftCompile normal arm64 Compiling\ AVZoomController.swift,\ Adapters.swift,\ CameraRepo.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVZoomController.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Adapters.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/CameraRepo.swift (in target 'CameraCapture' from project 'CameraCapture')
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVZoomController.swift:23:27: error: 'videoZoomFactor' is unavailable in visionOS
21 |             let _ = try camera.device.lockForConfiguration()
22 |
23 |             camera.device.videoZoomFactor = value
   |                           `- error: 'videoZoomFactor' is unavailable in visionOS
24 |
25 |             camera.device.unlockForConfiguration()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:2068:30: note: 'videoZoomFactor' has been explicitly marked unavailable here
2066 |  @seealso -[AVCaptureDeviceFormat videoMaxZoomFactor], -[AVCaptureDeviceFormat videoZoomFactorUpscaleThreshold], -[AVCaptureDevice minAvailableVideoZoomFactor], -[AVCaptureDevice maxAvailableVideoZoomFactor],  -[AVCaptureDeviceFormat supportedVideoZoomFactorsForDepthDataDelivery], -[AVCaptureDeviceFormat videoMinZoomFactorForCenterStage] and -[AVCaptureDeviceFormat videoMaxZoomFactorForCenterStage]
2067 |  */
2068 | @property(nonatomic) CGFloat videoZoomFactor API_AVAILABLE(ios(7.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
     |                              `- note: 'videoZoomFactor' has been explicitly marked unavailable here
2069 |
2070 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Adapters.swift:59:55: error: 'DeviceType' is only available in visionOS 2.1 or newer
27 | }
28 |
29 | enum AVCaptureDeviceToCameraAdapter {
   |      `- note: add '@available' attribute to enclosing enum
30 |
31 |     static func adapt(device: AVCaptureDevice, flashDataSource: FlashDataSource) -> Device {
   :
57 |     }
58 |
59 |     private static func adapt(device: AVCaptureDevice.DeviceType?) -> DeviceType {
   |                         |                             `- error: 'DeviceType' is only available in visionOS 2.1 or newer
   |                         `- note: add '@available' attribute to enclosing static method
60 |         guard let device = device else {
61 |             return .unspecified
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Adapters.swift:34:23: error: 'deviceType' is only available in visionOS 2.1 or newer
27 | }
28 |
29 | enum AVCaptureDeviceToCameraAdapter {
   |      `- note: add '@available' attribute to enclosing enum
30 |
31 |     static func adapt(device: AVCaptureDevice, flashDataSource: FlashDataSource) -> Device {
   |                 `- note: add '@available' attribute to enclosing static method
32 |         var zoomOptions: [Double] = []
33 |
34 |         switch device.deviceType {
   |                       |- error: 'deviceType' is only available in visionOS 2.1 or newer
   |                       `- note: add 'if #available' version check
35 |         case .builtInDualWideCamera, .builtInTripleCamera:
36 |             zoomOptions.append(0.5)
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Adapters.swift:35:15: error: 'builtInDualWideCamera' is unavailable in visionOS
33 |
34 |         switch device.deviceType {
35 |         case .builtInDualWideCamera, .builtInTripleCamera:
   |               `- error: 'builtInDualWideCamera' is unavailable in visionOS
36 |             zoomOptions.append(0.5)
37 |             break
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:611:38: note: 'builtInDualWideCamera' has been explicitly marked unavailable here
 609 |     Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.
 610 |  */
 611 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInDualWideCamera API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInDualWideCamera' has been explicitly marked unavailable here
 612 |
 613 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Adapters.swift:35:39: error: 'builtInTripleCamera' is unavailable in visionOS
33 |
34 |         switch device.deviceType {
35 |         case .builtInDualWideCamera, .builtInTripleCamera:
   |                                       `- error: 'builtInTripleCamera' is unavailable in visionOS
36 |             zoomOptions.append(0.5)
37 |             break
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:628:38: note: 'builtInTripleCamera' has been explicitly marked unavailable here
 626 |     Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.
 627 |  */
 628 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInTripleCamera API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInTripleCamera' has been explicitly marked unavailable here
 629 |
 630 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Adapters.swift:38:15: error: 'builtInDualCamera' is unavailable in visionOS
36 |             zoomOptions.append(0.5)
37 |             break
38 |         case .builtInDualCamera:
   |               `- error: 'builtInDualCamera' is unavailable in visionOS
39 |             zoomOptions.append(1.0)
40 |             break
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:593:38: note: 'builtInDualCamera' has been explicitly marked unavailable here
 591 |     Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.
 592 |  */
 593 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInDualCamera API_AVAILABLE(ios(10.2), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInDualCamera' has been explicitly marked unavailable here
 594 |
 595 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Adapters.swift:45:47: error: 'virtualDeviceSwitchOverVideoZoomFactors' is unavailable in visionOS
43 |         }
44 |
45 |         zoomOptions.append(contentsOf: device.virtualDeviceSwitchOverVideoZoomFactors.map { ZoomScaleToMultiplication.adapt(deviceType: self.adapt(device: device.deviceType),
   |                                               `- error: 'virtualDeviceSwitchOverVideoZoomFactors' is unavailable in visionOS
46 |                                                                                                                             scale: $0.doubleValue) })
47 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:852:53: note: 'virtualDeviceSwitchOverVideoZoomFactors' has been explicitly marked unavailable here
 850 |     This array contains zoom factors at which one of the constituent device's field of view matches the next constituent device's full field of view. The number of switch over video zoom factors is always one less than the count of the constituentDevices property, and the factors progress in the same order as the devices listed in that property. On non-virtual devices this property returns an empty array.
 851 |  */
 852 | @property(nonatomic, readonly) NSArray<NSNumber *> *virtualDeviceSwitchOverVideoZoomFactors API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                                     `- note: 'virtualDeviceSwitchOverVideoZoomFactors' has been explicitly marked unavailable here
 853 |
 854 | /// Whether locking to a particular primary constituent device is supported.
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Adapters.swift:45:163: error: 'deviceType' is only available in visionOS 2.1 or newer
27 | }
28 |
29 | enum AVCaptureDeviceToCameraAdapter {
   |      `- note: add '@available' attribute to enclosing enum
30 |
31 |     static func adapt(device: AVCaptureDevice, flashDataSource: FlashDataSource) -> Device {
   |                 `- note: add '@available' attribute to enclosing static method
32 |         var zoomOptions: [Double] = []
33 |
   :
43 |         }
44 |
45 |         zoomOptions.append(contentsOf: device.virtualDeviceSwitchOverVideoZoomFactors.map { ZoomScaleToMultiplication.adapt(deviceType: self.adapt(device: device.deviceType),
   |                                                                                                                                                                   |- error: 'deviceType' is only available in visionOS 2.1 or newer
   |                                                                                                                                                                   `- note: add 'if #available' version check
46 |                                                                                                                             scale: $0.doubleValue) })
47 |
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Adapters.swift:49:55: error: 'deviceType' is only available in visionOS 2.1 or newer
27 | }
28 |
29 | enum AVCaptureDeviceToCameraAdapter {
   |      `- note: add '@available' attribute to enclosing enum
30 |
31 |     static func adapt(device: AVCaptureDevice, flashDataSource: FlashDataSource) -> Device {
   |                 `- note: add '@available' attribute to enclosing static method
32 |         var zoomOptions: [Double] = []
33 |
   :
47 |
48 |         return Device(id: device.uniqueID,
49 |                       type: self.adapt(device: device.deviceType),
   |                                                       |- error: 'deviceType' is only available in visionOS 2.1 or newer
   |                                                       `- note: add 'if #available' version check
50 |                       position: self.adapt(position: device.position),
51 |                       hasFlash: device.hasFlash,
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Adapters.swift:54:106: error: 'deviceType' is only available in visionOS 2.1 or newer
27 | }
28 |
29 | enum AVCaptureDeviceToCameraAdapter {
   |      `- note: add '@available' attribute to enclosing enum
30 |
31 |     static func adapt(device: AVCaptureDevice, flashDataSource: FlashDataSource) -> Device {
   |                 `- note: add '@available' attribute to enclosing static method
32 |         var zoomOptions: [Double] = []
33 |
   :
52 |                       flashState: flashDataSource.get(deviceId: device.uniqueID),
53 |                       zoomOptions: zoomOptions,
54 |                       currentZoom: ZoomScaleToMultiplication.adapt(deviceType: self.adapt(device: device.deviceType), scale: device.videoZoomFactor),
   |                                                                                                          |- error: 'deviceType' is only available in visionOS 2.1 or newer
   |                                                                                                          `- note: add 'if #available' version check
55 |                       maxZoom: min(ZoomScaleToMultiplication.adapt(deviceType: self.adapt(device: device.deviceType), scale: device.maxAvailableVideoZoomFactor), 10),
56 |                       minZoom: ZoomScaleToMultiplication.adapt(deviceType: self.adapt(device: device.deviceType), scale: device.minAvailableVideoZoomFactor))
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Adapters.swift:54:133: error: 'videoZoomFactor' is unavailable in visionOS
52 |                       flashState: flashDataSource.get(deviceId: device.uniqueID),
53 |                       zoomOptions: zoomOptions,
54 |                       currentZoom: ZoomScaleToMultiplication.adapt(deviceType: self.adapt(device: device.deviceType), scale: device.videoZoomFactor),
   |                                                                                                                                     `- error: 'videoZoomFactor' is unavailable in visionOS
55 |                       maxZoom: min(ZoomScaleToMultiplication.adapt(deviceType: self.adapt(device: device.deviceType), scale: device.maxAvailableVideoZoomFactor), 10),
56 |                       minZoom: ZoomScaleToMultiplication.adapt(deviceType: self.adapt(device: device.deviceType), scale: device.minAvailableVideoZoomFactor))
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:2068:30: note: 'videoZoomFactor' has been explicitly marked unavailable here
2066 |  @seealso -[AVCaptureDeviceFormat videoMaxZoomFactor], -[AVCaptureDeviceFormat videoZoomFactorUpscaleThreshold], -[AVCaptureDevice minAvailableVideoZoomFactor], -[AVCaptureDevice maxAvailableVideoZoomFactor],  -[AVCaptureDeviceFormat supportedVideoZoomFactorsForDepthDataDelivery], -[AVCaptureDeviceFormat videoMinZoomFactorForCenterStage] and -[AVCaptureDeviceFormat videoMaxZoomFactorForCenterStage]
2067 |  */
2068 | @property(nonatomic) CGFloat videoZoomFactor API_AVAILABLE(ios(7.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
     |                              `- note: 'videoZoomFactor' has been explicitly marked unavailable here
2069 |
2070 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Adapters.swift:55:106: error: 'deviceType' is only available in visionOS 2.1 or newer
27 | }
28 |
29 | enum AVCaptureDeviceToCameraAdapter {
   |      `- note: add '@available' attribute to enclosing enum
30 |
31 |     static func adapt(device: AVCaptureDevice, flashDataSource: FlashDataSource) -> Device {
   |                 `- note: add '@available' attribute to enclosing static method
32 |         var zoomOptions: [Double] = []
33 |
   :
53 |                       zoomOptions: zoomOptions,
54 |                       currentZoom: ZoomScaleToMultiplication.adapt(deviceType: self.adapt(device: device.deviceType), scale: device.videoZoomFactor),
55 |                       maxZoom: min(ZoomScaleToMultiplication.adapt(deviceType: self.adapt(device: device.deviceType), scale: device.maxAvailableVideoZoomFactor), 10),
   |                                                                                                          |- error: 'deviceType' is only available in visionOS 2.1 or newer
   |                                                                                                          `- note: add 'if #available' version check
56 |                       minZoom: ZoomScaleToMultiplication.adapt(deviceType: self.adapt(device: device.deviceType), scale: device.minAvailableVideoZoomFactor))
57 |     }
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Adapters.swift:55:133: error: 'maxAvailableVideoZoomFactor' is unavailable in visionOS
53 |                       zoomOptions: zoomOptions,
54 |                       currentZoom: ZoomScaleToMultiplication.adapt(deviceType: self.adapt(device: device.deviceType), scale: device.videoZoomFactor),
55 |                       maxZoom: min(ZoomScaleToMultiplication.adapt(deviceType: self.adapt(device: device.deviceType), scale: device.maxAvailableVideoZoomFactor), 10),
   |                                                                                                                                     `- error: 'maxAvailableVideoZoomFactor' is unavailable in visionOS
56 |                       minZoom: ZoomScaleToMultiplication.adapt(deviceType: self.adapt(device: device.deviceType), scale: device.minAvailableVideoZoomFactor))
57 |     }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:2392:40: note: 'maxAvailableVideoZoomFactor' has been explicitly marked unavailable here
2390 |     Setting the videoZoomFactor to a value less than or equal to activeFormat.videoMaxZoomFactor, but greater than maxAvailableVideoZoomFactor results in the value being clamped to the maxAvailableVideoZoomFactor. Clients can key value observe the value of this property.
2391 |  */
2392 | @property(nonatomic, readonly) CGFloat maxAvailableVideoZoomFactor API_AVAILABLE(ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
     |                                        `- note: 'maxAvailableVideoZoomFactor' has been explicitly marked unavailable here
2393 |
2394 | @end
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Adapters.swift:56:102: error: 'deviceType' is only available in visionOS 2.1 or newer
27 | }
28 |
29 | enum AVCaptureDeviceToCameraAdapter {
   |      `- note: add '@available' attribute to enclosing enum
30 |
31 |     static func adapt(device: AVCaptureDevice, flashDataSource: FlashDataSource) -> Device {
   |                 `- note: add '@available' attribute to enclosing static method
32 |         var zoomOptions: [Double] = []
33 |
   :
54 |                       currentZoom: ZoomScaleToMultiplication.adapt(deviceType: self.adapt(device: device.deviceType), scale: device.videoZoomFactor),
55 |                       maxZoom: min(ZoomScaleToMultiplication.adapt(deviceType: self.adapt(device: device.deviceType), scale: device.maxAvailableVideoZoomFactor), 10),
56 |                       minZoom: ZoomScaleToMultiplication.adapt(deviceType: self.adapt(device: device.deviceType), scale: device.minAvailableVideoZoomFactor))
   |                                                                                                      |- error: 'deviceType' is only available in visionOS 2.1 or newer
   |                                                                                                      `- note: add 'if #available' version check
57 |     }
58 |
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Adapters.swift:56:129: error: 'minAvailableVideoZoomFactor' is unavailable in visionOS
54 |                       currentZoom: ZoomScaleToMultiplication.adapt(deviceType: self.adapt(device: device.deviceType), scale: device.videoZoomFactor),
55 |                       maxZoom: min(ZoomScaleToMultiplication.adapt(deviceType: self.adapt(device: device.deviceType), scale: device.maxAvailableVideoZoomFactor), 10),
56 |                       minZoom: ZoomScaleToMultiplication.adapt(deviceType: self.adapt(device: device.deviceType), scale: device.minAvailableVideoZoomFactor))
   |                                                                                                                                 `- error: 'minAvailableVideoZoomFactor' is unavailable in visionOS
57 |     }
58 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:2380:40: note: 'minAvailableVideoZoomFactor' has been explicitly marked unavailable here
2378 |     Setting the videoZoomFactor to a value greater than or equal to 1.0, but lower than minAvailableVideoZoomFactor results in the value being clamped to the minAvailableVideoZoomFactor. Clients can key value observe the value of this property.
2379 |  */
2380 | @property(nonatomic, readonly) CGFloat minAvailableVideoZoomFactor API_AVAILABLE(ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
     |                                        `- note: 'minAvailableVideoZoomFactor' has been explicitly marked unavailable here
2381 |
2382 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Adapters.swift:64:15: error: 'builtInUltraWideCamera' is unavailable in visionOS
62 |         }
63 |         switch device {
64 |         case .builtInUltraWideCamera: return .ultraWideCamera
   |               `- error: 'builtInUltraWideCamera' is unavailable in visionOS
65 |         case .builtInTelephotoCamera: return .telephotoCamera
66 |         case .builtInWideAngleCamera: return .wideAngleCamera
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:574:38: note: 'builtInUltraWideCamera' has been explicitly marked unavailable here
 572 |     A built-in camera device with a shorter focal length than a wide angle camera. Note that devices of this type may only be discovered using an AVCaptureDeviceDiscoverySession.
 573 |  */
 574 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInUltraWideCamera API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInUltraWideCamera' has been explicitly marked unavailable here
 575 |
 576 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Adapters.swift:65:15: error: 'builtInTelephotoCamera' is unavailable in visionOS
63 |         switch device {
64 |         case .builtInUltraWideCamera: return .ultraWideCamera
65 |         case .builtInTelephotoCamera: return .telephotoCamera
   |               `- error: 'builtInTelephotoCamera' is unavailable in visionOS
66 |         case .builtInWideAngleCamera: return .wideAngleCamera
67 |         case .builtInDualCamera: return .dualCamera
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:568:38: note: 'builtInTelephotoCamera' has been explicitly marked unavailable here
 566 |     A built-in camera device with a longer focal length than a wide angle camera. Note that devices of this type may only be discovered using an AVCaptureDeviceDiscoverySession.
 567 |  */
 568 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInTelephotoCamera API_AVAILABLE(ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInTelephotoCamera' has been explicitly marked unavailable here
 569 |
 570 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Adapters.swift:66:15: error: 'builtInWideAngleCamera' is only available in visionOS 2.1 or newer
27 | }
28 |
29 | enum AVCaptureDeviceToCameraAdapter {
   |      `- note: add '@available' attribute to enclosing enum
30 |
31 |     static func adapt(device: AVCaptureDevice, flashDataSource: FlashDataSource) -> Device {
   :
57 |     }
58 |
59 |     private static func adapt(device: AVCaptureDevice.DeviceType?) -> DeviceType {
   |                         `- note: add '@available' attribute to enclosing static method
60 |         guard let device = device else {
61 |             return .unspecified
   :
64 |         case .builtInUltraWideCamera: return .ultraWideCamera
65 |         case .builtInTelephotoCamera: return .telephotoCamera
66 |         case .builtInWideAngleCamera: return .wideAngleCamera
   |               |- error: 'builtInWideAngleCamera' is only available in visionOS 2.1 or newer
   |               `- note: add 'if #available' version check
67 |         case .builtInDualCamera: return .dualCamera
68 |         case .builtInDualWideCamera: return .dualWideCamera
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Adapters.swift:67:15: error: 'builtInDualCamera' is unavailable in visionOS
65 |         case .builtInTelephotoCamera: return .telephotoCamera
66 |         case .builtInWideAngleCamera: return .wideAngleCamera
67 |         case .builtInDualCamera: return .dualCamera
   |               `- error: 'builtInDualCamera' is unavailable in visionOS
68 |         case .builtInDualWideCamera: return .dualWideCamera
69 |         case .builtInTripleCamera: return .tripleCamera
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:593:38: note: 'builtInDualCamera' has been explicitly marked unavailable here
 591 |     Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.
 592 |  */
 593 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInDualCamera API_AVAILABLE(ios(10.2), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInDualCamera' has been explicitly marked unavailable here
 594 |
 595 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Adapters.swift:68:15: error: 'builtInDualWideCamera' is unavailable in visionOS
66 |         case .builtInWideAngleCamera: return .wideAngleCamera
67 |         case .builtInDualCamera: return .dualCamera
68 |         case .builtInDualWideCamera: return .dualWideCamera
   |               `- error: 'builtInDualWideCamera' is unavailable in visionOS
69 |         case .builtInTripleCamera: return .tripleCamera
70 |         default:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:611:38: note: 'builtInDualWideCamera' has been explicitly marked unavailable here
 609 |     Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.
 610 |  */
 611 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInDualWideCamera API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInDualWideCamera' has been explicitly marked unavailable here
 612 |
 613 | /*!
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVZoomController.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile AVZoomController.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Adapters.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Adapters.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/CameraRepo.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CameraRepo.swift
SwiftCompile normal arm64 Compiling\ SetCameraUseCase.swift,\ SetFlashStateUseCase.swift,\ SetRotationUseCase.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/SetCameraUseCase.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/SetFlashStateUseCase.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/SetRotationUseCase.swift (in target 'CameraCapture' from project 'CameraCapture')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/SetCameraUseCase.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile SetCameraUseCase.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/SetFlashStateUseCase.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile SetFlashStateUseCase.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/SetRotationUseCase.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile SetRotationUseCase.swift
SwiftCompile normal arm64 Compiling\ CaptureHandler.swift,\ DefaultCamera.swift,\ SettingsRepo.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/CaptureHandler.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/DefaultCamera.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/SettingsRepo.swift (in target 'CameraCapture' from project 'CameraCapture')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/CaptureHandler.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CaptureHandler.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/DefaultCamera.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile DefaultCamera.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/SettingsRepo.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile SettingsRepo.swift
SwiftCompile normal arm64 Compiling\ AVCameraController.swift,\ AVCameraSession.swift,\ AVCaptureDelegate.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraController.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraSession.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCaptureDelegate.swift (in target 'CameraCapture' from project 'CameraCapture')
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraController.swift:12:30: error: 'AVCapturePhotoOutput' is unavailable in visionOS
10 | class AVCameraController: CameraController {
11 |
12 |     private let photoOutput: AVCapturePhotoOutput
   |                              `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
13 |     private let delegate = AVCaptureDelegate()
14 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:50:12: note: 'AVCapturePhotoOutput' has been explicitly marked unavailable here
  48 |  */
  49 | API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
  50 | @interface AVCapturePhotoOutput : AVCaptureOutput
     |            `- note: 'AVCapturePhotoOutput' has been explicitly marked unavailable here
  51 | {
  52 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraController.swift:15:23: error: 'AVCapturePhotoOutput' is unavailable in visionOS
13 |     private let delegate = AVCaptureDelegate()
14 |
15 |     init(photoOutput: AVCapturePhotoOutput) {
   |                       `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
16 |         self.photoOutput = photoOutput
17 |     }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:50:12: note: 'AVCapturePhotoOutput' has been explicitly marked unavailable here
  48 |  */
  49 | API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
  50 | @interface AVCapturePhotoOutput : AVCaptureOutput
     |            `- note: 'AVCapturePhotoOutput' has been explicitly marked unavailable here
  51 | {
  52 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraController.swift:36:66: error: 'FlashMode' is unavailable in visionOS
34 |
35 | enum CameraFlashToAVSettings {
36 |     static func adapt(flashState: FlashState) -> AVCaptureDevice.FlashMode {
   |                                                                  `- error: 'FlashMode' is unavailable in visionOS
37 |         switch flashState {
38 |             case .on:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:967:28: note: 'FlashMode' has been explicitly marked unavailable here
 965 |     Indicates that the flash should be used automatically depending on ambient light conditions.
 966 |  */
 967 | typedef NS_ENUM(NSInteger, AVCaptureFlashMode) {
     |                            `- note: 'FlashMode' has been explicitly marked unavailable here
 968 |     AVCaptureFlashModeOff  = 0,
 969 |     AVCaptureFlashModeOn   = 1,
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraController.swift:49:58: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
47 |
48 | enum CameraOrientationToAVSettings {
49 |     static func adapt(orientation: CameraOrientation) -> AVCaptureVideoOrientation {
   |                                                          `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
50 |         switch orientation {
51 |         case .landscapeLeft:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:104:28: note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
 102 |
 103 | /// Constants indicating video orientation, for use with AVCaptureDeviceRotationCoordinator.
 104 | typedef NS_ENUM(NSInteger, AVCaptureVideoOrientation) {
     |                            `- note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
 105 |     /// Indicates that video should be oriented vertically, port on the bottom.
 106 |     AVCaptureVideoOrientationPortrait           = 1,
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraController.swift:23:24: error: 'AVCapturePhotoSettings' is unavailable in visionOS
21 |                    handler: CaptureHandler) {
22 |         delegate.set(handler)
23 |         let settings = AVCapturePhotoSettings(format: [AVVideoCodecKey: CameraSettingsToAVSettings.adapt(settings: settings)])
   |                        `- error: 'AVCapturePhotoSettings' is unavailable in visionOS
24 |         settings.flashMode = CameraFlashToAVSettings.adapt(flashState: flashState)
25 |         photoOutput.capturePhoto(with: settings,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:1192:12: note: 'AVCapturePhotoSettings' has been explicitly marked unavailable here
1190 |  */
1191 | API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
1192 | @interface AVCapturePhotoSettings : NSObject <NSCopying>
     |            `- note: 'AVCapturePhotoSettings' has been explicitly marked unavailable here
1193 | {
1194 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraController.swift:31:47: error: 'videoOrientation' is unavailable in visionOS
29 |
30 |     func rotate(with orientation: CameraOrientation) {
31 |         photoOutput.connection(with: .video)?.videoOrientation = CameraOrientationToAVSettings.adapt(orientation: orientation)
   |                                               `- error: 'videoOrientation' is unavailable in visionOS
32 |     }
33 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:1111:48: note: 'videoOrientation' has been explicitly marked unavailable here
1109 |     This property is deprecated. Use -videoRotationAngle instead. This property may only be set if -isVideoOrientationSupported returns YES, otherwise an NSInvalidArgumentException is thrown.
1110 |  */
1111 | @property(nonatomic) AVCaptureVideoOrientation videoOrientation API_DEPRECATED("Use -videoRotationAngle instead", macos(10.7, 14.0), ios(4.0, 17.0), macCatalyst(14.0, 17.0)) API_UNAVAILABLE(tvos, visionos);
     |                                                `- note: 'videoOrientation' has been explicitly marked unavailable here
1112 |
1113 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraSession.swift:44:28: error: 'init(uniqueID:)' is only available in visionOS 2.1 or newer
10 | }
11 |
12 | class AVCameraSession: CameraSesion {
   |       `- note: add '@available' attribute to enclosing class
13 |     private let captureSession: AVCaptureSession
14 |     private let flashDataSource: FlashDataSource
   :
41 |     }
42 |
43 |     func addInput(with id: String) {
   |          `- note: add '@available' attribute to enclosing instance method
44 |         guard let device = AVCaptureDevice(uniqueID: id),
   |                            |- error: 'init(uniqueID:)' is only available in visionOS 2.1 or newer
   |                            `- note: add 'if #available' version check
45 |               let captureDeviceInput = try? AVCaptureDeviceInput(device: device) else {
46 |             return
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraSession.swift:49:24: error: 'sessionPreset' is unavailable in visionOS
47 |         }
48 |
49 |         captureSession.sessionPreset = .high
   |                        `- error: 'sessionPreset' is unavailable in visionOS
50 |         if captureSession.canAddInput(captureDeviceInput) {
51 |             captureSession.addInput(captureDeviceInput)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:166:51: note: 'sessionPreset' has been explicitly marked unavailable here
 164 |     The value of this property is an AVCaptureSessionPreset indicating the current session preset in use by the receiver. The sessionPreset property may be set while the receiver is running.
 165 |  */
 166 | @property(nonatomic, copy) AVCaptureSessionPreset sessionPreset API_UNAVAILABLE(visionos);
     |                                                   `- note: 'sessionPreset' has been explicitly marked unavailable here
 167 |
 168 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraSession.swift:49:41: error: 'high' is unavailable in visionOS
47 |         }
48 |
49 |         captureSession.sessionPreset = .high
   |                                         `- error: 'high' is unavailable in visionOS
50 |         if captureSession.canAddInput(captureDeviceInput) {
51 |             captureSession.addInput(captureDeviceInput)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSessionPreset.h:41:41: note: 'high' has been explicitly marked unavailable here
 39 |     Clients may set an AVCaptureSession instance's sessionPreset to AVCaptureSessionPresetHigh to achieve high quality video and audio output. AVCaptureSessionPresetHigh is the default sessionPreset value.
 40 |  */
 41 | AVF_EXPORT AVCaptureSessionPreset const AVCaptureSessionPresetHigh API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
    |                                         `- note: 'high' has been explicitly marked unavailable here
 42 |
 43 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraSession.swift:52:31: error: 'canSetSessionPreset' is unavailable in visionOS
50 |         if captureSession.canAddInput(captureDeviceInput) {
51 |             captureSession.addInput(captureDeviceInput)
52 |             if captureSession.canSetSessionPreset(.hd4K3840x2160) {
   |                               `- error: 'canSetSessionPreset' is unavailable in visionOS
53 |                 captureSession.sessionPreset = .hd4K3840x2160
54 |             } else if captureSession.canSetSessionPreset(.hd1920x1080) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:156:1: note: 'canSetSessionPreset' has been explicitly marked unavailable here
 154 |     An AVCaptureSession instance can be associated with a preset that configures its inputs and outputs to fulfill common use cases. This method can be used to determine if the receiver supports the desired preset given its current input and output configuration. The receiver's sessionPreset property may only be set to a certain preset if this method returns YES for that preset.
 155 |  */
 156 | - (BOOL)canSetSessionPreset:(AVCaptureSessionPreset)preset API_UNAVAILABLE(visionos);
     | `- note: 'canSetSessionPreset' has been explicitly marked unavailable here
 157 |
 158 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraSession.swift:52:52: error: 'hd4K3840x2160' is unavailable in visionOS
50 |         if captureSession.canAddInput(captureDeviceInput) {
51 |             captureSession.addInput(captureDeviceInput)
52 |             if captureSession.canSetSessionPreset(.hd4K3840x2160) {
   |                                                    `- error: 'hd4K3840x2160' is unavailable in visionOS
53 |                 captureSession.sessionPreset = .hd4K3840x2160
54 |             } else if captureSession.canSetSessionPreset(.hd1920x1080) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSessionPreset.h:131:41: note: 'hd4K3840x2160' has been explicitly marked unavailable here
129 |     Clients may set an AVCaptureSession instance's sessionPreset to AVCaptureSessionPreset3840x2160 to achieve 3840x2160 output.
130 |  */
131 | AVF_EXPORT AVCaptureSessionPreset const AVCaptureSessionPreset3840x2160 API_AVAILABLE(macos(10.15), ios(9.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
    |                                         `- note: 'hd4K3840x2160' has been explicitly marked unavailable here
132 |
133 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraSession.swift:53:32: error: 'sessionPreset' is unavailable in visionOS
51 |             captureSession.addInput(captureDeviceInput)
52 |             if captureSession.canSetSessionPreset(.hd4K3840x2160) {
53 |                 captureSession.sessionPreset = .hd4K3840x2160
   |                                `- error: 'sessionPreset' is unavailable in visionOS
54 |             } else if captureSession.canSetSessionPreset(.hd1920x1080) {
55 |                 captureSession.sessionPreset = .hd1920x1080
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:166:51: note: 'sessionPreset' has been explicitly marked unavailable here
 164 |     The value of this property is an AVCaptureSessionPreset indicating the current session preset in use by the receiver. The sessionPreset property may be set while the receiver is running.
 165 |  */
 166 | @property(nonatomic, copy) AVCaptureSessionPreset sessionPreset API_UNAVAILABLE(visionos);
     |                                                   `- note: 'sessionPreset' has been explicitly marked unavailable here
 167 |
 168 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraSession.swift:53:49: error: 'hd4K3840x2160' is unavailable in visionOS
51 |             captureSession.addInput(captureDeviceInput)
52 |             if captureSession.canSetSessionPreset(.hd4K3840x2160) {
53 |                 captureSession.sessionPreset = .hd4K3840x2160
   |                                                 `- error: 'hd4K3840x2160' is unavailable in visionOS
54 |             } else if captureSession.canSetSessionPreset(.hd1920x1080) {
55 |                 captureSession.sessionPreset = .hd1920x1080
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSessionPreset.h:131:41: note: 'hd4K3840x2160' has been explicitly marked unavailable here
129 |     Clients may set an AVCaptureSession instance's sessionPreset to AVCaptureSessionPreset3840x2160 to achieve 3840x2160 output.
130 |  */
131 | AVF_EXPORT AVCaptureSessionPreset const AVCaptureSessionPreset3840x2160 API_AVAILABLE(macos(10.15), ios(9.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
    |                                         `- note: 'hd4K3840x2160' has been explicitly marked unavailable here
132 |
133 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraSession.swift:54:38: error: 'canSetSessionPreset' is unavailable in visionOS
52 |             if captureSession.canSetSessionPreset(.hd4K3840x2160) {
53 |                 captureSession.sessionPreset = .hd4K3840x2160
54 |             } else if captureSession.canSetSessionPreset(.hd1920x1080) {
   |                                      `- error: 'canSetSessionPreset' is unavailable in visionOS
55 |                 captureSession.sessionPreset = .hd1920x1080
56 |             } else {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:156:1: note: 'canSetSessionPreset' has been explicitly marked unavailable here
 154 |     An AVCaptureSession instance can be associated with a preset that configures its inputs and outputs to fulfill common use cases. This method can be used to determine if the receiver supports the desired preset given its current input and output configuration. The receiver's sessionPreset property may only be set to a certain preset if this method returns YES for that preset.
 155 |  */
 156 | - (BOOL)canSetSessionPreset:(AVCaptureSessionPreset)preset API_UNAVAILABLE(visionos);
     | `- note: 'canSetSessionPreset' has been explicitly marked unavailable here
 157 |
 158 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraSession.swift:54:59: error: 'hd1920x1080' is unavailable in visionOS
52 |             if captureSession.canSetSessionPreset(.hd4K3840x2160) {
53 |                 captureSession.sessionPreset = .hd4K3840x2160
54 |             } else if captureSession.canSetSessionPreset(.hd1920x1080) {
   |                                                           `- error: 'hd1920x1080' is unavailable in visionOS
55 |                 captureSession.sessionPreset = .hd1920x1080
56 |             } else {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSessionPreset.h:121:41: note: 'hd1920x1080' has been explicitly marked unavailable here
119 |     Clients may set an AVCaptureSession instance's sessionPreset to AVCaptureSessionPreset1920x1080 to achieve 1920x1080 output.
120 |  */
121 | AVF_EXPORT AVCaptureSessionPreset const AVCaptureSessionPreset1920x1080 API_AVAILABLE(macos(10.15), ios(5.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
    |                                         `- note: 'hd1920x1080' has been explicitly marked unavailable here
122 |
123 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraSession.swift:55:32: error: 'sessionPreset' is unavailable in visionOS
53 |                 captureSession.sessionPreset = .hd4K3840x2160
54 |             } else if captureSession.canSetSessionPreset(.hd1920x1080) {
55 |                 captureSession.sessionPreset = .hd1920x1080
   |                                `- error: 'sessionPreset' is unavailable in visionOS
56 |             } else {
57 |                 captureSession.sessionPreset = .high
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:166:51: note: 'sessionPreset' has been explicitly marked unavailable here
 164 |     The value of this property is an AVCaptureSessionPreset indicating the current session preset in use by the receiver. The sessionPreset property may be set while the receiver is running.
 165 |  */
 166 | @property(nonatomic, copy) AVCaptureSessionPreset sessionPreset API_UNAVAILABLE(visionos);
     |                                                   `- note: 'sessionPreset' has been explicitly marked unavailable here
 167 |
 168 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraSession.swift:55:49: error: 'hd1920x1080' is unavailable in visionOS
53 |                 captureSession.sessionPreset = .hd4K3840x2160
54 |             } else if captureSession.canSetSessionPreset(.hd1920x1080) {
55 |                 captureSession.sessionPreset = .hd1920x1080
   |                                                 `- error: 'hd1920x1080' is unavailable in visionOS
56 |             } else {
57 |                 captureSession.sessionPreset = .high
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSessionPreset.h:121:41: note: 'hd1920x1080' has been explicitly marked unavailable here
119 |     Clients may set an AVCaptureSession instance's sessionPreset to AVCaptureSessionPreset1920x1080 to achieve 1920x1080 output.
120 |  */
121 | AVF_EXPORT AVCaptureSessionPreset const AVCaptureSessionPreset1920x1080 API_AVAILABLE(macos(10.15), ios(5.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
    |                                         `- note: 'hd1920x1080' has been explicitly marked unavailable here
122 |
123 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraSession.swift:57:32: error: 'sessionPreset' is unavailable in visionOS
55 |                 captureSession.sessionPreset = .hd1920x1080
56 |             } else {
57 |                 captureSession.sessionPreset = .high
   |                                `- error: 'sessionPreset' is unavailable in visionOS
58 |             }
59 |         }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:166:51: note: 'sessionPreset' has been explicitly marked unavailable here
 164 |     The value of this property is an AVCaptureSessionPreset indicating the current session preset in use by the receiver. The sessionPreset property may be set while the receiver is running.
 165 |  */
 166 | @property(nonatomic, copy) AVCaptureSessionPreset sessionPreset API_UNAVAILABLE(visionos);
     |                                                   `- note: 'sessionPreset' has been explicitly marked unavailable here
 167 |
 168 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraSession.swift:57:49: error: 'high' is unavailable in visionOS
55 |                 captureSession.sessionPreset = .hd1920x1080
56 |             } else {
57 |                 captureSession.sessionPreset = .high
   |                                                 `- error: 'high' is unavailable in visionOS
58 |             }
59 |         }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSessionPreset.h:41:41: note: 'high' has been explicitly marked unavailable here
 39 |     Clients may set an AVCaptureSession instance's sessionPreset to AVCaptureSessionPresetHigh to achieve high quality video and audio output. AVCaptureSessionPresetHigh is the default sessionPreset value.
 40 |  */
 41 | AVF_EXPORT AVCaptureSessionPreset const AVCaptureSessionPresetHigh API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
    |                                         `- note: 'high' has been explicitly marked unavailable here
 42 |
 43 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCaptureDelegate.swift:12:32: error: 'AVCapturePhotoOutput' is unavailable in visionOS
10 |     }
11 |
12 |     func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
   |                                `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
13 |         handler?.didCapturePhoto(photo.fileDataRepresentation(with: Customizer(photo: photo)), error: error)
14 |     }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:50:12: note: 'AVCapturePhotoOutput' has been explicitly marked unavailable here
  48 |  */
  49 | API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
  50 | @interface AVCapturePhotoOutput : AVCaptureOutput
     |            `- note: 'AVCapturePhotoOutput' has been explicitly marked unavailable here
  51 | {
  52 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCaptureDelegate.swift:12:86: error: 'AVCapturePhoto' is unavailable in visionOS
10 |     }
11 |
12 |     func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
   |                                                                                      `- error: 'AVCapturePhoto' is unavailable in visionOS
13 |         handler?.didCapturePhoto(photo.fileDataRepresentation(with: Customizer(photo: photo)), error: error)
14 |     }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:1979:12: note: 'AVCapturePhoto' has been explicitly marked unavailable here
1977 |  */
1978 | API_AVAILABLE(macos(10.15), ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
1979 | @interface AVCapturePhoto : NSObject
     |            `- note: 'AVCapturePhoto' has been explicitly marked unavailable here
1980 | {
1981 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCaptureDelegate.swift:18:28: error: 'AVCapturePhoto' is unavailable in visionOS
16 |     class Customizer: NSObject, AVCapturePhotoFileDataRepresentationCustomizer {
17 |
18 |         private let photo: AVCapturePhoto
   |                            `- error: 'AVCapturePhoto' is unavailable in visionOS
19 |
20 |         init(photo: AVCapturePhoto) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:1979:12: note: 'AVCapturePhoto' has been explicitly marked unavailable here
1977 |  */
1978 | API_AVAILABLE(macos(10.15), ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
1979 | @interface AVCapturePhoto : NSObject
     |            `- note: 'AVCapturePhoto' has been explicitly marked unavailable here
1980 | {
1981 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCaptureDelegate.swift:20:21: error: 'AVCapturePhoto' is unavailable in visionOS
18 |         private let photo: AVCapturePhoto
19 |
20 |         init(photo: AVCapturePhoto) {
   |                     `- error: 'AVCapturePhoto' is unavailable in visionOS
21 |             self.photo = photo
22 |         }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:1979:12: note: 'AVCapturePhoto' has been explicitly marked unavailable here
1977 |  */
1978 | API_AVAILABLE(macos(10.15), ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
1979 | @interface AVCapturePhoto : NSObject
     |            `- note: 'AVCapturePhoto' has been explicitly marked unavailable here
1980 | {
1981 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCaptureDelegate.swift:24:45: error: 'AVCapturePhoto' is unavailable in visionOS
22 |         }
23 |
24 |         func replacementMetadata(for photo: AVCapturePhoto) -> [String : Any]? {
   |                                             `- error: 'AVCapturePhoto' is unavailable in visionOS
25 |             return photo.metadata
26 |         }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:1979:12: note: 'AVCapturePhoto' has been explicitly marked unavailable here
1977 |  */
1978 | API_AVAILABLE(macos(10.15), ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
1979 | @interface AVCapturePhoto : NSObject
     |            `- note: 'AVCapturePhoto' has been explicitly marked unavailable here
1980 | {
1981 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCaptureDelegate.swift:16:33: error: 'AVCapturePhotoFileDataRepresentationCustomizer' is unavailable in visionOS
14 |     }
15 |
16 |     class Customizer: NSObject, AVCapturePhotoFileDataRepresentationCustomizer {
   |                                 `- error: 'AVCapturePhotoFileDataRepresentationCustomizer' is unavailable in visionOS
17 |
18 |         private let photo: AVCapturePhoto
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:2358:11: note: 'AVCapturePhotoFileDataRepresentationCustomizer' has been explicitly marked unavailable here
2356 |  */
2357 | API_AVAILABLE(ios(12.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos)
2358 | @protocol AVCapturePhotoFileDataRepresentationCustomizer <NSObject>
     |           `- note: 'AVCapturePhotoFileDataRepresentationCustomizer' has been explicitly marked unavailable here
2359 |
2360 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCaptureDelegate.swift:4:36: error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
 2 | import UIKit
 3 |
 4 | class AVCaptureDelegate: NSObject, AVCapturePhotoCaptureDelegate {
   |                                    `- error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
 5 |
 6 |     private var handler: CaptureHandler?
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:990:11: note: 'AVCapturePhotoCaptureDelegate' has been explicitly marked unavailable here
 988 |  */
 989 | API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
 990 | @protocol AVCapturePhotoCaptureDelegate <NSObject>
     |           `- note: 'AVCapturePhotoCaptureDelegate' has been explicitly marked unavailable here
 991 |
 992 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCaptureDelegate.swift:12:10: error: cannot override 'photoOutput' which has been marked unavailable
10 |     }
11 |
12 |     func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
   |          `- error: cannot override 'photoOutput' which has been marked unavailable
13 |         handler?.didCapturePhoto(photo.fileDataRepresentation(with: Customizer(photo: photo)), error: error)
14 |     }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:1053:1: note: 'photoOutput(_:didFinishProcessingPhoto:error:)' has been explicitly marked unavailable here
1051 |     This callback fires resolvedSettings.expectedPhotoCount number of times for a given capture request. Note that the photo parameter is always non nil, even if an error is returned. The delivered AVCapturePhoto's rawPhoto property can be queried to know if it's a RAW image or processed image.
1052 |  */
1053 | - (void)captureOutput:(AVCapturePhotoOutput *)output didFinishProcessingPhoto:(AVCapturePhoto *)photo error:(nullable NSError *)error API_AVAILABLE(ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos);
     | `- note: 'photoOutput(_:didFinishProcessingPhoto:error:)' has been explicitly marked unavailable here
1054 |
1055 | /*!
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraController.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile AVCameraController.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraSession.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile AVCameraSession.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCaptureDelegate.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile AVCaptureDelegate.swift
SwiftCompile normal arm64 Compiling\ SetZoomUseCase.swift,\ StartCameraUseCase.swift,\ TakePhotoUseCase.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/SetZoomUseCase.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/StartCameraUseCase.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/TakePhotoUseCase.swift (in target 'CameraCapture' from project 'CameraCapture')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/SetZoomUseCase.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile SetZoomUseCase.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/StartCameraUseCase.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile StartCameraUseCase.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/TakePhotoUseCase.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile TakePhotoUseCase.swift
SwiftCompile normal arm64 Compiling\ FocusUseCase.swift,\ RetrieveAvailableCamerasUseCase.swift,\ RotateCameraUseCase.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/FocusUseCase.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/RetrieveAvailableCamerasUseCase.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/RotateCameraUseCase.swift (in target 'CameraCapture' from project 'CameraCapture')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/FocusUseCase.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile FocusUseCase.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/RetrieveAvailableCamerasUseCase.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile RetrieveAvailableCamerasUseCase.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/RotateCameraUseCase.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile RotateCameraUseCase.swift
SwiftCompile normal arm64 Compiling\ PhotoCaptureError.swift,\ ZoomObserver.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Public\ API/Models/PhotoCaptureError.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Public\ API/Models/ZoomObserver.swift (in target 'CameraCapture' from project 'CameraCapture')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Public\ API/Models/PhotoCaptureError.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile PhotoCaptureError.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Public\ API/Models/ZoomObserver.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile ZoomObserver.swift
SwiftEmitModule normal arm64 Emitting\ module\ for\ CameraCapture (in target 'CameraCapture' from project 'CameraCapture')
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraController.swift:12:30: error: 'AVCapturePhotoOutput' is unavailable in visionOS
10 | class AVCameraController: CameraController {
11 |
12 |     private let photoOutput: AVCapturePhotoOutput
   |                              `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
13 |     private let delegate = AVCaptureDelegate()
14 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:50:12: note: 'AVCapturePhotoOutput' has been explicitly marked unavailable here
  48 |  */
  49 | API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
  50 | @interface AVCapturePhotoOutput : AVCaptureOutput
     |            `- note: 'AVCapturePhotoOutput' has been explicitly marked unavailable here
  51 | {
  52 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraController.swift:15:23: error: 'AVCapturePhotoOutput' is unavailable in visionOS
13 |     private let delegate = AVCaptureDelegate()
14 |
15 |     init(photoOutput: AVCapturePhotoOutput) {
   |                       `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
16 |         self.photoOutput = photoOutput
17 |     }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:50:12: note: 'AVCapturePhotoOutput' has been explicitly marked unavailable here
  48 |  */
  49 | API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
  50 | @interface AVCapturePhotoOutput : AVCaptureOutput
     |            `- note: 'AVCapturePhotoOutput' has been explicitly marked unavailable here
  51 | {
  52 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraController.swift:36:66: error: 'FlashMode' is unavailable in visionOS
34 |
35 | enum CameraFlashToAVSettings {
36 |     static func adapt(flashState: FlashState) -> AVCaptureDevice.FlashMode {
   |                                                                  `- error: 'FlashMode' is unavailable in visionOS
37 |         switch flashState {
38 |             case .on:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:967:28: note: 'FlashMode' has been explicitly marked unavailable here
 965 |     Indicates that the flash should be used automatically depending on ambient light conditions.
 966 |  */
 967 | typedef NS_ENUM(NSInteger, AVCaptureFlashMode) {
     |                            `- note: 'FlashMode' has been explicitly marked unavailable here
 968 |     AVCaptureFlashModeOff  = 0,
 969 |     AVCaptureFlashModeOn   = 1,
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraController.swift:49:58: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
47 |
48 | enum CameraOrientationToAVSettings {
49 |     static func adapt(orientation: CameraOrientation) -> AVCaptureVideoOrientation {
   |                                                          `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
50 |         switch orientation {
51 |         case .landscapeLeft:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:104:28: note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
 102 |
 103 | /// Constants indicating video orientation, for use with AVCaptureDeviceRotationCoordinator.
 104 | typedef NS_ENUM(NSInteger, AVCaptureVideoOrientation) {
     |                            `- note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
 105 |     /// Indicates that video should be oriented vertically, port on the bottom.
 106 |     AVCaptureVideoOrientationPortrait           = 1,
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCaptureDelegate.swift:12:32: error: 'AVCapturePhotoOutput' is unavailable in visionOS
10 |     }
11 |
12 |     func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
   |                                `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
13 |         handler?.didCapturePhoto(photo.fileDataRepresentation(with: Customizer(photo: photo)), error: error)
14 |     }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:50:12: note: 'AVCapturePhotoOutput' has been explicitly marked unavailable here
  48 |  */
  49 | API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
  50 | @interface AVCapturePhotoOutput : AVCaptureOutput
     |            `- note: 'AVCapturePhotoOutput' has been explicitly marked unavailable here
  51 | {
  52 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCaptureDelegate.swift:12:86: error: 'AVCapturePhoto' is unavailable in visionOS
10 |     }
11 |
12 |     func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
   |                                                                                      `- error: 'AVCapturePhoto' is unavailable in visionOS
13 |         handler?.didCapturePhoto(photo.fileDataRepresentation(with: Customizer(photo: photo)), error: error)
14 |     }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:1979:12: note: 'AVCapturePhoto' has been explicitly marked unavailable here
1977 |  */
1978 | API_AVAILABLE(macos(10.15), ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
1979 | @interface AVCapturePhoto : NSObject
     |            `- note: 'AVCapturePhoto' has been explicitly marked unavailable here
1980 | {
1981 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCaptureDelegate.swift:18:28: error: 'AVCapturePhoto' is unavailable in visionOS
16 |     class Customizer: NSObject, AVCapturePhotoFileDataRepresentationCustomizer {
17 |
18 |         private let photo: AVCapturePhoto
   |                            `- error: 'AVCapturePhoto' is unavailable in visionOS
19 |
20 |         init(photo: AVCapturePhoto) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:1979:12: note: 'AVCapturePhoto' has been explicitly marked unavailable here
1977 |  */
1978 | API_AVAILABLE(macos(10.15), ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
1979 | @interface AVCapturePhoto : NSObject
     |            `- note: 'AVCapturePhoto' has been explicitly marked unavailable here
1980 | {
1981 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCaptureDelegate.swift:20:21: error: 'AVCapturePhoto' is unavailable in visionOS
18 |         private let photo: AVCapturePhoto
19 |
20 |         init(photo: AVCapturePhoto) {
   |                     `- error: 'AVCapturePhoto' is unavailable in visionOS
21 |             self.photo = photo
22 |         }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:1979:12: note: 'AVCapturePhoto' has been explicitly marked unavailable here
1977 |  */
1978 | API_AVAILABLE(macos(10.15), ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
1979 | @interface AVCapturePhoto : NSObject
     |            `- note: 'AVCapturePhoto' has been explicitly marked unavailable here
1980 | {
1981 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCaptureDelegate.swift:24:45: error: 'AVCapturePhoto' is unavailable in visionOS
22 |         }
23 |
24 |         func replacementMetadata(for photo: AVCapturePhoto) -> [String : Any]? {
   |                                             `- error: 'AVCapturePhoto' is unavailable in visionOS
25 |             return photo.metadata
26 |         }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:1979:12: note: 'AVCapturePhoto' has been explicitly marked unavailable here
1977 |  */
1978 | API_AVAILABLE(macos(10.15), ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
1979 | @interface AVCapturePhoto : NSObject
     |            `- note: 'AVCapturePhoto' has been explicitly marked unavailable here
1980 | {
1981 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCaptureDelegate.swift:16:33: error: 'AVCapturePhotoFileDataRepresentationCustomizer' is unavailable in visionOS
14 |     }
15 |
16 |     class Customizer: NSObject, AVCapturePhotoFileDataRepresentationCustomizer {
   |                                 `- error: 'AVCapturePhotoFileDataRepresentationCustomizer' is unavailable in visionOS
17 |
18 |         private let photo: AVCapturePhoto
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:2358:11: note: 'AVCapturePhotoFileDataRepresentationCustomizer' has been explicitly marked unavailable here
2356 |  */
2357 | API_AVAILABLE(ios(12.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos)
2358 | @protocol AVCapturePhotoFileDataRepresentationCustomizer <NSObject>
     |           `- note: 'AVCapturePhotoFileDataRepresentationCustomizer' has been explicitly marked unavailable here
2359 |
2360 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCaptureDelegate.swift:4:36: error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
 2 | import UIKit
 3 |
 4 | class AVCaptureDelegate: NSObject, AVCapturePhotoCaptureDelegate {
   |                                    `- error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
 5 |
 6 |     private var handler: CaptureHandler?
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:990:11: note: 'AVCapturePhotoCaptureDelegate' has been explicitly marked unavailable here
 988 |  */
 989 | API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
 990 | @protocol AVCapturePhotoCaptureDelegate <NSObject>
     |           `- note: 'AVCapturePhotoCaptureDelegate' has been explicitly marked unavailable here
 991 |
 992 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCaptureDelegate.swift:12:10: error: cannot override 'photoOutput' which has been marked unavailable
10 |     }
11 |
12 |     func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
   |          `- error: cannot override 'photoOutput' which has been marked unavailable
13 |         handler?.didCapturePhoto(photo.fileDataRepresentation(with: Customizer(photo: photo)), error: error)
14 |     }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:1053:1: note: 'photoOutput(_:didFinishProcessingPhoto:error:)' has been explicitly marked unavailable here
1051 |     This callback fires resolvedSettings.expectedPhotoCount number of times for a given capture request. Note that the photo parameter is always non nil, even if an error is returned. The delivered AVCapturePhoto's rawPhoto property can be queried to know if it's a RAW image or processed image.
1052 |  */
1053 | - (void)captureOutput:(AVCapturePhotoOutput *)output didFinishProcessingPhoto:(AVCapturePhoto *)photo error:(nullable NSError *)error API_AVAILABLE(ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos);
     | `- note: 'photoOutput(_:didFinishProcessingPhoto:error:)' has been explicitly marked unavailable here
1054 |
1055 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Adapters.swift:59:55: error: 'DeviceType' is only available in visionOS 2.1 or newer
27 | }
28 |
29 | enum AVCaptureDeviceToCameraAdapter {
   |      `- note: add '@available' attribute to enclosing enum
30 |
31 |     static func adapt(device: AVCaptureDevice, flashDataSource: FlashDataSource) -> Device {
   :
57 |     }
58 |
59 |     private static func adapt(device: AVCaptureDevice.DeviceType?) -> DeviceType {
   |                         |                             `- error: 'DeviceType' is only available in visionOS 2.1 or newer
   |                         `- note: add '@available' attribute to enclosing static method
60 |         guard let device = device else {
61 |             return .unspecified
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Views/PreviewView.swift:6:31: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
  4 | class PreviewView: UIView {
  5 |
  6 |     private let previewLayer: AVCaptureVideoPreviewLayer
    |                               `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
  7 |     private let presenter: Presenter
  8 |     private var pinchRecognizer: UIPinchGestureRecognizer!
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureVideoPreviewLayer.h:33:12: note: 'AVCaptureVideoPreviewLayer' has been explicitly marked unavailable here
 31 |  */
 32 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
 33 | @interface AVCaptureVideoPreviewLayer : CALayer
    |            `- note: 'AVCaptureVideoPreviewLayer' has been explicitly marked unavailable here
 34 | {
 35 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Views/PreviewView.swift:11:24: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
  9 |     private var tapRecognizer: UITapGestureRecognizer!
 10 |
 11 |     init(previewLayer: AVCaptureVideoPreviewLayer,
    |                        `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 12 |          presenter: Presenter) {
 13 |         self.previewLayer = previewLayer
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureVideoPreviewLayer.h:33:12: note: 'AVCaptureVideoPreviewLayer' has been explicitly marked unavailable here
 31 |  */
 32 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
 33 | @interface AVCaptureVideoPreviewLayer : CALayer
    |            `- note: 'AVCaptureVideoPreviewLayer' has been explicitly marked unavailable here
 34 | {
 35 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Views/PreviewView.swift:47:76: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
 45 |     }
 46 |
 47 |     private func videoOrientation(viewOrientation: UIDeviceOrientation) -> AVCaptureVideoOrientation? {
    |                                                                            `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
 48 |         switch viewOrientation {
 49 |         case .portraitUpsideDown: return .portraitUpsideDown
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:104:28: note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
 102 |
 103 | /// Constants indicating video orientation, for use with AVCaptureDeviceRotationCoordinator.
 104 | typedef NS_ENUM(NSInteger, AVCaptureVideoOrientation) {
     |                            `- note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
 105 |     /// Indicates that video should be oriented vertically, port on the bottom.
 106 |     AVCaptureVideoOrientationPortrait           = 1,
Failed frontend command:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraController.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCameraSession.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVCaptureDelegate.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVDataSource.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVFlashController.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVFocusController.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/AVFoundation/AVZoomController.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Adapters.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/CameraRepo.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/CaptureHandler.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/DefaultCamera.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/SettingsRepo.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/FocusUseCase.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/RetrieveAvailableCamerasUseCase.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/RotateCameraUseCase.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/SetCameraUseCase.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/SetFlashStateUseCase.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/SetRotationUseCase.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/SetZoomUseCase.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/StartCameraUseCase.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Use\ Cases/TakePhotoUseCase.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Views/Presenter.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Implementation/Views/PreviewView.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Public\ API/Camera.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Public\ API/CameraFactory.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Public\ API/Models/CameraSettings.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Public\ API/Models/Device.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Public\ API/Models/PhotoCaptureError.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Public\ API/Models/ZoomObserver.swift -target arm64-apple-xros1.0 -disable-cross-import-overlay-search -swift-module-cross-import AVKit /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS.sdk/System/Library/Frameworks/AVKit.framework/Modules/AVKit.swiftcrossimport/GroupActivities.swiftoverlay -swift-module-cross-import AVKit /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS.sdk/System/Library/Frameworks/AVKit.framework/Modules/AVKit.swiftcrossimport/SwiftUI.swiftoverlay -swift-module-cross-import AVKit /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVKit.framework/Modules/AVKit.swiftcrossimport/GroupActivities.swiftoverlay -swift-module-cross-import AVKit /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVKit.framework/Modules/AVKit.swiftcrossimport/SwiftUI.swiftoverlay -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib/swift/host/plugins/libPreviewsMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/bin/swift-plugin-server\#PreviewsMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/bin/swift-plugin-server\#SwiftMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib/swift/host/plugins/libSwiftUIMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/bin/swift-plugin-server\#SwiftUIMacros -disable-implicit-swift-modules -Xcc -fno-implicit-modules -Xcc -fno-implicit-module-maps -explicit-swift-module-map-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraCapture.build/Debug-xros/CameraCapture-t.build/Objects-normal/arm64/CameraCapture-dependencies-1.json -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/Developer/Library/Frameworks -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -no-color-diagnostics -Xcc -fno-color-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -profile-generate -profile-coverage-mapping -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/xros27.0-24M361-e829b21a6f8c9b70876ba0858053c044735bd543db762f57723cac368afd1ce4.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraCapture.build/Debug-xros/CameraCapture-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraCapture.build/Debug-xros/CameraCapture-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraCapture.build/Debug-xros/CameraCapture-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name CameraCapture -package-name spi_builder_workspace -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraCapture.build/Debug-xros/CameraCapture-t.build/Objects-normal/arm64/CameraCapture_const_extract_protocols.json -disable-clang-spi -clang-target arm64-apple-xros27.0 -target-sdk-version 27.0 -target-sdk-name xros27.0 -in-process-plugin-server-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -emit-module-doc-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraCapture.build/Debug-xros/CameraCapture-t.build/Objects-normal/arm64/CameraCapture.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraCapture.build/Debug-xros/CameraCapture-t.build/Objects-normal/arm64/CameraCapture.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraCapture.build/Debug-xros/CameraCapture-t.build/Objects-normal/arm64/CameraCapture-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraCapture.build/Debug-xros/CameraCapture-t.build/Objects-normal/arm64/CameraCapture-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraCapture.build/Debug-xros/CameraCapture-t.build/Objects-normal/arm64/CameraCapture-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraCapture.build/Debug-xros/CameraCapture-t.build/Objects-normal/arm64/CameraCapture.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraCapture.build/Debug-xros/CameraCapture-t.build/Objects-normal/arm64/CameraCapture.abi.json
SwiftCompile normal arm64 (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode

SwiftCompile normal arm64 Compiling\ CameraFactory.swift,\ CameraSettings.swift,\ Device.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Public\ API/CameraFactory.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Public\ API/Models/CameraSettings.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Public\ API/Models/Device.swift (in target 'CameraCapture' from project 'CameraCapture')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Public\ API/CameraFactory.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CameraFactory.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Public\ API/Models/CameraSettings.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CameraSettings.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraCapture/Public\ API/Models/Device.swift (in target 'CameraCapture' from project 'CameraCapture')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Device.swift
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
2026-09-20 08:27:22.091 xcodebuild[780:4643] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
2026-09-20 08:27:22.242 xcodebuild[780:4643] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
** BUILD FAILED **
The following build commands failed:
	SwiftEmitModule normal arm64 Emitting\ module\ for\ CameraCapture (in target 'CameraCapture' from project 'CameraCapture')
	SwiftCompile normal arm64 (in target 'CameraCapture' from project 'CameraCapture')
	Building workspace CameraCapture with scheme CameraCapture
(3 failures)
BUILD FAILURE 6.4 visionOS