The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftttCamera, reference master (8c418c), with Swift 6.4 for visionOS using Xcode 27.0 on 17 Sep 2026 20:53:40 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 SwiftttCamera -destination generic/platform=xrOS

Build Log

SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/UIUtilities-AOVGLUWEAN6CG2UZFNESGSP6C.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/UserNotifications-8IIV1V1FPNAPA4LY1Y23LOM2N.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/DataDetection-BANTQ3WXXGKZJYC0LLB3MD9K0.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_LocationEssentials-8GQGFVARUE99D8VJX3TINY0VP.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/OSLog-BNGT87TS0GMBFF7TY70HHB69.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/Metal-EKNUM9P3PRIBHZK1ZBD6BA2T7.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/OpenGLES-56BKSYXNVAP91BYZRWAKQZKGI.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/AVRouting-55P8FRNK50AFZOMMB2LBBOX33.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/AudioToolbox-2K3S8EA590EB3GMH6D6784BWZ.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/CoreLocation-1SN37095DAPVJ068LLP9TBDQX.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/CoreMotion-10LV922UPGE28QX2SOIO7ALIZ.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/CoreVideo-E12HJSJSLO0YKWYBES11UKJ02.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/CoreImage-8WF1P230U10QM666EQMNV7OF1.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/CoreMedia-D1IBHC28BRHWLNUG1Q75G5YN0.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/QuartzCore-12T8WVKUNCL1N7VXH87MM4YOB.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/SwiftUICore-6OBBMA39VFD4CB6SG2PE41FAP.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/VideoToolbox-7I4MDYIPJ4IWU1ZSL4JE3I7M6.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/AVFAudio-E8GATWFYYBEBB41O9N0LRRGYC.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/MediaToolbox-1J5U29ERBPNPI1HKEJHXOP8EV.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/UIKit-2D2PMAAE45TMO6S28UCGCO5BR.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/AVFoundation-DFCX8GQJWVA3CZBITWEHAZEFX.pcm
SwiftEmitModule normal arm64 Emitting\ module\ for\ SwiftttCamera (in target 'SwiftttCamera' from project 'SwiftttCamera')
/Users/admin/builder/spi-builder-workspace/Sources/CameraTypes.swift:45:43: error: 'FlashMode' is unavailable in visionOS
43 |     case auto
44 |
45 |     var captureFlashMode: AVCaptureDevice.FlashMode {
   |                                           `- error: 'FlashMode' is unavailable in visionOS
46 |         switch self {
47 |         case .on: return .on
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:967:28: note: 'FlashMode' has been explicitly marked unavailable here
 965 |     Indicates that the flash should be used automatically depending on ambient light conditions.
 966 |  */
 967 | typedef NS_ENUM(NSInteger, AVCaptureFlashMode) {
     |                            `- note: 'FlashMode' has been explicitly marked unavailable here
 968 |     AVCaptureFlashModeOff  = 0,
 969 |     AVCaptureFlashModeOn   = 1,
/Users/admin/builder/spi-builder-workspace/Sources/CameraTypes.swift:63:43: error: 'TorchMode' is unavailable in visionOS
61 |     case auto
62 |
63 |     var captureTorchMode: AVCaptureDevice.TorchMode {
   |                                           `- error: 'TorchMode' is unavailable in visionOS
64 |         switch self {
65 |         case .on: return .on
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h: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/DeviceOrientation.swift:9:26: error: 'beginGeneratingDeviceOrientationNotifications()' is unavailable in visionOS
 7 | final class DeviceOrientation {
 8 |     private lazy var motionManager: CMMotionManager? = {
 9 |         UIDevice.current.beginGeneratingDeviceOrientationNotifications()
   |                          `- error: 'beginGeneratingDeviceOrientationNotifications()' is unavailable in visionOS
10 |         #if TARGET_IPHONE_SIMULATOR
11 |         return nil
/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:49:1: note: 'beginGeneratingDeviceOrientationNotifications()' has been explicitly marked unavailable here
47 |
48 | @property(nonatomic,readonly,getter=isGeneratingDeviceOrientationNotifications) BOOL generatesDeviceOrientationNotifications API_UNAVAILABLE(tvos, visionos);
49 | - (void)beginGeneratingDeviceOrientationNotifications API_UNAVAILABLE(tvos, visionos);      // nestable
   | `- note: 'beginGeneratingDeviceOrientationNotifications()' has been explicitly marked unavailable here
50 | - (void)endGeneratingDeviceOrientationNotifications API_UNAVAILABLE(tvos, visionos);
51 |
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:14:45: error: 'DeviceType' is only available in visionOS 2.1 or newer
  3 | import AVFoundation
  4 |
  5 | public extension AVCaptureDevice {
    |        `- note: add '@available' attribute to enclosing extension
  6 |     /// All camera devices available in this device currently.
  7 |     /// Devices are sorted by AVCaptureDeviceType, matching the order specified in the deviceTypes parameter of +[AVCaptureDeviceDiscoverySession discoverySessionWithDeviceTypes:mediaType:position:]. If a `.unspecified` position is given, the results are further ordered by position in the AVCaptureDevicePosition enum.
    :
 12 |
 13 |     /// All camera types available in iOS.
 14 |     static let allCameras: [AVCaptureDevice.DeviceType] = [
    |                |                            `- error: 'DeviceType' is only available in visionOS 2.1 or newer
    |                `- note: add '@available' attribute to enclosing static property
 15 |         .builtInWideAngleCamera,
 16 |         .builtInTelephotoCamera,
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:15:10: error: 'builtInWideAngleCamera' is only available in visionOS 2.1 or newer
  3 | import AVFoundation
  4 |
  5 | public extension AVCaptureDevice {
    |        `- note: add '@available' attribute to enclosing extension
  6 |     /// All camera devices available in this device currently.
  7 |     /// Devices are sorted by AVCaptureDeviceType, matching the order specified in the deviceTypes parameter of +[AVCaptureDeviceDiscoverySession discoverySessionWithDeviceTypes:mediaType:position:]. If a `.unspecified` position is given, the results are further ordered by position in the AVCaptureDevicePosition enum.
    :
 12 |
 13 |     /// All camera types available in iOS.
 14 |     static let allCameras: [AVCaptureDevice.DeviceType] = [
    |                `- note: add '@available' attribute to enclosing static property
 15 |         .builtInWideAngleCamera,
    |          `- error: 'builtInWideAngleCamera' is only available in visionOS 2.1 or newer
 16 |         .builtInTelephotoCamera,
 17 |         .builtInDualCamera,
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:16:10: error: 'builtInTelephotoCamera' is unavailable in visionOS
 14 |     static let allCameras: [AVCaptureDevice.DeviceType] = [
 15 |         .builtInWideAngleCamera,
 16 |         .builtInTelephotoCamera,
    |          `- error: 'builtInTelephotoCamera' is unavailable in visionOS
 17 |         .builtInDualCamera,
 18 |         .builtInTrueDepthCamera,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:568:38: note: 'builtInTelephotoCamera' has been explicitly marked unavailable here
 566 |     A built-in camera device with a longer focal length than a wide angle camera. Note that devices of this type may only be discovered using an AVCaptureDeviceDiscoverySession.
 567 |  */
 568 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInTelephotoCamera API_AVAILABLE(ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInTelephotoCamera' has been explicitly marked unavailable here
 569 |
 570 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:17:10: error: 'builtInDualCamera' is unavailable in visionOS
 15 |         .builtInWideAngleCamera,
 16 |         .builtInTelephotoCamera,
 17 |         .builtInDualCamera,
    |          `- error: 'builtInDualCamera' is unavailable in visionOS
 18 |         .builtInTrueDepthCamera,
 19 |         .builtInUltraWideCamera,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:593:38: note: 'builtInDualCamera' has been explicitly marked unavailable here
 591 |     Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.
 592 |  */
 593 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInDualCamera API_AVAILABLE(ios(10.2), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInDualCamera' has been explicitly marked unavailable here
 594 |
 595 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:18:10: error: 'builtInTrueDepthCamera' is unavailable in visionOS
 16 |         .builtInTelephotoCamera,
 17 |         .builtInDualCamera,
 18 |         .builtInTrueDepthCamera,
    |          `- error: 'builtInTrueDepthCamera' is unavailable in visionOS
 19 |         .builtInUltraWideCamera,
 20 |         .builtInDualWideCamera,
/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:634:38: note: 'builtInTrueDepthCamera' has been explicitly marked unavailable here
 632 |     A device that consists of two cameras, one YUV and one Infrared. The infrared camera provides high quality depth information that is synchronized and perspective corrected to frames produced by the YUV camera. While the resolution of the depth data and YUV frames may differ, their field of view and aspect ratio always match. Note that devices of this type may only be discovered using an AVCaptureDeviceDiscoverySession or -[AVCaptureDevice defaultDeviceWithDeviceType:mediaType:position:].
 633 |  */
 634 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInTrueDepthCamera API_AVAILABLE(ios(11.1), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInTrueDepthCamera' has been explicitly marked unavailable here
 635 |
 636 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:19:10: error: 'builtInUltraWideCamera' is unavailable in visionOS
 17 |         .builtInDualCamera,
 18 |         .builtInTrueDepthCamera,
 19 |         .builtInUltraWideCamera,
    |          `- error: 'builtInUltraWideCamera' is unavailable in visionOS
 20 |         .builtInDualWideCamera,
 21 |         .builtInTripleCamera,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:574:38: note: 'builtInUltraWideCamera' has been explicitly marked unavailable here
 572 |     A built-in camera device with a shorter focal length than a wide angle camera. Note that devices of this type may only be discovered using an AVCaptureDeviceDiscoverySession.
 573 |  */
 574 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInUltraWideCamera API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInUltraWideCamera' has been explicitly marked unavailable here
 575 |
 576 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:20:10: error: 'builtInDualWideCamera' is unavailable in visionOS
 18 |         .builtInTrueDepthCamera,
 19 |         .builtInUltraWideCamera,
 20 |         .builtInDualWideCamera,
    |          `- error: 'builtInDualWideCamera' is unavailable in visionOS
 21 |         .builtInTripleCamera,
 22 |     ]
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:611:38: note: 'builtInDualWideCamera' has been explicitly marked unavailable here
 609 |     Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.
 610 |  */
 611 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInDualWideCamera API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInDualWideCamera' has been explicitly marked unavailable here
 612 |
 613 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:21:10: error: 'builtInTripleCamera' is unavailable in visionOS
 19 |         .builtInUltraWideCamera,
 20 |         .builtInDualWideCamera,
 21 |         .builtInTripleCamera,
    |          `- error: 'builtInTripleCamera' is unavailable in visionOS
 22 |     ]
 23 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:628:38: note: 'builtInTripleCamera' has been explicitly marked unavailable here
 626 |     Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.
 627 |  */
 628 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInTripleCamera API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInTripleCamera' has been explicitly marked unavailable here
 629 |
 630 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:25:55: error: 'DeviceType' is only available in visionOS 2.1 or newer
  3 | import AVFoundation
  4 |
  5 | public extension AVCaptureDevice {
    |        `- note: add '@available' attribute to enclosing extension
  6 |     /// All camera devices available in this device currently.
  7 |     /// Devices are sorted by AVCaptureDeviceType, matching the order specified in the deviceTypes parameter of +[AVCaptureDeviceDiscoverySession discoverySessionWithDeviceTypes:mediaType:position:]. If a `.unspecified` position is given, the results are further ordered by position in the AVCaptureDevicePosition enum.
    :
 23 |
 24 |     /// All camera types available in this device.
 25 |     static let availableCameraTypes: [AVCaptureDevice.DeviceType] = allCameras.filter { AVCaptureDevice.DiscoverySession(deviceTypes: [ $0 ], mediaType: .video, position: .unspecified).devices.isEmpty == false }
    |                |                                      `- error: 'DeviceType' is only available in visionOS 2.1 or newer
    |                `- note: add '@available' attribute to enclosing static property
 26 | }
 27 |
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:25:105: error: 'DiscoverySession' is only available in visionOS 2.1 or newer
  3 | import AVFoundation
  4 |
  5 | public extension AVCaptureDevice {
    |        `- note: add '@available' attribute to enclosing extension
  6 |     /// All camera devices available in this device currently.
  7 |     /// Devices are sorted by AVCaptureDeviceType, matching the order specified in the deviceTypes parameter of +[AVCaptureDeviceDiscoverySession discoverySessionWithDeviceTypes:mediaType:position:]. If a `.unspecified` position is given, the results are further ordered by position in the AVCaptureDevicePosition enum.
    :
 23 |
 24 |     /// All camera types available in this device.
 25 |     static let availableCameraTypes: [AVCaptureDevice.DeviceType] = allCameras.filter { AVCaptureDevice.DiscoverySession(deviceTypes: [ $0 ], mediaType: .video, position: .unspecified).devices.isEmpty == false }
    |                |                                                                                        |- error: 'DiscoverySession' is only available in visionOS 2.1 or newer
    |                |                                                                                        `- note: add 'if #available' version check
    |                `- note: add '@available' attribute to enclosing static property
 26 | }
 27 |
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:123:63: error: 'FocusMode' is unavailable in visionOS
121 | public extension AVCaptureDevice {
122 |     /// Sets the given focus mode to this device, if it's supported.
123 |     func setFocusModeIfSupported(_ focusMode: AVCaptureDevice.FocusMode) {
    |                                                               `- error: 'FocusMode' is unavailable in visionOS
124 |         guard isFocusModeSupported(focusMode) else { return }
125 |         self.focusMode = focusMode
/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/Extensions/AVCaptureDevice+Utilities.swift:129:53: error: 'ExposureMode' is unavailable in visionOS
127 |
128 |     /// Sets the given exposure mode to this device, if it's supported.
129 |     func setExposureModeIfSupported(_ exposureMode: ExposureMode) {
    |                                                     `- error: 'ExposureMode' is unavailable in visionOS
130 |         guard isExposureModeSupported(exposureMode) else { return }
131 |         self.exposureMode = exposureMode
/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/Extensions/AVCaptureSession+Utilities.swift:20:64: error: 'Preset' is unavailable in visionOS
18 |
19 |     /// Configures the receiver with the given preset, if possible.
20 |     func setSessionPresetIfPossible(_ preset: AVCaptureSession.Preset) {
   |                                                                `- error: 'Preset' is unavailable in visionOS
21 |         guard canSetSessionPreset(preset) else { return }
22 |         sessionPreset = preset
/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/Extensions/UIImage+Utilities.swift:31:50: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 29 |     /// - Parameter previewLayer: The preview layer of the camera's live preview.
 30 |     /// - Returns: The CGRect to use for cropping the camera's captured image to match the camera preview.
 31 |     func cropRect(fromPreviewLayer previewLayer: AVCaptureVideoPreviewLayer) -> CGRect {
    |                                                  `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 32 |         let outputRect = previewLayer.metadataOutputRectConverted(fromLayerRect: previewLayer.bounds)
 33 |         return cropRect(fromOutputRect: outputRect)
/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/SwiftttCamera.swift:14:31: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 12 |     private var zoom: Zoom!
 13 |     private var session: AVCaptureSession!
 14 |     private var previewLayer: AVCaptureVideoPreviewLayer!
    |                               `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 15 |     private var photoOutput: AVCapturePhotoOutput!
 16 |     private var deviceAuthorized: Bool = false
/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/SwiftttCamera.swift:15:30: error: 'AVCapturePhotoOutput' is unavailable in visionOS
 13 |     private var session: AVCaptureSession!
 14 |     private var previewLayer: AVCaptureVideoPreviewLayer!
 15 |     private var photoOutput: AVCapturePhotoOutput!
    |                              `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
 16 |     private var deviceAuthorized: Bool = false
 17 |     private var isCapturingImage: Bool = false
/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/SwiftttCamera.swift:409:63: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
407 |     }
408 |
409 |     private func currentCaptureVideoOrientationForDevice() -> AVCaptureVideoOrientation {
    |                                                               `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
410 |         let actualOrientation: UIDeviceOrientation = deviceOrientation.orientation
411 |         switch actualOrientation {
/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/SwiftttCamera.swift:421:63: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
419 |     }
420 |
421 |     private func currentPreviewVideoOrientationForDevice() -> AVCaptureVideoOrientation {
    |                                                               `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
422 |         let deviceOrientation: UIDeviceOrientation = currentPreviewDeviceOrientation()
423 |         return Self.videoOrientation(forDeviceOrientation: deviceOrientation)
/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/SwiftttCamera.swift:426:106: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
424 |     }
425 |
426 |     private static func videoOrientation(forDeviceOrientation deviceOrientation: UIDeviceOrientation) -> AVCaptureVideoOrientation {
    |                                                                                                          `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
427 |         switch deviceOrientation {
428 |         case .portrait: return .portrait
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/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/SwiftttCamera.swift:490:39: error: 'AVCapturePhotoOutput' is unavailable in visionOS
488 |
489 | extension SwiftttCamera : AVCapturePhotoCaptureDelegate {
490 |     public func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
    |                                       `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
491 |         guard isCapturingImage else { return }
492 |         guard let imageData: Data = photo.fileDataRepresentation() else { isCapturingImage = false; return }
/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/SwiftttCamera.swift:490:93: error: 'AVCapturePhoto' is unavailable in visionOS
488 |
489 | extension SwiftttCamera : AVCapturePhotoCaptureDelegate {
490 |     public func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
    |                                                                                             `- error: 'AVCapturePhoto' is unavailable in visionOS
491 |         guard isCapturingImage else { return }
492 |         guard let imageData: Data = photo.fileDataRepresentation() else { isCapturingImage = false; return }
/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/SwiftttCamera.swift:490:17: error: cannot override 'photoOutput' which has been marked unavailable
488 |
489 | extension SwiftttCamera : AVCapturePhotoCaptureDelegate {
490 |     public func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
    |                 `- error: cannot override 'photoOutput' which has been marked unavailable
491 |         guard isCapturingImage else { return }
492 |         guard let imageData: Data = photo.fileDataRepresentation() else { isCapturingImage = false; return }
/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/SwiftttCamera.swift:489:27: error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
487 | }
488 |
489 | extension SwiftttCamera : AVCapturePhotoCaptureDelegate {
    |                           `- error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
490 |     public func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
491 |         guard isCapturingImage else { return }
/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
Failed frontend command:
SwiftCompile normal arm64 (in target 'SwiftttCamera' from project 'SwiftttCamera')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode

/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/CameraDelegate.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraProtocol.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraTypes.swift /Users/admin/builder/spi-builder-workspace/Sources/CapturedImage.swift /Users/admin/builder/spi-builder-workspace/Sources/DeviceOrientation.swift /Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift /Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureSession+Utilities.swift /Users/admin/builder/spi-builder-workspace/Sources/Extensions/Comparable+Utilities.swift /Users/admin/builder/spi-builder-workspace/Sources/Extensions/UIImage+Utilities.swift /Users/admin/builder/spi-builder-workspace/Sources/Extensions/UIViewController+SwiftttCamera.swift /Users/admin/builder/spi-builder-workspace/Sources/Focus.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftttCamera.swift /Users/admin/builder/spi-builder-workspace/Sources/Zoom.swift -target arm64-apple-xros1.0 -disable-cross-import-overlay-search -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/SwiftttCamera.build/Debug-xros/SwiftttCamera-t.build/Objects-normal/arm64/SwiftttCamera-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/SwiftttCamera.build/Debug-xros/SwiftttCamera-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftttCamera.build/Debug-xros/SwiftttCamera-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftttCamera.build/Debug-xros/SwiftttCamera-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name SwiftttCamera -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftttCamera.build/Debug-xros/SwiftttCamera-t.build/Objects-normal/arm64/SwiftttCamera_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/SwiftttCamera.build/Debug-xros/SwiftttCamera-t.build/Objects-normal/arm64/SwiftttCamera.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftttCamera.build/Debug-xros/SwiftttCamera-t.build/Objects-normal/arm64/SwiftttCamera.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftttCamera.build/Debug-xros/SwiftttCamera-t.build/Objects-normal/arm64/SwiftttCamera-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftttCamera.build/Debug-xros/SwiftttCamera-t.build/Objects-normal/arm64/SwiftttCamera-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftttCamera.build/Debug-xros/SwiftttCamera-t.build/Objects-normal/arm64/SwiftttCamera-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftttCamera.build/Debug-xros/SwiftttCamera-t.build/Objects-normal/arm64/SwiftttCamera.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftttCamera.build/Debug-xros/SwiftttCamera-t.build/Objects-normal/arm64/SwiftttCamera.abi.json
SwiftCompile normal arm64 Compiling\ SwiftttCamera.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftttCamera.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
/Users/admin/builder/spi-builder-workspace/Sources/SwiftttCamera.swift:14:31: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 12 |     private var zoom: Zoom!
 13 |     private var session: AVCaptureSession!
 14 |     private var previewLayer: AVCaptureVideoPreviewLayer!
    |                               `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 15 |     private var photoOutput: AVCapturePhotoOutput!
 16 |     private var deviceAuthorized: Bool = false
/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/SwiftttCamera.swift:15:30: error: 'AVCapturePhotoOutput' is unavailable in visionOS
 13 |     private var session: AVCaptureSession!
 14 |     private var previewLayer: AVCaptureVideoPreviewLayer!
 15 |     private var photoOutput: AVCapturePhotoOutput!
    |                              `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
 16 |     private var deviceAuthorized: Bool = false
 17 |     private var isCapturingImage: Bool = false
/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/SwiftttCamera.swift:409:63: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
407 |     }
408 |
409 |     private func currentCaptureVideoOrientationForDevice() -> AVCaptureVideoOrientation {
    |                                                               `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
410 |         let actualOrientation: UIDeviceOrientation = deviceOrientation.orientation
411 |         switch actualOrientation {
/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/SwiftttCamera.swift:421:63: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
419 |     }
420 |
421 |     private func currentPreviewVideoOrientationForDevice() -> AVCaptureVideoOrientation {
    |                                                               `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
422 |         let deviceOrientation: UIDeviceOrientation = currentPreviewDeviceOrientation()
423 |         return Self.videoOrientation(forDeviceOrientation: deviceOrientation)
/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/SwiftttCamera.swift:426:106: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
424 |     }
425 |
426 |     private static func videoOrientation(forDeviceOrientation deviceOrientation: UIDeviceOrientation) -> AVCaptureVideoOrientation {
    |                                                                                                          `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
427 |         switch deviceOrientation {
428 |         case .portrait: return .portrait
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/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/SwiftttCamera.swift:490:39: error: 'AVCapturePhotoOutput' is unavailable in visionOS
488 |
489 | extension SwiftttCamera : AVCapturePhotoCaptureDelegate {
490 |     public func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
    |                                       `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
491 |         guard isCapturingImage else { return }
492 |         guard let imageData: Data = photo.fileDataRepresentation() else { isCapturingImage = false; return }
/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/SwiftttCamera.swift:490:93: error: 'AVCapturePhoto' is unavailable in visionOS
488 |
489 | extension SwiftttCamera : AVCapturePhotoCaptureDelegate {
490 |     public func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
    |                                                                                             `- error: 'AVCapturePhoto' is unavailable in visionOS
491 |         guard isCapturingImage else { return }
492 |         guard let imageData: Data = photo.fileDataRepresentation() else { isCapturingImage = false; return }
/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/SwiftttCamera.swift:490:17: error: cannot override 'photoOutput' which has been marked unavailable
488 |
489 | extension SwiftttCamera : AVCapturePhotoCaptureDelegate {
490 |     public func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
    |                 `- error: cannot override 'photoOutput' which has been marked unavailable
491 |         guard isCapturingImage else { return }
492 |         guard let imageData: Data = photo.fileDataRepresentation() else { isCapturingImage = false; return }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:1053:1: note: 'photoOutput(_:didFinishProcessingPhoto:error:)' has been explicitly marked unavailable here
1051 |     This callback fires resolvedSettings.expectedPhotoCount number of times for a given capture request. Note that the photo parameter is always non nil, even if an error is returned. The delivered AVCapturePhoto's rawPhoto property can be queried to know if it's a RAW image or processed image.
1052 |  */
1053 | - (void)captureOutput:(AVCapturePhotoOutput *)output didFinishProcessingPhoto:(AVCapturePhoto *)photo error:(nullable NSError *)error API_AVAILABLE(ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos);
     | `- note: 'photoOutput(_:didFinishProcessingPhoto:error:)' has been explicitly marked unavailable here
1054 |
1055 | /*!
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftttCamera.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile SwiftttCamera.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftttCamera.swift:489:27: error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
487 | }
488 |
489 | extension SwiftttCamera : AVCapturePhotoCaptureDelegate {
    |                           `- error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
490 |     public func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
491 |         guard isCapturingImage else { return }
/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/SwiftttCamera.swift:145:49: error: 'photo' is unavailable in visionOS
143 |         if authorized {
144 |             session = AVCaptureSession()
145 |             session.setSessionPresetIfPossible(.photo)
    |                                                 `- error: 'photo' is unavailable in visionOS
146 |             let device: AVCaptureDevice? = AVCaptureDevice.captureDevice(from: cameraDevice) ?? AVCaptureDevice.default(for: .video) // It's nil only in Simulator
147 |             do {
/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/SwiftttCamera.swift:146:113: error: 'default(for:)' is only available in visionOS 2.1 or newer
114 |
115 | // MARK: - Capture Session Management
116 | extension SwiftttCamera {
    | `- note: add '@available' attribute to enclosing extension
117 |     public func startRunning() {
118 |         session?.startRunningIfNeeded()
    :
140 |     }
141 |
142 |     private func handleDeviceAuthorization(_ authorized: Bool) {
    |                  `- note: add '@available' attribute to enclosing instance method
143 |         if authorized {
144 |             session = AVCaptureSession()
145 |             session.setSessionPresetIfPossible(.photo)
146 |             let device: AVCaptureDevice? = AVCaptureDevice.captureDevice(from: cameraDevice) ?? AVCaptureDevice.default(for: .video) // It's nil only in Simulator
    |                                                                                                                 |- error: 'default(for:)' is only available in visionOS 2.1 or newer
    |                                                                                                                 `- note: add 'if #available' version check
147 |             do {
148 |                 try device?.lockForConfiguration()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftttCamera.swift:161:31: error: 'AVCapturePhotoOutput' is unavailable in visionOS
159 |                 }
160 |                 #endif
161 |                 photoOutput = AVCapturePhotoOutput()
    |                               `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
162 |                 session.addOutputIfPossible(photoOutput)
163 |                 deviceOrientation = DeviceOrientation()
/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/SwiftttCamera.swift:199:24: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
197 |         let rootLayer: CALayer = view.layer
198 |         rootLayer.masksToBounds = true
199 |         previewLayer = AVCaptureVideoPreviewLayer(session: session)
    |                        `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
200 |         previewLayer.videoGravity = .resizeAspectFill
201 |         previewLayer.frame = rootLayer.bounds
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/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/SwiftttCamera.swift:285:28: error: 'isVideoOrientationSupported' is unavailable in visionOS
283 |         #else
284 |         guard let videoConnection: AVCaptureConnection = currentCaptureConnection() else { preconditionFailure("videoConnection is nil in physical device") }
285 |         if videoConnection.isVideoOrientationSupported {
    |                            `- error: 'isVideoOrientationSupported' is unavailable in visionOS
286 |             videoConnection.videoOrientation = currentCaptureVideoOrientationForDevice()
287 |         }
/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:1101:73: note: 'isVideoOrientationSupported' has been explicitly marked unavailable here
1099 |     This property is deprecated. Use -isVideoRotationAngleSupported: instead.
1100 |  */
1101 | @property(nonatomic, readonly, getter=isVideoOrientationSupported) BOOL supportsVideoOrientation API_DEPRECATED("Use -isVideoRotationAngleSupported: instead", macos(10.7, 14.0), ios(4.0, 17.0), macCatalyst(14.0, 17.0)) API_UNAVAILABLE(tvos, visionos);
     |                                                                         `- note: 'isVideoOrientationSupported' has been explicitly marked unavailable here
1102 |
1103 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/SwiftttCamera.swift:286:29: error: 'videoOrientation' is unavailable in visionOS
284 |         guard let videoConnection: AVCaptureConnection = currentCaptureConnection() else { preconditionFailure("videoConnection is nil in physical device") }
285 |         if videoConnection.isVideoOrientationSupported {
286 |             videoConnection.videoOrientation = currentCaptureVideoOrientationForDevice()
    |                             `- error: 'videoOrientation' is unavailable in visionOS
287 |         }
288 |         if videoConnection.isVideoMirroringSupported {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:1111:48: note: 'videoOrientation' has been explicitly marked unavailable here
1109 |     This property is deprecated. Use -videoRotationAngle instead. This property may only be set if -isVideoOrientationSupported returns YES, otherwise an NSInvalidArgumentException is thrown.
1110 |  */
1111 | @property(nonatomic) AVCaptureVideoOrientation videoOrientation API_DEPRECATED("Use -videoRotationAngle instead", macos(10.7, 14.0), ios(4.0, 17.0), macCatalyst(14.0, 17.0)) API_UNAVAILABLE(tvos, visionos);
     |                                                `- note: 'videoOrientation' has been explicitly marked unavailable here
1112 |
1113 | /*!
SwiftCompile normal arm64 Compiling\ AVCaptureSession+Utilities.swift /Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureSession+Utilities.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureSession+Utilities.swift:20:64: error: 'Preset' is unavailable in visionOS
18 |
19 |     /// Configures the receiver with the given preset, if possible.
20 |     func setSessionPresetIfPossible(_ preset: AVCaptureSession.Preset) {
   |                                                                `- error: 'Preset' is unavailable in visionOS
21 |         guard canSetSessionPreset(preset) else { return }
22 |         sessionPreset = preset
/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/Extensions/AVCaptureSession+Utilities.swift:21:15: error: 'canSetSessionPreset' is unavailable in visionOS
19 |     /// Configures the receiver with the given preset, if possible.
20 |     func setSessionPresetIfPossible(_ preset: AVCaptureSession.Preset) {
21 |         guard canSetSessionPreset(preset) else { return }
   |               `- error: 'canSetSessionPreset' is unavailable in visionOS
22 |         sessionPreset = preset
23 |     }
/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 | /*!
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureSession+Utilities.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile AVCaptureSession+Utilities.swift
SwiftCompile normal arm64 Compiling\ Focus.swift /Users/admin/builder/spi-builder-workspace/Sources/Focus.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/Focus.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Focus.swift
SwiftCompile normal arm64 Compiling\ CameraTypes.swift,\ CapturedImage.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraTypes.swift /Users/admin/builder/spi-builder-workspace/Sources/CapturedImage.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
/Users/admin/builder/spi-builder-workspace/Sources/CameraTypes.swift:45:43: error: 'FlashMode' is unavailable in visionOS
43 |     case auto
44 |
45 |     var captureFlashMode: AVCaptureDevice.FlashMode {
   |                                           `- error: 'FlashMode' is unavailable in visionOS
46 |         switch self {
47 |         case .on: return .on
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:967:28: note: 'FlashMode' has been explicitly marked unavailable here
 965 |     Indicates that the flash should be used automatically depending on ambient light conditions.
 966 |  */
 967 | typedef NS_ENUM(NSInteger, AVCaptureFlashMode) {
     |                            `- note: 'FlashMode' has been explicitly marked unavailable here
 968 |     AVCaptureFlashModeOff  = 0,
 969 |     AVCaptureFlashModeOn   = 1,
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraTypes.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CameraTypes.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CapturedImage.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CapturedImage.swift
SwiftCompile normal arm64 Compiling\ UIViewController+SwiftttCamera.swift /Users/admin/builder/spi-builder-workspace/Sources/Extensions/UIViewController+SwiftttCamera.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/Extensions/UIViewController+SwiftttCamera.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile UIViewController+SwiftttCamera.swift
SwiftCompile normal arm64 Compiling\ Zoom.swift /Users/admin/builder/spi-builder-workspace/Sources/Zoom.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/Zoom.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Zoom.swift
SwiftCompile normal arm64 Compiling\ UIImage+Utilities.swift /Users/admin/builder/spi-builder-workspace/Sources/Extensions/UIImage+Utilities.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/UIImage+Utilities.swift:31:50: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 29 |     /// - Parameter previewLayer: The preview layer of the camera's live preview.
 30 |     /// - Returns: The CGRect to use for cropping the camera's captured image to match the camera preview.
 31 |     func cropRect(fromPreviewLayer previewLayer: AVCaptureVideoPreviewLayer) -> CGRect {
    |                                                  `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 32 |         let outputRect = previewLayer.metadataOutputRectConverted(fromLayerRect: previewLayer.bounds)
 33 |         return cropRect(fromOutputRect: outputRect)
/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/Extensions/UIImage+Utilities.swift:32:39: error: 'metadataOutputRectConverted(fromLayerRect:)' is unavailable in visionOS
 30 |     /// - Returns: The CGRect to use for cropping the camera's captured image to match the camera preview.
 31 |     func cropRect(fromPreviewLayer previewLayer: AVCaptureVideoPreviewLayer) -> CGRect {
 32 |         let outputRect = previewLayer.metadataOutputRectConverted(fromLayerRect: previewLayer.bounds)
    |                                       `- error: 'metadataOutputRectConverted(fromLayerRect:)' is unavailable in visionOS
 33 |         return cropRect(fromOutputRect: outputRect)
 34 |     }
/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:180:1: note: 'metadataOutputRectConverted(fromLayerRect:)' has been explicitly marked unavailable here
178 |     AVCaptureMetadataOutput rectOfInterest is expressed as a CGRect where {0,0} represents the top left of the picture area, and {1,1} represents the bottom right on an unrotated picture. This convenience method converts a rectangle in the coordinate space of the receiver to a rectangle of interest in the coordinate space of an AVCaptureMetadataOutput whose AVCaptureDevice is providing input to the receiver. The conversion takes frame size and videoGravity into consideration.
179 |  */
180 | - (CGRect)metadataOutputRectOfInterestForRect:(CGRect)rectInLayerCoordinates API_AVAILABLE(macos(10.15), ios(7.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos);
    | `- note: 'metadataOutputRectConverted(fromLayerRect:)' has been explicitly marked unavailable here
181 |
182 | /*!
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/Extensions/UIImage+Utilities.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile UIImage+Utilities.swift
SwiftCompile normal arm64 Compiling\ Comparable+Utilities.swift /Users/admin/builder/spi-builder-workspace/Sources/Extensions/Comparable+Utilities.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/Extensions/Comparable+Utilities.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Comparable+Utilities.swift
SwiftCompile normal arm64 Compiling\ DeviceOrientation.swift,\ AVCaptureDevice+Utilities.swift /Users/admin/builder/spi-builder-workspace/Sources/DeviceOrientation.swift /Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
/Users/admin/builder/spi-builder-workspace/Sources/DeviceOrientation.swift:9:26: error: 'beginGeneratingDeviceOrientationNotifications()' is unavailable in visionOS
 7 | final class DeviceOrientation {
 8 |     private lazy var motionManager: CMMotionManager? = {
 9 |         UIDevice.current.beginGeneratingDeviceOrientationNotifications()
   |                          `- error: 'beginGeneratingDeviceOrientationNotifications()' is unavailable in visionOS
10 |         #if TARGET_IPHONE_SIMULATOR
11 |         return nil
/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:49:1: note: 'beginGeneratingDeviceOrientationNotifications()' has been explicitly marked unavailable here
47 |
48 | @property(nonatomic,readonly,getter=isGeneratingDeviceOrientationNotifications) BOOL generatesDeviceOrientationNotifications API_UNAVAILABLE(tvos, visionos);
49 | - (void)beginGeneratingDeviceOrientationNotifications API_UNAVAILABLE(tvos, visionos);      // nestable
   | `- note: 'beginGeneratingDeviceOrientationNotifications()' has been explicitly marked unavailable here
50 | - (void)endGeneratingDeviceOrientationNotifications API_UNAVAILABLE(tvos, visionos);
51 |
/Users/admin/builder/spi-builder-workspace/Sources/DeviceOrientation.swift:21:26: error: 'endGeneratingDeviceOrientationNotifications()' is unavailable in visionOS
19 |
20 |     deinit {
21 |         UIDevice.current.endGeneratingDeviceOrientationNotifications()
   |                          `- error: 'endGeneratingDeviceOrientationNotifications()' is unavailable in visionOS
22 |         #if !TARGET_IPHONE_SIMULATOR
23 |         motionManager?.stopAccelerometerUpdates()
/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:50:1: note: 'endGeneratingDeviceOrientationNotifications()' has been explicitly marked unavailable here
48 | @property(nonatomic,readonly,getter=isGeneratingDeviceOrientationNotifications) BOOL generatesDeviceOrientationNotifications API_UNAVAILABLE(tvos, visionos);
49 | - (void)beginGeneratingDeviceOrientationNotifications API_UNAVAILABLE(tvos, visionos);      // nestable
50 | - (void)endGeneratingDeviceOrientationNotifications API_UNAVAILABLE(tvos, visionos);
   | `- note: 'endGeneratingDeviceOrientationNotifications()' has been explicitly marked unavailable here
51 |
52 | @property(nonatomic,getter=isBatteryMonitoringEnabled) BOOL batteryMonitoringEnabled API_AVAILABLE(ios(3.0)) API_UNAVAILABLE(tvos);  // default is NO
/Users/admin/builder/spi-builder-workspace/Sources/DeviceOrientation.swift:62:48: error: 'orientation' is unavailable in visionOS
60 |     /// This returns true if the device's interface orientation matches the physical device orientation, and false if the interface and physical orientation are different (when orientation lock is on).
61 |     var deviceOrientationMatchesInterfaceOrientation: Bool {
62 |         return orientation == UIDevice.current.orientation
   |                                                `- error: 'orientation' is unavailable in visionOS
63 |     }
64 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h:44:51: note: 'orientation' has been explicitly marked unavailable here
42 | @property(nonatomic,readonly,strong) NSString    *systemName;        // e.g. @"iOS"
43 | @property(nonatomic,readonly,strong) NSString    *systemVersion;     // e.g. @"4.0"
44 | @property(nonatomic,readonly) UIDeviceOrientation orientation API_UNAVAILABLE(tvos, visionos);       // return current device orientation.  this will return UIDeviceOrientationUnknown unless device orientation notifications are being generated.
   |                                                   `- note: 'orientation' has been explicitly marked unavailable here
45 |
46 | @property(nullable, nonatomic,readonly,strong) NSUUID      *identifierForVendor API_AVAILABLE(ios(6.0));      // a UUID that may be used to uniquely identify the device, same across apps from a single vendor.
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:14:45: error: 'DeviceType' is only available in visionOS 2.1 or newer
  3 | import AVFoundation
  4 |
  5 | public extension AVCaptureDevice {
    |        `- note: add '@available' attribute to enclosing extension
  6 |     /// All camera devices available in this device currently.
  7 |     /// Devices are sorted by AVCaptureDeviceType, matching the order specified in the deviceTypes parameter of +[AVCaptureDeviceDiscoverySession discoverySessionWithDeviceTypes:mediaType:position:]. If a `.unspecified` position is given, the results are further ordered by position in the AVCaptureDevicePosition enum.
    :
 12 |
 13 |     /// All camera types available in iOS.
 14 |     static let allCameras: [AVCaptureDevice.DeviceType] = [
    |                |                            `- error: 'DeviceType' is only available in visionOS 2.1 or newer
    |                `- note: add '@available' attribute to enclosing static property
 15 |         .builtInWideAngleCamera,
 16 |         .builtInTelephotoCamera,
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:15:10: error: 'builtInWideAngleCamera' is only available in visionOS 2.1 or newer
  3 | import AVFoundation
  4 |
  5 | public extension AVCaptureDevice {
    |        `- note: add '@available' attribute to enclosing extension
  6 |     /// All camera devices available in this device currently.
  7 |     /// Devices are sorted by AVCaptureDeviceType, matching the order specified in the deviceTypes parameter of +[AVCaptureDeviceDiscoverySession discoverySessionWithDeviceTypes:mediaType:position:]. If a `.unspecified` position is given, the results are further ordered by position in the AVCaptureDevicePosition enum.
    :
 12 |
 13 |     /// All camera types available in iOS.
 14 |     static let allCameras: [AVCaptureDevice.DeviceType] = [
    |                `- note: add '@available' attribute to enclosing static property
 15 |         .builtInWideAngleCamera,
    |          `- error: 'builtInWideAngleCamera' is only available in visionOS 2.1 or newer
 16 |         .builtInTelephotoCamera,
 17 |         .builtInDualCamera,
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:16:10: error: 'builtInTelephotoCamera' is unavailable in visionOS
 14 |     static let allCameras: [AVCaptureDevice.DeviceType] = [
 15 |         .builtInWideAngleCamera,
 16 |         .builtInTelephotoCamera,
    |          `- error: 'builtInTelephotoCamera' is unavailable in visionOS
 17 |         .builtInDualCamera,
 18 |         .builtInTrueDepthCamera,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:568:38: note: 'builtInTelephotoCamera' has been explicitly marked unavailable here
 566 |     A built-in camera device with a longer focal length than a wide angle camera. Note that devices of this type may only be discovered using an AVCaptureDeviceDiscoverySession.
 567 |  */
 568 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInTelephotoCamera API_AVAILABLE(ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInTelephotoCamera' has been explicitly marked unavailable here
 569 |
 570 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:17:10: error: 'builtInDualCamera' is unavailable in visionOS
 15 |         .builtInWideAngleCamera,
 16 |         .builtInTelephotoCamera,
 17 |         .builtInDualCamera,
    |          `- error: 'builtInDualCamera' is unavailable in visionOS
 18 |         .builtInTrueDepthCamera,
 19 |         .builtInUltraWideCamera,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:593:38: note: 'builtInDualCamera' has been explicitly marked unavailable here
 591 |     Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.
 592 |  */
 593 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInDualCamera API_AVAILABLE(ios(10.2), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInDualCamera' has been explicitly marked unavailable here
 594 |
 595 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:18:10: error: 'builtInTrueDepthCamera' is unavailable in visionOS
 16 |         .builtInTelephotoCamera,
 17 |         .builtInDualCamera,
 18 |         .builtInTrueDepthCamera,
    |          `- error: 'builtInTrueDepthCamera' is unavailable in visionOS
 19 |         .builtInUltraWideCamera,
 20 |         .builtInDualWideCamera,
/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:634:38: note: 'builtInTrueDepthCamera' has been explicitly marked unavailable here
 632 |     A device that consists of two cameras, one YUV and one Infrared. The infrared camera provides high quality depth information that is synchronized and perspective corrected to frames produced by the YUV camera. While the resolution of the depth data and YUV frames may differ, their field of view and aspect ratio always match. Note that devices of this type may only be discovered using an AVCaptureDeviceDiscoverySession or -[AVCaptureDevice defaultDeviceWithDeviceType:mediaType:position:].
 633 |  */
 634 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInTrueDepthCamera API_AVAILABLE(ios(11.1), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInTrueDepthCamera' has been explicitly marked unavailable here
 635 |
 636 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:19:10: error: 'builtInUltraWideCamera' is unavailable in visionOS
 17 |         .builtInDualCamera,
 18 |         .builtInTrueDepthCamera,
 19 |         .builtInUltraWideCamera,
    |          `- error: 'builtInUltraWideCamera' is unavailable in visionOS
 20 |         .builtInDualWideCamera,
 21 |         .builtInTripleCamera,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:574:38: note: 'builtInUltraWideCamera' has been explicitly marked unavailable here
 572 |     A built-in camera device with a shorter focal length than a wide angle camera. Note that devices of this type may only be discovered using an AVCaptureDeviceDiscoverySession.
 573 |  */
 574 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInUltraWideCamera API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInUltraWideCamera' has been explicitly marked unavailable here
 575 |
 576 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:20:10: error: 'builtInDualWideCamera' is unavailable in visionOS
 18 |         .builtInTrueDepthCamera,
 19 |         .builtInUltraWideCamera,
 20 |         .builtInDualWideCamera,
    |          `- error: 'builtInDualWideCamera' is unavailable in visionOS
 21 |         .builtInTripleCamera,
 22 |     ]
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:611:38: note: 'builtInDualWideCamera' has been explicitly marked unavailable here
 609 |     Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.
 610 |  */
 611 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInDualWideCamera API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInDualWideCamera' has been explicitly marked unavailable here
 612 |
 613 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:21:10: error: 'builtInTripleCamera' is unavailable in visionOS
 19 |         .builtInUltraWideCamera,
 20 |         .builtInDualWideCamera,
 21 |         .builtInTripleCamera,
    |          `- error: 'builtInTripleCamera' is unavailable in visionOS
 22 |     ]
 23 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:628:38: note: 'builtInTripleCamera' has been explicitly marked unavailable here
 626 |     Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.
 627 |  */
 628 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInTripleCamera API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInTripleCamera' has been explicitly marked unavailable here
 629 |
 630 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:25:55: error: 'DeviceType' is only available in visionOS 2.1 or newer
  3 | import AVFoundation
  4 |
  5 | public extension AVCaptureDevice {
    |        `- note: add '@available' attribute to enclosing extension
  6 |     /// All camera devices available in this device currently.
  7 |     /// Devices are sorted by AVCaptureDeviceType, matching the order specified in the deviceTypes parameter of +[AVCaptureDeviceDiscoverySession discoverySessionWithDeviceTypes:mediaType:position:]. If a `.unspecified` position is given, the results are further ordered by position in the AVCaptureDevicePosition enum.
    :
 23 |
 24 |     /// All camera types available in this device.
 25 |     static let availableCameraTypes: [AVCaptureDevice.DeviceType] = allCameras.filter { AVCaptureDevice.DiscoverySession(deviceTypes: [ $0 ], mediaType: .video, position: .unspecified).devices.isEmpty == false }
    |                |                                      `- error: 'DeviceType' is only available in visionOS 2.1 or newer
    |                `- note: add '@available' attribute to enclosing static property
 26 | }
 27 |
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:25:105: error: 'DiscoverySession' is only available in visionOS 2.1 or newer
  3 | import AVFoundation
  4 |
  5 | public extension AVCaptureDevice {
    |        `- note: add '@available' attribute to enclosing extension
  6 |     /// All camera devices available in this device currently.
  7 |     /// Devices are sorted by AVCaptureDeviceType, matching the order specified in the deviceTypes parameter of +[AVCaptureDeviceDiscoverySession discoverySessionWithDeviceTypes:mediaType:position:]. If a `.unspecified` position is given, the results are further ordered by position in the AVCaptureDevicePosition enum.
    :
 23 |
 24 |     /// All camera types available in this device.
 25 |     static let availableCameraTypes: [AVCaptureDevice.DeviceType] = allCameras.filter { AVCaptureDevice.DiscoverySession(deviceTypes: [ $0 ], mediaType: .video, position: .unspecified).devices.isEmpty == false }
    |                |                                                                                        |- error: 'DiscoverySession' is only available in visionOS 2.1 or newer
    |                |                                                                                        `- note: add 'if #available' version check
    |                `- note: add '@available' attribute to enclosing static property
 26 | }
 27 |
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:123:63: error: 'FocusMode' is unavailable in visionOS
121 | public extension AVCaptureDevice {
122 |     /// Sets the given focus mode to this device, if it's supported.
123 |     func setFocusModeIfSupported(_ focusMode: AVCaptureDevice.FocusMode) {
    |                                                               `- error: 'FocusMode' is unavailable in visionOS
124 |         guard isFocusModeSupported(focusMode) else { return }
125 |         self.focusMode = focusMode
/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/Extensions/AVCaptureDevice+Utilities.swift:129:53: error: 'ExposureMode' is unavailable in visionOS
127 |
128 |     /// Sets the given exposure mode to this device, if it's supported.
129 |     func setExposureModeIfSupported(_ exposureMode: ExposureMode) {
    |                                                     `- error: 'ExposureMode' is unavailable in visionOS
130 |         guard isExposureModeSupported(exposureMode) else { return }
131 |         self.exposureMode = exposureMode
/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/Extensions/AVCaptureDevice+Utilities.swift:10:32: error: 'DiscoverySession' is only available in visionOS 2.1 or newer
  3 | import AVFoundation
  4 |
  5 | public extension AVCaptureDevice {
    |        `- note: add '@available' attribute to enclosing extension
  6 |     /// All camera devices available in this device currently.
  7 |     /// Devices are sorted by AVCaptureDeviceType, matching the order specified in the deviceTypes parameter of +[AVCaptureDeviceDiscoverySession discoverySessionWithDeviceTypes:mediaType:position:]. If a `.unspecified` position is given, the results are further ordered by position in the AVCaptureDevicePosition enum.
  8 |     static func availableCameras(position: AVCaptureDevice.Position = .unspecified) -> [AVCaptureDevice] {
    |                 `- note: add '@available' attribute to enclosing static method
  9 |         /// For apps linked against iOS 11 or later, the
 10 |         return AVCaptureDevice.DiscoverySession(deviceTypes: availableCameraTypes, mediaType: .video, position: position).devices
    |                                |- error: 'DiscoverySession' is only available in visionOS 2.1 or newer
    |                                `- note: add 'if #available' version check
 11 |     }
 12 |
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:98:33: error: 'videoMaxZoomFactor' is unavailable in visionOS
 96 |     /// The maximum zoom scale of this device.
 97 |     var videoMaxZoomFactor: CGFloat {
 98 |         return min(activeFormat.videoMaxZoomFactor, 4)
    |                                 `- error: 'videoMaxZoomFactor' is unavailable in visionOS
 99 |     }
100 |
/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:3440:40: note: 'videoMaxZoomFactor' has been explicitly marked unavailable here
3438 |     If the device's videoZoomFactor property is assigned a larger value, an NSRangeException will be thrown. A maximum zoom factor of 1 indicates no zoom is available.
3439 |  */
3440 | @property(nonatomic, readonly) CGFloat videoMaxZoomFactor API_UNAVAILABLE(macos, visionos);
     |                                        `- note: 'videoMaxZoomFactor' has been explicitly marked unavailable here
3441 |
3442 | /*!
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/DeviceOrientation.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile DeviceOrientation.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile AVCaptureDevice+Utilities.swift
SwiftCompile normal arm64 Compiling\ CameraDelegate.swift,\ CameraProtocol.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraDelegate.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraProtocol.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraDelegate.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CameraDelegate.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraProtocol.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CameraProtocol.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 16:53:26.992 xcodebuild[662:4033] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
2026-09-17 16:53:27.252 xcodebuild[662:4033] [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 'SwiftttCamera' from project 'SwiftttCamera')
	SwiftEmitModule normal arm64 Emitting\ module\ for\ SwiftttCamera (in target 'SwiftttCamera' from project 'SwiftttCamera')
	Building workspace SwiftttCamera with scheme SwiftttCamera
(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
Invalid Resource 'Test Images': File not found.
Resolved source packages:
  SwiftttCamera: /Users/admin/builder/spi-builder-workspace
resolved source packages: SwiftttCamera
2026-09-17 16:53:36.776 xcodebuild[813:4770] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftttCamera",
  "name" : "SwiftttCamera",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftttCamera",
      "targets" : [
        "SwiftttCamera"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftttCameraTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftttCameraTests",
      "path" : "Tests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/TestImages.xcassets",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "CapturedImageTests.swift",
        "DeviceOrientationTests.swift",
        "FocusTests.swift",
        "SwiftttCameraTests.swift",
        "UIImageUtilitiesPerformanceTests.swift",
        "UIImageUtilitiesTests.swift",
        "UIViewControllerSwiftttCameraTests.swift",
        "Utilities/UIPinchGestureRecognizerMock.swift",
        "Utilities/UITapGestureRecognizerMock.swift",
        "ZoomTests.swift"
      ],
      "target_dependencies" : [
        "SwiftttCamera"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftttCamera",
      "module_type" : "SwiftTarget",
      "name" : "SwiftttCamera",
      "path" : "Sources",
      "product_memberships" : [
        "SwiftttCamera"
      ],
      "sources" : [
        "CameraDelegate.swift",
        "CameraProtocol.swift",
        "CameraTypes.swift",
        "CapturedImage.swift",
        "DeviceOrientation.swift",
        "Extensions/AVCaptureDevice+Utilities.swift",
        "Extensions/AVCaptureSession+Utilities.swift",
        "Extensions/Comparable+Utilities.swift",
        "Extensions/UIImage+Utilities.swift",
        "Extensions/UIViewController+SwiftttCamera.swift",
        "Focus.swift",
        "SwiftttCamera.swift",
        "Zoom.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
warning: 'spi-builder-workspace': Invalid Resource 'Test Images': File not found.
{
  "workspace" : {
    "name" : "SwiftttCamera",
    "schemes" : [
      "SwiftttCamera"
    ]
  }
}
2026-09-17 16:53:38.045 xcodebuild[821:4844] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
2026-09-17 16:53:38.150 xcodebuild[821:4844] [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 SwiftttCamera -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 SwiftttCamera -destination generic/platform=xrOS
Resolve Package Graph
Invalid Resource 'Test Images': File not found.
Resolved source packages:
  SwiftttCamera: /Users/admin/builder/spi-builder-workspace
ComputePackagePrebuildTargetDependencyGraph
Prepare packages
CreateBuildRequest
SendProjectDescription
CreateBuildOperation
ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (4 targets)
    Target 'SwiftttCameraTests-product' in project 'SwiftttCamera'
        ➜ Explicit dependency on target 'SwiftttCamera_SwiftttCameraTests' in project 'SwiftttCamera'
        ➜ Explicit dependency on target 'SwiftttCamera' in project 'SwiftttCamera'
    Target 'SwiftttCamera-product' in project 'SwiftttCamera'
        ➜ Explicit dependency on target 'SwiftttCamera' in project 'SwiftttCamera'
    Target 'SwiftttCamera' in project 'SwiftttCamera' (no dependencies)
    Target 'SwiftttCamera_SwiftttCameraTests' in project 'SwiftttCamera' (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 SwiftttCamera normal arm64 com.apple.xcode.tools.swift.compiler (in target 'SwiftttCamera' from project 'SwiftttCamera')
    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 SwiftttCamera -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftttCamera.build/Debug-xros/SwiftttCamera-t.build/Objects-normal/arm64/SwiftttCamera.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/SwiftttCamera.build/Debug-xros/SwiftttCamera-t.build/Objects-normal/arm64/SwiftttCamera-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/SwiftttCamera.build/Debug-xros/SwiftttCamera-t.build/Objects-normal/arm64/SwiftttCamera.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftttCamera.build/Debug-xros/SwiftttCamera-t.build/Objects-normal/arm64/SwiftttCamera-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/SwiftttCamera.build/Debug-xros/SwiftttCamera-t.build/Objects-normal/arm64/SwiftttCamera_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/SwiftttCamera.build/Debug-xros/SwiftttCamera-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftttCamera.build/Debug-xros/SwiftttCamera-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftttCamera.build/Debug-xros/SwiftttCamera-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/SwiftttCamera.build/Debug-xros/SwiftttCamera-t.build/Objects-normal/arm64/SwiftttCamera-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftCompile normal arm64 Compiling\ Comparable+Utilities.swift /Users/admin/builder/spi-builder-workspace/Sources/Extensions/Comparable+Utilities.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/Extensions/Comparable+Utilities.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Comparable+Utilities.swift
SwiftCompile normal arm64 Compiling\ AVCaptureSession+Utilities.swift /Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureSession+Utilities.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureSession+Utilities.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile AVCaptureSession+Utilities.swift
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureSession+Utilities.swift:20:64: error: 'Preset' is unavailable in visionOS
18 |
19 |     /// Configures the receiver with the given preset, if possible.
20 |     func setSessionPresetIfPossible(_ preset: AVCaptureSession.Preset) {
   |                                                                `- error: 'Preset' is unavailable in visionOS
21 |         guard canSetSessionPreset(preset) else { return }
22 |         sessionPreset = preset
/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/Extensions/AVCaptureSession+Utilities.swift:21:15: error: 'canSetSessionPreset' is unavailable in visionOS
19 |     /// Configures the receiver with the given preset, if possible.
20 |     func setSessionPresetIfPossible(_ preset: AVCaptureSession.Preset) {
21 |         guard canSetSessionPreset(preset) else { return }
   |               `- error: 'canSetSessionPreset' is unavailable in visionOS
22 |         sessionPreset = preset
23 |     }
/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 | /*!
SwiftCompile normal arm64 Compiling\ DeviceOrientation.swift,\ AVCaptureDevice+Utilities.swift /Users/admin/builder/spi-builder-workspace/Sources/DeviceOrientation.swift /Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
/Users/admin/builder/spi-builder-workspace/Sources/DeviceOrientation.swift:9:26: error: 'beginGeneratingDeviceOrientationNotifications()' is unavailable in visionOS
 7 | final class DeviceOrientation {
 8 |     private lazy var motionManager: CMMotionManager? = {
 9 |         UIDevice.current.beginGeneratingDeviceOrientationNotifications()
   |                          `- error: 'beginGeneratingDeviceOrientationNotifications()' is unavailable in visionOS
10 |         #if TARGET_IPHONE_SIMULATOR
11 |         return nil
/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:49:1: note: 'beginGeneratingDeviceOrientationNotifications()' has been explicitly marked unavailable here
47 |
48 | @property(nonatomic,readonly,getter=isGeneratingDeviceOrientationNotifications) BOOL generatesDeviceOrientationNotifications API_UNAVAILABLE(tvos, visionos);
49 | - (void)beginGeneratingDeviceOrientationNotifications API_UNAVAILABLE(tvos, visionos);      // nestable
   | `- note: 'beginGeneratingDeviceOrientationNotifications()' has been explicitly marked unavailable here
50 | - (void)endGeneratingDeviceOrientationNotifications API_UNAVAILABLE(tvos, visionos);
51 |
/Users/admin/builder/spi-builder-workspace/Sources/DeviceOrientation.swift:21:26: error: 'endGeneratingDeviceOrientationNotifications()' is unavailable in visionOS
19 |
20 |     deinit {
21 |         UIDevice.current.endGeneratingDeviceOrientationNotifications()
   |                          `- error: 'endGeneratingDeviceOrientationNotifications()' is unavailable in visionOS
22 |         #if !TARGET_IPHONE_SIMULATOR
23 |         motionManager?.stopAccelerometerUpdates()
/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:50:1: note: 'endGeneratingDeviceOrientationNotifications()' has been explicitly marked unavailable here
48 | @property(nonatomic,readonly,getter=isGeneratingDeviceOrientationNotifications) BOOL generatesDeviceOrientationNotifications API_UNAVAILABLE(tvos, visionos);
49 | - (void)beginGeneratingDeviceOrientationNotifications API_UNAVAILABLE(tvos, visionos);      // nestable
50 | - (void)endGeneratingDeviceOrientationNotifications API_UNAVAILABLE(tvos, visionos);
   | `- note: 'endGeneratingDeviceOrientationNotifications()' has been explicitly marked unavailable here
51 |
52 | @property(nonatomic,getter=isBatteryMonitoringEnabled) BOOL batteryMonitoringEnabled API_AVAILABLE(ios(3.0)) API_UNAVAILABLE(tvos);  // default is NO
/Users/admin/builder/spi-builder-workspace/Sources/DeviceOrientation.swift:62:48: error: 'orientation' is unavailable in visionOS
60 |     /// This returns true if the device's interface orientation matches the physical device orientation, and false if the interface and physical orientation are different (when orientation lock is on).
61 |     var deviceOrientationMatchesInterfaceOrientation: Bool {
62 |         return orientation == UIDevice.current.orientation
   |                                                `- error: 'orientation' is unavailable in visionOS
63 |     }
64 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h:44:51: note: 'orientation' has been explicitly marked unavailable here
42 | @property(nonatomic,readonly,strong) NSString    *systemName;        // e.g. @"iOS"
43 | @property(nonatomic,readonly,strong) NSString    *systemVersion;     // e.g. @"4.0"
44 | @property(nonatomic,readonly) UIDeviceOrientation orientation API_UNAVAILABLE(tvos, visionos);       // return current device orientation.  this will return UIDeviceOrientationUnknown unless device orientation notifications are being generated.
   |                                                   `- note: 'orientation' has been explicitly marked unavailable here
45 |
46 | @property(nullable, nonatomic,readonly,strong) NSUUID      *identifierForVendor API_AVAILABLE(ios(6.0));      // a UUID that may be used to uniquely identify the device, same across apps from a single vendor.
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:14:45: error: 'DeviceType' is only available in visionOS 2.1 or newer
  3 | import AVFoundation
  4 |
  5 | public extension AVCaptureDevice {
    |        `- note: add '@available' attribute to enclosing extension
  6 |     /// All camera devices available in this device currently.
  7 |     /// Devices are sorted by AVCaptureDeviceType, matching the order specified in the deviceTypes parameter of +[AVCaptureDeviceDiscoverySession discoverySessionWithDeviceTypes:mediaType:position:]. If a `.unspecified` position is given, the results are further ordered by position in the AVCaptureDevicePosition enum.
    :
 12 |
 13 |     /// All camera types available in iOS.
 14 |     static let allCameras: [AVCaptureDevice.DeviceType] = [
    |                |                            `- error: 'DeviceType' is only available in visionOS 2.1 or newer
    |                `- note: add '@available' attribute to enclosing static property
 15 |         .builtInWideAngleCamera,
 16 |         .builtInTelephotoCamera,
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:15:10: error: 'builtInWideAngleCamera' is only available in visionOS 2.1 or newer
  3 | import AVFoundation
  4 |
  5 | public extension AVCaptureDevice {
    |        `- note: add '@available' attribute to enclosing extension
  6 |     /// All camera devices available in this device currently.
  7 |     /// Devices are sorted by AVCaptureDeviceType, matching the order specified in the deviceTypes parameter of +[AVCaptureDeviceDiscoverySession discoverySessionWithDeviceTypes:mediaType:position:]. If a `.unspecified` position is given, the results are further ordered by position in the AVCaptureDevicePosition enum.
    :
 12 |
 13 |     /// All camera types available in iOS.
 14 |     static let allCameras: [AVCaptureDevice.DeviceType] = [
    |                `- note: add '@available' attribute to enclosing static property
 15 |         .builtInWideAngleCamera,
    |          `- error: 'builtInWideAngleCamera' is only available in visionOS 2.1 or newer
 16 |         .builtInTelephotoCamera,
 17 |         .builtInDualCamera,
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:16:10: error: 'builtInTelephotoCamera' is unavailable in visionOS
 14 |     static let allCameras: [AVCaptureDevice.DeviceType] = [
 15 |         .builtInWideAngleCamera,
 16 |         .builtInTelephotoCamera,
    |          `- error: 'builtInTelephotoCamera' is unavailable in visionOS
 17 |         .builtInDualCamera,
 18 |         .builtInTrueDepthCamera,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:568:38: note: 'builtInTelephotoCamera' has been explicitly marked unavailable here
 566 |     A built-in camera device with a longer focal length than a wide angle camera. Note that devices of this type may only be discovered using an AVCaptureDeviceDiscoverySession.
 567 |  */
 568 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInTelephotoCamera API_AVAILABLE(ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInTelephotoCamera' has been explicitly marked unavailable here
 569 |
 570 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:17:10: error: 'builtInDualCamera' is unavailable in visionOS
 15 |         .builtInWideAngleCamera,
 16 |         .builtInTelephotoCamera,
 17 |         .builtInDualCamera,
    |          `- error: 'builtInDualCamera' is unavailable in visionOS
 18 |         .builtInTrueDepthCamera,
 19 |         .builtInUltraWideCamera,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:593:38: note: 'builtInDualCamera' has been explicitly marked unavailable here
 591 |     Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.
 592 |  */
 593 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInDualCamera API_AVAILABLE(ios(10.2), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInDualCamera' has been explicitly marked unavailable here
 594 |
 595 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:18:10: error: 'builtInTrueDepthCamera' is unavailable in visionOS
 16 |         .builtInTelephotoCamera,
 17 |         .builtInDualCamera,
 18 |         .builtInTrueDepthCamera,
    |          `- error: 'builtInTrueDepthCamera' is unavailable in visionOS
 19 |         .builtInUltraWideCamera,
 20 |         .builtInDualWideCamera,
/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:634:38: note: 'builtInTrueDepthCamera' has been explicitly marked unavailable here
 632 |     A device that consists of two cameras, one YUV and one Infrared. The infrared camera provides high quality depth information that is synchronized and perspective corrected to frames produced by the YUV camera. While the resolution of the depth data and YUV frames may differ, their field of view and aspect ratio always match. Note that devices of this type may only be discovered using an AVCaptureDeviceDiscoverySession or -[AVCaptureDevice defaultDeviceWithDeviceType:mediaType:position:].
 633 |  */
 634 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInTrueDepthCamera API_AVAILABLE(ios(11.1), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInTrueDepthCamera' has been explicitly marked unavailable here
 635 |
 636 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:19:10: error: 'builtInUltraWideCamera' is unavailable in visionOS
 17 |         .builtInDualCamera,
 18 |         .builtInTrueDepthCamera,
 19 |         .builtInUltraWideCamera,
    |          `- error: 'builtInUltraWideCamera' is unavailable in visionOS
 20 |         .builtInDualWideCamera,
 21 |         .builtInTripleCamera,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:574:38: note: 'builtInUltraWideCamera' has been explicitly marked unavailable here
 572 |     A built-in camera device with a shorter focal length than a wide angle camera. Note that devices of this type may only be discovered using an AVCaptureDeviceDiscoverySession.
 573 |  */
 574 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInUltraWideCamera API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInUltraWideCamera' has been explicitly marked unavailable here
 575 |
 576 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:20:10: error: 'builtInDualWideCamera' is unavailable in visionOS
 18 |         .builtInTrueDepthCamera,
 19 |         .builtInUltraWideCamera,
 20 |         .builtInDualWideCamera,
    |          `- error: 'builtInDualWideCamera' is unavailable in visionOS
 21 |         .builtInTripleCamera,
 22 |     ]
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:611:38: note: 'builtInDualWideCamera' has been explicitly marked unavailable here
 609 |     Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.
 610 |  */
 611 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInDualWideCamera API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInDualWideCamera' has been explicitly marked unavailable here
 612 |
 613 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:21:10: error: 'builtInTripleCamera' is unavailable in visionOS
 19 |         .builtInUltraWideCamera,
 20 |         .builtInDualWideCamera,
 21 |         .builtInTripleCamera,
    |          `- error: 'builtInTripleCamera' is unavailable in visionOS
 22 |     ]
 23 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:628:38: note: 'builtInTripleCamera' has been explicitly marked unavailable here
 626 |     Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.
 627 |  */
 628 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInTripleCamera API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInTripleCamera' has been explicitly marked unavailable here
 629 |
 630 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:25:55: error: 'DeviceType' is only available in visionOS 2.1 or newer
  3 | import AVFoundation
  4 |
  5 | public extension AVCaptureDevice {
    |        `- note: add '@available' attribute to enclosing extension
  6 |     /// All camera devices available in this device currently.
  7 |     /// Devices are sorted by AVCaptureDeviceType, matching the order specified in the deviceTypes parameter of +[AVCaptureDeviceDiscoverySession discoverySessionWithDeviceTypes:mediaType:position:]. If a `.unspecified` position is given, the results are further ordered by position in the AVCaptureDevicePosition enum.
    :
 23 |
 24 |     /// All camera types available in this device.
 25 |     static let availableCameraTypes: [AVCaptureDevice.DeviceType] = allCameras.filter { AVCaptureDevice.DiscoverySession(deviceTypes: [ $0 ], mediaType: .video, position: .unspecified).devices.isEmpty == false }
    |                |                                      `- error: 'DeviceType' is only available in visionOS 2.1 or newer
    |                `- note: add '@available' attribute to enclosing static property
 26 | }
 27 |
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:25:105: error: 'DiscoverySession' is only available in visionOS 2.1 or newer
  3 | import AVFoundation
  4 |
  5 | public extension AVCaptureDevice {
    |        `- note: add '@available' attribute to enclosing extension
  6 |     /// All camera devices available in this device currently.
  7 |     /// Devices are sorted by AVCaptureDeviceType, matching the order specified in the deviceTypes parameter of +[AVCaptureDeviceDiscoverySession discoverySessionWithDeviceTypes:mediaType:position:]. If a `.unspecified` position is given, the results are further ordered by position in the AVCaptureDevicePosition enum.
    :
 23 |
 24 |     /// All camera types available in this device.
 25 |     static let availableCameraTypes: [AVCaptureDevice.DeviceType] = allCameras.filter { AVCaptureDevice.DiscoverySession(deviceTypes: [ $0 ], mediaType: .video, position: .unspecified).devices.isEmpty == false }
    |                |                                                                                        |- error: 'DiscoverySession' is only available in visionOS 2.1 or newer
    |                |                                                                                        `- note: add 'if #available' version check
    |                `- note: add '@available' attribute to enclosing static property
 26 | }
 27 |
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:123:63: error: 'FocusMode' is unavailable in visionOS
121 | public extension AVCaptureDevice {
122 |     /// Sets the given focus mode to this device, if it's supported.
123 |     func setFocusModeIfSupported(_ focusMode: AVCaptureDevice.FocusMode) {
    |                                                               `- error: 'FocusMode' is unavailable in visionOS
124 |         guard isFocusModeSupported(focusMode) else { return }
125 |         self.focusMode = focusMode
/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/DeviceOrientation.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile DeviceOrientation.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile AVCaptureDevice+Utilities.swift
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:129:53: error: 'ExposureMode' is unavailable in visionOS
127 |
128 |     /// Sets the given exposure mode to this device, if it's supported.
129 |     func setExposureModeIfSupported(_ exposureMode: ExposureMode) {
    |                                                     `- error: 'ExposureMode' is unavailable in visionOS
130 |         guard isExposureModeSupported(exposureMode) else { return }
131 |         self.exposureMode = exposureMode
/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/Extensions/AVCaptureDevice+Utilities.swift:10:32: error: 'DiscoverySession' is only available in visionOS 2.1 or newer
  3 | import AVFoundation
  4 |
  5 | public extension AVCaptureDevice {
    |        `- note: add '@available' attribute to enclosing extension
  6 |     /// All camera devices available in this device currently.
  7 |     /// Devices are sorted by AVCaptureDeviceType, matching the order specified in the deviceTypes parameter of +[AVCaptureDeviceDiscoverySession discoverySessionWithDeviceTypes:mediaType:position:]. If a `.unspecified` position is given, the results are further ordered by position in the AVCaptureDevicePosition enum.
  8 |     static func availableCameras(position: AVCaptureDevice.Position = .unspecified) -> [AVCaptureDevice] {
    |                 `- note: add '@available' attribute to enclosing static method
  9 |         /// For apps linked against iOS 11 or later, the
 10 |         return AVCaptureDevice.DiscoverySession(deviceTypes: availableCameraTypes, mediaType: .video, position: position).devices
    |                                |- error: 'DiscoverySession' is only available in visionOS 2.1 or newer
    |                                `- note: add 'if #available' version check
 11 |     }
 12 |
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:98:33: error: 'videoMaxZoomFactor' is unavailable in visionOS
 96 |     /// The maximum zoom scale of this device.
 97 |     var videoMaxZoomFactor: CGFloat {
 98 |         return min(activeFormat.videoMaxZoomFactor, 4)
    |                                 `- error: 'videoMaxZoomFactor' is unavailable in visionOS
 99 |     }
100 |
/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:3440:40: note: 'videoMaxZoomFactor' has been explicitly marked unavailable here
3438 |     If the device's videoZoomFactor property is assigned a larger value, an NSRangeException will be thrown. A maximum zoom factor of 1 indicates no zoom is available.
3439 |  */
3440 | @property(nonatomic, readonly) CGFloat videoMaxZoomFactor API_UNAVAILABLE(macos, visionos);
     |                                        `- note: 'videoMaxZoomFactor' has been explicitly marked unavailable here
3441 |
3442 | /*!
SwiftCompile normal arm64 Compiling\ CameraTypes.swift,\ CapturedImage.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraTypes.swift /Users/admin/builder/spi-builder-workspace/Sources/CapturedImage.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
/Users/admin/builder/spi-builder-workspace/Sources/CameraTypes.swift:45:43: error: 'FlashMode' is unavailable in visionOS
43 |     case auto
44 |
45 |     var captureFlashMode: AVCaptureDevice.FlashMode {
   |                                           `- error: 'FlashMode' is unavailable in visionOS
46 |         switch self {
47 |         case .on: return .on
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:967:28: note: 'FlashMode' has been explicitly marked unavailable here
 965 |     Indicates that the flash should be used automatically depending on ambient light conditions.
 966 |  */
 967 | typedef NS_ENUM(NSInteger, AVCaptureFlashMode) {
     |                            `- note: 'FlashMode' has been explicitly marked unavailable here
 968 |     AVCaptureFlashModeOff  = 0,
 969 |     AVCaptureFlashModeOn   = 1,
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraTypes.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CameraTypes.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CapturedImage.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CapturedImage.swift
SwiftCompile normal arm64 Compiling\ CameraDelegate.swift,\ CameraProtocol.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraDelegate.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraProtocol.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraDelegate.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CameraDelegate.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraProtocol.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CameraProtocol.swift
SwiftCompile normal arm64 Compiling\ UIImage+Utilities.swift /Users/admin/builder/spi-builder-workspace/Sources/Extensions/UIImage+Utilities.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/UIImage+Utilities.swift:31:50: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 29 |     /// - Parameter previewLayer: The preview layer of the camera's live preview.
 30 |     /// - Returns: The CGRect to use for cropping the camera's captured image to match the camera preview.
 31 |     func cropRect(fromPreviewLayer previewLayer: AVCaptureVideoPreviewLayer) -> CGRect {
    |                                                  `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 32 |         let outputRect = previewLayer.metadataOutputRectConverted(fromLayerRect: previewLayer.bounds)
 33 |         return cropRect(fromOutputRect: outputRect)
/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/Extensions/UIImage+Utilities.swift:32:39: error: 'metadataOutputRectConverted(fromLayerRect:)' is unavailable in visionOS
 30 |     /// - Returns: The CGRect to use for cropping the camera's captured image to match the camera preview.
 31 |     func cropRect(fromPreviewLayer previewLayer: AVCaptureVideoPreviewLayer) -> CGRect {
 32 |         let outputRect = previewLayer.metadataOutputRectConverted(fromLayerRect: previewLayer.bounds)
    |                                       `- error: 'metadataOutputRectConverted(fromLayerRect:)' is unavailable in visionOS
 33 |         return cropRect(fromOutputRect: outputRect)
 34 |     }
/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:180:1: note: 'metadataOutputRectConverted(fromLayerRect:)' has been explicitly marked unavailable here
178 |     AVCaptureMetadataOutput rectOfInterest is expressed as a CGRect where {0,0} represents the top left of the picture area, and {1,1} represents the bottom right on an unrotated picture. This convenience method converts a rectangle in the coordinate space of the receiver to a rectangle of interest in the coordinate space of an AVCaptureMetadataOutput whose AVCaptureDevice is providing input to the receiver. The conversion takes frame size and videoGravity into consideration.
179 |  */
180 | - (CGRect)metadataOutputRectOfInterestForRect:(CGRect)rectInLayerCoordinates API_AVAILABLE(macos(10.15), ios(7.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos);
    | `- note: 'metadataOutputRectConverted(fromLayerRect:)' has been explicitly marked unavailable here
181 |
182 | /*!
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/Extensions/UIImage+Utilities.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile UIImage+Utilities.swift
SwiftCompile normal arm64 Compiling\ SwiftttCamera.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftttCamera.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
/Users/admin/builder/spi-builder-workspace/Sources/SwiftttCamera.swift:14:31: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 12 |     private var zoom: Zoom!
 13 |     private var session: AVCaptureSession!
 14 |     private var previewLayer: AVCaptureVideoPreviewLayer!
    |                               `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 15 |     private var photoOutput: AVCapturePhotoOutput!
 16 |     private var deviceAuthorized: Bool = false
/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/SwiftttCamera.swift:15:30: error: 'AVCapturePhotoOutput' is unavailable in visionOS
 13 |     private var session: AVCaptureSession!
 14 |     private var previewLayer: AVCaptureVideoPreviewLayer!
 15 |     private var photoOutput: AVCapturePhotoOutput!
    |                              `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
 16 |     private var deviceAuthorized: Bool = false
 17 |     private var isCapturingImage: Bool = false
/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/SwiftttCamera.swift:409:63: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
407 |     }
408 |
409 |     private func currentCaptureVideoOrientationForDevice() -> AVCaptureVideoOrientation {
    |                                                               `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
410 |         let actualOrientation: UIDeviceOrientation = deviceOrientation.orientation
411 |         switch actualOrientation {
/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/SwiftttCamera.swift:421:63: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
419 |     }
420 |
421 |     private func currentPreviewVideoOrientationForDevice() -> AVCaptureVideoOrientation {
    |                                                               `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
422 |         let deviceOrientation: UIDeviceOrientation = currentPreviewDeviceOrientation()
423 |         return Self.videoOrientation(forDeviceOrientation: deviceOrientation)
/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/SwiftttCamera.swift:426:106: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
424 |     }
425 |
426 |     private static func videoOrientation(forDeviceOrientation deviceOrientation: UIDeviceOrientation) -> AVCaptureVideoOrientation {
    |                                                                                                          `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
427 |         switch deviceOrientation {
428 |         case .portrait: return .portrait
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/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/SwiftttCamera.swift:490:39: error: 'AVCapturePhotoOutput' is unavailable in visionOS
488 |
489 | extension SwiftttCamera : AVCapturePhotoCaptureDelegate {
490 |     public func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
    |                                       `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
491 |         guard isCapturingImage else { return }
492 |         guard let imageData: Data = photo.fileDataRepresentation() else { isCapturingImage = false; return }
/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/SwiftttCamera.swift:490:93: error: 'AVCapturePhoto' is unavailable in visionOS
488 |
489 | extension SwiftttCamera : AVCapturePhotoCaptureDelegate {
490 |     public func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
    |                                                                                             `- error: 'AVCapturePhoto' is unavailable in visionOS
491 |         guard isCapturingImage else { return }
492 |         guard let imageData: Data = photo.fileDataRepresentation() else { isCapturingImage = false; return }
/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/SwiftttCamera.swift:490:17: error: cannot override 'photoOutput' which has been marked unavailable
488 |
489 | extension SwiftttCamera : AVCapturePhotoCaptureDelegate {
490 |     public func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
    |                 `- error: cannot override 'photoOutput' which has been marked unavailable
491 |         guard isCapturingImage else { return }
492 |         guard let imageData: Data = photo.fileDataRepresentation() else { isCapturingImage = false; return }
/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/SwiftttCamera.swift:489:27: error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
487 | }
488 |
489 | extension SwiftttCamera : AVCapturePhotoCaptureDelegate {
    |                           `- error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
490 |     public func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
491 |         guard isCapturingImage else { return }
/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/SwiftttCamera.swift:145:49: error: 'photo' is unavailable in visionOS
143 |         if authorized {
144 |             session = AVCaptureSession()
145 |             session.setSessionPresetIfPossible(.photo)
    |                                                 `- error: 'photo' is unavailable in visionOS
146 |             let device: AVCaptureDevice? = AVCaptureDevice.captureDevice(from: cameraDevice) ?? AVCaptureDevice.default(for: .video) // It's nil only in Simulator
147 |             do {
/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/SwiftttCamera.swift:146:113: error: 'default(for:)' is only available in visionOS 2.1 or newer
114 |
115 | // MARK: - Capture Session Management
116 | extension SwiftttCamera {
    | `- note: add '@available' attribute to enclosing extension
117 |     public func startRunning() {
118 |         session?.startRunningIfNeeded()
    :
140 |     }
141 |
142 |     private func handleDeviceAuthorization(_ authorized: Bool) {
    |                  `- note: add '@available' attribute to enclosing instance method
143 |         if authorized {
144 |             session = AVCaptureSession()
145 |             session.setSessionPresetIfPossible(.photo)
146 |             let device: AVCaptureDevice? = AVCaptureDevice.captureDevice(from: cameraDevice) ?? AVCaptureDevice.default(for: .video) // It's nil only in Simulator
    |                                                                                                                 |- error: 'default(for:)' is only available in visionOS 2.1 or newer
    |                                                                                                                 `- note: add 'if #available' version check
147 |             do {
148 |                 try device?.lockForConfiguration()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftttCamera.swift:161:31: error: 'AVCapturePhotoOutput' is unavailable in visionOS
159 |                 }
160 |                 #endif
161 |                 photoOutput = AVCapturePhotoOutput()
    |                               `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
162 |                 session.addOutputIfPossible(photoOutput)
163 |                 deviceOrientation = DeviceOrientation()
/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/SwiftttCamera.swift:199:24: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
197 |         let rootLayer: CALayer = view.layer
198 |         rootLayer.masksToBounds = true
199 |         previewLayer = AVCaptureVideoPreviewLayer(session: session)
    |                        `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
200 |         previewLayer.videoGravity = .resizeAspectFill
201 |         previewLayer.frame = rootLayer.bounds
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/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
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/SwiftttCamera.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile SwiftttCamera.swift
SwiftEmitModule normal arm64 Emitting\ module\ for\ SwiftttCamera (in target 'SwiftttCamera' from project 'SwiftttCamera')
/Users/admin/builder/spi-builder-workspace/Sources/CameraTypes.swift:45:43: error: 'FlashMode' is unavailable in visionOS
43 |     case auto
44 |
45 |     var captureFlashMode: AVCaptureDevice.FlashMode {
   |                                           `- error: 'FlashMode' is unavailable in visionOS
46 |         switch self {
47 |         case .on: return .on
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:967:28: note: 'FlashMode' has been explicitly marked unavailable here
 965 |     Indicates that the flash should be used automatically depending on ambient light conditions.
 966 |  */
 967 | typedef NS_ENUM(NSInteger, AVCaptureFlashMode) {
     |                            `- note: 'FlashMode' has been explicitly marked unavailable here
 968 |     AVCaptureFlashModeOff  = 0,
 969 |     AVCaptureFlashModeOn   = 1,
/Users/admin/builder/spi-builder-workspace/Sources/CameraTypes.swift:63:43: error: 'TorchMode' is unavailable in visionOS
61 |     case auto
62 |
63 |     var captureTorchMode: AVCaptureDevice.TorchMode {
   |                                           `- error: 'TorchMode' is unavailable in visionOS
64 |         switch self {
65 |         case .on: return .on
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h: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/DeviceOrientation.swift:9:26: error: 'beginGeneratingDeviceOrientationNotifications()' is unavailable in visionOS
 7 | final class DeviceOrientation {
 8 |     private lazy var motionManager: CMMotionManager? = {
 9 |         UIDevice.current.beginGeneratingDeviceOrientationNotifications()
   |                          `- error: 'beginGeneratingDeviceOrientationNotifications()' is unavailable in visionOS
10 |         #if TARGET_IPHONE_SIMULATOR
11 |         return nil
/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:49:1: note: 'beginGeneratingDeviceOrientationNotifications()' has been explicitly marked unavailable here
47 |
48 | @property(nonatomic,readonly,getter=isGeneratingDeviceOrientationNotifications) BOOL generatesDeviceOrientationNotifications API_UNAVAILABLE(tvos, visionos);
49 | - (void)beginGeneratingDeviceOrientationNotifications API_UNAVAILABLE(tvos, visionos);      // nestable
   | `- note: 'beginGeneratingDeviceOrientationNotifications()' has been explicitly marked unavailable here
50 | - (void)endGeneratingDeviceOrientationNotifications API_UNAVAILABLE(tvos, visionos);
51 |
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:14:45: error: 'DeviceType' is only available in visionOS 2.1 or newer
  3 | import AVFoundation
  4 |
  5 | public extension AVCaptureDevice {
    |        `- note: add '@available' attribute to enclosing extension
  6 |     /// All camera devices available in this device currently.
  7 |     /// Devices are sorted by AVCaptureDeviceType, matching the order specified in the deviceTypes parameter of +[AVCaptureDeviceDiscoverySession discoverySessionWithDeviceTypes:mediaType:position:]. If a `.unspecified` position is given, the results are further ordered by position in the AVCaptureDevicePosition enum.
    :
 12 |
 13 |     /// All camera types available in iOS.
 14 |     static let allCameras: [AVCaptureDevice.DeviceType] = [
    |                |                            `- error: 'DeviceType' is only available in visionOS 2.1 or newer
    |                `- note: add '@available' attribute to enclosing static property
 15 |         .builtInWideAngleCamera,
 16 |         .builtInTelephotoCamera,
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:15:10: error: 'builtInWideAngleCamera' is only available in visionOS 2.1 or newer
  3 | import AVFoundation
  4 |
  5 | public extension AVCaptureDevice {
    |        `- note: add '@available' attribute to enclosing extension
  6 |     /// All camera devices available in this device currently.
  7 |     /// Devices are sorted by AVCaptureDeviceType, matching the order specified in the deviceTypes parameter of +[AVCaptureDeviceDiscoverySession discoverySessionWithDeviceTypes:mediaType:position:]. If a `.unspecified` position is given, the results are further ordered by position in the AVCaptureDevicePosition enum.
    :
 12 |
 13 |     /// All camera types available in iOS.
 14 |     static let allCameras: [AVCaptureDevice.DeviceType] = [
    |                `- note: add '@available' attribute to enclosing static property
 15 |         .builtInWideAngleCamera,
    |          `- error: 'builtInWideAngleCamera' is only available in visionOS 2.1 or newer
 16 |         .builtInTelephotoCamera,
 17 |         .builtInDualCamera,
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:16:10: error: 'builtInTelephotoCamera' is unavailable in visionOS
 14 |     static let allCameras: [AVCaptureDevice.DeviceType] = [
 15 |         .builtInWideAngleCamera,
 16 |         .builtInTelephotoCamera,
    |          `- error: 'builtInTelephotoCamera' is unavailable in visionOS
 17 |         .builtInDualCamera,
 18 |         .builtInTrueDepthCamera,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:568:38: note: 'builtInTelephotoCamera' has been explicitly marked unavailable here
 566 |     A built-in camera device with a longer focal length than a wide angle camera. Note that devices of this type may only be discovered using an AVCaptureDeviceDiscoverySession.
 567 |  */
 568 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInTelephotoCamera API_AVAILABLE(ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInTelephotoCamera' has been explicitly marked unavailable here
 569 |
 570 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:17:10: error: 'builtInDualCamera' is unavailable in visionOS
 15 |         .builtInWideAngleCamera,
 16 |         .builtInTelephotoCamera,
 17 |         .builtInDualCamera,
    |          `- error: 'builtInDualCamera' is unavailable in visionOS
 18 |         .builtInTrueDepthCamera,
 19 |         .builtInUltraWideCamera,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:593:38: note: 'builtInDualCamera' has been explicitly marked unavailable here
 591 |     Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.
 592 |  */
 593 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInDualCamera API_AVAILABLE(ios(10.2), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInDualCamera' has been explicitly marked unavailable here
 594 |
 595 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:18:10: error: 'builtInTrueDepthCamera' is unavailable in visionOS
 16 |         .builtInTelephotoCamera,
 17 |         .builtInDualCamera,
 18 |         .builtInTrueDepthCamera,
    |          `- error: 'builtInTrueDepthCamera' is unavailable in visionOS
 19 |         .builtInUltraWideCamera,
 20 |         .builtInDualWideCamera,
/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:634:38: note: 'builtInTrueDepthCamera' has been explicitly marked unavailable here
 632 |     A device that consists of two cameras, one YUV and one Infrared. The infrared camera provides high quality depth information that is synchronized and perspective corrected to frames produced by the YUV camera. While the resolution of the depth data and YUV frames may differ, their field of view and aspect ratio always match. Note that devices of this type may only be discovered using an AVCaptureDeviceDiscoverySession or -[AVCaptureDevice defaultDeviceWithDeviceType:mediaType:position:].
 633 |  */
 634 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInTrueDepthCamera API_AVAILABLE(ios(11.1), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInTrueDepthCamera' has been explicitly marked unavailable here
 635 |
 636 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:19:10: error: 'builtInUltraWideCamera' is unavailable in visionOS
 17 |         .builtInDualCamera,
 18 |         .builtInTrueDepthCamera,
 19 |         .builtInUltraWideCamera,
    |          `- error: 'builtInUltraWideCamera' is unavailable in visionOS
 20 |         .builtInDualWideCamera,
 21 |         .builtInTripleCamera,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:574:38: note: 'builtInUltraWideCamera' has been explicitly marked unavailable here
 572 |     A built-in camera device with a shorter focal length than a wide angle camera. Note that devices of this type may only be discovered using an AVCaptureDeviceDiscoverySession.
 573 |  */
 574 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInUltraWideCamera API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInUltraWideCamera' has been explicitly marked unavailable here
 575 |
 576 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:20:10: error: 'builtInDualWideCamera' is unavailable in visionOS
 18 |         .builtInTrueDepthCamera,
 19 |         .builtInUltraWideCamera,
 20 |         .builtInDualWideCamera,
    |          `- error: 'builtInDualWideCamera' is unavailable in visionOS
 21 |         .builtInTripleCamera,
 22 |     ]
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:611:38: note: 'builtInDualWideCamera' has been explicitly marked unavailable here
 609 |     Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.
 610 |  */
 611 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInDualWideCamera API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInDualWideCamera' has been explicitly marked unavailable here
 612 |
 613 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:21:10: error: 'builtInTripleCamera' is unavailable in visionOS
 19 |         .builtInUltraWideCamera,
 20 |         .builtInDualWideCamera,
 21 |         .builtInTripleCamera,
    |          `- error: 'builtInTripleCamera' is unavailable in visionOS
 22 |     ]
 23 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:628:38: note: 'builtInTripleCamera' has been explicitly marked unavailable here
 626 |     Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.
 627 |  */
 628 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInTripleCamera API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
     |                                      `- note: 'builtInTripleCamera' has been explicitly marked unavailable here
 629 |
 630 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:25:55: error: 'DeviceType' is only available in visionOS 2.1 or newer
  3 | import AVFoundation
  4 |
  5 | public extension AVCaptureDevice {
    |        `- note: add '@available' attribute to enclosing extension
  6 |     /// All camera devices available in this device currently.
  7 |     /// Devices are sorted by AVCaptureDeviceType, matching the order specified in the deviceTypes parameter of +[AVCaptureDeviceDiscoverySession discoverySessionWithDeviceTypes:mediaType:position:]. If a `.unspecified` position is given, the results are further ordered by position in the AVCaptureDevicePosition enum.
    :
 23 |
 24 |     /// All camera types available in this device.
 25 |     static let availableCameraTypes: [AVCaptureDevice.DeviceType] = allCameras.filter { AVCaptureDevice.DiscoverySession(deviceTypes: [ $0 ], mediaType: .video, position: .unspecified).devices.isEmpty == false }
    |                |                                      `- error: 'DeviceType' is only available in visionOS 2.1 or newer
    |                `- note: add '@available' attribute to enclosing static property
 26 | }
 27 |
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:25:105: error: 'DiscoverySession' is only available in visionOS 2.1 or newer
  3 | import AVFoundation
  4 |
  5 | public extension AVCaptureDevice {
    |        `- note: add '@available' attribute to enclosing extension
  6 |     /// All camera devices available in this device currently.
  7 |     /// Devices are sorted by AVCaptureDeviceType, matching the order specified in the deviceTypes parameter of +[AVCaptureDeviceDiscoverySession discoverySessionWithDeviceTypes:mediaType:position:]. If a `.unspecified` position is given, the results are further ordered by position in the AVCaptureDevicePosition enum.
    :
 23 |
 24 |     /// All camera types available in this device.
 25 |     static let availableCameraTypes: [AVCaptureDevice.DeviceType] = allCameras.filter { AVCaptureDevice.DiscoverySession(deviceTypes: [ $0 ], mediaType: .video, position: .unspecified).devices.isEmpty == false }
    |                |                                                                                        |- error: 'DiscoverySession' is only available in visionOS 2.1 or newer
    |                |                                                                                        `- note: add 'if #available' version check
    |                `- note: add '@available' attribute to enclosing static property
 26 | }
 27 |
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift:123:63: error: 'FocusMode' is unavailable in visionOS
121 | public extension AVCaptureDevice {
122 |     /// Sets the given focus mode to this device, if it's supported.
123 |     func setFocusModeIfSupported(_ focusMode: AVCaptureDevice.FocusMode) {
    |                                                               `- error: 'FocusMode' is unavailable in visionOS
124 |         guard isFocusModeSupported(focusMode) else { return }
125 |         self.focusMode = focusMode
/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/Extensions/AVCaptureDevice+Utilities.swift:129:53: error: 'ExposureMode' is unavailable in visionOS
127 |
128 |     /// Sets the given exposure mode to this device, if it's supported.
129 |     func setExposureModeIfSupported(_ exposureMode: ExposureMode) {
    |                                                     `- error: 'ExposureMode' is unavailable in visionOS
130 |         guard isExposureModeSupported(exposureMode) else { return }
131 |         self.exposureMode = exposureMode
/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/Extensions/AVCaptureSession+Utilities.swift:20:64: error: 'Preset' is unavailable in visionOS
18 |
19 |     /// Configures the receiver with the given preset, if possible.
20 |     func setSessionPresetIfPossible(_ preset: AVCaptureSession.Preset) {
   |                                                                `- error: 'Preset' is unavailable in visionOS
21 |         guard canSetSessionPreset(preset) else { return }
22 |         sessionPreset = preset
/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/Extensions/UIImage+Utilities.swift:31:50: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 29 |     /// - Parameter previewLayer: The preview layer of the camera's live preview.
 30 |     /// - Returns: The CGRect to use for cropping the camera's captured image to match the camera preview.
 31 |     func cropRect(fromPreviewLayer previewLayer: AVCaptureVideoPreviewLayer) -> CGRect {
    |                                                  `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 32 |         let outputRect = previewLayer.metadataOutputRectConverted(fromLayerRect: previewLayer.bounds)
 33 |         return cropRect(fromOutputRect: outputRect)
/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/SwiftttCamera.swift:14:31: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 12 |     private var zoom: Zoom!
 13 |     private var session: AVCaptureSession!
 14 |     private var previewLayer: AVCaptureVideoPreviewLayer!
    |                               `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 15 |     private var photoOutput: AVCapturePhotoOutput!
 16 |     private var deviceAuthorized: Bool = false
/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/SwiftttCamera.swift:15:30: error: 'AVCapturePhotoOutput' is unavailable in visionOS
 13 |     private var session: AVCaptureSession!
 14 |     private var previewLayer: AVCaptureVideoPreviewLayer!
 15 |     private var photoOutput: AVCapturePhotoOutput!
    |                              `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
 16 |     private var deviceAuthorized: Bool = false
 17 |     private var isCapturingImage: Bool = false
/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/SwiftttCamera.swift:409:63: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
407 |     }
408 |
409 |     private func currentCaptureVideoOrientationForDevice() -> AVCaptureVideoOrientation {
    |                                                               `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
410 |         let actualOrientation: UIDeviceOrientation = deviceOrientation.orientation
411 |         switch actualOrientation {
/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/SwiftttCamera.swift:421:63: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
419 |     }
420 |
421 |     private func currentPreviewVideoOrientationForDevice() -> AVCaptureVideoOrientation {
    |                                                               `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
422 |         let deviceOrientation: UIDeviceOrientation = currentPreviewDeviceOrientation()
423 |         return Self.videoOrientation(forDeviceOrientation: deviceOrientation)
/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/SwiftttCamera.swift:426:106: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
424 |     }
425 |
426 |     private static func videoOrientation(forDeviceOrientation deviceOrientation: UIDeviceOrientation) -> AVCaptureVideoOrientation {
    |                                                                                                          `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
427 |         switch deviceOrientation {
428 |         case .portrait: return .portrait
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/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/SwiftttCamera.swift:490:39: error: 'AVCapturePhotoOutput' is unavailable in visionOS
488 |
489 | extension SwiftttCamera : AVCapturePhotoCaptureDelegate {
490 |     public func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
    |                                       `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
491 |         guard isCapturingImage else { return }
492 |         guard let imageData: Data = photo.fileDataRepresentation() else { isCapturingImage = false; return }
/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/SwiftttCamera.swift:490:93: error: 'AVCapturePhoto' is unavailable in visionOS
488 |
489 | extension SwiftttCamera : AVCapturePhotoCaptureDelegate {
490 |     public func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
    |                                                                                             `- error: 'AVCapturePhoto' is unavailable in visionOS
491 |         guard isCapturingImage else { return }
492 |         guard let imageData: Data = photo.fileDataRepresentation() else { isCapturingImage = false; return }
/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/SwiftttCamera.swift:490:17: error: cannot override 'photoOutput' which has been marked unavailable
488 |
489 | extension SwiftttCamera : AVCapturePhotoCaptureDelegate {
490 |     public func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
    |                 `- error: cannot override 'photoOutput' which has been marked unavailable
491 |         guard isCapturingImage else { return }
492 |         guard let imageData: Data = photo.fileDataRepresentation() else { isCapturingImage = false; return }
/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/SwiftttCamera.swift:489:27: error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
487 | }
488 |
489 | extension SwiftttCamera : AVCapturePhotoCaptureDelegate {
    |                           `- error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
490 |     public func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
491 |         guard isCapturingImage else { return }
/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
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/CameraDelegate.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraProtocol.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraTypes.swift /Users/admin/builder/spi-builder-workspace/Sources/CapturedImage.swift /Users/admin/builder/spi-builder-workspace/Sources/DeviceOrientation.swift /Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureDevice+Utilities.swift /Users/admin/builder/spi-builder-workspace/Sources/Extensions/AVCaptureSession+Utilities.swift /Users/admin/builder/spi-builder-workspace/Sources/Extensions/Comparable+Utilities.swift /Users/admin/builder/spi-builder-workspace/Sources/Extensions/UIImage+Utilities.swift /Users/admin/builder/spi-builder-workspace/Sources/Extensions/UIViewController+SwiftttCamera.swift /Users/admin/builder/spi-builder-workspace/Sources/Focus.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftttCamera.swift /Users/admin/builder/spi-builder-workspace/Sources/Zoom.swift -target arm64-apple-xros1.0 -disable-cross-import-overlay-search -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/SwiftttCamera.build/Debug-xros/SwiftttCamera-t.build/Objects-normal/arm64/SwiftttCamera-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/SwiftttCamera.build/Debug-xros/SwiftttCamera-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftttCamera.build/Debug-xros/SwiftttCamera-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftttCamera.build/Debug-xros/SwiftttCamera-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name SwiftttCamera -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftttCamera.build/Debug-xros/SwiftttCamera-t.build/Objects-normal/arm64/SwiftttCamera_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/SwiftttCamera.build/Debug-xros/SwiftttCamera-t.build/Objects-normal/arm64/SwiftttCamera.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftttCamera.build/Debug-xros/SwiftttCamera-t.build/Objects-normal/arm64/SwiftttCamera.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftttCamera.build/Debug-xros/SwiftttCamera-t.build/Objects-normal/arm64/SwiftttCamera-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftttCamera.build/Debug-xros/SwiftttCamera-t.build/Objects-normal/arm64/SwiftttCamera-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftttCamera.build/Debug-xros/SwiftttCamera-t.build/Objects-normal/arm64/SwiftttCamera-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftttCamera.build/Debug-xros/SwiftttCamera-t.build/Objects-normal/arm64/SwiftttCamera.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftttCamera.build/Debug-xros/SwiftttCamera-t.build/Objects-normal/arm64/SwiftttCamera.abi.json
SwiftCompile normal arm64 (in target 'SwiftttCamera' from project 'SwiftttCamera')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode

SwiftCompile normal arm64 Compiling\ Zoom.swift /Users/admin/builder/spi-builder-workspace/Sources/Zoom.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/Zoom.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Zoom.swift
SwiftCompile normal arm64 Compiling\ UIViewController+SwiftttCamera.swift /Users/admin/builder/spi-builder-workspace/Sources/Extensions/UIViewController+SwiftttCamera.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/Extensions/UIViewController+SwiftttCamera.swift (in target 'SwiftttCamera' from project 'SwiftttCamera')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile UIViewController+SwiftttCamera.swift
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
2026-09-17 16:53:38.989 xcodebuild[822:4871] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
2026-09-17 16:53:39.093 xcodebuild[822:4871] [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\ SwiftttCamera (in target 'SwiftttCamera' from project 'SwiftttCamera')
	SwiftCompile normal arm64 (in target 'SwiftttCamera' from project 'SwiftttCamera')
	Building workspace SwiftttCamera with scheme SwiftttCamera
(3 failures)
BUILD FAILURE 6.4 visionOS