The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SinglePageScanner, reference master (acc3ae), with Swift 6.4 for visionOS using Xcode 27.0 on 17 Sep 2026 09:36:43 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 SinglePageScanner -destination generic/platform=xrOS

Build Log

1444 |     Starting in iOS 14.5 if you disable geometric distortion correction, the high resolution photo emitted by AVCapturePhotoOutput may be is smaller depending on the format.
1445 |  */
1446 | @property(nonatomic, getter=isHighResolutionPhotoEnabled) BOOL highResolutionPhotoEnabled API_DEPRECATED("Use maxPhotoDimensions instead.", macos(10.15, 13.0), ios(10.0, 16.0), macCatalyst(14.0, 16.0)) API_UNAVAILABLE(tvos, visionos);
     |                                                                `- note: 'isHighResolutionPhotoEnabled' has been explicitly marked unavailable here
1447 |
1448 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/CaptureSessionManager.swift:164:23: error: 'isAutoStillImageStabilizationEnabled' is unavailable in visionOS
162 |         let photoSettings = AVCapturePhotoSettings()
163 |         photoSettings.isHighResolutionPhotoEnabled = true
164 |         photoSettings.isAutoStillImageStabilizationEnabled = true
    |                       `- error: 'isAutoStillImageStabilizationEnabled' is unavailable in visionOS
165 |         photoOutput.capturePhoto(with: photoSettings, delegate: self)
166 |     }
/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:1394:72: note: 'isAutoStillImageStabilizationEnabled' has been explicitly marked unavailable here
1392 |     As of iOS 13 hardware, the AVCapturePhotoOutput is capable of applying a variety of multi-image fusion techniques to improve photo quality (reduce noise, preserve detail in low light, freeze motion, etc), all of which have been previously lumped under the stillImageStabilization moniker. This property should no longer be used as it no longer provides meaningful information about the techniques used to improve quality in a photo capture. Instead, you should use -photoQualityPrioritization to indicate your preferred quality vs speed.
1393 |  */
1394 | @property(nonatomic, getter=isAutoStillImageStabilizationEnabled) BOOL autoStillImageStabilizationEnabled API_DEPRECATED_WITH_REPLACEMENT("photoQualityPrioritization", ios(10.0, 13.0)) API_UNAVAILABLE(macos, visionos)  API_UNAVAILABLE(tvos);
     |                                                                        `- note: 'isAutoStillImageStabilizationEnabled' has been explicitly marked unavailable here
1395 |
1396 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/CaptureSessionManager.swift:203:21: warning: call to method 'capturePhoto' in closure requires explicit use of 'self' to make capture semantics explicit; this is an error in the Swift 6 language mode
201 |                 strongSelf.displayRectangleResult(rectangleResult: RectangleDetectorResult(rectangle: rectangle, imageSize: imageSize))
202 |                 if shouldAutoScan, CaptureSession.current.isAutoScanEnabled, !CaptureSession.current.isEditing {
203 |                     capturePhoto()
    |                     `- warning: call to method 'capturePhoto' in closure requires explicit use of 'self' to make capture semantics explicit; this is an error in the Swift 6 language mode
204 |                 }
205 |             }
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/CaptureSessionManager.swift:261:29: error: 'AVCapturePhotoOutput' is unavailable in visionOS
259 |
260 |         if let sampleBuffer = photoSampleBuffer,
261 |             let imageData = AVCapturePhotoOutput.jpegPhotoDataRepresentation(forJPEGSampleBuffer: sampleBuffer, previewPhotoSampleBuffer: nil) {
    |                             `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
262 |             completeImageCapture(with: imageData)
263 |         } 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/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/SinglePageScanner/Scan/CaptureSessionManager.swift:261:50: error: 'jpegPhotoDataRepresentation(forJPEGSampleBuffer:previewPhotoSampleBuffer:)' is unavailable in visionOS
259 |
260 |         if let sampleBuffer = photoSampleBuffer,
261 |             let imageData = AVCapturePhotoOutput.jpegPhotoDataRepresentation(forJPEGSampleBuffer: sampleBuffer, previewPhotoSampleBuffer: nil) {
    |                                                  `- error: 'jpegPhotoDataRepresentation(forJPEGSampleBuffer:previewPhotoSampleBuffer:)' is unavailable in visionOS
262 |             completeImageCapture(with: imageData)
263 |         } 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/AVCapturePhotoOutput.h:644:1: note: 'jpegPhotoDataRepresentation(forJPEGSampleBuffer:previewPhotoSampleBuffer:)' has been explicitly marked unavailable here
 642 |     AVCapturePhotoOutput's depecrated -captureOutput:didFinishProcessingPhotoSampleBuffer:previewPhotoSampleBuffer:resolvedSettings:bracketSettings:error: callback delivers JPEG photos to clients as CMSampleBuffers. To re-package these buffers in a data format suitable for writing to a JPEG file, you may call this class method, optionally inserting your own metadata into the JPEG CMSampleBuffer first, and optionally passing a preview image to be written to the JPEG file format as a thumbnail image.
 643 |  */
 644 | + (nullable NSData *)JPEGPhotoDataRepresentationForJPEGSampleBuffer:(CMSampleBufferRef)JPEGSampleBuffer previewPhotoSampleBuffer:(nullable CMSampleBufferRef)previewPhotoSampleBuffer API_DEPRECATED_WITH_REPLACEMENT("-[AVCapturePhoto fileDataRepresentation]", ios(10.0, 11.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(tvos);
     | `- note: 'jpegPhotoDataRepresentation(forJPEGSampleBuffer:previewPhotoSampleBuffer:)' has been explicitly marked unavailable here
 645 |
 646 | /*!
SwiftCompile normal arm64 Compiling\ ShutterButton.swift,\ CaptureSession+Flash.swift,\ CaptureSession+Focus.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/ShutterButton.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Session/CaptureSession+Flash.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Session/CaptureSession+Focus.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/ShutterButton.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile ShutterButton.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Session/CaptureSession+Flash.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CaptureSession+Flash.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Session/CaptureSession+Focus.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CaptureSession+Focus.swift
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/ShutterButton.swift:20:43: error: 'UIImpactFeedbackGenerator' is unavailable in visionOS
 18 |     private let innerRingRatio: CGFloat = 0.75
 19 |
 20 |     private let impactFeedbackGenerator = UIImpactFeedbackGenerator(style: .light)
    |                                           `- error: 'UIImpactFeedbackGenerator' is unavailable in visionOS
 21 |
 22 |     override var isHighlighted: Bool {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImpactFeedbackGenerator.h:25:12: note: 'UIImpactFeedbackGenerator' has been explicitly marked unavailable here
23 | // UIImpactFeedbackGenerator is used to give user feedback when an impact between UI elements occurs
24 | UIKIT_EXTERN API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(visionos, tvos) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
25 | @interface UIImpactFeedbackGenerator : UIFeedbackGenerator
   |            `- note: 'UIImpactFeedbackGenerator' has been explicitly marked unavailable here
26 |
27 | /// set a style on the feedback generator and attach it to the provided view as an interaction.
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/ShutterButton.swift:54:46: error: 'UIScreen' is unavailable in visionOS
 52 |         outterRingLayer.path = pathForOutterRing(inRect: rect).cgPath
 53 |         outterRingLayer.fillColor = UIColor.white.cgColor
 54 |         outterRingLayer.rasterizationScale = UIScreen.main.scale
    |                                              `- error: 'UIScreen' is unavailable in visionOS
 55 |         outterRingLayer.shouldRasterize = true
 56 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:54:12: note: 'UIScreen' has been explicitly marked unavailable here
 52 |
 53 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(visionos, watchos) NS_SWIFT_UI_ACTOR
 54 | @interface UIScreen : NSObject <UITraitEnvironment>
    |            `- note: 'UIScreen' has been explicitly marked unavailable here
 55 |
 56 | @property(class, nonatomic, readonly) NSArray<UIScreen *> *screens API_DEPRECATED("Use UIApplication.shared.openSessions to find open sessions with scenes from other screens", ios(3.2, 16.0), visionos(1.0, 1.0)) API_UNAVAILABLE(watchos); // all screens currently attached to the device
SwiftCompile normal arm64 Compiling\ CGImagePropertyOrientation.swift,\ CGPoint+Utils.swift,\ CGRect+Utils.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/CGImagePropertyOrientation.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/CGPoint+Utils.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/CGRect+Utils.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/CGImagePropertyOrientation.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CGImagePropertyOrientation.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/CGPoint+Utils.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CGPoint+Utils.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/CGRect+Utils.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CGRect+Utils.swift
SwiftCompile normal arm64 Compiling\ CGSize+Utils.swift,\ CIImage+Utils.swift,\ UIImage+Orientation.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/CGSize+Utils.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/CIImage+Utils.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/UIImage+Orientation.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/CGSize+Utils.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CGSize+Utils.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/CIImage+Utils.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CIImage+Utils.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/UIImage+Orientation.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile UIImage+Orientation.swift
SwiftCompile normal arm64 Compiling\ UIImage+Utils.swift,\ ImageScannerController.swift,\ CaptureDevice.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/UIImage+Utils.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/ImageScannerController.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/ImageScannerController.swift:197:6: error: stored properties cannot be marked unavailable with '@available'
195 |     public var detectedRectangle: Quadrilateral
196 |
197 |     @available(*, unavailable, renamed: "originalScan")
    |      `- error: stored properties cannot be marked unavailable with '@available'
198 |     public var originalImage: UIImage?
199 |
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/ImageScannerController.swift:200:6: error: stored properties cannot be marked unavailable with '@available'
198 |     public var originalImage: UIImage?
199 |
200 |     @available(*, unavailable, renamed: "croppedScan")
    |      `- error: stored properties cannot be marked unavailable with '@available'
201 |     public var scannedImage: UIImage?
202 |
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/ImageScannerController.swift:203:6: error: stored properties cannot be marked unavailable with '@available'
201 |     public var scannedImage: UIImage?
202 |
203 |     @available(*, unavailable, renamed: "enhancedScan")
    |      `- error: stored properties cannot be marked unavailable with '@available'
204 |     public var enhancedImage: UIImage?
205 |
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/ImageScannerController.swift:206:6: error: stored properties cannot be marked unavailable with '@available'
204 |     public var enhancedImage: UIImage?
205 |
206 |     @available(*, unavailable, renamed: "doesUserPreferEnhancedScan")
    |      `- error: stored properties cannot be marked unavailable with '@available'
207 |     public var doesUserPreferEnhancedImage: Bool = false
208 |
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:12:25: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead [#deprecation]
10 | import AVFoundation
11 |
12 | protocol CaptureDevice: class {
   |                         `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead [#deprecation]
13 |     var torchMode: AVCaptureDevice.TorchMode { get set }
14 |     var isTorchAvailable: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:13:36: error: 'TorchMode' is unavailable in visionOS
11 |
12 | protocol CaptureDevice: class {
13 |     var torchMode: AVCaptureDevice.TorchMode { get set }
   |                                    `- error: 'TorchMode' is unavailable in visionOS
14 |     var isTorchAvailable: Bool { get }
15 |
/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:1049:28: note: 'TorchMode' has been explicitly marked unavailable here
1047 |     Indicates that the torch should be used automatically depending on ambient light conditions.
1048 |  */
1049 | typedef NS_ENUM(NSInteger, AVCaptureTorchMode) {
     |                            `- note: 'TorchMode' has been explicitly marked unavailable here
1050 |     AVCaptureTorchModeOff  = 0,
1051 |     AVCaptureTorchModeOn   = 1,
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:16:36: error: 'FocusMode' is unavailable in visionOS
14 |     var isTorchAvailable: Bool { get }
15 |
16 |     var focusMode: AVCaptureDevice.FocusMode { get set }
   |                                    `- error: 'FocusMode' is unavailable in visionOS
17 |     var focusPointOfInterest: CGPoint { get set }
18 |     var isFocusPointOfInterestSupported: Bool { get }
/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:1156:28: note: 'FocusMode' has been explicitly marked unavailable here
1154 |     Indicates that the device should automatically focus when needed.
1155 |  */
1156 | typedef NS_ENUM(NSInteger, AVCaptureFocusMode) {
     |                            `- note: 'FocusMode' has been explicitly marked unavailable here
1157 |     AVCaptureFocusModeLocked              = 0,
1158 |     AVCaptureFocusModeAutoFocus           = 1,
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:20:39: error: 'ExposureMode' is unavailable in visionOS
18 |     var isFocusPointOfInterestSupported: Bool { get }
19 |
20 |     var exposureMode: AVCaptureDevice.ExposureMode { get set }
   |                                       `- error: 'ExposureMode' is unavailable in visionOS
21 |     var exposurePointOfInterest: CGPoint { get set }
22 |     var isExposurePointOfInterestSupported: Bool { get }
/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:1422:28: note: 'ExposureMode' has been explicitly marked unavailable here
1420 |     Indicates that the device should only adjust exposure according to user provided ISO, exposureDuration values.
1421 |  */
1422 | typedef NS_ENUM(NSInteger, AVCaptureExposureMode) {
     |                            `- note: 'ExposureMode' has been explicitly marked unavailable here
1423 |     AVCaptureExposureModeLocked                            = 0,
1424 |     AVCaptureExposureModeAutoExpose                        = 1,
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:26:60: error: 'FocusMode' is unavailable in visionOS
24 |     var isSubjectAreaChangeMonitoringEnabled: Bool { get set }
25 |
26 |     func isFocusModeSupported(_ focusMode: AVCaptureDevice.FocusMode) -> Bool
   |                                                            `- error: 'FocusMode' is unavailable in visionOS
27 |     func isExposureModeSupported(_ exposureMode: AVCaptureDevice.ExposureMode) -> Bool
28 |     func 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:1156:28: note: 'FocusMode' has been explicitly marked unavailable here
1154 |     Indicates that the device should automatically focus when needed.
1155 |  */
1156 | typedef NS_ENUM(NSInteger, AVCaptureFocusMode) {
     |                            `- note: 'FocusMode' has been explicitly marked unavailable here
1157 |     AVCaptureFocusModeLocked              = 0,
1158 |     AVCaptureFocusModeAutoFocus           = 1,
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:27:66: error: 'ExposureMode' is unavailable in visionOS
25 |
26 |     func isFocusModeSupported(_ focusMode: AVCaptureDevice.FocusMode) -> Bool
27 |     func isExposureModeSupported(_ exposureMode: AVCaptureDevice.ExposureMode) -> Bool
   |                                                                  `- error: 'ExposureMode' is unavailable in visionOS
28 |     func unlockForConfiguration()
29 |     func lockForConfiguration() throws
/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:1422:28: note: 'ExposureMode' has been explicitly marked unavailable here
1420 |     Indicates that the device should only adjust exposure according to user provided ISO, exposureDuration values.
1421 |  */
1422 | typedef NS_ENUM(NSInteger, AVCaptureExposureMode) {
     |                            `- note: 'ExposureMode' has been explicitly marked unavailable here
1423 |     AVCaptureExposureModeLocked                            = 0,
1424 |     AVCaptureExposureModeAutoExpose                        = 1,
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:32:1: error: type 'AVCaptureDevice' does not conform to protocol 'CaptureDevice'
30 | }
31 |
32 | extension AVCaptureDevice: CaptureDevice { }
   | `- error: type 'AVCaptureDevice' does not conform to protocol 'CaptureDevice'
33 |
34 | final class MockCaptureDevice: CaptureDevice {
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:32:1: error: unavailable property 'isTorchAvailable' was used to satisfy a requirement of protocol 'CaptureDevice'
12 | protocol CaptureDevice: class {
13 |     var torchMode: AVCaptureDevice.TorchMode { get set }
14 |     var isTorchAvailable: Bool { get }
   |         `- note: requirement 'isTorchAvailable' declared here
15 |
16 |     var focusMode: AVCaptureDevice.FocusMode { get set }
   :
30 | }
31 |
32 | extension AVCaptureDevice: CaptureDevice { }
   | `- error: unavailable property 'isTorchAvailable' was used to satisfy a requirement of protocol 'CaptureDevice'
33 |
34 | final class MockCaptureDevice: CaptureDevice {
/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:1084:62: note: 'isTorchAvailable' declared here
1082 |     The value of this property is a BOOL indicating whether the receiver's torch is currently available. The torch may become unavailable if, for example, the device overheats and needs to cool off. This property is key-value observable.
1083 |  */
1084 | @property(nonatomic, readonly, getter=isTorchAvailable) BOOL torchAvailable API_AVAILABLE(macos(10.15), ios(5.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos);
     |                                                              `- note: 'isTorchAvailable' declared here
1085 |
1086 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:32:1: error: unavailable property 'isSubjectAreaChangeMonitoringEnabled' was used to satisfy a requirement of protocol 'CaptureDevice'
22 |     var isExposurePointOfInterestSupported: Bool { get }
23 |
24 |     var isSubjectAreaChangeMonitoringEnabled: Bool { get set }
   |         `- note: requirement 'isSubjectAreaChangeMonitoringEnabled' declared here
25 |
26 |     func isFocusModeSupported(_ focusMode: AVCaptureDevice.FocusMode) -> Bool
   :
30 | }
31 |
32 | extension AVCaptureDevice: CaptureDevice { }
   | `- error: unavailable property 'isSubjectAreaChangeMonitoringEnabled' was used to satisfy a requirement of protocol 'CaptureDevice'
33 |
34 | final class MockCaptureDevice: CaptureDevice {
/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:2012:72: note: 'isSubjectAreaChangeMonitoringEnabled' declared here
2010 |     The value of this property is a BOOL indicating whether the receiver should monitor the video subject area for changes, such as lighting changes, substantial movement, etc. If subject area change monitoring is enabled, the receiver sends an AVCaptureDeviceSubjectAreaDidChangeNotification whenever it detects a change to the subject area, at which time an interested client may wish to re-focus, adjust exposure, white balance, etc. The receiver must be locked for configuration using lockForConfiguration: before clients can set the value of this property.
2011 |  */
2012 | @property(nonatomic, getter=isSubjectAreaChangeMonitoringEnabled) BOOL subjectAreaChangeMonitoringEnabled API_AVAILABLE(ios(5.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
     |                                                                        `- note: 'isSubjectAreaChangeMonitoringEnabled' declared here
2013 |
2014 | @end
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:35:36: error: 'TorchMode' is unavailable in visionOS
33 |
34 | final class MockCaptureDevice: CaptureDevice {
35 |     var torchMode: AVCaptureDevice.TorchMode = .off
   |                                    `- error: 'TorchMode' is unavailable in visionOS
36 |     var isTorchAvailable: Bool = true
37 |
/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:1049:28: note: 'TorchMode' has been explicitly marked unavailable here
1047 |     Indicates that the torch should be used automatically depending on ambient light conditions.
1048 |  */
1049 | typedef NS_ENUM(NSInteger, AVCaptureTorchMode) {
     |                            `- note: 'TorchMode' has been explicitly marked unavailable here
1050 |     AVCaptureTorchModeOff  = 0,
1051 |     AVCaptureTorchModeOn   = 1,
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:38:36: error: 'FocusMode' is unavailable in visionOS
36 |     var isTorchAvailable: Bool = true
37 |
38 |     var focusMode: AVCaptureDevice.FocusMode = .continuousAutoFocus
   |                                    `- error: 'FocusMode' is unavailable in visionOS
39 |     var focusPointOfInterest: CGPoint = .zero
40 |     var isFocusPointOfInterestSupported: Bool = true
/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:1156:28: note: 'FocusMode' has been explicitly marked unavailable here
1154 |     Indicates that the device should automatically focus when needed.
1155 |  */
1156 | typedef NS_ENUM(NSInteger, AVCaptureFocusMode) {
     |                            `- note: 'FocusMode' has been explicitly marked unavailable here
1157 |     AVCaptureFocusModeLocked              = 0,
1158 |     AVCaptureFocusModeAutoFocus           = 1,
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:42:39: error: 'ExposureMode' is unavailable in visionOS
40 |     var isFocusPointOfInterestSupported: Bool = true
41 |
42 |     var exposureMode: AVCaptureDevice.ExposureMode = .continuousAutoExposure
   |                                       `- error: 'ExposureMode' is unavailable in visionOS
43 |     var exposurePointOfInterest: CGPoint = .zero
44 |     var isExposurePointOfInterestSupported: Bool = true
/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:1422:28: note: 'ExposureMode' has been explicitly marked unavailable here
1420 |     Indicates that the device should only adjust exposure according to user provided ISO, exposureDuration values.
1421 |  */
1422 | typedef NS_ENUM(NSInteger, AVCaptureExposureMode) {
     |                            `- note: 'ExposureMode' has been explicitly marked unavailable here
1423 |     AVCaptureExposureModeLocked                            = 0,
1424 |     AVCaptureExposureModeAutoExpose                        = 1,
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:55:60: error: 'FocusMode' is unavailable in visionOS
53 |     }
54 |
55 |     func isFocusModeSupported(_ focusMode: AVCaptureDevice.FocusMode) -> Bool {
   |                                                            `- error: 'FocusMode' is unavailable in visionOS
56 |         return true
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:1156:28: note: 'FocusMode' has been explicitly marked unavailable here
1154 |     Indicates that the device should automatically focus when needed.
1155 |  */
1156 | typedef NS_ENUM(NSInteger, AVCaptureFocusMode) {
     |                            `- note: 'FocusMode' has been explicitly marked unavailable here
1157 |     AVCaptureFocusModeLocked              = 0,
1158 |     AVCaptureFocusModeAutoFocus           = 1,
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/UIImage+Utils.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile UIImage+Utils.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/ImageScannerController.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile ImageScannerController.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CaptureDevice.swift
SwiftCompile normal arm64 Compiling\ FocusRectangleView.swift,\ RectangleFeaturesFunnel.swift,\ ScannerViewController.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/FocusRectangleView.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/RectangleFeaturesFunnel.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/ScannerViewController.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/FocusRectangleView.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile FocusRectangleView.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/RectangleFeaturesFunnel.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile RectangleFeaturesFunnel.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/ScannerViewController.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile ScannerViewController.swift
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/ScannerViewController.swift:23:37: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 21 |
 22 |     private var captureSessionManager: CaptureSessionManager?
 23 |     private let videoPreviewLayer = AVCaptureVideoPreviewLayer()
    |                                     `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 24 |
 25 |     /// The view that shows the focus rectangle (when the user taps to focus, similar to the Camera app)
/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/SinglePageScanner/Scan/ScannerViewController.swift:95:121: error: 'AVCaptureDeviceSubjectAreaDidChange' is unavailable in visionOS
 93 |         originalBarStyle = navigationController?.navigationBar.barStyle
 94 |
 95 |         NotificationCenter.default.addObserver(self, selector: #selector(subjectAreaDidChange), name: Notification.Name.AVCaptureDeviceSubjectAreaDidChange, object: nil)
    |                                                                                                                         `- error: 'AVCaptureDeviceSubjectAreaDidChange' is unavailable in visionOS
 96 |     }
 97 |
AVFoundation.NSNotification.Name.AVCaptureDeviceSubjectAreaDidChange:9:23: note: 'AVCaptureDeviceSubjectAreaDidChange' has been explicitly marked unavailable here
 7 |     @available(visionOS, unavailable)
 8 |     @available(watchOS, unavailable)
 9 |     public static var AVCaptureDeviceSubjectAreaDidChange: NSNotification.Name { get }  }
   |                       `- note: 'AVCaptureDeviceSubjectAreaDidChange' has been explicitly marked unavailable here
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/ScannerViewController.swift:100:9: error: 'setNeedsStatusBarAppearanceUpdate()' is unavailable in visionOS
 98 |     override func viewWillAppear(_ animated: Bool) {
 99 |         super.viewWillAppear(animated)
100 |         setNeedsStatusBarAppearanceUpdate()
    |         `- error: 'setNeedsStatusBarAppearanceUpdate()' is unavailable in visionOS
101 |
102 |         CaptureSession.current.isEditing = false
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:334:1: note: 'setNeedsStatusBarAppearanceUpdate()' has been explicitly marked unavailable here
332 |
333 | // This should be called whenever the return values for the view controller's status bar attributes have changed. If it is called from within an animation block, the changes will be animated along with the rest of the animation block.
334 | - (void)setNeedsStatusBarAppearanceUpdate API_AVAILABLE(ios(7.0)) API_UNAVAILABLE(tvos, visionos);
    | `- note: 'setNeedsStatusBarAppearanceUpdate()' has been explicitly marked unavailable here
335 |
336 | /* This method returns either itself or the nearest ancestor that can perform the given action and, if applicable, has overridden UIViewController's default implementation of the action method. View controllers can return NO from canPerformAction:withSender: to opt out of being a target for a given action. */
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/ScannerViewController.swift:107:57: error: 'blackTranslucent' is unavailable in visionOS
105 |         UIApplication.shared.isIdleTimerDisabled = true
106 |
107 |         navigationController?.navigationBar.barStyle = .blackTranslucent
    |                                                         `- error: 'blackTranslucent' is unavailable in visionOS
108 |     }
109 |
UIKit.UIBarStyle.blackTranslucent:4:8: note: 'blackTranslucent' has been explicitly marked unavailable here
2 | @available(iOS, introduced: 2.0, deprecated: 13.0, message: "Use UIBarStyleBlack and set the translucent property to YES instead.")
3 |   @available(visionOS, unavailable)
4 |   case blackTranslucent}
  |        `- note: 'blackTranslucent' has been explicitly marked unavailable here
5 |
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/ScannerViewController.swift:123:44: error: 'default(for:)' is only available in visionOS 2.1 or newer
 11 |
 12 | /// The `ScannerViewController` offers an interface to give feedback to the user regarding quadrilaterals that are detected. It also gives the user the opportunity to capture an image with a detected rectangle.
 13 | final class ScannerViewController: UIViewController {
    |             `- note: add '@available' attribute to enclosing class
 14 |
 15 |     var singlePageAutoScan = false
    :
114 |     }
115 |
116 |     override func viewWillDisappear(_ animated: Bool) {
    |                   `- note: add '@available' attribute to enclosing instance method
117 |         super.viewWillDisappear(animated)
118 |         UIApplication.shared.isIdleTimerDisabled = false
    :
121 |         navigationController?.navigationBar.barStyle = originalBarStyle ?? .default
122 |         captureSessionManager?.stop()
123 |         guard let device = AVCaptureDevice.default(for: AVMediaType.video) else { return }
    |                                            |- error: 'default(for:)' is only available in visionOS 2.1 or newer
    |                                            `- note: add 'if #available' version check
124 |         if device.torchMode == .on {
125 |             toggleFlash()
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/ScannerViewController.swift:150:36: error: 'isFlashAvailable(for:)' is unavailable in visionOS
148 |         navigationItem.setRightBarButton(autoScanButton, animated: false)
149 |
150 |         if UIImagePickerController.isFlashAvailable(for: .rear) == false {
    |                                    `- error: 'isFlashAvailable(for:)' is unavailable in visionOS
151 |             let flashOffImage = UIImage(named: "flashUnavailable", in: Bundle(for: ScannerViewController.self), compatibleWith: nil)
152 |             flashButton.image = flashOffImage
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:75:1: note: 'isFlashAvailable(for:)' has been explicitly marked unavailable here
 73 |
 74 | + (BOOL)isCameraDeviceAvailable:(UIImagePickerControllerCameraDevice)cameraDevice                   API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // returns YES if camera device is available
 75 | + (BOOL)isFlashAvailableForCameraDevice:(UIImagePickerControllerCameraDevice)cameraDevice           API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // returns YES if camera device supports flash and torch.
    | `- note: 'isFlashAvailable(for:)' has been explicitly marked unavailable here
 76 | + (nullable NSArray<NSNumber *> *)availableCaptureModesForCameraDevice:(UIImagePickerControllerCameraDevice)cameraDevice API_UNAVAILABLE(visionos) API_AVAILABLE(ios(4.0)); // returns array of NSNumbers (UIImagePickerControllerCameraCaptureMode)
 77 |
SwiftCompile normal arm64 Compiling\ CaptureSession+Orientation.swift,\ CaptureSession.swift,\ SinglePageScanner.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Session/CaptureSession+Orientation.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Session/CaptureSession.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/SinglePageScanner.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Session/CaptureSession+Orientation.swift:49:37: error: 'orientation' is unavailable in visionOS
47 |             // We don't use this to check for "portrait" because only the accelerometer works when portrait lock is enabled.
48 |             // For some reason, the left/right orientations are incorrect (flipped) :/
49 |             switch UIDevice.current.orientation {
   |                                     `- error: 'orientation' is unavailable in visionOS
50 |             case .landscapeLeft:
51 |                 self.editImageOrientation = .right
/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.
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Session/CaptureSession+Orientation.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CaptureSession+Orientation.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Session/CaptureSession.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CaptureSession.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/SinglePageScanner.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile SinglePageScanner.swift
SwiftCompile normal arm64 Compiling\ QuadrilateralView.swift,\ VisionRectangleDetector.swift,\ EditScanViewController.swift,\ ZoomGestureController.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Common/QuadrilateralView.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Common/VisionRectangleDetector.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Edit/EditScanViewController.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Edit/ZoomGestureController.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Common/QuadrilateralView.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile QuadrilateralView.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Common/VisionRectangleDetector.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile VisionRectangleDetector.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Edit/EditScanViewController.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile EditScanViewController.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Edit/ZoomGestureController.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile ZoomGestureController.swift
SwiftCompile normal arm64 Compiling\ AVCaptureVideoOrientation+Utils.swift,\ Array+Utils.swift,\ CGAffineTransform+Utils.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/AVCaptureVideoOrientation+Utils.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/Array+Utils.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/CGAffineTransform+Utils.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/AVCaptureVideoOrientation+Utils.swift:13:11: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
11 | import UIKit
12 |
13 | extension AVCaptureVideoOrientation {
   |           `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
14 |
15 |     /// Maps UIDeviceOrientation to AVCaptureVideoOrientation
/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/SinglePageScanner/Extensions/AVCaptureVideoOrientation+Utils.swift:19:33: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
17 |         switch deviceOrientation {
18 |         case .portrait:
19 |             self.init(rawValue: AVCaptureVideoOrientation.portrait.rawValue)
   |                                 `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
20 |         case .portraitUpsideDown:
21 |             self.init(rawValue: AVCaptureVideoOrientation.portraitUpsideDown.rawValue)
/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/SinglePageScanner/Extensions/AVCaptureVideoOrientation+Utils.swift:21:33: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
19 |             self.init(rawValue: AVCaptureVideoOrientation.portrait.rawValue)
20 |         case .portraitUpsideDown:
21 |             self.init(rawValue: AVCaptureVideoOrientation.portraitUpsideDown.rawValue)
   |                                 `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
22 |         case .landscapeLeft:
23 |             self.init(rawValue: AVCaptureVideoOrientation.landscapeLeft.rawValue)
/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/SinglePageScanner/Extensions/AVCaptureVideoOrientation+Utils.swift:23:33: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
21 |             self.init(rawValue: AVCaptureVideoOrientation.portraitUpsideDown.rawValue)
22 |         case .landscapeLeft:
23 |             self.init(rawValue: AVCaptureVideoOrientation.landscapeLeft.rawValue)
   |                                 `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
24 |         case .landscapeRight:
25 |             self.init(rawValue: AVCaptureVideoOrientation.landscapeRight.rawValue)
/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/SinglePageScanner/Extensions/AVCaptureVideoOrientation+Utils.swift:25:33: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
23 |             self.init(rawValue: AVCaptureVideoOrientation.landscapeLeft.rawValue)
24 |         case .landscapeRight:
25 |             self.init(rawValue: AVCaptureVideoOrientation.landscapeRight.rawValue)
   |                                 `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
26 |         case .faceUp:
27 |             self.init(rawValue: AVCaptureVideoOrientation.portrait.rawValue)
/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/SinglePageScanner/Extensions/AVCaptureVideoOrientation+Utils.swift:27:33: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
25 |             self.init(rawValue: AVCaptureVideoOrientation.landscapeRight.rawValue)
26 |         case .faceUp:
27 |             self.init(rawValue: AVCaptureVideoOrientation.portrait.rawValue)
   |                                 `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
28 |         case .faceDown:
29 |             self.init(rawValue: AVCaptureVideoOrientation.portraitUpsideDown.rawValue)
/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/SinglePageScanner/Extensions/AVCaptureVideoOrientation+Utils.swift:29:33: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
27 |             self.init(rawValue: AVCaptureVideoOrientation.portrait.rawValue)
28 |         case .faceDown:
29 |             self.init(rawValue: AVCaptureVideoOrientation.portraitUpsideDown.rawValue)
   |                                 `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
30 |         default:
31 |             self.init(rawValue: AVCaptureVideoOrientation.portrait.rawValue)
/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,
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/AVCaptureVideoOrientation+Utils.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile AVCaptureVideoOrientation+Utils.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/Array+Utils.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Array+Utils.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/CGAffineTransform+Utils.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CGAffineTransform+Utils.swift
SwiftCompile normal arm64 Compiling\ CIRectangleDetector.swift,\ EditScanCornerView.swift,\ Error.swift,\ Quadrilateral.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Common/CIRectangleDetector.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Common/EditScanCornerView.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Common/Error.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Common/Quadrilateral.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Common/CIRectangleDetector.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CIRectangleDetector.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Common/EditScanCornerView.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile EditScanCornerView.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Common/Error.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Error.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Common/Quadrilateral.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Quadrilateral.swift
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
2026-09-17 05:36:31.816 xcodebuild[660:4260] [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 'SinglePageScanner' from project 'SinglePageScanner')
	SwiftEmitModule normal arm64 Emitting\ module\ for\ SinglePageScanner (in target 'SinglePageScanner' from project 'SinglePageScanner')
	Building workspace SinglePageScanner with scheme SinglePageScanner
(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:
  SinglePageScanner: /Users/admin/builder/spi-builder-workspace
resolved source packages: SinglePageScanner
2026-09-17 05:36:39.673 xcodebuild[768:4698] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SinglePageScanner",
  "name" : "SinglePageScanner",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "SinglePageScanner",
      "targets" : [
        "SinglePageScanner"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SinglePageScannerTests",
      "module_type" : "SwiftTarget",
      "name" : "SinglePageScannerTests",
      "path" : "Tests/SinglePageScannerTests",
      "sources" : [
        "SinglePageScannerTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "SinglePageScanner"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SinglePageScanner",
      "module_type" : "SwiftTarget",
      "name" : "SinglePageScanner",
      "path" : "Sources/SinglePageScanner",
      "product_memberships" : [
        "SinglePageScanner"
      ],
      "sources" : [
        "Common/CIRectangleDetector.swift",
        "Common/EditScanCornerView.swift",
        "Common/Error.swift",
        "Common/Quadrilateral.swift",
        "Common/QuadrilateralView.swift",
        "Common/VisionRectangleDetector.swift",
        "Edit/EditScanViewController.swift",
        "Edit/ZoomGestureController.swift",
        "Extensions/AVCaptureVideoOrientation+Utils.swift",
        "Extensions/Array+Utils.swift",
        "Extensions/CGAffineTransform+Utils.swift",
        "Extensions/CGImagePropertyOrientation.swift",
        "Extensions/CGPoint+Utils.swift",
        "Extensions/CGRect+Utils.swift",
        "Extensions/CGSize+Utils.swift",
        "Extensions/CIImage+Utils.swift",
        "Extensions/UIImage+Orientation.swift",
        "Extensions/UIImage+Utils.swift",
        "ImageScannerController.swift",
        "Protocols/CaptureDevice.swift",
        "Protocols/Transformable.swift",
        "Review/ReviewViewController.swift",
        "Scan/CaptureSessionManager.swift",
        "Scan/FocusRectangleView.swift",
        "Scan/RectangleFeaturesFunnel.swift",
        "Scan/ScannerViewController.swift",
        "Scan/ShutterButton.swift",
        "Session/CaptureSession+Flash.swift",
        "Session/CaptureSession+Focus.swift",
        "Session/CaptureSession+Orientation.swift",
        "Session/CaptureSession.swift",
        "SinglePageScanner.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
{
  "workspace" : {
    "name" : "SinglePageScanner",
    "schemes" : [
      "SinglePageScanner"
    ]
  }
}
2026-09-17 05:36:40.885 xcodebuild[776:4769] [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 SinglePageScanner -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 SinglePageScanner -destination generic/platform=xrOS
Resolve Package Graph
Resolved source packages:
  SinglePageScanner: /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 'SinglePageScanner-product' in project 'SinglePageScanner'
        ➜ Explicit dependency on target 'SinglePageScanner' in project 'SinglePageScanner'
    Target 'SinglePageScanner' in project 'SinglePageScanner' (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 SinglePageScanner normal arm64 com.apple.xcode.tools.swift.compiler (in target 'SinglePageScanner' from project 'SinglePageScanner')
    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 SinglePageScanner -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SinglePageScanner.build/Debug-xros/SinglePageScanner-t.build/Objects-normal/arm64/SinglePageScanner.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/SinglePageScanner.build/Debug-xros/SinglePageScanner-t.build/Objects-normal/arm64/SinglePageScanner-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/SinglePageScanner.build/Debug-xros/SinglePageScanner-t.build/Objects-normal/arm64/SinglePageScanner.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SinglePageScanner.build/Debug-xros/SinglePageScanner-t.build/Objects-normal/arm64/SinglePageScanner-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 -emit-const-values -const-gather-protocols-list /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SinglePageScanner.build/Debug-xros/SinglePageScanner-t.build/Objects-normal/arm64/SinglePageScanner_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/SinglePageScanner.build/Debug-xros/SinglePageScanner-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SinglePageScanner.build/Debug-xros/SinglePageScanner-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SinglePageScanner.build/Debug-xros/SinglePageScanner-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/SinglePageScanner.build/Debug-xros/SinglePageScanner-t.build/Objects-normal/arm64/SinglePageScanner-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftCompile normal arm64 Compiling\ QuadrilateralView.swift,\ VisionRectangleDetector.swift,\ EditScanViewController.swift,\ ZoomGestureController.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Common/QuadrilateralView.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Common/VisionRectangleDetector.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Edit/EditScanViewController.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Edit/ZoomGestureController.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Common/QuadrilateralView.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile QuadrilateralView.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Common/VisionRectangleDetector.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile VisionRectangleDetector.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Edit/EditScanViewController.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile EditScanViewController.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Edit/ZoomGestureController.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile ZoomGestureController.swift
SwiftCompile normal arm64 Compiling\ CGImagePropertyOrientation.swift,\ CGPoint+Utils.swift,\ CGRect+Utils.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/CGImagePropertyOrientation.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/CGPoint+Utils.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/CGRect+Utils.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/CGImagePropertyOrientation.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CGImagePropertyOrientation.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/CGPoint+Utils.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CGPoint+Utils.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/CGRect+Utils.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CGRect+Utils.swift
SwiftCompile normal arm64 Compiling\ CIRectangleDetector.swift,\ EditScanCornerView.swift,\ Error.swift,\ Quadrilateral.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Common/CIRectangleDetector.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Common/EditScanCornerView.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Common/Error.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Common/Quadrilateral.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Common/CIRectangleDetector.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CIRectangleDetector.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Common/EditScanCornerView.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile EditScanCornerView.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Common/Error.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Error.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Common/Quadrilateral.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Quadrilateral.swift
SwiftCompile normal arm64 Compiling\ AVCaptureVideoOrientation+Utils.swift,\ Array+Utils.swift,\ CGAffineTransform+Utils.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/AVCaptureVideoOrientation+Utils.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/Array+Utils.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/CGAffineTransform+Utils.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/AVCaptureVideoOrientation+Utils.swift:13:11: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
11 | import UIKit
12 |
13 | extension AVCaptureVideoOrientation {
   |           `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
14 |
15 |     /// Maps UIDeviceOrientation to AVCaptureVideoOrientation
/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/SinglePageScanner/Extensions/AVCaptureVideoOrientation+Utils.swift:19:33: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
17 |         switch deviceOrientation {
18 |         case .portrait:
19 |             self.init(rawValue: AVCaptureVideoOrientation.portrait.rawValue)
   |                                 `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
20 |         case .portraitUpsideDown:
21 |             self.init(rawValue: AVCaptureVideoOrientation.portraitUpsideDown.rawValue)
/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/SinglePageScanner/Extensions/AVCaptureVideoOrientation+Utils.swift:21:33: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
19 |             self.init(rawValue: AVCaptureVideoOrientation.portrait.rawValue)
20 |         case .portraitUpsideDown:
21 |             self.init(rawValue: AVCaptureVideoOrientation.portraitUpsideDown.rawValue)
   |                                 `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
22 |         case .landscapeLeft:
23 |             self.init(rawValue: AVCaptureVideoOrientation.landscapeLeft.rawValue)
/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/SinglePageScanner/Extensions/AVCaptureVideoOrientation+Utils.swift:23:33: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
21 |             self.init(rawValue: AVCaptureVideoOrientation.portraitUpsideDown.rawValue)
22 |         case .landscapeLeft:
23 |             self.init(rawValue: AVCaptureVideoOrientation.landscapeLeft.rawValue)
   |                                 `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
24 |         case .landscapeRight:
25 |             self.init(rawValue: AVCaptureVideoOrientation.landscapeRight.rawValue)
/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/SinglePageScanner/Extensions/AVCaptureVideoOrientation+Utils.swift:25:33: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
23 |             self.init(rawValue: AVCaptureVideoOrientation.landscapeLeft.rawValue)
24 |         case .landscapeRight:
25 |             self.init(rawValue: AVCaptureVideoOrientation.landscapeRight.rawValue)
   |                                 `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
26 |         case .faceUp:
27 |             self.init(rawValue: AVCaptureVideoOrientation.portrait.rawValue)
/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/SinglePageScanner/Extensions/AVCaptureVideoOrientation+Utils.swift:27:33: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
25 |             self.init(rawValue: AVCaptureVideoOrientation.landscapeRight.rawValue)
26 |         case .faceUp:
27 |             self.init(rawValue: AVCaptureVideoOrientation.portrait.rawValue)
   |                                 `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
28 |         case .faceDown:
29 |             self.init(rawValue: AVCaptureVideoOrientation.portraitUpsideDown.rawValue)
/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/SinglePageScanner/Extensions/AVCaptureVideoOrientation+Utils.swift:29:33: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
27 |             self.init(rawValue: AVCaptureVideoOrientation.portrait.rawValue)
28 |         case .faceDown:
29 |             self.init(rawValue: AVCaptureVideoOrientation.portraitUpsideDown.rawValue)
   |                                 `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
30 |         default:
31 |             self.init(rawValue: AVCaptureVideoOrientation.portrait.rawValue)
/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,
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/AVCaptureVideoOrientation+Utils.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile AVCaptureVideoOrientation+Utils.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/Array+Utils.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Array+Utils.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/CGAffineTransform+Utils.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CGAffineTransform+Utils.swift
SwiftCompile normal arm64 Compiling\ CGSize+Utils.swift,\ CIImage+Utils.swift,\ UIImage+Orientation.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/CGSize+Utils.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/CIImage+Utils.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/UIImage+Orientation.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/CGSize+Utils.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CGSize+Utils.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/CIImage+Utils.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CIImage+Utils.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/UIImage+Orientation.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile UIImage+Orientation.swift
SwiftEmitModule normal arm64 Emitting\ module\ for\ SinglePageScanner (in target 'SinglePageScanner' from project 'SinglePageScanner')
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/AVCaptureVideoOrientation+Utils.swift:13:11: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
11 | import UIKit
12 |
13 | extension AVCaptureVideoOrientation {
   |           `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
14 |
15 |     /// Maps UIDeviceOrientation to AVCaptureVideoOrientation
/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/SinglePageScanner/ImageScannerController.swift:197:6: error: stored properties cannot be marked unavailable with '@available'
195 |     public var detectedRectangle: Quadrilateral
196 |
197 |     @available(*, unavailable, renamed: "originalScan")
    |      `- error: stored properties cannot be marked unavailable with '@available'
198 |     public var originalImage: UIImage?
199 |
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/ImageScannerController.swift:200:6: error: stored properties cannot be marked unavailable with '@available'
198 |     public var originalImage: UIImage?
199 |
200 |     @available(*, unavailable, renamed: "croppedScan")
    |      `- error: stored properties cannot be marked unavailable with '@available'
201 |     public var scannedImage: UIImage?
202 |
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/ImageScannerController.swift:203:6: error: stored properties cannot be marked unavailable with '@available'
201 |     public var scannedImage: UIImage?
202 |
203 |     @available(*, unavailable, renamed: "enhancedScan")
    |      `- error: stored properties cannot be marked unavailable with '@available'
204 |     public var enhancedImage: UIImage?
205 |
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/ImageScannerController.swift:206:6: error: stored properties cannot be marked unavailable with '@available'
204 |     public var enhancedImage: UIImage?
205 |
206 |     @available(*, unavailable, renamed: "doesUserPreferEnhancedScan")
    |      `- error: stored properties cannot be marked unavailable with '@available'
207 |     public var doesUserPreferEnhancedImage: Bool = false
208 |
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:12:25: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead [#deprecation]
10 | import AVFoundation
11 |
12 | protocol CaptureDevice: class {
   |                         `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead [#deprecation]
13 |     var torchMode: AVCaptureDevice.TorchMode { get set }
14 |     var isTorchAvailable: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:13:36: error: 'TorchMode' is unavailable in visionOS
11 |
12 | protocol CaptureDevice: class {
13 |     var torchMode: AVCaptureDevice.TorchMode { get set }
   |                                    `- error: 'TorchMode' is unavailable in visionOS
14 |     var isTorchAvailable: Bool { get }
15 |
/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:1049:28: note: 'TorchMode' has been explicitly marked unavailable here
1047 |     Indicates that the torch should be used automatically depending on ambient light conditions.
1048 |  */
1049 | typedef NS_ENUM(NSInteger, AVCaptureTorchMode) {
     |                            `- note: 'TorchMode' has been explicitly marked unavailable here
1050 |     AVCaptureTorchModeOff  = 0,
1051 |     AVCaptureTorchModeOn   = 1,
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:16:36: error: 'FocusMode' is unavailable in visionOS
14 |     var isTorchAvailable: Bool { get }
15 |
16 |     var focusMode: AVCaptureDevice.FocusMode { get set }
   |                                    `- error: 'FocusMode' is unavailable in visionOS
17 |     var focusPointOfInterest: CGPoint { get set }
18 |     var isFocusPointOfInterestSupported: Bool { get }
/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:1156:28: note: 'FocusMode' has been explicitly marked unavailable here
1154 |     Indicates that the device should automatically focus when needed.
1155 |  */
1156 | typedef NS_ENUM(NSInteger, AVCaptureFocusMode) {
     |                            `- note: 'FocusMode' has been explicitly marked unavailable here
1157 |     AVCaptureFocusModeLocked              = 0,
1158 |     AVCaptureFocusModeAutoFocus           = 1,
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:20:39: error: 'ExposureMode' is unavailable in visionOS
18 |     var isFocusPointOfInterestSupported: Bool { get }
19 |
20 |     var exposureMode: AVCaptureDevice.ExposureMode { get set }
   |                                       `- error: 'ExposureMode' is unavailable in visionOS
21 |     var exposurePointOfInterest: CGPoint { get set }
22 |     var isExposurePointOfInterestSupported: Bool { get }
/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:1422:28: note: 'ExposureMode' has been explicitly marked unavailable here
1420 |     Indicates that the device should only adjust exposure according to user provided ISO, exposureDuration values.
1421 |  */
1422 | typedef NS_ENUM(NSInteger, AVCaptureExposureMode) {
     |                            `- note: 'ExposureMode' has been explicitly marked unavailable here
1423 |     AVCaptureExposureModeLocked                            = 0,
1424 |     AVCaptureExposureModeAutoExpose                        = 1,
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:26:60: error: 'FocusMode' is unavailable in visionOS
24 |     var isSubjectAreaChangeMonitoringEnabled: Bool { get set }
25 |
26 |     func isFocusModeSupported(_ focusMode: AVCaptureDevice.FocusMode) -> Bool
   |                                                            `- error: 'FocusMode' is unavailable in visionOS
27 |     func isExposureModeSupported(_ exposureMode: AVCaptureDevice.ExposureMode) -> Bool
28 |     func 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:1156:28: note: 'FocusMode' has been explicitly marked unavailable here
1154 |     Indicates that the device should automatically focus when needed.
1155 |  */
1156 | typedef NS_ENUM(NSInteger, AVCaptureFocusMode) {
     |                            `- note: 'FocusMode' has been explicitly marked unavailable here
1157 |     AVCaptureFocusModeLocked              = 0,
1158 |     AVCaptureFocusModeAutoFocus           = 1,
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:27:66: error: 'ExposureMode' is unavailable in visionOS
25 |
26 |     func isFocusModeSupported(_ focusMode: AVCaptureDevice.FocusMode) -> Bool
27 |     func isExposureModeSupported(_ exposureMode: AVCaptureDevice.ExposureMode) -> Bool
   |                                                                  `- error: 'ExposureMode' is unavailable in visionOS
28 |     func unlockForConfiguration()
29 |     func lockForConfiguration() throws
/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:1422:28: note: 'ExposureMode' has been explicitly marked unavailable here
1420 |     Indicates that the device should only adjust exposure according to user provided ISO, exposureDuration values.
1421 |  */
1422 | typedef NS_ENUM(NSInteger, AVCaptureExposureMode) {
     |                            `- note: 'ExposureMode' has been explicitly marked unavailable here
1423 |     AVCaptureExposureModeLocked                            = 0,
1424 |     AVCaptureExposureModeAutoExpose                        = 1,
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:32:1: error: type 'AVCaptureDevice' does not conform to protocol 'CaptureDevice'
30 | }
31 |
32 | extension AVCaptureDevice: CaptureDevice { }
   | `- error: type 'AVCaptureDevice' does not conform to protocol 'CaptureDevice'
33 |
34 | final class MockCaptureDevice: CaptureDevice {
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:32:1: error: unavailable property 'isTorchAvailable' was used to satisfy a requirement of protocol 'CaptureDevice'
12 | protocol CaptureDevice: class {
13 |     var torchMode: AVCaptureDevice.TorchMode { get set }
14 |     var isTorchAvailable: Bool { get }
   |         `- note: requirement 'isTorchAvailable' declared here
15 |
16 |     var focusMode: AVCaptureDevice.FocusMode { get set }
   :
30 | }
31 |
32 | extension AVCaptureDevice: CaptureDevice { }
   | `- error: unavailable property 'isTorchAvailable' was used to satisfy a requirement of protocol 'CaptureDevice'
33 |
34 | final class MockCaptureDevice: CaptureDevice {
/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:1084:62: note: 'isTorchAvailable' declared here
1082 |     The value of this property is a BOOL indicating whether the receiver's torch is currently available. The torch may become unavailable if, for example, the device overheats and needs to cool off. This property is key-value observable.
1083 |  */
1084 | @property(nonatomic, readonly, getter=isTorchAvailable) BOOL torchAvailable API_AVAILABLE(macos(10.15), ios(5.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos);
     |                                                              `- note: 'isTorchAvailable' declared here
1085 |
1086 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:32:1: error: unavailable property 'isSubjectAreaChangeMonitoringEnabled' was used to satisfy a requirement of protocol 'CaptureDevice'
22 |     var isExposurePointOfInterestSupported: Bool { get }
23 |
24 |     var isSubjectAreaChangeMonitoringEnabled: Bool { get set }
   |         `- note: requirement 'isSubjectAreaChangeMonitoringEnabled' declared here
25 |
26 |     func isFocusModeSupported(_ focusMode: AVCaptureDevice.FocusMode) -> Bool
   :
30 | }
31 |
32 | extension AVCaptureDevice: CaptureDevice { }
   | `- error: unavailable property 'isSubjectAreaChangeMonitoringEnabled' was used to satisfy a requirement of protocol 'CaptureDevice'
33 |
34 | final class MockCaptureDevice: CaptureDevice {
/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:2012:72: note: 'isSubjectAreaChangeMonitoringEnabled' declared here
2010 |     The value of this property is a BOOL indicating whether the receiver should monitor the video subject area for changes, such as lighting changes, substantial movement, etc. If subject area change monitoring is enabled, the receiver sends an AVCaptureDeviceSubjectAreaDidChangeNotification whenever it detects a change to the subject area, at which time an interested client may wish to re-focus, adjust exposure, white balance, etc. The receiver must be locked for configuration using lockForConfiguration: before clients can set the value of this property.
2011 |  */
2012 | @property(nonatomic, getter=isSubjectAreaChangeMonitoringEnabled) BOOL subjectAreaChangeMonitoringEnabled API_AVAILABLE(ios(5.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
     |                                                                        `- note: 'isSubjectAreaChangeMonitoringEnabled' declared here
2013 |
2014 | @end
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:35:36: error: 'TorchMode' is unavailable in visionOS
33 |
34 | final class MockCaptureDevice: CaptureDevice {
35 |     var torchMode: AVCaptureDevice.TorchMode = .off
   |                                    `- error: 'TorchMode' is unavailable in visionOS
36 |     var isTorchAvailable: Bool = true
37 |
/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:1049:28: note: 'TorchMode' has been explicitly marked unavailable here
1047 |     Indicates that the torch should be used automatically depending on ambient light conditions.
1048 |  */
1049 | typedef NS_ENUM(NSInteger, AVCaptureTorchMode) {
     |                            `- note: 'TorchMode' has been explicitly marked unavailable here
1050 |     AVCaptureTorchModeOff  = 0,
1051 |     AVCaptureTorchModeOn   = 1,
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:38:36: error: 'FocusMode' is unavailable in visionOS
36 |     var isTorchAvailable: Bool = true
37 |
38 |     var focusMode: AVCaptureDevice.FocusMode = .continuousAutoFocus
   |                                    `- error: 'FocusMode' is unavailable in visionOS
39 |     var focusPointOfInterest: CGPoint = .zero
40 |     var isFocusPointOfInterestSupported: Bool = true
/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:1156:28: note: 'FocusMode' has been explicitly marked unavailable here
1154 |     Indicates that the device should automatically focus when needed.
1155 |  */
1156 | typedef NS_ENUM(NSInteger, AVCaptureFocusMode) {
     |                            `- note: 'FocusMode' has been explicitly marked unavailable here
1157 |     AVCaptureFocusModeLocked              = 0,
1158 |     AVCaptureFocusModeAutoFocus           = 1,
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:42:39: error: 'ExposureMode' is unavailable in visionOS
40 |     var isFocusPointOfInterestSupported: Bool = true
41 |
42 |     var exposureMode: AVCaptureDevice.ExposureMode = .continuousAutoExposure
   |                                       `- error: 'ExposureMode' is unavailable in visionOS
43 |     var exposurePointOfInterest: CGPoint = .zero
44 |     var isExposurePointOfInterestSupported: Bool = true
/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:1422:28: note: 'ExposureMode' has been explicitly marked unavailable here
1420 |     Indicates that the device should only adjust exposure according to user provided ISO, exposureDuration values.
1421 |  */
1422 | typedef NS_ENUM(NSInteger, AVCaptureExposureMode) {
     |                            `- note: 'ExposureMode' has been explicitly marked unavailable here
1423 |     AVCaptureExposureModeLocked                            = 0,
1424 |     AVCaptureExposureModeAutoExpose                        = 1,
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:55:60: error: 'FocusMode' is unavailable in visionOS
53 |     }
54 |
55 |     func isFocusModeSupported(_ focusMode: AVCaptureDevice.FocusMode) -> Bool {
   |                                                            `- error: 'FocusMode' is unavailable in visionOS
56 |         return true
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:1156:28: note: 'FocusMode' has been explicitly marked unavailable here
1154 |     Indicates that the device should automatically focus when needed.
1155 |  */
1156 | typedef NS_ENUM(NSInteger, AVCaptureFocusMode) {
     |                            `- note: 'FocusMode' has been explicitly marked unavailable here
1157 |     AVCaptureFocusModeLocked              = 0,
1158 |     AVCaptureFocusModeAutoFocus           = 1,
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:59:66: error: 'ExposureMode' is unavailable in visionOS
57 |     }
58 |
59 |     func isExposureModeSupported(_ exposureMode: AVCaptureDevice.ExposureMode) -> Bool {
   |                                                                  `- error: 'ExposureMode' is unavailable in visionOS
60 |         return true
61 |     }
/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:1422:28: note: 'ExposureMode' has been explicitly marked unavailable here
1420 |     Indicates that the device should only adjust exposure according to user provided ISO, exposureDuration values.
1421 |  */
1422 | typedef NS_ENUM(NSInteger, AVCaptureExposureMode) {
     |                            `- note: 'ExposureMode' has been explicitly marked unavailable here
1423 |     AVCaptureExposureModeLocked                            = 0,
1424 |     AVCaptureExposureModeAutoExpose                        = 1,
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/CaptureSessionManager.swift:47:36: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 45 | final class CaptureSessionManager: NSObject, AVCaptureVideoDataOutputSampleBufferDelegate {
 46 |
 47 |     private let videoPreviewLayer: AVCaptureVideoPreviewLayer
    |                                    `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 48 |     private let captureSession = AVCaptureSession()
 49 |     private let rectangleFunnel = RectangleFeaturesFunnel()
/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/SinglePageScanner/Scan/CaptureSessionManager.swift:52:31: error: 'AVCapturePhotoOutput' is unavailable in visionOS
 50 |     weak var delegate: RectangleDetectionDelegateProtocol?
 51 |     private var displayedRectangleResult: RectangleDetectorResult?
 52 |     private var photoOutput = AVCapturePhotoOutput()
    |                               `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
 53 |
 54 |     /// Whether the CaptureSessionManager should be detecting quadrilaterals.
/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/SinglePageScanner/Scan/CaptureSessionManager.swift:65:30: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 63 |     // MARK: Life Cycle
 64 |
 65 |     init?(videoPreviewLayer: AVCaptureVideoPreviewLayer, delegate: RectangleDetectionDelegateProtocol? = nil) {
    |                              `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 66 |         self.videoPreviewLayer = videoPreviewLayer
 67 |
/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/SinglePageScanner/Scan/CaptureSessionManager.swift:250:39: error: 'AVCapturePhotoOutput' is unavailable in visionOS
248 |
249 |     // swiftlint:disable function_parameter_count
250 |     func photoOutput(_ captureOutput: AVCapturePhotoOutput, didFinishProcessingPhoto photoSampleBuffer: CMSampleBuffer?, previewPhoto previewPhotoSampleBuffer: CMSampleBuffer?, resolvedSettings: AVCaptureResolvedPhotoSettings, bracketSettings: AVCaptureBracketedStillImageSettings?, error: Error?) {
    |                                       `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
251 |         if let error = error {
252 |             delegate?.captureSessionManager(self, didFailWithError: error)
/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/SinglePageScanner/Scan/CaptureSessionManager.swift:250:196: error: 'AVCaptureResolvedPhotoSettings' is unavailable in visionOS
248 |
249 |     // swiftlint:disable function_parameter_count
250 |     func photoOutput(_ captureOutput: AVCapturePhotoOutput, didFinishProcessingPhoto photoSampleBuffer: CMSampleBuffer?, previewPhoto previewPhotoSampleBuffer: CMSampleBuffer?, resolvedSettings: AVCaptureResolvedPhotoSettings, bracketSettings: AVCaptureBracketedStillImageSettings?, error: Error?) {
    |                                                                                                                                                                                                    `- error: 'AVCaptureResolvedPhotoSettings' is unavailable in visionOS
251 |         if let error = error {
252 |             delegate?.captureSessionManager(self, didFailWithError: error)
/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:1788:12: note: 'AVCaptureResolvedPhotoSettings' has been explicitly marked unavailable here
1786 |  */
1787 | API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
1788 | @interface AVCaptureResolvedPhotoSettings : NSObject
     |            `- note: 'AVCaptureResolvedPhotoSettings' has been explicitly marked unavailable here
1789 | {
1790 | @private
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/CaptureSessionManager.swift:250:245: error: 'AVCaptureBracketedStillImageSettings' is unavailable in visionOS
248 |
249 |     // swiftlint:disable function_parameter_count
250 |     func photoOutput(_ captureOutput: AVCapturePhotoOutput, didFinishProcessingPhoto photoSampleBuffer: CMSampleBuffer?, previewPhoto previewPhotoSampleBuffer: CMSampleBuffer?, resolvedSettings: AVCaptureResolvedPhotoSettings, bracketSettings: AVCaptureBracketedStillImageSettings?, error: Error?) {
    |                                                                                                                                                                                                                                                     `- error: 'AVCaptureBracketedStillImageSettings' is unavailable in visionOS
251 |         if let error = error {
252 |             delegate?.captureSessionManager(self, didFailWithError: error)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureStillImageOutput.h:187:12: note: 'AVCaptureBracketedStillImageSettings' has been explicitly marked unavailable here
185 |  */
186 | API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos)
187 | @interface AVCaptureBracketedStillImageSettings : NSObject
    |            `- note: 'AVCaptureBracketedStillImageSettings' has been explicitly marked unavailable here
188 |
189 | AV_INIT_UNAVAILABLE
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/CaptureSessionManager.swift:272:32: error: 'AVCapturePhotoOutput' is unavailable in visionOS
270 |
271 |     @available(iOS 11.0, *)
272 |     func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
    |                                `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
273 |         if let error = error {
274 |             delegate?.captureSessionManager(self, didFailWithError: error)
/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/SinglePageScanner/Scan/CaptureSessionManager.swift:272:86: error: 'AVCapturePhoto' is unavailable in visionOS
270 |
271 |     @available(iOS 11.0, *)
272 |     func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
    |                                                                                      `- error: 'AVCapturePhoto' is unavailable in visionOS
273 |         if let error = error {
274 |             delegate?.captureSessionManager(self, didFailWithError: error)
/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/SinglePageScanner/Scan/CaptureSessionManager.swift:272:10: error: cannot override 'photoOutput' which has been marked unavailable
270 |
271 |     @available(iOS 11.0, *)
272 |     func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
    |          `- error: cannot override 'photoOutput' which has been marked unavailable
273 |         if let error = error {
274 |             delegate?.captureSessionManager(self, didFailWithError: error)
/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/SinglePageScanner/Scan/CaptureSessionManager.swift:250:10: error: cannot override 'photoOutput' which has been marked unavailable
248 |
249 |     // swiftlint:disable function_parameter_count
250 |     func photoOutput(_ captureOutput: AVCapturePhotoOutput, didFinishProcessingPhoto photoSampleBuffer: CMSampleBuffer?, previewPhoto previewPhotoSampleBuffer: CMSampleBuffer?, resolvedSettings: AVCaptureResolvedPhotoSettings, bracketSettings: AVCaptureBracketedStillImageSettings?, error: Error?) {
    |          `- error: cannot override 'photoOutput' which has been marked unavailable
251 |         if let error = error {
252 |             delegate?.captureSessionManager(self, didFailWithError: error)
/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:1094:1: note: 'photoOutput(_:didFinishProcessingPhoto:previewPhoto:resolvedSettings:bracketSettings:error:)' has been explicitly marked unavailable here
1092 |     If you've requested a single processed image (uncompressed or compressed) capture, the photo is delivered here. If you've requested a bracketed capture, this callback is fired bracketedSettings.count times (once for each photo in the bracket).
1093 |  */
1094 | - (void)captureOutput:(AVCapturePhotoOutput *)output didFinishProcessingPhotoSampleBuffer:(nullable CMSampleBufferRef)photoSampleBuffer previewPhotoSampleBuffer:(nullable CMSampleBufferRef)previewPhotoSampleBuffer resolvedSettings:(AVCaptureResolvedPhotoSettings *)resolvedSettings bracketSettings:(nullable AVCaptureBracketedStillImageSettings *)bracketSettings error:(nullable NSError *)error API_DEPRECATED_WITH_REPLACEMENT("-captureOutput:didFinishProcessingPhoto:error:", ios(10.0, 11.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(tvos);
     | `- note: 'photoOutput(_:didFinishProcessingPhoto:previewPhoto:resolvedSettings:bracketSettings:error:)' has been explicitly marked unavailable here
1095 |
1096 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/CaptureSessionManager.swift:247:34: error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
245 | }
246 |
247 | extension CaptureSessionManager: AVCapturePhotoCaptureDelegate {
    |                                  `- error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
248 |
249 |     // swiftlint:disable function_parameter_count
/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/SinglePageScanner/Scan/ScannerViewController.swift:23:37: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 21 |
 22 |     private var captureSessionManager: CaptureSessionManager?
 23 |     private let videoPreviewLayer = AVCaptureVideoPreviewLayer()
    |                                     `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 24 |
 25 |     /// The view that shows the focus rectangle (when the user taps to focus, similar to the Camera app)
/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/SinglePageScanner/Scan/ShutterButton.swift:20:43: error: 'UIImpactFeedbackGenerator' is unavailable in visionOS
 18 |     private let innerRingRatio: CGFloat = 0.75
 19 |
 20 |     private let impactFeedbackGenerator = UIImpactFeedbackGenerator(style: .light)
    |                                           `- error: 'UIImpactFeedbackGenerator' is unavailable in visionOS
 21 |
 22 |     override var isHighlighted: Bool {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImpactFeedbackGenerator.h:25:12: note: 'UIImpactFeedbackGenerator' has been explicitly marked unavailable here
23 | // UIImpactFeedbackGenerator is used to give user feedback when an impact between UI elements occurs
24 | UIKIT_EXTERN API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(visionos, tvos) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
25 | @interface UIImpactFeedbackGenerator : UIFeedbackGenerator
   |            `- note: 'UIImpactFeedbackGenerator' has been explicitly marked unavailable here
26 |
27 | /// set a style on the feedback generator and attach it to the provided view as an interaction.
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/SinglePageScanner/Common/CIRectangleDetector.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Common/EditScanCornerView.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Common/Error.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Common/Quadrilateral.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Common/QuadrilateralView.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Common/VisionRectangleDetector.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Edit/EditScanViewController.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Edit/ZoomGestureController.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/AVCaptureVideoOrientation+Utils.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/Array+Utils.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/CGAffineTransform+Utils.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/CGImagePropertyOrientation.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/CGPoint+Utils.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/CGRect+Utils.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/CGSize+Utils.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/CIImage+Utils.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/UIImage+Orientation.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/UIImage+Utils.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/ImageScannerController.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/Transformable.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Review/ReviewViewController.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/CaptureSessionManager.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/FocusRectangleView.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/RectangleFeaturesFunnel.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/ScannerViewController.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/ShutterButton.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Session/CaptureSession+Flash.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Session/CaptureSession+Focus.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Session/CaptureSession+Orientation.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Session/CaptureSession.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/SinglePageScanner.swift -target arm64-apple-xros1.0 -disable-cross-import-overlay-search -swift-module-cross-import Vision /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS.sdk/System/Library/Frameworks/Vision.framework/Modules/Vision.swiftcrossimport/FoundationModels.swiftoverlay -swift-module-cross-import Vision /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/Vision.framework/Modules/Vision.swiftcrossimport/FoundationModels.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/SinglePageScanner.build/Debug-xros/SinglePageScanner-t.build/Objects-normal/arm64/SinglePageScanner-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/SinglePageScanner.build/Debug-xros/SinglePageScanner-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SinglePageScanner.build/Debug-xros/SinglePageScanner-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SinglePageScanner.build/Debug-xros/SinglePageScanner-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name SinglePageScanner -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SinglePageScanner.build/Debug-xros/SinglePageScanner-t.build/Objects-normal/arm64/SinglePageScanner_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/SinglePageScanner.build/Debug-xros/SinglePageScanner-t.build/Objects-normal/arm64/SinglePageScanner.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SinglePageScanner.build/Debug-xros/SinglePageScanner-t.build/Objects-normal/arm64/SinglePageScanner.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SinglePageScanner.build/Debug-xros/SinglePageScanner-t.build/Objects-normal/arm64/SinglePageScanner-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SinglePageScanner.build/Debug-xros/SinglePageScanner-t.build/Objects-normal/arm64/SinglePageScanner-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SinglePageScanner.build/Debug-xros/SinglePageScanner-t.build/Objects-normal/arm64/SinglePageScanner-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SinglePageScanner.build/Debug-xros/SinglePageScanner-t.build/Objects-normal/arm64/SinglePageScanner.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SinglePageScanner.build/Debug-xros/SinglePageScanner-t.build/Objects-normal/arm64/SinglePageScanner.abi.json
SwiftCompile normal arm64 (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode

SwiftCompile normal arm64 Compiling\ UIImage+Utils.swift,\ ImageScannerController.swift,\ CaptureDevice.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/UIImage+Utils.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/ImageScannerController.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/ImageScannerController.swift:197:6: error: stored properties cannot be marked unavailable with '@available'
195 |     public var detectedRectangle: Quadrilateral
196 |
197 |     @available(*, unavailable, renamed: "originalScan")
    |      `- error: stored properties cannot be marked unavailable with '@available'
198 |     public var originalImage: UIImage?
199 |
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/ImageScannerController.swift:200:6: error: stored properties cannot be marked unavailable with '@available'
198 |     public var originalImage: UIImage?
199 |
200 |     @available(*, unavailable, renamed: "croppedScan")
    |      `- error: stored properties cannot be marked unavailable with '@available'
201 |     public var scannedImage: UIImage?
202 |
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/ImageScannerController.swift:203:6: error: stored properties cannot be marked unavailable with '@available'
201 |     public var scannedImage: UIImage?
202 |
203 |     @available(*, unavailable, renamed: "enhancedScan")
    |      `- error: stored properties cannot be marked unavailable with '@available'
204 |     public var enhancedImage: UIImage?
205 |
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/ImageScannerController.swift:206:6: error: stored properties cannot be marked unavailable with '@available'
204 |     public var enhancedImage: UIImage?
205 |
206 |     @available(*, unavailable, renamed: "doesUserPreferEnhancedScan")
    |      `- error: stored properties cannot be marked unavailable with '@available'
207 |     public var doesUserPreferEnhancedImage: Bool = false
208 |
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:12:25: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead [#deprecation]
10 | import AVFoundation
11 |
12 | protocol CaptureDevice: class {
   |                         `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead [#deprecation]
13 |     var torchMode: AVCaptureDevice.TorchMode { get set }
14 |     var isTorchAvailable: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:13:36: error: 'TorchMode' is unavailable in visionOS
11 |
12 | protocol CaptureDevice: class {
13 |     var torchMode: AVCaptureDevice.TorchMode { get set }
   |                                    `- error: 'TorchMode' is unavailable in visionOS
14 |     var isTorchAvailable: Bool { get }
15 |
/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:1049:28: note: 'TorchMode' has been explicitly marked unavailable here
1047 |     Indicates that the torch should be used automatically depending on ambient light conditions.
1048 |  */
1049 | typedef NS_ENUM(NSInteger, AVCaptureTorchMode) {
     |                            `- note: 'TorchMode' has been explicitly marked unavailable here
1050 |     AVCaptureTorchModeOff  = 0,
1051 |     AVCaptureTorchModeOn   = 1,
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:16:36: error: 'FocusMode' is unavailable in visionOS
14 |     var isTorchAvailable: Bool { get }
15 |
16 |     var focusMode: AVCaptureDevice.FocusMode { get set }
   |                                    `- error: 'FocusMode' is unavailable in visionOS
17 |     var focusPointOfInterest: CGPoint { get set }
18 |     var isFocusPointOfInterestSupported: Bool { get }
/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:1156:28: note: 'FocusMode' has been explicitly marked unavailable here
1154 |     Indicates that the device should automatically focus when needed.
1155 |  */
1156 | typedef NS_ENUM(NSInteger, AVCaptureFocusMode) {
     |                            `- note: 'FocusMode' has been explicitly marked unavailable here
1157 |     AVCaptureFocusModeLocked              = 0,
1158 |     AVCaptureFocusModeAutoFocus           = 1,
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:20:39: error: 'ExposureMode' is unavailable in visionOS
18 |     var isFocusPointOfInterestSupported: Bool { get }
19 |
20 |     var exposureMode: AVCaptureDevice.ExposureMode { get set }
   |                                       `- error: 'ExposureMode' is unavailable in visionOS
21 |     var exposurePointOfInterest: CGPoint { get set }
22 |     var isExposurePointOfInterestSupported: Bool { get }
/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:1422:28: note: 'ExposureMode' has been explicitly marked unavailable here
1420 |     Indicates that the device should only adjust exposure according to user provided ISO, exposureDuration values.
1421 |  */
1422 | typedef NS_ENUM(NSInteger, AVCaptureExposureMode) {
     |                            `- note: 'ExposureMode' has been explicitly marked unavailable here
1423 |     AVCaptureExposureModeLocked                            = 0,
1424 |     AVCaptureExposureModeAutoExpose                        = 1,
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:26:60: error: 'FocusMode' is unavailable in visionOS
24 |     var isSubjectAreaChangeMonitoringEnabled: Bool { get set }
25 |
26 |     func isFocusModeSupported(_ focusMode: AVCaptureDevice.FocusMode) -> Bool
   |                                                            `- error: 'FocusMode' is unavailable in visionOS
27 |     func isExposureModeSupported(_ exposureMode: AVCaptureDevice.ExposureMode) -> Bool
28 |     func 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:1156:28: note: 'FocusMode' has been explicitly marked unavailable here
1154 |     Indicates that the device should automatically focus when needed.
1155 |  */
1156 | typedef NS_ENUM(NSInteger, AVCaptureFocusMode) {
     |                            `- note: 'FocusMode' has been explicitly marked unavailable here
1157 |     AVCaptureFocusModeLocked              = 0,
1158 |     AVCaptureFocusModeAutoFocus           = 1,
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:27:66: error: 'ExposureMode' is unavailable in visionOS
25 |
26 |     func isFocusModeSupported(_ focusMode: AVCaptureDevice.FocusMode) -> Bool
27 |     func isExposureModeSupported(_ exposureMode: AVCaptureDevice.ExposureMode) -> Bool
   |                                                                  `- error: 'ExposureMode' is unavailable in visionOS
28 |     func unlockForConfiguration()
29 |     func lockForConfiguration() throws
/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:1422:28: note: 'ExposureMode' has been explicitly marked unavailable here
1420 |     Indicates that the device should only adjust exposure according to user provided ISO, exposureDuration values.
1421 |  */
1422 | typedef NS_ENUM(NSInteger, AVCaptureExposureMode) {
     |                            `- note: 'ExposureMode' has been explicitly marked unavailable here
1423 |     AVCaptureExposureModeLocked                            = 0,
1424 |     AVCaptureExposureModeAutoExpose                        = 1,
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:32:1: error: type 'AVCaptureDevice' does not conform to protocol 'CaptureDevice'
30 | }
31 |
32 | extension AVCaptureDevice: CaptureDevice { }
   | `- error: type 'AVCaptureDevice' does not conform to protocol 'CaptureDevice'
33 |
34 | final class MockCaptureDevice: CaptureDevice {
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:32:1: error: unavailable property 'isTorchAvailable' was used to satisfy a requirement of protocol 'CaptureDevice'
12 | protocol CaptureDevice: class {
13 |     var torchMode: AVCaptureDevice.TorchMode { get set }
14 |     var isTorchAvailable: Bool { get }
   |         `- note: requirement 'isTorchAvailable' declared here
15 |
16 |     var focusMode: AVCaptureDevice.FocusMode { get set }
   :
30 | }
31 |
32 | extension AVCaptureDevice: CaptureDevice { }
   | `- error: unavailable property 'isTorchAvailable' was used to satisfy a requirement of protocol 'CaptureDevice'
33 |
34 | final class MockCaptureDevice: CaptureDevice {
/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:1084:62: note: 'isTorchAvailable' declared here
1082 |     The value of this property is a BOOL indicating whether the receiver's torch is currently available. The torch may become unavailable if, for example, the device overheats and needs to cool off. This property is key-value observable.
1083 |  */
1084 | @property(nonatomic, readonly, getter=isTorchAvailable) BOOL torchAvailable API_AVAILABLE(macos(10.15), ios(5.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos);
     |                                                              `- note: 'isTorchAvailable' declared here
1085 |
1086 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:32:1: error: unavailable property 'isSubjectAreaChangeMonitoringEnabled' was used to satisfy a requirement of protocol 'CaptureDevice'
22 |     var isExposurePointOfInterestSupported: Bool { get }
23 |
24 |     var isSubjectAreaChangeMonitoringEnabled: Bool { get set }
   |         `- note: requirement 'isSubjectAreaChangeMonitoringEnabled' declared here
25 |
26 |     func isFocusModeSupported(_ focusMode: AVCaptureDevice.FocusMode) -> Bool
   :
30 | }
31 |
32 | extension AVCaptureDevice: CaptureDevice { }
   | `- error: unavailable property 'isSubjectAreaChangeMonitoringEnabled' was used to satisfy a requirement of protocol 'CaptureDevice'
33 |
34 | final class MockCaptureDevice: CaptureDevice {
/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:2012:72: note: 'isSubjectAreaChangeMonitoringEnabled' declared here
2010 |     The value of this property is a BOOL indicating whether the receiver should monitor the video subject area for changes, such as lighting changes, substantial movement, etc. If subject area change monitoring is enabled, the receiver sends an AVCaptureDeviceSubjectAreaDidChangeNotification whenever it detects a change to the subject area, at which time an interested client may wish to re-focus, adjust exposure, white balance, etc. The receiver must be locked for configuration using lockForConfiguration: before clients can set the value of this property.
2011 |  */
2012 | @property(nonatomic, getter=isSubjectAreaChangeMonitoringEnabled) BOOL subjectAreaChangeMonitoringEnabled API_AVAILABLE(ios(5.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
     |                                                                        `- note: 'isSubjectAreaChangeMonitoringEnabled' declared here
2013 |
2014 | @end
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:35:36: error: 'TorchMode' is unavailable in visionOS
33 |
34 | final class MockCaptureDevice: CaptureDevice {
35 |     var torchMode: AVCaptureDevice.TorchMode = .off
   |                                    `- error: 'TorchMode' is unavailable in visionOS
36 |     var isTorchAvailable: Bool = true
37 |
/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:1049:28: note: 'TorchMode' has been explicitly marked unavailable here
1047 |     Indicates that the torch should be used automatically depending on ambient light conditions.
1048 |  */
1049 | typedef NS_ENUM(NSInteger, AVCaptureTorchMode) {
     |                            `- note: 'TorchMode' has been explicitly marked unavailable here
1050 |     AVCaptureTorchModeOff  = 0,
1051 |     AVCaptureTorchModeOn   = 1,
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:38:36: error: 'FocusMode' is unavailable in visionOS
36 |     var isTorchAvailable: Bool = true
37 |
38 |     var focusMode: AVCaptureDevice.FocusMode = .continuousAutoFocus
   |                                    `- error: 'FocusMode' is unavailable in visionOS
39 |     var focusPointOfInterest: CGPoint = .zero
40 |     var isFocusPointOfInterestSupported: Bool = true
/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:1156:28: note: 'FocusMode' has been explicitly marked unavailable here
1154 |     Indicates that the device should automatically focus when needed.
1155 |  */
1156 | typedef NS_ENUM(NSInteger, AVCaptureFocusMode) {
     |                            `- note: 'FocusMode' has been explicitly marked unavailable here
1157 |     AVCaptureFocusModeLocked              = 0,
1158 |     AVCaptureFocusModeAutoFocus           = 1,
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:42:39: error: 'ExposureMode' is unavailable in visionOS
40 |     var isFocusPointOfInterestSupported: Bool = true
41 |
42 |     var exposureMode: AVCaptureDevice.ExposureMode = .continuousAutoExposure
   |                                       `- error: 'ExposureMode' is unavailable in visionOS
43 |     var exposurePointOfInterest: CGPoint = .zero
44 |     var isExposurePointOfInterestSupported: Bool = true
/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:1422:28: note: 'ExposureMode' has been explicitly marked unavailable here
1420 |     Indicates that the device should only adjust exposure according to user provided ISO, exposureDuration values.
1421 |  */
1422 | typedef NS_ENUM(NSInteger, AVCaptureExposureMode) {
     |                            `- note: 'ExposureMode' has been explicitly marked unavailable here
1423 |     AVCaptureExposureModeLocked                            = 0,
1424 |     AVCaptureExposureModeAutoExpose                        = 1,
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift:55:60: error: 'FocusMode' is unavailable in visionOS
53 |     }
54 |
55 |     func isFocusModeSupported(_ focusMode: AVCaptureDevice.FocusMode) -> Bool {
   |                                                            `- error: 'FocusMode' is unavailable in visionOS
56 |         return true
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:1156:28: note: 'FocusMode' has been explicitly marked unavailable here
1154 |     Indicates that the device should automatically focus when needed.
1155 |  */
1156 | typedef NS_ENUM(NSInteger, AVCaptureFocusMode) {
     |                            `- note: 'FocusMode' has been explicitly marked unavailable here
1157 |     AVCaptureFocusModeLocked              = 0,
1158 |     AVCaptureFocusModeAutoFocus           = 1,
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Extensions/UIImage+Utils.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile UIImage+Utils.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/ImageScannerController.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile ImageScannerController.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/CaptureDevice.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CaptureDevice.swift
SwiftCompile normal arm64 Compiling\ CaptureSession+Orientation.swift,\ CaptureSession.swift,\ SinglePageScanner.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Session/CaptureSession+Orientation.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Session/CaptureSession.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/SinglePageScanner.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Session/CaptureSession+Orientation.swift:49:37: error: 'orientation' is unavailable in visionOS
47 |             // We don't use this to check for "portrait" because only the accelerometer works when portrait lock is enabled.
48 |             // For some reason, the left/right orientations are incorrect (flipped) :/
49 |             switch UIDevice.current.orientation {
   |                                     `- error: 'orientation' is unavailable in visionOS
50 |             case .landscapeLeft:
51 |                 self.editImageOrientation = .right
/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.
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Session/CaptureSession+Orientation.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CaptureSession+Orientation.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Session/CaptureSession.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CaptureSession.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/SinglePageScanner.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile SinglePageScanner.swift
SwiftCompile normal arm64 Compiling\ Transformable.swift,\ ReviewViewController.swift,\ CaptureSessionManager.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/Transformable.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Review/ReviewViewController.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/CaptureSessionManager.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Review/ReviewViewController.swift:98:51: error: 'blackTranslucent' is unavailable in visionOS
 96 |         guard enhancedImageIsAvailable else { return }
 97 |
 98 |         navigationController?.toolbar.barStyle = .blackTranslucent
    |                                                   `- error: 'blackTranslucent' is unavailable in visionOS
 99 |
100 |         let fixedSpace = UIBarButtonItem(barButtonSystemItem: .fixedSpace, target: nil, action: nil)
UIKit.UIBarStyle.blackTranslucent:4:8: note: 'blackTranslucent' has been explicitly marked unavailable here
2 | @available(iOS, introduced: 2.0, deprecated: 13.0, message: "Use UIBarStyleBlack and set the translucent property to YES instead.")
3 |   @available(visionOS, unavailable)
4 |   case blackTranslucent}
  |        `- note: 'blackTranslucent' has been explicitly marked unavailable here
5 |
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/CaptureSessionManager.swift:47:36: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 45 | final class CaptureSessionManager: NSObject, AVCaptureVideoDataOutputSampleBufferDelegate {
 46 |
 47 |     private let videoPreviewLayer: AVCaptureVideoPreviewLayer
    |                                    `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 48 |     private let captureSession = AVCaptureSession()
 49 |     private let rectangleFunnel = RectangleFeaturesFunnel()
/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/SinglePageScanner/Scan/CaptureSessionManager.swift:52:31: error: 'AVCapturePhotoOutput' is unavailable in visionOS
 50 |     weak var delegate: RectangleDetectionDelegateProtocol?
 51 |     private var displayedRectangleResult: RectangleDetectorResult?
 52 |     private var photoOutput = AVCapturePhotoOutput()
    |                               `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
 53 |
 54 |     /// Whether the CaptureSessionManager should be detecting quadrilaterals.
/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/SinglePageScanner/Scan/CaptureSessionManager.swift:65:30: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 63 |     // MARK: Life Cycle
 64 |
 65 |     init?(videoPreviewLayer: AVCaptureVideoPreviewLayer, delegate: RectangleDetectionDelegateProtocol? = nil) {
    |                              `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 66 |         self.videoPreviewLayer = videoPreviewLayer
 67 |
/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/SinglePageScanner/Scan/CaptureSessionManager.swift:250:39: error: 'AVCapturePhotoOutput' is unavailable in visionOS
248 |
249 |     // swiftlint:disable function_parameter_count
250 |     func photoOutput(_ captureOutput: AVCapturePhotoOutput, didFinishProcessingPhoto photoSampleBuffer: CMSampleBuffer?, previewPhoto previewPhotoSampleBuffer: CMSampleBuffer?, resolvedSettings: AVCaptureResolvedPhotoSettings, bracketSettings: AVCaptureBracketedStillImageSettings?, error: Error?) {
    |                                       `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
251 |         if let error = error {
252 |             delegate?.captureSessionManager(self, didFailWithError: error)
/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/SinglePageScanner/Scan/CaptureSessionManager.swift:250:196: error: 'AVCaptureResolvedPhotoSettings' is unavailable in visionOS
248 |
249 |     // swiftlint:disable function_parameter_count
250 |     func photoOutput(_ captureOutput: AVCapturePhotoOutput, didFinishProcessingPhoto photoSampleBuffer: CMSampleBuffer?, previewPhoto previewPhotoSampleBuffer: CMSampleBuffer?, resolvedSettings: AVCaptureResolvedPhotoSettings, bracketSettings: AVCaptureBracketedStillImageSettings?, error: Error?) {
    |                                                                                                                                                                                                    `- error: 'AVCaptureResolvedPhotoSettings' is unavailable in visionOS
251 |         if let error = error {
252 |             delegate?.captureSessionManager(self, didFailWithError: error)
/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:1788:12: note: 'AVCaptureResolvedPhotoSettings' has been explicitly marked unavailable here
1786 |  */
1787 | API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
1788 | @interface AVCaptureResolvedPhotoSettings : NSObject
     |            `- note: 'AVCaptureResolvedPhotoSettings' has been explicitly marked unavailable here
1789 | {
1790 | @private
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/CaptureSessionManager.swift:250:245: error: 'AVCaptureBracketedStillImageSettings' is unavailable in visionOS
248 |
249 |     // swiftlint:disable function_parameter_count
250 |     func photoOutput(_ captureOutput: AVCapturePhotoOutput, didFinishProcessingPhoto photoSampleBuffer: CMSampleBuffer?, previewPhoto previewPhotoSampleBuffer: CMSampleBuffer?, resolvedSettings: AVCaptureResolvedPhotoSettings, bracketSettings: AVCaptureBracketedStillImageSettings?, error: Error?) {
    |                                                                                                                                                                                                                                                     `- error: 'AVCaptureBracketedStillImageSettings' is unavailable in visionOS
251 |         if let error = error {
252 |             delegate?.captureSessionManager(self, didFailWithError: error)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureStillImageOutput.h:187:12: note: 'AVCaptureBracketedStillImageSettings' has been explicitly marked unavailable here
185 |  */
186 | API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos)
187 | @interface AVCaptureBracketedStillImageSettings : NSObject
    |            `- note: 'AVCaptureBracketedStillImageSettings' has been explicitly marked unavailable here
188 |
189 | AV_INIT_UNAVAILABLE
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/CaptureSessionManager.swift:272:32: error: 'AVCapturePhotoOutput' is unavailable in visionOS
270 |
271 |     @available(iOS 11.0, *)
272 |     func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
    |                                `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
273 |         if let error = error {
274 |             delegate?.captureSessionManager(self, didFailWithError: error)
/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/SinglePageScanner/Scan/CaptureSessionManager.swift:272:86: error: 'AVCapturePhoto' is unavailable in visionOS
270 |
271 |     @available(iOS 11.0, *)
272 |     func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
    |                                                                                      `- error: 'AVCapturePhoto' is unavailable in visionOS
273 |         if let error = error {
274 |             delegate?.captureSessionManager(self, didFailWithError: error)
/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/SinglePageScanner/Scan/CaptureSessionManager.swift:272:10: error: cannot override 'photoOutput' which has been marked unavailable
270 |
271 |     @available(iOS 11.0, *)
272 |     func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
    |          `- error: cannot override 'photoOutput' which has been marked unavailable
273 |         if let error = error {
274 |             delegate?.captureSessionManager(self, didFailWithError: error)
/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/SinglePageScanner/Scan/CaptureSessionManager.swift:250:10: error: cannot override 'photoOutput' which has been marked unavailable
248 |
249 |     // swiftlint:disable function_parameter_count
250 |     func photoOutput(_ captureOutput: AVCapturePhotoOutput, didFinishProcessingPhoto photoSampleBuffer: CMSampleBuffer?, previewPhoto previewPhotoSampleBuffer: CMSampleBuffer?, resolvedSettings: AVCaptureResolvedPhotoSettings, bracketSettings: AVCaptureBracketedStillImageSettings?, error: Error?) {
    |          `- error: cannot override 'photoOutput' which has been marked unavailable
251 |         if let error = error {
252 |             delegate?.captureSessionManager(self, didFailWithError: error)
/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:1094:1: note: 'photoOutput(_:didFinishProcessingPhoto:previewPhoto:resolvedSettings:bracketSettings:error:)' has been explicitly marked unavailable here
1092 |     If you've requested a single processed image (uncompressed or compressed) capture, the photo is delivered here. If you've requested a bracketed capture, this callback is fired bracketedSettings.count times (once for each photo in the bracket).
1093 |  */
1094 | - (void)captureOutput:(AVCapturePhotoOutput *)output didFinishProcessingPhotoSampleBuffer:(nullable CMSampleBufferRef)photoSampleBuffer previewPhotoSampleBuffer:(nullable CMSampleBufferRef)previewPhotoSampleBuffer resolvedSettings:(AVCaptureResolvedPhotoSettings *)resolvedSettings bracketSettings:(nullable AVCaptureBracketedStillImageSettings *)bracketSettings error:(nullable NSError *)error API_DEPRECATED_WITH_REPLACEMENT("-captureOutput:didFinishProcessingPhoto:error:", ios(10.0, 11.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(tvos);
     | `- note: 'photoOutput(_:didFinishProcessingPhoto:previewPhoto:resolvedSettings:bracketSettings:error:)' has been explicitly marked unavailable here
1095 |
1096 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/CaptureSessionManager.swift:247:34: error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
245 | }
246 |
247 | extension CaptureSessionManager: AVCapturePhotoCaptureDelegate {
    |                                  `- error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
248 |
249 |     // swiftlint:disable function_parameter_count
/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/SinglePageScanner/Scan/CaptureSessionManager.swift:74:44: error: 'default(for:)' is only available in visionOS 2.1 or newer
 43 |
 44 | /// The CaptureSessionManager is responsible for setting up and managing the AVCaptureSession and the functions related to capturing.
 45 | final class CaptureSessionManager: NSObject, AVCaptureVideoDataOutputSampleBufferDelegate {
    |             `- note: add '@available' attribute to enclosing class
 46 |
 47 |     private let videoPreviewLayer: AVCaptureVideoPreviewLayer
    :
 63 |     // MARK: Life Cycle
 64 |
 65 |     init?(videoPreviewLayer: AVCaptureVideoPreviewLayer, delegate: RectangleDetectionDelegateProtocol? = nil) {
    |     `- note: add '@available' attribute to enclosing initializer
 66 |         self.videoPreviewLayer = videoPreviewLayer
 67 |
    :
 72 |         super.init()
 73 |
 74 |         guard let device = AVCaptureDevice.default(for: AVMediaType.video) else {
    |                                            |- error: 'default(for:)' is only available in visionOS 2.1 or newer
    |                                            `- note: add 'if #available' version check
 75 |             let error = ImageScannerControllerError.inputDevice
 76 |             delegate?.captureSessionManager(self, didFailWithError: error)
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/CaptureSessionManager.swift:82:44: error: 'Preset' is unavailable in visionOS
 80 |         captureSession.beginConfiguration()
 81 |
 82 |         let photoPreset = AVCaptureSession.Preset.photo
    |                                            `- error: 'Preset' is unavailable in visionOS
 83 |
 84 |         if captureSession.canSetSessionPreset(photoPreset) {
/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:21:20: note: 'Preset' has been explicitly marked unavailable here
 19 |     Clients may use an AVCaptureSessionPreset to set the format for output on an AVCaptureSession.
 20 |  */
 21 | typedef NSString * AVCaptureSessionPreset NS_TYPED_ENUM API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
    |                    `- note: 'Preset' has been explicitly marked unavailable here
 22 |
 23 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/CaptureSessionManager.swift:82:51: error: 'photo' is unavailable in visionOS
 80 |         captureSession.beginConfiguration()
 81 |
 82 |         let photoPreset = AVCaptureSession.Preset.photo
    |                                                   `- error: 'photo' is unavailable in visionOS
 83 |
 84 |         if captureSession.canSetSessionPreset(photoPreset) {
/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:31:41: note: 'photo' has been explicitly marked unavailable here
 29 |     Clients may set an AVCaptureSession instance's sessionPreset to AVCaptureSessionPresetPhoto for full resolution photo quality output.
 30 |  */
 31 | AVF_EXPORT AVCaptureSessionPreset const AVCaptureSessionPresetPhoto API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
    |                                         `- note: 'photo' has been explicitly marked unavailable here
 32 |
 33 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/CaptureSessionManager.swift:84:27: error: 'canSetSessionPreset' is unavailable in visionOS
 82 |         let photoPreset = AVCaptureSession.Preset.photo
 83 |
 84 |         if captureSession.canSetSessionPreset(photoPreset) {
    |                           `- error: 'canSetSessionPreset' is unavailable in visionOS
 85 |             captureSession.sessionPreset = photoPreset
 86 |         }
/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/SinglePageScanner/Scan/CaptureSessionManager.swift:85:28: error: 'sessionPreset' is unavailable in visionOS
 83 |
 84 |         if captureSession.canSetSessionPreset(photoPreset) {
 85 |             captureSession.sessionPreset = photoPreset
    |                            `- error: 'sessionPreset' is unavailable in visionOS
 86 |         }
 87 |
/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/SinglePageScanner/Scan/CaptureSessionManager.swift:88:21: error: 'isHighResolutionCaptureEnabled' is unavailable in visionOS
 86 |         }
 87 |
 88 |         photoOutput.isHighResolutionCaptureEnabled = true
    |                     `- error: 'isHighResolutionCaptureEnabled' is unavailable in visionOS
 89 |
 90 |         let videoOutput = AVCaptureVideoDataOutput()
/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:536:66: note: 'isHighResolutionCaptureEnabled' has been explicitly marked unavailable here
 534 |     Some AVCaptureDeviceFormats support outputting higher resolution stills than their streaming resolution (See AVCaptureDeviceFormat.highResolutionStillImageDimensions). Under some conditions, AVCaptureSession needs to set up the photo render pipeline differently to support high resolution still image capture. If you intend to take high resolution still images at all, you should set this property to YES before calling -[AVCaptureSession startRunning]. Once you've opted in for high resolution capture, you are free to issue photo capture requests with or without highResolutionCaptureEnabled in the AVCapturePhotoSettings. If you have not set this property to YES and call capturePhotoWithSettings:delegate: with settings.highResolutionCaptureEnabled set to YES, an NSInvalidArgumentException will be thrown.
 535 |  */
 536 | @property(nonatomic, getter=isHighResolutionCaptureEnabled) BOOL highResolutionCaptureEnabled API_DEPRECATED("Use maxPhotoDimensions instead.", macos(10.15, 13.0), ios(10.0, 16.0), macCatalyst(14.0, 16.0)) API_UNAVAILABLE(tvos, visionos);
     |                                                                  `- note: 'isHighResolutionCaptureEnabled' has been explicitly marked unavailable here
 537 |
 538 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/CaptureSessionManager.swift:65:5: error: type 'AVCaptureDevice' does not conform to protocol 'CaptureDevice'
 63 |     // MARK: Life Cycle
 64 |
 65 |     init?(videoPreviewLayer: AVCaptureVideoPreviewLayer, delegate: RectangleDetectionDelegateProtocol? = nil) {
    |     `- error: type 'AVCaptureDevice' does not conform to protocol 'CaptureDevice'
 66 |         self.videoPreviewLayer = videoPreviewLayer
 67 |
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/CaptureSessionManager.swift:115:16: error: 'isSubjectAreaChangeMonitoringEnabled' is unavailable in visionOS
113 |         }
114 |
115 |         device.isSubjectAreaChangeMonitoringEnabled = true
    |                `- error: 'isSubjectAreaChangeMonitoringEnabled' is unavailable in visionOS
116 |
117 |         captureSession.addInput(deviceInput)
/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:2012:72: note: 'isSubjectAreaChangeMonitoringEnabled' has been explicitly marked unavailable here
2010 |     The value of this property is a BOOL indicating whether the receiver should monitor the video subject area for changes, such as lighting changes, substantial movement, etc. If subject area change monitoring is enabled, the receiver sends an AVCaptureDeviceSubjectAreaDidChangeNotification whenever it detects a change to the subject area, at which time an interested client may wish to re-focus, adjust exposure, white balance, etc. The receiver must be locked for configuration using lockForConfiguration: before clients can set the value of this property.
2011 |  */
2012 | @property(nonatomic, getter=isSubjectAreaChangeMonitoringEnabled) BOOL subjectAreaChangeMonitoringEnabled API_AVAILABLE(ios(5.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
     |                                                                        `- note: 'isSubjectAreaChangeMonitoringEnabled' has been explicitly marked unavailable here
2013 |
2014 | @end
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/CaptureSessionManager.swift:141:50: warning: 'weak' ownership of capture 'self' differs from implicitly-captured strong reference in outer scope [#ImplicitStrongCapture]
138 |             isDetecting = true
139 |         case .notDetermined:
140 |             AVCaptureDevice.requestAccess(for: AVMediaType.video, completionHandler: { (_) in
    |                                                                                      |- note: 'self' implicitly strongly captured here
    |                                                                                      `- note: add 'self' as a capture list item to silence
141 |                 DispatchQueue.main.async { [weak self] in
    |                                                  |- warning: 'weak' ownership of capture 'self' differs from implicitly-captured strong reference in outer scope [#ImplicitStrongCapture]
    |                                                  `- note: explicitly assign the capture list item to silence
142 |                     self?.start()
143 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/CaptureSessionManager.swift:156:81: error: 'isEnabled' is unavailable in visionOS
154 |
155 |     internal func capturePhoto() {
156 |         guard let connection = photoOutput.connection(with: .video), connection.isEnabled, connection.isActive else {
    |                                                                                 `- error: 'isEnabled' is unavailable in visionOS
157 |             let error = ImageScannerControllerError.capture
158 |             delegate?.captureSessionManager(self, didFailWithError: error)
/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:1009:45: note: 'isEnabled' has been explicitly marked unavailable here
1007 |     The value of this property is a BOOL that determines whether the receiver's output should consume data from its connected inputPorts when a session is running. Clients can set this property to stop the flow of data to a given output during capture. The default value is YES.
1008 |  */
1009 | @property(nonatomic, getter=isEnabled) BOOL enabled API_UNAVAILABLE(visionos);
     |                                             `- note: 'isEnabled' has been explicitly marked unavailable here
1010 |
1011 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/CaptureSessionManager.swift:156:103: error: 'isActive' is unavailable in visionOS
154 |
155 |     internal func capturePhoto() {
156 |         guard let connection = photoOutput.connection(with: .video), connection.isEnabled, connection.isActive else {
    |                                                                                                       `- error: 'isActive' is unavailable in visionOS
157 |             let error = ImageScannerControllerError.capture
158 |             delegate?.captureSessionManager(self, didFailWithError: error)
/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:1021:54: note: 'isActive' has been explicitly marked unavailable here
1019 |     Prior to iOS 11, the audio connection feeding an AVCaptureAudioDataOutput is made inactive when using AVCaptureSessionPresetPhoto or the equivalent photo format using -[AVCaptureDevice activeFormat]. On iOS 11 and later, the audio connection feeding AVCaptureAudioDataOutput is active for all presets and device formats.
1020 |  */
1021 | @property(nonatomic, readonly, getter=isActive) BOOL active API_UNAVAILABLE(visionos);
     |                                                      `- note: 'isActive' has been explicitly marked unavailable here
1022 |
1023 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/CaptureSessionManager.swift:162:29: error: 'AVCapturePhotoSettings' is unavailable in visionOS
160 |         }
161 |         CaptureSession.current.setImageOrientation()
162 |         let photoSettings = AVCapturePhotoSettings()
    |                             `- error: 'AVCapturePhotoSettings' is unavailable in visionOS
163 |         photoSettings.isHighResolutionPhotoEnabled = true
164 |         photoSettings.isAutoStillImageStabilizationEnabled = true
/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/SinglePageScanner/Scan/CaptureSessionManager.swift:163:23: error: 'isHighResolutionPhotoEnabled' is unavailable in visionOS
161 |         CaptureSession.current.setImageOrientation()
162 |         let photoSettings = AVCapturePhotoSettings()
163 |         photoSettings.isHighResolutionPhotoEnabled = true
    |                       `- error: 'isHighResolutionPhotoEnabled' is unavailable in visionOS
164 |         photoSettings.isAutoStillImageStabilizationEnabled = true
165 |         photoOutput.capturePhoto(with: photoSettings, delegate: self)
/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:1446:64: note: 'isHighResolutionPhotoEnabled' has been explicitly marked unavailable here
1444 |     Starting in iOS 14.5 if you disable geometric distortion correction, the high resolution photo emitted by AVCapturePhotoOutput may be is smaller depending on the format.
1445 |  */
1446 | @property(nonatomic, getter=isHighResolutionPhotoEnabled) BOOL highResolutionPhotoEnabled API_DEPRECATED("Use maxPhotoDimensions instead.", macos(10.15, 13.0), ios(10.0, 16.0), macCatalyst(14.0, 16.0)) API_UNAVAILABLE(tvos, visionos);
     |                                                                `- note: 'isHighResolutionPhotoEnabled' has been explicitly marked unavailable here
1447 |
1448 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/CaptureSessionManager.swift:164:23: error: 'isAutoStillImageStabilizationEnabled' is unavailable in visionOS
162 |         let photoSettings = AVCapturePhotoSettings()
163 |         photoSettings.isHighResolutionPhotoEnabled = true
164 |         photoSettings.isAutoStillImageStabilizationEnabled = true
    |                       `- error: 'isAutoStillImageStabilizationEnabled' is unavailable in visionOS
165 |         photoOutput.capturePhoto(with: photoSettings, delegate: self)
166 |     }
/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:1394:72: note: 'isAutoStillImageStabilizationEnabled' has been explicitly marked unavailable here
1392 |     As of iOS 13 hardware, the AVCapturePhotoOutput is capable of applying a variety of multi-image fusion techniques to improve photo quality (reduce noise, preserve detail in low light, freeze motion, etc), all of which have been previously lumped under the stillImageStabilization moniker. This property should no longer be used as it no longer provides meaningful information about the techniques used to improve quality in a photo capture. Instead, you should use -photoQualityPrioritization to indicate your preferred quality vs speed.
1393 |  */
1394 | @property(nonatomic, getter=isAutoStillImageStabilizationEnabled) BOOL autoStillImageStabilizationEnabled API_DEPRECATED_WITH_REPLACEMENT("photoQualityPrioritization", ios(10.0, 13.0)) API_UNAVAILABLE(macos, visionos)  API_UNAVAILABLE(tvos);
     |                                                                        `- note: 'isAutoStillImageStabilizationEnabled' has been explicitly marked unavailable here
1395 |
1396 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/CaptureSessionManager.swift:203:21: warning: call to method 'capturePhoto' in closure requires explicit use of 'self' to make capture semantics explicit; this is an error in the Swift 6 language mode
201 |                 strongSelf.displayRectangleResult(rectangleResult: RectangleDetectorResult(rectangle: rectangle, imageSize: imageSize))
202 |                 if shouldAutoScan, CaptureSession.current.isAutoScanEnabled, !CaptureSession.current.isEditing {
203 |                     capturePhoto()
    |                     `- warning: call to method 'capturePhoto' in closure requires explicit use of 'self' to make capture semantics explicit; this is an error in the Swift 6 language mode
204 |                 }
205 |             }
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/CaptureSessionManager.swift:261:29: error: 'AVCapturePhotoOutput' is unavailable in visionOS
259 |
260 |         if let sampleBuffer = photoSampleBuffer,
261 |             let imageData = AVCapturePhotoOutput.jpegPhotoDataRepresentation(forJPEGSampleBuffer: sampleBuffer, previewPhotoSampleBuffer: nil) {
    |                             `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
262 |             completeImageCapture(with: imageData)
263 |         } 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/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/SinglePageScanner/Scan/CaptureSessionManager.swift:261:50: error: 'jpegPhotoDataRepresentation(forJPEGSampleBuffer:previewPhotoSampleBuffer:)' is unavailable in visionOS
259 |
260 |         if let sampleBuffer = photoSampleBuffer,
261 |             let imageData = AVCapturePhotoOutput.jpegPhotoDataRepresentation(forJPEGSampleBuffer: sampleBuffer, previewPhotoSampleBuffer: nil) {
    |                                                  `- error: 'jpegPhotoDataRepresentation(forJPEGSampleBuffer:previewPhotoSampleBuffer:)' is unavailable in visionOS
262 |             completeImageCapture(with: imageData)
263 |         } 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/AVCapturePhotoOutput.h:644:1: note: 'jpegPhotoDataRepresentation(forJPEGSampleBuffer:previewPhotoSampleBuffer:)' has been explicitly marked unavailable here
 642 |     AVCapturePhotoOutput's depecrated -captureOutput:didFinishProcessingPhotoSampleBuffer:previewPhotoSampleBuffer:resolvedSettings:bracketSettings:error: callback delivers JPEG photos to clients as CMSampleBuffers. To re-package these buffers in a data format suitable for writing to a JPEG file, you may call this class method, optionally inserting your own metadata into the JPEG CMSampleBuffer first, and optionally passing a preview image to be written to the JPEG file format as a thumbnail image.
 643 |  */
 644 | + (nullable NSData *)JPEGPhotoDataRepresentationForJPEGSampleBuffer:(CMSampleBufferRef)JPEGSampleBuffer previewPhotoSampleBuffer:(nullable CMSampleBufferRef)previewPhotoSampleBuffer API_DEPRECATED_WITH_REPLACEMENT("-[AVCapturePhoto fileDataRepresentation]", ios(10.0, 11.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(tvos);
     | `- note: 'jpegPhotoDataRepresentation(forJPEGSampleBuffer:previewPhotoSampleBuffer:)' has been explicitly marked unavailable here
 645 |
 646 | /*!
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Protocols/Transformable.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Transformable.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Review/ReviewViewController.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile ReviewViewController.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/CaptureSessionManager.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CaptureSessionManager.swift
SwiftCompile normal arm64 Compiling\ ShutterButton.swift,\ CaptureSession+Flash.swift,\ CaptureSession+Focus.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/ShutterButton.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Session/CaptureSession+Flash.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Session/CaptureSession+Focus.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/ShutterButton.swift:20:43: error: 'UIImpactFeedbackGenerator' is unavailable in visionOS
 18 |     private let innerRingRatio: CGFloat = 0.75
 19 |
 20 |     private let impactFeedbackGenerator = UIImpactFeedbackGenerator(style: .light)
    |                                           `- error: 'UIImpactFeedbackGenerator' is unavailable in visionOS
 21 |
 22 |     override var isHighlighted: Bool {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImpactFeedbackGenerator.h:25:12: note: 'UIImpactFeedbackGenerator' has been explicitly marked unavailable here
23 | // UIImpactFeedbackGenerator is used to give user feedback when an impact between UI elements occurs
24 | UIKIT_EXTERN API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(visionos, tvos) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
25 | @interface UIImpactFeedbackGenerator : UIFeedbackGenerator
   |            `- note: 'UIImpactFeedbackGenerator' has been explicitly marked unavailable here
26 |
27 | /// set a style on the feedback generator and attach it to the provided view as an interaction.
/Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/ShutterButton.swift:54:46: error: 'UIScreen' is unavailable in visionOS
 52 |         outterRingLayer.path = pathForOutterRing(inRect: rect).cgPath
 53 |         outterRingLayer.fillColor = UIColor.white.cgColor
 54 |         outterRingLayer.rasterizationScale = UIScreen.main.scale
    |                                              `- error: 'UIScreen' is unavailable in visionOS
 55 |         outterRingLayer.shouldRasterize = true
 56 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:54:12: note: 'UIScreen' has been explicitly marked unavailable here
 52 |
 53 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(visionos, watchos) NS_SWIFT_UI_ACTOR
 54 | @interface UIScreen : NSObject <UITraitEnvironment>
    |            `- note: 'UIScreen' has been explicitly marked unavailable here
 55 |
 56 | @property(class, nonatomic, readonly) NSArray<UIScreen *> *screens API_DEPRECATED("Use UIApplication.shared.openSessions to find open sessions with scenes from other screens", ios(3.2, 16.0), visionos(1.0, 1.0)) API_UNAVAILABLE(watchos); // all screens currently attached to the device
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/ShutterButton.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile ShutterButton.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Session/CaptureSession+Flash.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CaptureSession+Flash.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Session/CaptureSession+Focus.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CaptureSession+Focus.swift
SwiftCompile normal arm64 Compiling\ FocusRectangleView.swift,\ RectangleFeaturesFunnel.swift,\ ScannerViewController.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/FocusRectangleView.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/RectangleFeaturesFunnel.swift /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/ScannerViewController.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/FocusRectangleView.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile FocusRectangleView.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/RectangleFeaturesFunnel.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile RectangleFeaturesFunnel.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SinglePageScanner/Scan/ScannerViewController.swift (in target 'SinglePageScanner' from project 'SinglePageScanner')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile ScannerViewController.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-17 05:36:41.829 xcodebuild[777:4792] [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\ SinglePageScanner (in target 'SinglePageScanner' from project 'SinglePageScanner')
	SwiftCompile normal arm64 (in target 'SinglePageScanner' from project 'SinglePageScanner')
	Building workspace SinglePageScanner with scheme SinglePageScanner
(3 failures)
BUILD FAILURE 6.4 visionOS