The Swift Package Index logo.Swift Package Index

Build Information

Failed to build WWCameraPickerController, reference main (548b34), with Swift 6.4 for visionOS using Xcode 27.0 on 21 Sep 2026 02:46:12 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 WWCameraPickerController -destination generic/platform=xrOS

Build Log

278 |     ///   - isHighResolutionPhotoEnabled: 高解析度
279 |     ///   - quality: 拍照品質
280 |     func _setting(isHighResolutionPhotoEnabled: Bool = true, quality: AVCapturePhotoOutput.QualityPrioritization) -> Self {
    |                                                                       `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
281 |
282 |         self.isHighResolutionCaptureEnabled = isHighResolutionPhotoEnabled
/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/WWCameraPickerController/Extension+.swift:255:11: error: 'AVCapturePhotoOutput' is unavailable in visionOS
253 |
254 | // MARK: - AVCapturePhotoOutput (class function)
255 | extension AVCapturePhotoOutput {
    |           `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
256 |
257 |     /// 擷圖 => 拍照 => photoOutput(_:didFinishProcessingPhoto:error:)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:50:12: note: 'AVCapturePhotoOutput' has been explicitly marked unavailable here
  48 |  */
  49 | API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
  50 | @interface AVCapturePhotoOutput : AVCaptureOutput
     |            `- note: 'AVCapturePhotoOutput' has been explicitly marked unavailable here
  51 | {
  52 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:17:94: error: 'default(for:)' is only available in visionOS 2.1 or newer
 12 |
 13 | // MARK: - AVCaptureDevice (static function)
 14 | extension AVCaptureDevice {
    | `- note: add '@available' attribute to enclosing extension
 15 |
 16 |     /// 取得預設影音裝置 (NSCameraUsageDescription / NSMicrophoneUsageDescription)
 17 |     static func _default(for type: AVMediaType) -> AVCaptureDevice? { return AVCaptureDevice.default(for: type) }
    |                 |                                                                            |- error: 'default(for:)' is only available in visionOS 2.1 or newer
    |                 |                                                                            `- note: add 'if #available' version check
    |                 `- note: add '@available' attribute to enclosing static method
 18 |
 19 |     /// 取得前後相機 => AVCaptureDevice
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:23:39: error: 'DiscoverySession' is only available in visionOS 2.1 or newer
 12 |
 13 | // MARK: - AVCaptureDevice (static function)
 14 | extension AVCaptureDevice {
    | `- note: add '@available' attribute to enclosing extension
 15 |
 16 |     /// 取得預設影音裝置 (NSCameraUsageDescription / NSMicrophoneUsageDescription)
    :
 19 |     /// 取得前後相機 => AVCaptureDevice
 20 |     /// - Returns: Constant.WideAngleCamera
 21 |     static func _wideAngleCamera() -> Constant.WideAngleCamera {
    |                 `- note: add '@available' attribute to enclosing static method
 22 |
 23 |         let devices = AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInWideAngleCamera], mediaType: .video, position: .unspecified).devices
    |                                       |- error: 'DiscoverySession' is only available in visionOS 2.1 or newer
    |                                       `- note: add 'if #available' version check
 24 |
 25 |         var videoDeivce: (front: AVCaptureDevice?, back: AVCaptureDevice?) = (nil, nil)
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:23:71: error: 'builtInWideAngleCamera' is only available in visionOS 2.1 or newer
 12 |
 13 | // MARK: - AVCaptureDevice (static function)
 14 | extension AVCaptureDevice {
    | `- note: add '@available' attribute to enclosing extension
 15 |
 16 |     /// 取得預設影音裝置 (NSCameraUsageDescription / NSMicrophoneUsageDescription)
    :
 19 |     /// 取得前後相機 => AVCaptureDevice
 20 |     /// - Returns: Constant.WideAngleCamera
 21 |     static func _wideAngleCamera() -> Constant.WideAngleCamera {
    |                 `- note: add '@available' attribute to enclosing static method
 22 |
 23 |         let devices = AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInWideAngleCamera], mediaType: .video, position: .unspecified).devices
    |                                                                       |- error: 'builtInWideAngleCamera' is only available in visionOS 2.1 or newer
    |                                                                       `- note: add 'if #available' version check
 24 |
 25 |         var videoDeivce: (front: AVCaptureDevice?, back: AVCaptureDevice?) = (nil, nil)
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:60:27: error: 'maxAvailableVideoZoomFactor' is unavailable in visionOS
 58 |     /// - Returns: CameraZoomRange
 59 |     func _zoomRange() -> Constant.CameraZoomRange {
 60 |         return (max: self.maxAvailableVideoZoomFactor, min: self.minAvailableVideoZoomFactor)
    |                           `- error: 'maxAvailableVideoZoomFactor' is unavailable in visionOS
 61 |     }
 62 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:2392:40: note: 'maxAvailableVideoZoomFactor' has been explicitly marked unavailable here
2390 |     Setting the videoZoomFactor to a value less than or equal to activeFormat.videoMaxZoomFactor, but greater than maxAvailableVideoZoomFactor results in the value being clamped to the maxAvailableVideoZoomFactor. Clients can key value observe the value of this property.
2391 |  */
2392 | @property(nonatomic, readonly) CGFloat maxAvailableVideoZoomFactor API_AVAILABLE(ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
     |                                        `- note: 'maxAvailableVideoZoomFactor' has been explicitly marked unavailable here
2393 |
2394 | @end
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:60:66: error: 'minAvailableVideoZoomFactor' is unavailable in visionOS
 58 |     /// - Returns: CameraZoomRange
 59 |     func _zoomRange() -> Constant.CameraZoomRange {
 60 |         return (max: self.maxAvailableVideoZoomFactor, min: self.minAvailableVideoZoomFactor)
    |                                                                  `- error: 'minAvailableVideoZoomFactor' is unavailable in visionOS
 61 |     }
 62 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:2380:40: note: 'minAvailableVideoZoomFactor' has been explicitly marked unavailable here
2378 |     Setting the videoZoomFactor to a value greater than or equal to 1.0, but lower than minAvailableVideoZoomFactor results in the value being clamped to the minAvailableVideoZoomFactor. Clients can key value observe the value of this property.
2379 |  */
2380 | @property(nonatomic, readonly) CGFloat minAvailableVideoZoomFactor API_AVAILABLE(ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
     |                                        `- note: 'minAvailableVideoZoomFactor' has been explicitly marked unavailable here
2381 |
2382 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:70:34: error: 'maxAvailableVideoZoomFactor' is unavailable in visionOS
 68 |     func _zoomIn(with rate: CGFloat, isSmooth: Bool = true) -> Result<CGFloat?, Error> {
 69 |
 70 |         let maxZoomFactor = self.maxAvailableVideoZoomFactor
    |                                  `- error: 'maxAvailableVideoZoomFactor' is unavailable in visionOS
 71 |         let currentVideoZoomFactor = self.videoZoomFactor
 72 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:2392:40: note: 'maxAvailableVideoZoomFactor' has been explicitly marked unavailable here
2390 |     Setting the videoZoomFactor to a value less than or equal to activeFormat.videoMaxZoomFactor, but greater than maxAvailableVideoZoomFactor results in the value being clamped to the maxAvailableVideoZoomFactor. Clients can key value observe the value of this property.
2391 |  */
2392 | @property(nonatomic, readonly) CGFloat maxAvailableVideoZoomFactor API_AVAILABLE(ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
     |                                        `- note: 'maxAvailableVideoZoomFactor' has been explicitly marked unavailable here
2393 |
2394 | @end
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:71:43: error: 'videoZoomFactor' is unavailable in visionOS
 69 |
 70 |         let maxZoomFactor = self.maxAvailableVideoZoomFactor
 71 |         let currentVideoZoomFactor = self.videoZoomFactor
    |                                           `- error: 'videoZoomFactor' is unavailable in visionOS
 72 |
 73 |         if (maxZoomFactor < currentVideoZoomFactor) { return .success(nil) }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:2068:30: note: 'videoZoomFactor' has been explicitly marked unavailable here
2066 |  @seealso -[AVCaptureDeviceFormat videoMaxZoomFactor], -[AVCaptureDeviceFormat videoZoomFactorUpscaleThreshold], -[AVCaptureDevice minAvailableVideoZoomFactor], -[AVCaptureDevice maxAvailableVideoZoomFactor],  -[AVCaptureDeviceFormat supportedVideoZoomFactorsForDepthDataDelivery], -[AVCaptureDeviceFormat videoMinZoomFactorForCenterStage] and -[AVCaptureDeviceFormat videoMaxZoomFactorForCenterStage]
2067 |  */
2068 | @property(nonatomic) CGFloat videoZoomFactor API_AVAILABLE(ios(7.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
     |                              `- note: 'videoZoomFactor' has been explicitly marked unavailable here
2069 |
2070 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:85:34: error: 'minAvailableVideoZoomFactor' is unavailable in visionOS
 83 |     func _zoomOut(with rate: CGFloat, isSmooth: Bool = true) -> Result<CGFloat?, Error> {
 84 |
 85 |         let minZoomFactor = self.minAvailableVideoZoomFactor
    |                                  `- error: 'minAvailableVideoZoomFactor' is unavailable in visionOS
 86 |         let currentVideoZoomFactor = self.videoZoomFactor
 87 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:2380:40: note: 'minAvailableVideoZoomFactor' has been explicitly marked unavailable here
2378 |     Setting the videoZoomFactor to a value greater than or equal to 1.0, but lower than minAvailableVideoZoomFactor results in the value being clamped to the minAvailableVideoZoomFactor. Clients can key value observe the value of this property.
2379 |  */
2380 | @property(nonatomic, readonly) CGFloat minAvailableVideoZoomFactor API_AVAILABLE(ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
     |                                        `- note: 'minAvailableVideoZoomFactor' has been explicitly marked unavailable here
2381 |
2382 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:86:43: error: 'videoZoomFactor' is unavailable in visionOS
 84 |
 85 |         let minZoomFactor = self.minAvailableVideoZoomFactor
 86 |         let currentVideoZoomFactor = self.videoZoomFactor
    |                                           `- error: 'videoZoomFactor' is unavailable in visionOS
 87 |
 88 |         if (currentVideoZoomFactor < minZoomFactor) { return .success(nil) }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:2068:30: note: 'videoZoomFactor' has been explicitly marked unavailable here
2066 |  @seealso -[AVCaptureDeviceFormat videoMaxZoomFactor], -[AVCaptureDeviceFormat videoZoomFactorUpscaleThreshold], -[AVCaptureDevice minAvailableVideoZoomFactor], -[AVCaptureDevice maxAvailableVideoZoomFactor],  -[AVCaptureDeviceFormat supportedVideoZoomFactorsForDepthDataDelivery], -[AVCaptureDeviceFormat videoMinZoomFactorForCenterStage] and -[AVCaptureDeviceFormat videoMaxZoomFactorForCenterStage]
2067 |  */
2068 | @property(nonatomic) CGFloat videoZoomFactor API_AVAILABLE(ios(7.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
     |                              `- note: 'videoZoomFactor' has been explicitly marked unavailable here
2069 |
2070 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:104:22: error: 'ramp(toVideoZoomFactor:withRate:)' is unavailable in visionOS
102 |
103 |             if (isSmooth) {
104 |                 self.ramp(toVideoZoomFactor: factor, withRate: Float(rate))
    |                      `- error: 'ramp(toVideoZoomFactor:withRate:)' is unavailable in visionOS
105 |             } else {
106 |                 self.videoZoomFactor = factor
/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:2086:1: note: 'ramp(toVideoZoomFactor:withRate:)' has been explicitly marked unavailable here
2084 |     -rampToVideoZoomFactor:withRate: throws an NSGenericException if called without first obtaining exclusive access to the receiver using lockForConfiguration:.
2085 |  */
2086 | - (void)rampToVideoZoomFactor:(CGFloat)factor withRate:(float)rate API_AVAILABLE(ios(7.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
     | `- note: 'ramp(toVideoZoomFactor:withRate:)' has been explicitly marked unavailable here
2087 |
2088 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:106:22: error: 'videoZoomFactor' is unavailable in visionOS
104 |                 self.ramp(toVideoZoomFactor: factor, withRate: Float(rate))
105 |             } else {
106 |                 self.videoZoomFactor = factor
    |                      `- error: 'videoZoomFactor' is unavailable in visionOS
107 |             }
108 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:2068:30: note: 'videoZoomFactor' has been explicitly marked unavailable here
2066 |  @seealso -[AVCaptureDeviceFormat videoMaxZoomFactor], -[AVCaptureDeviceFormat videoZoomFactorUpscaleThreshold], -[AVCaptureDevice minAvailableVideoZoomFactor], -[AVCaptureDevice maxAvailableVideoZoomFactor],  -[AVCaptureDeviceFormat supportedVideoZoomFactorsForDepthDataDelivery], -[AVCaptureDeviceFormat videoMinZoomFactorForCenterStage] and -[AVCaptureDeviceFormat videoMaxZoomFactorForCenterStage]
2067 |  */
2068 | @property(nonatomic) CGFloat videoZoomFactor API_AVAILABLE(ios(7.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
     |                              `- note: 'videoZoomFactor' has been explicitly marked unavailable here
2069 |
2070 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:109:25: error: 'videoZoomFactor' is unavailable in visionOS
107 |             }
108 |
109 |             return self.videoZoomFactor
    |                         `- error: 'videoZoomFactor' is unavailable in visionOS
110 |         }
111 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:2068:30: note: 'videoZoomFactor' has been explicitly marked unavailable here
2066 |  @seealso -[AVCaptureDeviceFormat videoMaxZoomFactor], -[AVCaptureDeviceFormat videoZoomFactorUpscaleThreshold], -[AVCaptureDevice minAvailableVideoZoomFactor], -[AVCaptureDevice maxAvailableVideoZoomFactor],  -[AVCaptureDeviceFormat supportedVideoZoomFactorsForDepthDataDelivery], -[AVCaptureDeviceFormat videoMinZoomFactorForCenterStage] and -[AVCaptureDeviceFormat videoMaxZoomFactorForCenterStage]
2067 |  */
2068 | @property(nonatomic) CGFloat videoZoomFactor API_AVAILABLE(ios(7.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
     |                              `- note: 'videoZoomFactor' has been explicitly marked unavailable here
2069 |
2070 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:120:18: error: 'cancelVideoZoomRamp()' is unavailable in visionOS
118 |
119 |         let result = self._lockForConfiguration { () -> Bool in
120 |             self.cancelVideoZoomRamp()
    |                  `- error: 'cancelVideoZoomRamp()' is unavailable in visionOS
121 |             return true
122 |         }
/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:2108:1: note: 'cancelVideoZoomRamp()' has been explicitly marked unavailable here
2106 |     -cancelVideoZoomRamp: throws an NSGenericException if called without first obtaining exclusive access to the receiver using lockForConfiguration:.
2107 |  */
2108 | - (void)cancelVideoZoomRamp API_AVAILABLE(ios(7.0), macCatalyst(14.0)) API_UNAVAILABLE(macos, visionos);
     | `- note: 'cancelVideoZoomRamp()' has been explicitly marked unavailable here
2109 |
2110 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:134:18: error: 'automaticallyAdjustsVideoHDREnabled' is unavailable in visionOS
132 |         let result = self._lockForConfiguration { () -> Bool in
133 |
134 |             self.automaticallyAdjustsVideoHDREnabled = false
    |                  `- error: 'automaticallyAdjustsVideoHDREnabled' is unavailable in visionOS
135 |             self.isVideoHDREnabled = isEnable
136 |
/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:2290:27: note: 'automaticallyAdjustsVideoHDREnabled' has been explicitly marked unavailable here
2288 |     The value of this property is a BOOL indicating whether the receiver is free to turn high dynamic range streaming on or off. This property defaults to YES. When automaticallyAdjustsVideoHDREnabled, the AVCaptureDevice turns videoHDR on automatically if it's a good fit for the activeFormat. -setAutomaticallyAdjustsVideoHDREnabled: throws an NSGenericException if called without first obtaining exclusive access to the receiver using -lockForConfiguration:. Clients can key-value observe videoHDREnabled to know when the receiver has automatically changed the value.
2289 |  */
2290 | @property(nonatomic) BOOL automaticallyAdjustsVideoHDREnabled API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
     |                           `- note: 'automaticallyAdjustsVideoHDREnabled' has been explicitly marked unavailable here
2291 |
2292 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:135:18: error: 'isVideoHDREnabled' is unavailable in visionOS
133 |
134 |             self.automaticallyAdjustsVideoHDREnabled = false
135 |             self.isVideoHDREnabled = isEnable
    |                  `- error: 'isVideoHDREnabled' is unavailable in visionOS
136 |
137 |             return self.isVideoHDREnabled
/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:2302:53: note: 'isVideoHDREnabled' has been explicitly marked unavailable here
2300 |     Note that setting this property may cause a lengthy reconfiguration of the receiver, similar to setting a new active format or AVCaptureSession sessionPreset. If you are setting either the active format or the AVCaptureSession's sessionPreset AND this property, you should bracket these operations with [session beginConfiguration] and [session commitConfiguration] to minimize reconfiguration time.
2301 |  */
2302 | @property(nonatomic, getter=isVideoHDREnabled) BOOL videoHDREnabled API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
     |                                                     `- note: 'isVideoHDREnabled' has been explicitly marked unavailable here
2303 |
2304 | @end
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:137:25: error: 'isVideoHDREnabled' is unavailable in visionOS
135 |             self.isVideoHDREnabled = isEnable
136 |
137 |             return self.isVideoHDREnabled
    |                         `- error: 'isVideoHDREnabled' is unavailable in visionOS
138 |         }
139 |
/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:2302:53: note: 'isVideoHDREnabled' has been explicitly marked unavailable here
2300 |     Note that setting this property may cause a lengthy reconfiguration of the receiver, similar to setting a new active format or AVCaptureSession sessionPreset. If you are setting either the active format or the AVCaptureSession's sessionPreset AND this property, you should bracket these operations with [session beginConfiguration] and [session commitConfiguration] to minimize reconfiguration time.
2301 |  */
2302 | @property(nonatomic, getter=isVideoHDREnabled) BOOL videoHDREnabled API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
     |                                                     `- note: 'isVideoHDREnabled' has been explicitly marked unavailable here
2303 |
2304 | @end
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:168:28: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
166 |     func _previewLayer(with frame: CGRect, videoGravity: AVLayerVideoGravity = .resizeAspectFill) -> AVCaptureVideoPreviewLayer {
167 |
168 |         let previewLayer = AVCaptureVideoPreviewLayer(session: self)
    |                            `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
169 |
170 |         previewLayer.frame = frame
/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/WWCameraPickerController/Extension+.swift:242:24: error: cannot assign value of type 'Result<Bool, any Error>' to type 'Result<Bool, Never>'
240 |             case .front:
241 |                 _removeInputs([_input])
242 |                 result = _canAddDevices(with: [backCamera]); return
    |                        |- error: cannot assign value of type 'Result<Bool, any Error>' to type 'Result<Bool, Never>'
    |                        `- note: arguments to generic parameter 'Failure' ('any Error' and 'Never') are expected to be equal
243 |             case .back:
244 |                 _removeInputs([_input])
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift (in target 'WWCameraPickerController' from project 'WWCameraPickerController')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Extension+.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:250:16: error: cannot convert return expression of type 'Result<Bool, Never>' to return type 'Result<Bool, any Error>'
248 |         }
249 |
250 |         return result
    |                |- error: cannot convert return expression of type 'Result<Bool, Never>' to return type 'Result<Bool, any Error>'
    |                `- note: arguments to generic parameter 'Failure' ('Never' and 'any Error') are expected to be equal
251 |     }
252 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:265:14: error: 'isHighResolutionCaptureEnabled' is unavailable in visionOS
263 |     func _capturePhoto(isHighResolutionPhotoEnabled: Bool = true, flashMode: AVCaptureDevice.FlashMode = .auto, delegate: AVCapturePhotoCaptureDelegate, completion: (() -> Void)? = nil) {
264 |
265 |         self.isHighResolutionCaptureEnabled = isHighResolutionPhotoEnabled
    |              `- error: 'isHighResolutionCaptureEnabled' is unavailable in visionOS
266 |
267 |         let photoSettings = AVCapturePhotoSettings(format: [AVVideoCodecKey: AVVideoCodecType.jpeg])
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:536:66: note: 'isHighResolutionCaptureEnabled' has been explicitly marked unavailable here
 534 |     Some AVCaptureDeviceFormats support outputting higher resolution stills than their streaming resolution (See AVCaptureDeviceFormat.highResolutionStillImageDimensions). Under some conditions, AVCaptureSession needs to set up the photo render pipeline differently to support high resolution still image capture. If you intend to take high resolution still images at all, you should set this property to YES before calling -[AVCaptureSession startRunning]. Once you've opted in for high resolution capture, you are free to issue photo capture requests with or without highResolutionCaptureEnabled in the AVCapturePhotoSettings. If you have not set this property to YES and call capturePhotoWithSettings:delegate: with settings.highResolutionCaptureEnabled set to YES, an NSInvalidArgumentException will be thrown.
 535 |  */
 536 | @property(nonatomic, getter=isHighResolutionCaptureEnabled) BOOL highResolutionCaptureEnabled API_DEPRECATED("Use maxPhotoDimensions instead.", macos(10.15, 13.0), ios(10.0, 16.0), macCatalyst(14.0, 16.0)) API_UNAVAILABLE(tvos, visionos);
     |                                                                  `- note: 'isHighResolutionCaptureEnabled' has been explicitly marked unavailable here
 537 |
 538 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:267:29: error: 'AVCapturePhotoSettings' is unavailable in visionOS
265 |         self.isHighResolutionCaptureEnabled = isHighResolutionPhotoEnabled
266 |
267 |         let photoSettings = AVCapturePhotoSettings(format: [AVVideoCodecKey: AVVideoCodecType.jpeg])
    |                             `- error: 'AVCapturePhotoSettings' is unavailable in visionOS
268 |         photoSettings.isHighResolutionPhotoEnabled = isHighResolutionPhotoEnabled
269 |         photoSettings.flashMode = flashMode
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:1192:12: note: 'AVCapturePhotoSettings' has been explicitly marked unavailable here
1190 |  */
1191 | API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
1192 | @interface AVCapturePhotoSettings : NSObject <NSCopying>
     |            `- note: 'AVCapturePhotoSettings' has been explicitly marked unavailable here
1193 | {
1194 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:268:23: error: 'isHighResolutionPhotoEnabled' is unavailable in visionOS
266 |
267 |         let photoSettings = AVCapturePhotoSettings(format: [AVVideoCodecKey: AVVideoCodecType.jpeg])
268 |         photoSettings.isHighResolutionPhotoEnabled = isHighResolutionPhotoEnabled
    |                       `- error: 'isHighResolutionPhotoEnabled' is unavailable in visionOS
269 |         photoSettings.flashMode = flashMode
270 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:1446:64: note: 'isHighResolutionPhotoEnabled' has been explicitly marked unavailable here
1444 |     Starting in iOS 14.5 if you disable geometric distortion correction, the high resolution photo emitted by AVCapturePhotoOutput may be is smaller depending on the format.
1445 |  */
1446 | @property(nonatomic, getter=isHighResolutionPhotoEnabled) BOOL highResolutionPhotoEnabled API_DEPRECATED("Use maxPhotoDimensions instead.", macos(10.15, 13.0), ios(10.0, 16.0), macCatalyst(14.0, 16.0)) API_UNAVAILABLE(tvos, visionos);
     |                                                                `- note: 'isHighResolutionPhotoEnabled' has been explicitly marked unavailable here
1447 |
1448 | /*!
SwiftEmitModule normal arm64 Emitting\ module\ for\ WWCameraPickerController (in target 'WWCameraPickerController' from project 'WWCameraPickerController')
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:166:102: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
164 |     ///   - videoGravity: AVLayerVideoGravity => .resizeAspectFill
165 |     /// - Returns: AVCaptureVideoPreviewLayer
166 |     func _previewLayer(with frame: CGRect, videoGravity: AVLayerVideoGravity = .resizeAspectFill) -> AVCaptureVideoPreviewLayer {
    |                                                                                                      `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
167 |
168 |         let previewLayer = AVCaptureVideoPreviewLayer(session: self)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/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/WWCameraPickerController/Extension+.swift:263:94: error: 'FlashMode' is unavailable in visionOS
261 |     ///   - delegate: AVCapturePhotoCaptureDelegate
262 |     ///   - completion: (() -> Void)?
263 |     func _capturePhoto(isHighResolutionPhotoEnabled: Bool = true, flashMode: AVCaptureDevice.FlashMode = .auto, delegate: AVCapturePhotoCaptureDelegate, completion: (() -> Void)? = nil) {
    |                                                                                              `- error: 'FlashMode' is unavailable in visionOS
264 |
265 |         self.isHighResolutionCaptureEnabled = isHighResolutionPhotoEnabled
/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/WWCameraPickerController/Extension+.swift:263:123: error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
261 |     ///   - delegate: AVCapturePhotoCaptureDelegate
262 |     ///   - completion: (() -> Void)?
263 |     func _capturePhoto(isHighResolutionPhotoEnabled: Bool = true, flashMode: AVCaptureDevice.FlashMode = .auto, delegate: AVCapturePhotoCaptureDelegate, completion: (() -> Void)? = nil) {
    |                                                                                                                           `- error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
264 |
265 |         self.isHighResolutionCaptureEnabled = isHighResolutionPhotoEnabled
/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/WWCameraPickerController/Extension+.swift:280:71: error: 'AVCapturePhotoOutput' is unavailable in visionOS
278 |     ///   - isHighResolutionPhotoEnabled: 高解析度
279 |     ///   - quality: 拍照品質
280 |     func _setting(isHighResolutionPhotoEnabled: Bool = true, quality: AVCapturePhotoOutput.QualityPrioritization) -> Self {
    |                                                                       `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
281 |
282 |         self.isHighResolutionCaptureEnabled = isHighResolutionPhotoEnabled
/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/WWCameraPickerController/Extension+.swift:255:11: error: 'AVCapturePhotoOutput' is unavailable in visionOS
253 |
254 | // MARK: - AVCapturePhotoOutput (class function)
255 | extension AVCapturePhotoOutput {
    |           `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
256 |
257 |     /// 擷圖 => 拍照 => photoOutput(_:didFinishProcessingPhoto:error:)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:50:12: note: 'AVCapturePhotoOutput' has been explicitly marked unavailable here
  48 |  */
  49 | API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
  50 | @interface AVCapturePhotoOutput : AVCaptureOutput
     |            `- note: 'AVCapturePhotoOutput' has been explicitly marked unavailable here
  51 | {
  52 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/WWCameraPickerController.swift:21:38: error: 'AVCapturePhotoOutput' is unavailable in visionOS
 19 |
 20 |     private let captureSession = AVCaptureSession()
 21 |     private let capturePhotoOutput = AVCapturePhotoOutput()
    |                                      `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
 22 |     private let captureMovieFileOutput = AVCaptureMovieFileOutput()
 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/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/WWCameraPickerController/WWCameraPickerController.swift:22:42: error: 'AVCaptureMovieFileOutput' is unavailable in visionOS
 20 |     private let captureSession = AVCaptureSession()
 21 |     private let capturePhotoOutput = AVCapturePhotoOutput()
 22 |     private let captureMovieFileOutput = AVCaptureMovieFileOutput()
    |                                          `- error: 'AVCaptureMovieFileOutput' is unavailable in visionOS
 23 |
 24 |     private var defaultPosition: AVCaptureDevice.Position = .unspecified
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h:405:12: note: 'AVCaptureMovieFileOutput' has been explicitly marked unavailable here
403 |  */
404 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
405 | @interface AVCaptureMovieFileOutput : AVCaptureFileOutput
    |            `- note: 'AVCaptureMovieFileOutput' has been explicitly marked unavailable here
406 | {
407 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/WWCameraPickerController.swift:25:31: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 23 |
 24 |     private var defaultPosition: AVCaptureDevice.Position = .unspecified
 25 |     private var previewLayer: AVCaptureVideoPreviewLayer?
    |                               `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 26 |     private var cameraModeSetting: (flashMode: AVCaptureDevice.FlashMode, isHighResolution: Bool, quality: AVCapturePhotoOutput.QualityPrioritization) = (.auto, true, .quality)
 27 |
/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/WWCameraPickerController/WWCameraPickerController.swift:26:64: error: 'FlashMode' is unavailable in visionOS
 24 |     private var defaultPosition: AVCaptureDevice.Position = .unspecified
 25 |     private var previewLayer: AVCaptureVideoPreviewLayer?
 26 |     private var cameraModeSetting: (flashMode: AVCaptureDevice.FlashMode, isHighResolution: Bool, quality: AVCapturePhotoOutput.QualityPrioritization) = (.auto, true, .quality)
    |                                                                `- error: 'FlashMode' is unavailable in visionOS
 27 |
 28 |     private var takePhotoClosure: ((Result<AVCapturePhoto, Error>) -> Void)?
/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/WWCameraPickerController/WWCameraPickerController.swift:26:108: error: 'AVCapturePhotoOutput' is unavailable in visionOS
 24 |     private var defaultPosition: AVCaptureDevice.Position = .unspecified
 25 |     private var previewLayer: AVCaptureVideoPreviewLayer?
 26 |     private var cameraModeSetting: (flashMode: AVCaptureDevice.FlashMode, isHighResolution: Bool, quality: AVCapturePhotoOutput.QualityPrioritization) = (.auto, true, .quality)
    |                                                                                                            `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
 27 |
 28 |     private var takePhotoClosure: ((Result<AVCapturePhoto, Error>) -> Void)?
/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/WWCameraPickerController/WWCameraPickerController.swift:28:44: error: 'AVCapturePhoto' is unavailable in visionOS
 26 |     private var cameraModeSetting: (flashMode: AVCaptureDevice.FlashMode, isHighResolution: Bool, quality: AVCapturePhotoOutput.QualityPrioritization) = (.auto, true, .quality)
 27 |
 28 |     private var takePhotoClosure: ((Result<AVCapturePhoto, Error>) -> Void)?
    |                                            `- error: 'AVCapturePhoto' is unavailable in visionOS
 29 |     private var takeMovieClosure: ((Result<Bool, Error>) -> Void)?
 30 |
/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/WWCameraPickerController/WWCameraPickerController.swift:40:39: error: 'AVCapturePhotoOutput' is unavailable in visionOS
 38 | extension WWCameraViewController: AVCapturePhotoCaptureDelegate {
 39 |
 40 |     public func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
    |                                       `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
 41 |         if let error = error { takePhotoClosure?(.failure(error)); return }
 42 |         takePhotoClosure?(.success(photo))
/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/WWCameraPickerController/WWCameraPickerController.swift:40:93: error: 'AVCapturePhoto' is unavailable in visionOS
 38 | extension WWCameraViewController: AVCapturePhotoCaptureDelegate {
 39 |
 40 |     public func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
    |                                                                                             `- error: 'AVCapturePhoto' is unavailable in visionOS
 41 |         if let error = error { takePhotoClosure?(.failure(error)); return }
 42 |         takePhotoClosure?(.success(photo))
/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/WWCameraPickerController/WWCameraPickerController.swift:40:17: error: cannot override 'photoOutput' which has been marked unavailable
 38 | extension WWCameraViewController: AVCapturePhotoCaptureDelegate {
 39 |
 40 |     public func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
    |                 `- error: cannot override 'photoOutput' which has been marked unavailable
 41 |         if let error = error { takePhotoClosure?(.failure(error)); return }
 42 |         takePhotoClosure?(.success(photo))
/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/WWCameraPickerController/WWCameraPickerController.swift:38:35: error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
 36 |
 37 | // MARK: - AVCapturePhotoCaptureDelegate
 38 | extension WWCameraViewController: AVCapturePhotoCaptureDelegate {
    |                                   `- error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
 39 |
 40 |     public func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h: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/WWCameraPickerController/WWCameraPickerController.swift:49:38: error: 'AVCaptureFileOutput' is unavailable in visionOS
 47 | extension WWCameraViewController: AVCaptureFileOutputRecordingDelegate {
 48 |
 49 |     public func fileOutput(_ output: AVCaptureFileOutput, didFinishRecordingTo outputFileURL: URL, from connections: [AVCaptureConnection], error: Error?) {
    |                                      `- error: 'AVCaptureFileOutput' is unavailable in visionOS
 50 |         fileOutputAction(output, didFinishRecordingTo: outputFileURL, from: connections, error: error)
 51 |     }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h:36:12: note: 'AVCaptureFileOutput' has been explicitly marked unavailable here
 34 |  */
 35 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
 36 | @interface AVCaptureFileOutput : AVCaptureOutput
    |            `- note: 'AVCaptureFileOutput' has been explicitly marked unavailable here
 37 | {
 38 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/WWCameraPickerController.swift:47:35: error: 'AVCaptureFileOutputRecordingDelegate' is unavailable in visionOS
 45 |
 46 | // MARK: - AVCaptureFileOutputRecordingDelegate
 47 | extension WWCameraViewController: AVCaptureFileOutputRecordingDelegate {
    |                                   `- error: 'AVCaptureFileOutputRecordingDelegate' is unavailable in visionOS
 48 |
 49 |     public func fileOutput(_ output: AVCaptureFileOutput, didFinishRecordingTo outputFileURL: URL, from connections: [AVCaptureConnection], error: Error?) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h:206:11: note: 'AVCaptureFileOutputRecordingDelegate' has been explicitly marked unavailable here
204 |  */
205 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
206 | @protocol AVCaptureFileOutputRecordingDelegate <NSObject>
    |           `- note: 'AVCaptureFileOutputRecordingDelegate' has been explicitly marked unavailable here
207 |
208 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/WWCameraPickerController.swift:90:49: error: 'AVCapturePhoto' is unavailable in visionOS
 88 |     /// 取得拍攝相片的相關資訊
 89 |     /// - Parameter photo: Result<AVCapturePhoto, Error>
 90 |     func takePhoto(_ result: @escaping ((Result<AVCapturePhoto, Error>) -> Void)) { takePhotoClosure = result }
    |                                                 `- error: 'AVCapturePhoto' is unavailable in visionOS
 91 |
 92 |     /// 取得錄影的相關資訊
/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/WWCameraPickerController/WWCameraPickerController.swift:114:66: error: 'Preset' is unavailable in visionOS
112 |     ///   - sessionPreset: [AVCaptureSession.Preset - 4:3 (.photo) / 16:9 (.high)](https://www.jianshu.com/p/9e1661805d74)
113 |     ///   - videoGravity: [AVLayerVideoGravity - 滿版 (.resizeAspectFill) / 比例 (.resizeAspect)]
114 |     func previewLayerRateSetting(sessionPreset: AVCaptureSession.Preset = .photo, videoGravity: AVLayerVideoGravity = .resizeAspect) {
    |                                                                  `- error: 'Preset' is unavailable in visionOS
115 |         captureSession.sessionPreset = sessionPreset
116 |         previewLayer?.videoGravity = videoGravity
/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/WWCameraPickerController/WWCameraPickerController.swift:114:76: error: 'photo' is unavailable in visionOS
112 |     ///   - sessionPreset: [AVCaptureSession.Preset - 4:3 (.photo) / 16:9 (.high)](https://www.jianshu.com/p/9e1661805d74)
113 |     ///   - videoGravity: [AVLayerVideoGravity - 滿版 (.resizeAspectFill) / 比例 (.resizeAspect)]
114 |     func previewLayerRateSetting(sessionPreset: AVCaptureSession.Preset = .photo, videoGravity: AVLayerVideoGravity = .resizeAspect) {
    |                                                                            `- error: 'photo' is unavailable in visionOS
115 |         captureSession.sessionPreset = sessionPreset
116 |         previewLayer?.videoGravity = videoGravity
/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/WWCameraPickerController/WWCameraPickerController.swift:166:56: error: 'FlashMode' is unavailable in visionOS
164 |     /// 設定閃光燈模式
165 |     /// - Parameter flashMode: AVCaptureDevice.FlashMode
166 |     func flashModeSetting(_ flashMode: AVCaptureDevice.FlashMode = .auto) { cameraModeSetting.flashMode = flashMode }
    |                                                        `- error: 'FlashMode' is unavailable in visionOS
167 |
168 |     /// 設定使用高解析度模式
/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/WWCameraPickerController/WWCameraPickerController.swift:174:36: error: 'AVCapturePhotoOutput' is unavailable in visionOS
172 |     /// 設定拍照品質
173 |     /// - Parameter quality: AVCapturePhotoOutput.QualityPrioritization
174 |     func qualitySetting(_ quality: AVCapturePhotoOutput.QualityPrioritization = .quality) { cameraModeSetting.quality = quality }
    |                                    `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
175 | }
176 |
/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/WWCameraPickerController/WWCameraPickerController.swift:250:37: error: 'AVCaptureFileOutput' is unavailable in visionOS
248 |     ///   - connections: [AVCaptureConnection]
249 |     ///   - error: Error?
250 |     func fileOutputAction(_ output: AVCaptureFileOutput, didFinishRecordingTo outputFileURL: URL, from connections: [AVCaptureConnection], error: Error?) {
    |                                     `- error: 'AVCaptureFileOutput' is unavailable in visionOS
251 |
252 |         if let error = error { self.takeMovieClosure?(.failure(error)) }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h:36:12: note: 'AVCaptureFileOutput' has been explicitly marked unavailable here
 34 |  */
 35 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
 36 | @interface AVCaptureFileOutput : AVCaptureOutput
    |            `- note: 'AVCaptureFileOutput' has been explicitly marked unavailable here
 37 | {
 38 | @private
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/.derivedData/Build/Intermediates.noindex/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/DerivedSources/resource_bundle_accessor.swift /Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Constant.swift /Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift /Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/WWCameraPickerController.swift -target arm64-apple-xros1.0 -disable-cross-import-overlay-search -swift-module-cross-import Photos /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS.sdk/System/Library/Frameworks/Photos.framework/Modules/Photos.swiftcrossimport/AppIntents.swiftoverlay -swift-module-cross-import Photos /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/Photos.framework/Modules/Photos.swiftcrossimport/AppIntents.swiftoverlay -swift-module-cross-import PhotosUI /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS.sdk/System/Library/Frameworks/PhotosUI.framework/Modules/PhotosUI.swiftcrossimport/SwiftUI.swiftoverlay -swift-module-cross-import PhotosUI /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS.sdk/System/Library/Frameworks/PhotosUI.framework/Modules/PhotosUI.swiftcrossimport/WidgetKit.swiftoverlay -swift-module-cross-import PhotosUI /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/PhotosUI.framework/Modules/PhotosUI.swiftcrossimport/SwiftUI.swiftoverlay -swift-module-cross-import PhotosUI /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/PhotosUI.framework/Modules/PhotosUI.swiftcrossimport/WidgetKit.swiftoverlay -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib/swift/host/plugins/libPreviewsMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/bin/swift-plugin-server\#PreviewsMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/bin/swift-plugin-server\#SwiftMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib/swift/host/plugins/libSwiftUIMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/bin/swift-plugin-server\#SwiftUIMacros -disable-implicit-swift-modules -Xcc -fno-implicit-modules -Xcc -fno-implicit-module-maps -explicit-swift-module-map-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/Objects-normal/arm64/WWCameraPickerController-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 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_AVAILABLE -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/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name WWCameraPickerController -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/Objects-normal/arm64/WWCameraPickerController_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/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/Objects-normal/arm64/WWCameraPickerController.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/Objects-normal/arm64/WWCameraPickerController.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/Objects-normal/arm64/WWCameraPickerController-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/Objects-normal/arm64/WWCameraPickerController-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/Objects-normal/arm64/WWCameraPickerController-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/Objects-normal/arm64/WWCameraPickerController.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/Objects-normal/arm64/WWCameraPickerController.abi.json
SwiftCompile normal arm64 (in target 'WWCameraPickerController' from project 'WWCameraPickerController')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode

SwiftCompile normal arm64 Compiling\ resource_bundle_accessor.swift /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/DerivedSources/resource_bundle_accessor.swift (in target 'WWCameraPickerController' from project 'WWCameraPickerController')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/DerivedSources/resource_bundle_accessor.swift (in target 'WWCameraPickerController' from project 'WWCameraPickerController')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile resource_bundle_accessor.swift
SwiftCompile normal arm64 Compiling\ Constant.swift /Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Constant.swift (in target 'WWCameraPickerController' from project 'WWCameraPickerController')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Constant.swift (in target 'WWCameraPickerController' from project 'WWCameraPickerController')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Constant.swift
SwiftCompile normal arm64 Compiling\ WWCameraPickerController.swift /Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/WWCameraPickerController.swift (in target 'WWCameraPickerController' from project 'WWCameraPickerController')
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/WWCameraPickerController.swift:21:38: error: 'AVCapturePhotoOutput' is unavailable in visionOS
 19 |
 20 |     private let captureSession = AVCaptureSession()
 21 |     private let capturePhotoOutput = AVCapturePhotoOutput()
    |                                      `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
 22 |     private let captureMovieFileOutput = AVCaptureMovieFileOutput()
 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/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/WWCameraPickerController/WWCameraPickerController.swift:22:42: error: 'AVCaptureMovieFileOutput' is unavailable in visionOS
 20 |     private let captureSession = AVCaptureSession()
 21 |     private let capturePhotoOutput = AVCapturePhotoOutput()
 22 |     private let captureMovieFileOutput = AVCaptureMovieFileOutput()
    |                                          `- error: 'AVCaptureMovieFileOutput' is unavailable in visionOS
 23 |
 24 |     private var defaultPosition: AVCaptureDevice.Position = .unspecified
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h:405:12: note: 'AVCaptureMovieFileOutput' has been explicitly marked unavailable here
403 |  */
404 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
405 | @interface AVCaptureMovieFileOutput : AVCaptureFileOutput
    |            `- note: 'AVCaptureMovieFileOutput' has been explicitly marked unavailable here
406 | {
407 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/WWCameraPickerController.swift:25:31: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 23 |
 24 |     private var defaultPosition: AVCaptureDevice.Position = .unspecified
 25 |     private var previewLayer: AVCaptureVideoPreviewLayer?
    |                               `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 26 |     private var cameraModeSetting: (flashMode: AVCaptureDevice.FlashMode, isHighResolution: Bool, quality: AVCapturePhotoOutput.QualityPrioritization) = (.auto, true, .quality)
 27 |
/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/WWCameraPickerController/WWCameraPickerController.swift:26:64: error: 'FlashMode' is unavailable in visionOS
 24 |     private var defaultPosition: AVCaptureDevice.Position = .unspecified
 25 |     private var previewLayer: AVCaptureVideoPreviewLayer?
 26 |     private var cameraModeSetting: (flashMode: AVCaptureDevice.FlashMode, isHighResolution: Bool, quality: AVCapturePhotoOutput.QualityPrioritization) = (.auto, true, .quality)
    |                                                                `- error: 'FlashMode' is unavailable in visionOS
 27 |
 28 |     private var takePhotoClosure: ((Result<AVCapturePhoto, Error>) -> Void)?
/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/WWCameraPickerController/WWCameraPickerController.swift:26:108: error: 'AVCapturePhotoOutput' is unavailable in visionOS
 24 |     private var defaultPosition: AVCaptureDevice.Position = .unspecified
 25 |     private var previewLayer: AVCaptureVideoPreviewLayer?
 26 |     private var cameraModeSetting: (flashMode: AVCaptureDevice.FlashMode, isHighResolution: Bool, quality: AVCapturePhotoOutput.QualityPrioritization) = (.auto, true, .quality)
    |                                                                                                            `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
 27 |
 28 |     private var takePhotoClosure: ((Result<AVCapturePhoto, Error>) -> Void)?
/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/WWCameraPickerController/WWCameraPickerController.swift:28:44: error: 'AVCapturePhoto' is unavailable in visionOS
 26 |     private var cameraModeSetting: (flashMode: AVCaptureDevice.FlashMode, isHighResolution: Bool, quality: AVCapturePhotoOutput.QualityPrioritization) = (.auto, true, .quality)
 27 |
 28 |     private var takePhotoClosure: ((Result<AVCapturePhoto, Error>) -> Void)?
    |                                            `- error: 'AVCapturePhoto' is unavailable in visionOS
 29 |     private var takeMovieClosure: ((Result<Bool, Error>) -> Void)?
 30 |
/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/WWCameraPickerController/WWCameraPickerController.swift:40:39: error: 'AVCapturePhotoOutput' is unavailable in visionOS
 38 | extension WWCameraViewController: AVCapturePhotoCaptureDelegate {
 39 |
 40 |     public func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
    |                                       `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
 41 |         if let error = error { takePhotoClosure?(.failure(error)); return }
 42 |         takePhotoClosure?(.success(photo))
/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/WWCameraPickerController/WWCameraPickerController.swift:40:93: error: 'AVCapturePhoto' is unavailable in visionOS
 38 | extension WWCameraViewController: AVCapturePhotoCaptureDelegate {
 39 |
 40 |     public func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
    |                                                                                             `- error: 'AVCapturePhoto' is unavailable in visionOS
 41 |         if let error = error { takePhotoClosure?(.failure(error)); return }
 42 |         takePhotoClosure?(.success(photo))
/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/WWCameraPickerController/WWCameraPickerController.swift:40:17: error: cannot override 'photoOutput' which has been marked unavailable
 38 | extension WWCameraViewController: AVCapturePhotoCaptureDelegate {
 39 |
 40 |     public func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
    |                 `- error: cannot override 'photoOutput' which has been marked unavailable
 41 |         if let error = error { takePhotoClosure?(.failure(error)); return }
 42 |         takePhotoClosure?(.success(photo))
/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/WWCameraPickerController/WWCameraPickerController.swift:38:35: error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
 36 |
 37 | // MARK: - AVCapturePhotoCaptureDelegate
 38 | extension WWCameraViewController: AVCapturePhotoCaptureDelegate {
    |                                   `- error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
 39 |
 40 |     public func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h: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/WWCameraPickerController/WWCameraPickerController.swift:49:38: error: 'AVCaptureFileOutput' is unavailable in visionOS
 47 | extension WWCameraViewController: AVCaptureFileOutputRecordingDelegate {
 48 |
 49 |     public func fileOutput(_ output: AVCaptureFileOutput, didFinishRecordingTo outputFileURL: URL, from connections: [AVCaptureConnection], error: Error?) {
    |                                      `- error: 'AVCaptureFileOutput' is unavailable in visionOS
 50 |         fileOutputAction(output, didFinishRecordingTo: outputFileURL, from: connections, error: error)
 51 |     }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h:36:12: note: 'AVCaptureFileOutput' has been explicitly marked unavailable here
 34 |  */
 35 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
 36 | @interface AVCaptureFileOutput : AVCaptureOutput
    |            `- note: 'AVCaptureFileOutput' has been explicitly marked unavailable here
 37 | {
 38 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/WWCameraPickerController.swift:47:35: error: 'AVCaptureFileOutputRecordingDelegate' is unavailable in visionOS
 45 |
 46 | // MARK: - AVCaptureFileOutputRecordingDelegate
 47 | extension WWCameraViewController: AVCaptureFileOutputRecordingDelegate {
    |                                   `- error: 'AVCaptureFileOutputRecordingDelegate' is unavailable in visionOS
 48 |
 49 |     public func fileOutput(_ output: AVCaptureFileOutput, didFinishRecordingTo outputFileURL: URL, from connections: [AVCaptureConnection], error: Error?) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h:206:11: note: 'AVCaptureFileOutputRecordingDelegate' has been explicitly marked unavailable here
204 |  */
205 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
206 | @protocol AVCaptureFileOutputRecordingDelegate <NSObject>
    |           `- note: 'AVCaptureFileOutputRecordingDelegate' has been explicitly marked unavailable here
207 |
208 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/WWCameraPickerController.swift:90:49: error: 'AVCapturePhoto' is unavailable in visionOS
 88 |     /// 取得拍攝相片的相關資訊
 89 |     /// - Parameter photo: Result<AVCapturePhoto, Error>
 90 |     func takePhoto(_ result: @escaping ((Result<AVCapturePhoto, Error>) -> Void)) { takePhotoClosure = result }
    |                                                 `- error: 'AVCapturePhoto' is unavailable in visionOS
 91 |
 92 |     /// 取得錄影的相關資訊
/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/WWCameraPickerController/WWCameraPickerController.swift:114:66: error: 'Preset' is unavailable in visionOS
112 |     ///   - sessionPreset: [AVCaptureSession.Preset - 4:3 (.photo) / 16:9 (.high)](https://www.jianshu.com/p/9e1661805d74)
113 |     ///   - videoGravity: [AVLayerVideoGravity - 滿版 (.resizeAspectFill) / 比例 (.resizeAspect)]
114 |     func previewLayerRateSetting(sessionPreset: AVCaptureSession.Preset = .photo, videoGravity: AVLayerVideoGravity = .resizeAspect) {
    |                                                                  `- error: 'Preset' is unavailable in visionOS
115 |         captureSession.sessionPreset = sessionPreset
116 |         previewLayer?.videoGravity = videoGravity
/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/WWCameraPickerController/WWCameraPickerController.swift:114:76: error: 'photo' is unavailable in visionOS
112 |     ///   - sessionPreset: [AVCaptureSession.Preset - 4:3 (.photo) / 16:9 (.high)](https://www.jianshu.com/p/9e1661805d74)
113 |     ///   - videoGravity: [AVLayerVideoGravity - 滿版 (.resizeAspectFill) / 比例 (.resizeAspect)]
114 |     func previewLayerRateSetting(sessionPreset: AVCaptureSession.Preset = .photo, videoGravity: AVLayerVideoGravity = .resizeAspect) {
    |                                                                            `- error: 'photo' is unavailable in visionOS
115 |         captureSession.sessionPreset = sessionPreset
116 |         previewLayer?.videoGravity = videoGravity
/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/WWCameraPickerController/WWCameraPickerController.swift:166:56: error: 'FlashMode' is unavailable in visionOS
164 |     /// 設定閃光燈模式
165 |     /// - Parameter flashMode: AVCaptureDevice.FlashMode
166 |     func flashModeSetting(_ flashMode: AVCaptureDevice.FlashMode = .auto) { cameraModeSetting.flashMode = flashMode }
    |                                                        `- error: 'FlashMode' is unavailable in visionOS
167 |
168 |     /// 設定使用高解析度模式
/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/WWCameraPickerController/WWCameraPickerController.swift:174:36: error: 'AVCapturePhotoOutput' is unavailable in visionOS
172 |     /// 設定拍照品質
173 |     /// - Parameter quality: AVCapturePhotoOutput.QualityPrioritization
174 |     func qualitySetting(_ quality: AVCapturePhotoOutput.QualityPrioritization = .quality) { cameraModeSetting.quality = quality }
    |                                    `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
175 | }
176 |
/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/WWCameraPickerController/WWCameraPickerController.swift:250:37: error: 'AVCaptureFileOutput' is unavailable in visionOS
248 |     ///   - connections: [AVCaptureConnection]
249 |     ///   - error: Error?
250 |     func fileOutputAction(_ output: AVCaptureFileOutput, didFinishRecordingTo outputFileURL: URL, from connections: [AVCaptureConnection], error: Error?) {
    |                                     `- error: 'AVCaptureFileOutput' is unavailable in visionOS
251 |
252 |         if let error = error { self.takeMovieClosure?(.failure(error)) }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h:36:12: note: 'AVCaptureFileOutput' has been explicitly marked unavailable here
 34 |  */
 35 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
 36 | @interface AVCaptureFileOutput : AVCaptureOutput
    |            `- note: 'AVCaptureFileOutput' has been explicitly marked unavailable here
 37 | {
 38 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/WWCameraPickerController.swift:115:24: error: 'sessionPreset' is unavailable in visionOS
113 |     ///   - videoGravity: [AVLayerVideoGravity - 滿版 (.resizeAspectFill) / 比例 (.resizeAspect)]
114 |     func previewLayerRateSetting(sessionPreset: AVCaptureSession.Preset = .photo, videoGravity: AVLayerVideoGravity = .resizeAspect) {
115 |         captureSession.sessionPreset = sessionPreset
    |                        `- error: 'sessionPreset' is unavailable in visionOS
116 |         previewLayer?.videoGravity = videoGravity
117 |     }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:166:51: note: 'sessionPreset' has been explicitly marked unavailable here
 164 |     The value of this property is an AVCaptureSessionPreset indicating the current session preset in use by the receiver. The sessionPreset property may be set while the receiver is running.
 165 |  */
 166 | @property(nonatomic, copy) AVCaptureSessionPreset sessionPreset API_UNAVAILABLE(visionos);
     |                                                   `- note: 'sessionPreset' has been explicitly marked unavailable here
 167 |
 168 | /*!
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/WWCameraPickerController.swift (in target 'WWCameraPickerController' from project 'WWCameraPickerController')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile WWCameraPickerController.swift
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
2026-09-20 22:46:00.432 xcodebuild[685:4380] [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\ WWCameraPickerController (in target 'WWCameraPickerController' from project 'WWCameraPickerController')
	SwiftCompile normal arm64 (in target 'WWCameraPickerController' from project 'WWCameraPickerController')
	Building workspace WWCameraPickerController with scheme WWCameraPickerController
(3 failures)
Command line invocation:
    /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -resolvePackageDependencies
Resolve Package Graph
Resolved source packages:
  WWCameraPickerController: /Users/admin/builder/spi-builder-workspace
resolved source packages: WWCameraPickerController
2026-09-20 22:46:08.858 xcodebuild[789:4798] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "WWCameraPickerController",
  "name" : "WWCameraPickerController",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "WWCameraPickerController",
      "targets" : [
        "WWCameraPickerController"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "WWCameraPickerController",
      "module_type" : "SwiftTarget",
      "name" : "WWCameraPickerController",
      "path" : "Sources/WWCameraPickerController",
      "product_memberships" : [
        "WWCameraPickerController"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Privacy",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "Constant.swift",
        "Extension+.swift",
        "WWCameraPickerController.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.6"
}
{
  "workspace" : {
    "name" : "WWCameraPickerController",
    "schemes" : [
      "WWCameraPickerController"
    ]
  }
}
2026-09-20 22:46:10.077 xcodebuild[797:4863] [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 WWCameraPickerController -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 WWCameraPickerController -destination generic/platform=xrOS
Resolve Package Graph
Resolved source packages:
  WWCameraPickerController: /Users/admin/builder/spi-builder-workspace
ComputePackagePrebuildTargetDependencyGraph
Prepare packages
CreateBuildRequest
SendProjectDescription
CreateBuildOperation
ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (3 targets)
    Target 'WWCameraPickerController-product' in project 'WWCameraPickerController'
        ➜ Explicit dependency on target 'WWCameraPickerController' in project 'WWCameraPickerController'
        ➜ Explicit dependency on target 'WWCameraPickerController_WWCameraPickerController' in project 'WWCameraPickerController'
    Target 'WWCameraPickerController' in project 'WWCameraPickerController'
        ➜ Explicit dependency on target 'WWCameraPickerController_WWCameraPickerController' in project 'WWCameraPickerController'
    Target 'WWCameraPickerController_WWCameraPickerController' in project 'WWCameraPickerController' (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 WWCameraPickerController normal arm64 com.apple.xcode.tools.swift.compiler (in target 'WWCameraPickerController' from project 'WWCameraPickerController')
    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 WWCameraPickerController -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/Objects-normal/arm64/WWCameraPickerController.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_AVAILABLE -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 -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/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/Objects-normal/arm64/WWCameraPickerController-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/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/Objects-normal/arm64/WWCameraPickerController.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/Objects-normal/arm64/WWCameraPickerController-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/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/Objects-normal/arm64/WWCameraPickerController_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/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-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/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/Objects-normal/arm64/WWCameraPickerController-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftCompile normal arm64 Compiling\ Constant.swift /Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Constant.swift (in target 'WWCameraPickerController' from project 'WWCameraPickerController')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Constant.swift (in target 'WWCameraPickerController' from project 'WWCameraPickerController')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Constant.swift
SwiftEmitModule normal arm64 Emitting\ module\ for\ WWCameraPickerController (in target 'WWCameraPickerController' from project 'WWCameraPickerController')
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:166:102: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
164 |     ///   - videoGravity: AVLayerVideoGravity => .resizeAspectFill
165 |     /// - Returns: AVCaptureVideoPreviewLayer
166 |     func _previewLayer(with frame: CGRect, videoGravity: AVLayerVideoGravity = .resizeAspectFill) -> AVCaptureVideoPreviewLayer {
    |                                                                                                      `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
167 |
168 |         let previewLayer = AVCaptureVideoPreviewLayer(session: self)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/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/WWCameraPickerController/Extension+.swift:263:94: error: 'FlashMode' is unavailable in visionOS
261 |     ///   - delegate: AVCapturePhotoCaptureDelegate
262 |     ///   - completion: (() -> Void)?
263 |     func _capturePhoto(isHighResolutionPhotoEnabled: Bool = true, flashMode: AVCaptureDevice.FlashMode = .auto, delegate: AVCapturePhotoCaptureDelegate, completion: (() -> Void)? = nil) {
    |                                                                                              `- error: 'FlashMode' is unavailable in visionOS
264 |
265 |         self.isHighResolutionCaptureEnabled = isHighResolutionPhotoEnabled
/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/WWCameraPickerController/Extension+.swift:263:123: error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
261 |     ///   - delegate: AVCapturePhotoCaptureDelegate
262 |     ///   - completion: (() -> Void)?
263 |     func _capturePhoto(isHighResolutionPhotoEnabled: Bool = true, flashMode: AVCaptureDevice.FlashMode = .auto, delegate: AVCapturePhotoCaptureDelegate, completion: (() -> Void)? = nil) {
    |                                                                                                                           `- error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
264 |
265 |         self.isHighResolutionCaptureEnabled = isHighResolutionPhotoEnabled
/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/WWCameraPickerController/Extension+.swift:280:71: error: 'AVCapturePhotoOutput' is unavailable in visionOS
278 |     ///   - isHighResolutionPhotoEnabled: 高解析度
279 |     ///   - quality: 拍照品質
280 |     func _setting(isHighResolutionPhotoEnabled: Bool = true, quality: AVCapturePhotoOutput.QualityPrioritization) -> Self {
    |                                                                       `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
281 |
282 |         self.isHighResolutionCaptureEnabled = isHighResolutionPhotoEnabled
/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/WWCameraPickerController/Extension+.swift:255:11: error: 'AVCapturePhotoOutput' is unavailable in visionOS
253 |
254 | // MARK: - AVCapturePhotoOutput (class function)
255 | extension AVCapturePhotoOutput {
    |           `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
256 |
257 |     /// 擷圖 => 拍照 => photoOutput(_:didFinishProcessingPhoto:error:)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:50:12: note: 'AVCapturePhotoOutput' has been explicitly marked unavailable here
  48 |  */
  49 | API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
  50 | @interface AVCapturePhotoOutput : AVCaptureOutput
     |            `- note: 'AVCapturePhotoOutput' has been explicitly marked unavailable here
  51 | {
  52 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/WWCameraPickerController.swift:21:38: error: 'AVCapturePhotoOutput' is unavailable in visionOS
 19 |
 20 |     private let captureSession = AVCaptureSession()
 21 |     private let capturePhotoOutput = AVCapturePhotoOutput()
    |                                      `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
 22 |     private let captureMovieFileOutput = AVCaptureMovieFileOutput()
 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/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/WWCameraPickerController/WWCameraPickerController.swift:22:42: error: 'AVCaptureMovieFileOutput' is unavailable in visionOS
 20 |     private let captureSession = AVCaptureSession()
 21 |     private let capturePhotoOutput = AVCapturePhotoOutput()
 22 |     private let captureMovieFileOutput = AVCaptureMovieFileOutput()
    |                                          `- error: 'AVCaptureMovieFileOutput' is unavailable in visionOS
 23 |
 24 |     private var defaultPosition: AVCaptureDevice.Position = .unspecified
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h:405:12: note: 'AVCaptureMovieFileOutput' has been explicitly marked unavailable here
403 |  */
404 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
405 | @interface AVCaptureMovieFileOutput : AVCaptureFileOutput
    |            `- note: 'AVCaptureMovieFileOutput' has been explicitly marked unavailable here
406 | {
407 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/WWCameraPickerController.swift:25:31: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 23 |
 24 |     private var defaultPosition: AVCaptureDevice.Position = .unspecified
 25 |     private var previewLayer: AVCaptureVideoPreviewLayer?
    |                               `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 26 |     private var cameraModeSetting: (flashMode: AVCaptureDevice.FlashMode, isHighResolution: Bool, quality: AVCapturePhotoOutput.QualityPrioritization) = (.auto, true, .quality)
 27 |
/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/WWCameraPickerController/WWCameraPickerController.swift:26:64: error: 'FlashMode' is unavailable in visionOS
 24 |     private var defaultPosition: AVCaptureDevice.Position = .unspecified
 25 |     private var previewLayer: AVCaptureVideoPreviewLayer?
 26 |     private var cameraModeSetting: (flashMode: AVCaptureDevice.FlashMode, isHighResolution: Bool, quality: AVCapturePhotoOutput.QualityPrioritization) = (.auto, true, .quality)
    |                                                                `- error: 'FlashMode' is unavailable in visionOS
 27 |
 28 |     private var takePhotoClosure: ((Result<AVCapturePhoto, Error>) -> Void)?
/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/WWCameraPickerController/WWCameraPickerController.swift:26:108: error: 'AVCapturePhotoOutput' is unavailable in visionOS
 24 |     private var defaultPosition: AVCaptureDevice.Position = .unspecified
 25 |     private var previewLayer: AVCaptureVideoPreviewLayer?
 26 |     private var cameraModeSetting: (flashMode: AVCaptureDevice.FlashMode, isHighResolution: Bool, quality: AVCapturePhotoOutput.QualityPrioritization) = (.auto, true, .quality)
    |                                                                                                            `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
 27 |
 28 |     private var takePhotoClosure: ((Result<AVCapturePhoto, Error>) -> Void)?
/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/WWCameraPickerController/WWCameraPickerController.swift:28:44: error: 'AVCapturePhoto' is unavailable in visionOS
 26 |     private var cameraModeSetting: (flashMode: AVCaptureDevice.FlashMode, isHighResolution: Bool, quality: AVCapturePhotoOutput.QualityPrioritization) = (.auto, true, .quality)
 27 |
 28 |     private var takePhotoClosure: ((Result<AVCapturePhoto, Error>) -> Void)?
    |                                            `- error: 'AVCapturePhoto' is unavailable in visionOS
 29 |     private var takeMovieClosure: ((Result<Bool, Error>) -> Void)?
 30 |
/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/WWCameraPickerController/WWCameraPickerController.swift:40:39: error: 'AVCapturePhotoOutput' is unavailable in visionOS
 38 | extension WWCameraViewController: AVCapturePhotoCaptureDelegate {
 39 |
 40 |     public func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
    |                                       `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
 41 |         if let error = error { takePhotoClosure?(.failure(error)); return }
 42 |         takePhotoClosure?(.success(photo))
/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/WWCameraPickerController/WWCameraPickerController.swift:40:93: error: 'AVCapturePhoto' is unavailable in visionOS
 38 | extension WWCameraViewController: AVCapturePhotoCaptureDelegate {
 39 |
 40 |     public func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
    |                                                                                             `- error: 'AVCapturePhoto' is unavailable in visionOS
 41 |         if let error = error { takePhotoClosure?(.failure(error)); return }
 42 |         takePhotoClosure?(.success(photo))
/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/WWCameraPickerController/WWCameraPickerController.swift:40:17: error: cannot override 'photoOutput' which has been marked unavailable
 38 | extension WWCameraViewController: AVCapturePhotoCaptureDelegate {
 39 |
 40 |     public func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
    |                 `- error: cannot override 'photoOutput' which has been marked unavailable
 41 |         if let error = error { takePhotoClosure?(.failure(error)); return }
 42 |         takePhotoClosure?(.success(photo))
/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/WWCameraPickerController/WWCameraPickerController.swift:38:35: error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
 36 |
 37 | // MARK: - AVCapturePhotoCaptureDelegate
 38 | extension WWCameraViewController: AVCapturePhotoCaptureDelegate {
    |                                   `- error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
 39 |
 40 |     public func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h: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/WWCameraPickerController/WWCameraPickerController.swift:49:38: error: 'AVCaptureFileOutput' is unavailable in visionOS
 47 | extension WWCameraViewController: AVCaptureFileOutputRecordingDelegate {
 48 |
 49 |     public func fileOutput(_ output: AVCaptureFileOutput, didFinishRecordingTo outputFileURL: URL, from connections: [AVCaptureConnection], error: Error?) {
    |                                      `- error: 'AVCaptureFileOutput' is unavailable in visionOS
 50 |         fileOutputAction(output, didFinishRecordingTo: outputFileURL, from: connections, error: error)
 51 |     }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h:36:12: note: 'AVCaptureFileOutput' has been explicitly marked unavailable here
 34 |  */
 35 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
 36 | @interface AVCaptureFileOutput : AVCaptureOutput
    |            `- note: 'AVCaptureFileOutput' has been explicitly marked unavailable here
 37 | {
 38 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/WWCameraPickerController.swift:47:35: error: 'AVCaptureFileOutputRecordingDelegate' is unavailable in visionOS
 45 |
 46 | // MARK: - AVCaptureFileOutputRecordingDelegate
 47 | extension WWCameraViewController: AVCaptureFileOutputRecordingDelegate {
    |                                   `- error: 'AVCaptureFileOutputRecordingDelegate' is unavailable in visionOS
 48 |
 49 |     public func fileOutput(_ output: AVCaptureFileOutput, didFinishRecordingTo outputFileURL: URL, from connections: [AVCaptureConnection], error: Error?) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h:206:11: note: 'AVCaptureFileOutputRecordingDelegate' has been explicitly marked unavailable here
204 |  */
205 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
206 | @protocol AVCaptureFileOutputRecordingDelegate <NSObject>
    |           `- note: 'AVCaptureFileOutputRecordingDelegate' has been explicitly marked unavailable here
207 |
208 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/WWCameraPickerController.swift:90:49: error: 'AVCapturePhoto' is unavailable in visionOS
 88 |     /// 取得拍攝相片的相關資訊
 89 |     /// - Parameter photo: Result<AVCapturePhoto, Error>
 90 |     func takePhoto(_ result: @escaping ((Result<AVCapturePhoto, Error>) -> Void)) { takePhotoClosure = result }
    |                                                 `- error: 'AVCapturePhoto' is unavailable in visionOS
 91 |
 92 |     /// 取得錄影的相關資訊
/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/WWCameraPickerController/WWCameraPickerController.swift:114:66: error: 'Preset' is unavailable in visionOS
112 |     ///   - sessionPreset: [AVCaptureSession.Preset - 4:3 (.photo) / 16:9 (.high)](https://www.jianshu.com/p/9e1661805d74)
113 |     ///   - videoGravity: [AVLayerVideoGravity - 滿版 (.resizeAspectFill) / 比例 (.resizeAspect)]
114 |     func previewLayerRateSetting(sessionPreset: AVCaptureSession.Preset = .photo, videoGravity: AVLayerVideoGravity = .resizeAspect) {
    |                                                                  `- error: 'Preset' is unavailable in visionOS
115 |         captureSession.sessionPreset = sessionPreset
116 |         previewLayer?.videoGravity = videoGravity
/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/WWCameraPickerController/WWCameraPickerController.swift:114:76: error: 'photo' is unavailable in visionOS
112 |     ///   - sessionPreset: [AVCaptureSession.Preset - 4:3 (.photo) / 16:9 (.high)](https://www.jianshu.com/p/9e1661805d74)
113 |     ///   - videoGravity: [AVLayerVideoGravity - 滿版 (.resizeAspectFill) / 比例 (.resizeAspect)]
114 |     func previewLayerRateSetting(sessionPreset: AVCaptureSession.Preset = .photo, videoGravity: AVLayerVideoGravity = .resizeAspect) {
    |                                                                            `- error: 'photo' is unavailable in visionOS
115 |         captureSession.sessionPreset = sessionPreset
116 |         previewLayer?.videoGravity = videoGravity
/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/WWCameraPickerController/WWCameraPickerController.swift:166:56: error: 'FlashMode' is unavailable in visionOS
164 |     /// 設定閃光燈模式
165 |     /// - Parameter flashMode: AVCaptureDevice.FlashMode
166 |     func flashModeSetting(_ flashMode: AVCaptureDevice.FlashMode = .auto) { cameraModeSetting.flashMode = flashMode }
    |                                                        `- error: 'FlashMode' is unavailable in visionOS
167 |
168 |     /// 設定使用高解析度模式
/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/WWCameraPickerController/WWCameraPickerController.swift:174:36: error: 'AVCapturePhotoOutput' is unavailable in visionOS
172 |     /// 設定拍照品質
173 |     /// - Parameter quality: AVCapturePhotoOutput.QualityPrioritization
174 |     func qualitySetting(_ quality: AVCapturePhotoOutput.QualityPrioritization = .quality) { cameraModeSetting.quality = quality }
    |                                    `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
175 | }
176 |
/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/WWCameraPickerController/WWCameraPickerController.swift:250:37: error: 'AVCaptureFileOutput' is unavailable in visionOS
248 |     ///   - connections: [AVCaptureConnection]
249 |     ///   - error: Error?
250 |     func fileOutputAction(_ output: AVCaptureFileOutput, didFinishRecordingTo outputFileURL: URL, from connections: [AVCaptureConnection], error: Error?) {
    |                                     `- error: 'AVCaptureFileOutput' is unavailable in visionOS
251 |
252 |         if let error = error { self.takeMovieClosure?(.failure(error)) }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h:36:12: note: 'AVCaptureFileOutput' has been explicitly marked unavailable here
 34 |  */
 35 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
 36 | @interface AVCaptureFileOutput : AVCaptureOutput
    |            `- note: 'AVCaptureFileOutput' has been explicitly marked unavailable here
 37 | {
 38 | @private
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/.derivedData/Build/Intermediates.noindex/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/DerivedSources/resource_bundle_accessor.swift /Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Constant.swift /Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift /Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/WWCameraPickerController.swift -target arm64-apple-xros1.0 -disable-cross-import-overlay-search -swift-module-cross-import Photos /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS.sdk/System/Library/Frameworks/Photos.framework/Modules/Photos.swiftcrossimport/AppIntents.swiftoverlay -swift-module-cross-import Photos /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/Photos.framework/Modules/Photos.swiftcrossimport/AppIntents.swiftoverlay -swift-module-cross-import PhotosUI /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS.sdk/System/Library/Frameworks/PhotosUI.framework/Modules/PhotosUI.swiftcrossimport/SwiftUI.swiftoverlay -swift-module-cross-import PhotosUI /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS.sdk/System/Library/Frameworks/PhotosUI.framework/Modules/PhotosUI.swiftcrossimport/WidgetKit.swiftoverlay -swift-module-cross-import PhotosUI /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/PhotosUI.framework/Modules/PhotosUI.swiftcrossimport/SwiftUI.swiftoverlay -swift-module-cross-import PhotosUI /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/PhotosUI.framework/Modules/PhotosUI.swiftcrossimport/WidgetKit.swiftoverlay -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib/swift/host/plugins/libPreviewsMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/bin/swift-plugin-server\#PreviewsMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/bin/swift-plugin-server\#SwiftMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib/swift/host/plugins/libSwiftUIMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/bin/swift-plugin-server\#SwiftUIMacros -disable-implicit-swift-modules -Xcc -fno-implicit-modules -Xcc -fno-implicit-module-maps -explicit-swift-module-map-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/Objects-normal/arm64/WWCameraPickerController-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 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_AVAILABLE -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/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name WWCameraPickerController -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/Objects-normal/arm64/WWCameraPickerController_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/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/Objects-normal/arm64/WWCameraPickerController.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/Objects-normal/arm64/WWCameraPickerController.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/Objects-normal/arm64/WWCameraPickerController-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/Objects-normal/arm64/WWCameraPickerController-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/Objects-normal/arm64/WWCameraPickerController-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/Objects-normal/arm64/WWCameraPickerController.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/Objects-normal/arm64/WWCameraPickerController.abi.json
SwiftCompile normal arm64 (in target 'WWCameraPickerController' from project 'WWCameraPickerController')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode

SwiftCompile normal arm64 Compiling\ WWCameraPickerController.swift /Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/WWCameraPickerController.swift (in target 'WWCameraPickerController' from project 'WWCameraPickerController')
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/WWCameraPickerController.swift:21:38: error: 'AVCapturePhotoOutput' is unavailable in visionOS
 19 |
 20 |     private let captureSession = AVCaptureSession()
 21 |     private let capturePhotoOutput = AVCapturePhotoOutput()
    |                                      `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
 22 |     private let captureMovieFileOutput = AVCaptureMovieFileOutput()
 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/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/WWCameraPickerController/WWCameraPickerController.swift:22:42: error: 'AVCaptureMovieFileOutput' is unavailable in visionOS
 20 |     private let captureSession = AVCaptureSession()
 21 |     private let capturePhotoOutput = AVCapturePhotoOutput()
 22 |     private let captureMovieFileOutput = AVCaptureMovieFileOutput()
    |                                          `- error: 'AVCaptureMovieFileOutput' is unavailable in visionOS
 23 |
 24 |     private var defaultPosition: AVCaptureDevice.Position = .unspecified
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h:405:12: note: 'AVCaptureMovieFileOutput' has been explicitly marked unavailable here
403 |  */
404 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
405 | @interface AVCaptureMovieFileOutput : AVCaptureFileOutput
    |            `- note: 'AVCaptureMovieFileOutput' has been explicitly marked unavailable here
406 | {
407 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/WWCameraPickerController.swift:25:31: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 23 |
 24 |     private var defaultPosition: AVCaptureDevice.Position = .unspecified
 25 |     private var previewLayer: AVCaptureVideoPreviewLayer?
    |                               `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
 26 |     private var cameraModeSetting: (flashMode: AVCaptureDevice.FlashMode, isHighResolution: Bool, quality: AVCapturePhotoOutput.QualityPrioritization) = (.auto, true, .quality)
 27 |
/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/WWCameraPickerController/WWCameraPickerController.swift:26:64: error: 'FlashMode' is unavailable in visionOS
 24 |     private var defaultPosition: AVCaptureDevice.Position = .unspecified
 25 |     private var previewLayer: AVCaptureVideoPreviewLayer?
 26 |     private var cameraModeSetting: (flashMode: AVCaptureDevice.FlashMode, isHighResolution: Bool, quality: AVCapturePhotoOutput.QualityPrioritization) = (.auto, true, .quality)
    |                                                                `- error: 'FlashMode' is unavailable in visionOS
 27 |
 28 |     private var takePhotoClosure: ((Result<AVCapturePhoto, Error>) -> Void)?
/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/WWCameraPickerController/WWCameraPickerController.swift:26:108: error: 'AVCapturePhotoOutput' is unavailable in visionOS
 24 |     private var defaultPosition: AVCaptureDevice.Position = .unspecified
 25 |     private var previewLayer: AVCaptureVideoPreviewLayer?
 26 |     private var cameraModeSetting: (flashMode: AVCaptureDevice.FlashMode, isHighResolution: Bool, quality: AVCapturePhotoOutput.QualityPrioritization) = (.auto, true, .quality)
    |                                                                                                            `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
 27 |
 28 |     private var takePhotoClosure: ((Result<AVCapturePhoto, Error>) -> Void)?
/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/WWCameraPickerController/WWCameraPickerController.swift:28:44: error: 'AVCapturePhoto' is unavailable in visionOS
 26 |     private var cameraModeSetting: (flashMode: AVCaptureDevice.FlashMode, isHighResolution: Bool, quality: AVCapturePhotoOutput.QualityPrioritization) = (.auto, true, .quality)
 27 |
 28 |     private var takePhotoClosure: ((Result<AVCapturePhoto, Error>) -> Void)?
    |                                            `- error: 'AVCapturePhoto' is unavailable in visionOS
 29 |     private var takeMovieClosure: ((Result<Bool, Error>) -> Void)?
 30 |
/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/WWCameraPickerController/WWCameraPickerController.swift:40:39: error: 'AVCapturePhotoOutput' is unavailable in visionOS
 38 | extension WWCameraViewController: AVCapturePhotoCaptureDelegate {
 39 |
 40 |     public func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
    |                                       `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
 41 |         if let error = error { takePhotoClosure?(.failure(error)); return }
 42 |         takePhotoClosure?(.success(photo))
/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/WWCameraPickerController/WWCameraPickerController.swift:40:93: error: 'AVCapturePhoto' is unavailable in visionOS
 38 | extension WWCameraViewController: AVCapturePhotoCaptureDelegate {
 39 |
 40 |     public func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
    |                                                                                             `- error: 'AVCapturePhoto' is unavailable in visionOS
 41 |         if let error = error { takePhotoClosure?(.failure(error)); return }
 42 |         takePhotoClosure?(.success(photo))
/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/WWCameraPickerController/WWCameraPickerController.swift:40:17: error: cannot override 'photoOutput' which has been marked unavailable
 38 | extension WWCameraViewController: AVCapturePhotoCaptureDelegate {
 39 |
 40 |     public func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
    |                 `- error: cannot override 'photoOutput' which has been marked unavailable
 41 |         if let error = error { takePhotoClosure?(.failure(error)); return }
 42 |         takePhotoClosure?(.success(photo))
/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/WWCameraPickerController/WWCameraPickerController.swift:38:35: error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
 36 |
 37 | // MARK: - AVCapturePhotoCaptureDelegate
 38 | extension WWCameraViewController: AVCapturePhotoCaptureDelegate {
    |                                   `- error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
 39 |
 40 |     public func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h: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/WWCameraPickerController/WWCameraPickerController.swift:49:38: error: 'AVCaptureFileOutput' is unavailable in visionOS
 47 | extension WWCameraViewController: AVCaptureFileOutputRecordingDelegate {
 48 |
 49 |     public func fileOutput(_ output: AVCaptureFileOutput, didFinishRecordingTo outputFileURL: URL, from connections: [AVCaptureConnection], error: Error?) {
    |                                      `- error: 'AVCaptureFileOutput' is unavailable in visionOS
 50 |         fileOutputAction(output, didFinishRecordingTo: outputFileURL, from: connections, error: error)
 51 |     }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h:36:12: note: 'AVCaptureFileOutput' has been explicitly marked unavailable here
 34 |  */
 35 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
 36 | @interface AVCaptureFileOutput : AVCaptureOutput
    |            `- note: 'AVCaptureFileOutput' has been explicitly marked unavailable here
 37 | {
 38 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/WWCameraPickerController.swift:47:35: error: 'AVCaptureFileOutputRecordingDelegate' is unavailable in visionOS
 45 |
 46 | // MARK: - AVCaptureFileOutputRecordingDelegate
 47 | extension WWCameraViewController: AVCaptureFileOutputRecordingDelegate {
    |                                   `- error: 'AVCaptureFileOutputRecordingDelegate' is unavailable in visionOS
 48 |
 49 |     public func fileOutput(_ output: AVCaptureFileOutput, didFinishRecordingTo outputFileURL: URL, from connections: [AVCaptureConnection], error: Error?) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h:206:11: note: 'AVCaptureFileOutputRecordingDelegate' has been explicitly marked unavailable here
204 |  */
205 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
206 | @protocol AVCaptureFileOutputRecordingDelegate <NSObject>
    |           `- note: 'AVCaptureFileOutputRecordingDelegate' has been explicitly marked unavailable here
207 |
208 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/WWCameraPickerController.swift:90:49: error: 'AVCapturePhoto' is unavailable in visionOS
 88 |     /// 取得拍攝相片的相關資訊
 89 |     /// - Parameter photo: Result<AVCapturePhoto, Error>
 90 |     func takePhoto(_ result: @escaping ((Result<AVCapturePhoto, Error>) -> Void)) { takePhotoClosure = result }
    |                                                 `- error: 'AVCapturePhoto' is unavailable in visionOS
 91 |
 92 |     /// 取得錄影的相關資訊
/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/WWCameraPickerController/WWCameraPickerController.swift:114:66: error: 'Preset' is unavailable in visionOS
112 |     ///   - sessionPreset: [AVCaptureSession.Preset - 4:3 (.photo) / 16:9 (.high)](https://www.jianshu.com/p/9e1661805d74)
113 |     ///   - videoGravity: [AVLayerVideoGravity - 滿版 (.resizeAspectFill) / 比例 (.resizeAspect)]
114 |     func previewLayerRateSetting(sessionPreset: AVCaptureSession.Preset = .photo, videoGravity: AVLayerVideoGravity = .resizeAspect) {
    |                                                                  `- error: 'Preset' is unavailable in visionOS
115 |         captureSession.sessionPreset = sessionPreset
116 |         previewLayer?.videoGravity = videoGravity
/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/WWCameraPickerController/WWCameraPickerController.swift:114:76: error: 'photo' is unavailable in visionOS
112 |     ///   - sessionPreset: [AVCaptureSession.Preset - 4:3 (.photo) / 16:9 (.high)](https://www.jianshu.com/p/9e1661805d74)
113 |     ///   - videoGravity: [AVLayerVideoGravity - 滿版 (.resizeAspectFill) / 比例 (.resizeAspect)]
114 |     func previewLayerRateSetting(sessionPreset: AVCaptureSession.Preset = .photo, videoGravity: AVLayerVideoGravity = .resizeAspect) {
    |                                                                            `- error: 'photo' is unavailable in visionOS
115 |         captureSession.sessionPreset = sessionPreset
116 |         previewLayer?.videoGravity = videoGravity
/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/WWCameraPickerController/WWCameraPickerController.swift:166:56: error: 'FlashMode' is unavailable in visionOS
164 |     /// 設定閃光燈模式
165 |     /// - Parameter flashMode: AVCaptureDevice.FlashMode
166 |     func flashModeSetting(_ flashMode: AVCaptureDevice.FlashMode = .auto) { cameraModeSetting.flashMode = flashMode }
    |                                                        `- error: 'FlashMode' is unavailable in visionOS
167 |
168 |     /// 設定使用高解析度模式
/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/WWCameraPickerController/WWCameraPickerController.swift:174:36: error: 'AVCapturePhotoOutput' is unavailable in visionOS
172 |     /// 設定拍照品質
173 |     /// - Parameter quality: AVCapturePhotoOutput.QualityPrioritization
174 |     func qualitySetting(_ quality: AVCapturePhotoOutput.QualityPrioritization = .quality) { cameraModeSetting.quality = quality }
    |                                    `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
175 | }
176 |
/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/WWCameraPickerController/WWCameraPickerController.swift:250:37: error: 'AVCaptureFileOutput' is unavailable in visionOS
248 |     ///   - connections: [AVCaptureConnection]
249 |     ///   - error: Error?
250 |     func fileOutputAction(_ output: AVCaptureFileOutput, didFinishRecordingTo outputFileURL: URL, from connections: [AVCaptureConnection], error: Error?) {
    |                                     `- error: 'AVCaptureFileOutput' is unavailable in visionOS
251 |
252 |         if let error = error { self.takeMovieClosure?(.failure(error)) }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h:36:12: note: 'AVCaptureFileOutput' has been explicitly marked unavailable here
 34 |  */
 35 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
 36 | @interface AVCaptureFileOutput : AVCaptureOutput
    |            `- note: 'AVCaptureFileOutput' has been explicitly marked unavailable here
 37 | {
 38 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/WWCameraPickerController.swift:115:24: error: 'sessionPreset' is unavailable in visionOS
113 |     ///   - videoGravity: [AVLayerVideoGravity - 滿版 (.resizeAspectFill) / 比例 (.resizeAspect)]
114 |     func previewLayerRateSetting(sessionPreset: AVCaptureSession.Preset = .photo, videoGravity: AVLayerVideoGravity = .resizeAspect) {
115 |         captureSession.sessionPreset = sessionPreset
    |                        `- error: 'sessionPreset' is unavailable in visionOS
116 |         previewLayer?.videoGravity = videoGravity
117 |     }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:166:51: note: 'sessionPreset' has been explicitly marked unavailable here
 164 |     The value of this property is an AVCaptureSessionPreset indicating the current session preset in use by the receiver. The sessionPreset property may be set while the receiver is running.
 165 |  */
 166 | @property(nonatomic, copy) AVCaptureSessionPreset sessionPreset API_UNAVAILABLE(visionos);
     |                                                   `- note: 'sessionPreset' has been explicitly marked unavailable here
 167 |
 168 | /*!
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/WWCameraPickerController.swift (in target 'WWCameraPickerController' from project 'WWCameraPickerController')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile WWCameraPickerController.swift
SwiftCompile normal arm64 Compiling\ resource_bundle_accessor.swift /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/DerivedSources/resource_bundle_accessor.swift (in target 'WWCameraPickerController' from project 'WWCameraPickerController')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWCameraPickerController.build/Debug-xros/WWCameraPickerController-t.build/DerivedSources/resource_bundle_accessor.swift (in target 'WWCameraPickerController' from project 'WWCameraPickerController')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile resource_bundle_accessor.swift
SwiftCompile normal arm64 Compiling\ Extension+.swift /Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift (in target 'WWCameraPickerController' from project 'WWCameraPickerController')
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:166:102: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
164 |     ///   - videoGravity: AVLayerVideoGravity => .resizeAspectFill
165 |     /// - Returns: AVCaptureVideoPreviewLayer
166 |     func _previewLayer(with frame: CGRect, videoGravity: AVLayerVideoGravity = .resizeAspectFill) -> AVCaptureVideoPreviewLayer {
    |                                                                                                      `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
167 |
168 |         let previewLayer = AVCaptureVideoPreviewLayer(session: self)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/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/WWCameraPickerController/Extension+.swift:263:94: error: 'FlashMode' is unavailable in visionOS
261 |     ///   - delegate: AVCapturePhotoCaptureDelegate
262 |     ///   - completion: (() -> Void)?
263 |     func _capturePhoto(isHighResolutionPhotoEnabled: Bool = true, flashMode: AVCaptureDevice.FlashMode = .auto, delegate: AVCapturePhotoCaptureDelegate, completion: (() -> Void)? = nil) {
    |                                                                                              `- error: 'FlashMode' is unavailable in visionOS
264 |
265 |         self.isHighResolutionCaptureEnabled = isHighResolutionPhotoEnabled
/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/WWCameraPickerController/Extension+.swift:263:123: error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
261 |     ///   - delegate: AVCapturePhotoCaptureDelegate
262 |     ///   - completion: (() -> Void)?
263 |     func _capturePhoto(isHighResolutionPhotoEnabled: Bool = true, flashMode: AVCaptureDevice.FlashMode = .auto, delegate: AVCapturePhotoCaptureDelegate, completion: (() -> Void)? = nil) {
    |                                                                                                                           `- error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
264 |
265 |         self.isHighResolutionCaptureEnabled = isHighResolutionPhotoEnabled
/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/WWCameraPickerController/Extension+.swift:280:71: error: 'AVCapturePhotoOutput' is unavailable in visionOS
278 |     ///   - isHighResolutionPhotoEnabled: 高解析度
279 |     ///   - quality: 拍照品質
280 |     func _setting(isHighResolutionPhotoEnabled: Bool = true, quality: AVCapturePhotoOutput.QualityPrioritization) -> Self {
    |                                                                       `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
281 |
282 |         self.isHighResolutionCaptureEnabled = isHighResolutionPhotoEnabled
/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/WWCameraPickerController/Extension+.swift:255:11: error: 'AVCapturePhotoOutput' is unavailable in visionOS
253 |
254 | // MARK: - AVCapturePhotoOutput (class function)
255 | extension AVCapturePhotoOutput {
    |           `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
256 |
257 |     /// 擷圖 => 拍照 => photoOutput(_:didFinishProcessingPhoto:error:)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:50:12: note: 'AVCapturePhotoOutput' has been explicitly marked unavailable here
  48 |  */
  49 | API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
  50 | @interface AVCapturePhotoOutput : AVCaptureOutput
     |            `- note: 'AVCapturePhotoOutput' has been explicitly marked unavailable here
  51 | {
  52 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:17:94: error: 'default(for:)' is only available in visionOS 2.1 or newer
 12 |
 13 | // MARK: - AVCaptureDevice (static function)
 14 | extension AVCaptureDevice {
    | `- note: add '@available' attribute to enclosing extension
 15 |
 16 |     /// 取得預設影音裝置 (NSCameraUsageDescription / NSMicrophoneUsageDescription)
 17 |     static func _default(for type: AVMediaType) -> AVCaptureDevice? { return AVCaptureDevice.default(for: type) }
    |                 |                                                                            |- error: 'default(for:)' is only available in visionOS 2.1 or newer
    |                 |                                                                            `- note: add 'if #available' version check
    |                 `- note: add '@available' attribute to enclosing static method
 18 |
 19 |     /// 取得前後相機 => AVCaptureDevice
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:23:39: error: 'DiscoverySession' is only available in visionOS 2.1 or newer
 12 |
 13 | // MARK: - AVCaptureDevice (static function)
 14 | extension AVCaptureDevice {
    | `- note: add '@available' attribute to enclosing extension
 15 |
 16 |     /// 取得預設影音裝置 (NSCameraUsageDescription / NSMicrophoneUsageDescription)
    :
 19 |     /// 取得前後相機 => AVCaptureDevice
 20 |     /// - Returns: Constant.WideAngleCamera
 21 |     static func _wideAngleCamera() -> Constant.WideAngleCamera {
    |                 `- note: add '@available' attribute to enclosing static method
 22 |
 23 |         let devices = AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInWideAngleCamera], mediaType: .video, position: .unspecified).devices
    |                                       |- error: 'DiscoverySession' is only available in visionOS 2.1 or newer
    |                                       `- note: add 'if #available' version check
 24 |
 25 |         var videoDeivce: (front: AVCaptureDevice?, back: AVCaptureDevice?) = (nil, nil)
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:23:71: error: 'builtInWideAngleCamera' is only available in visionOS 2.1 or newer
 12 |
 13 | // MARK: - AVCaptureDevice (static function)
 14 | extension AVCaptureDevice {
    | `- note: add '@available' attribute to enclosing extension
 15 |
 16 |     /// 取得預設影音裝置 (NSCameraUsageDescription / NSMicrophoneUsageDescription)
    :
 19 |     /// 取得前後相機 => AVCaptureDevice
 20 |     /// - Returns: Constant.WideAngleCamera
 21 |     static func _wideAngleCamera() -> Constant.WideAngleCamera {
    |                 `- note: add '@available' attribute to enclosing static method
 22 |
 23 |         let devices = AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInWideAngleCamera], mediaType: .video, position: .unspecified).devices
    |                                                                       |- error: 'builtInWideAngleCamera' is only available in visionOS 2.1 or newer
    |                                                                       `- note: add 'if #available' version check
 24 |
 25 |         var videoDeivce: (front: AVCaptureDevice?, back: AVCaptureDevice?) = (nil, nil)
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:60:27: error: 'maxAvailableVideoZoomFactor' is unavailable in visionOS
 58 |     /// - Returns: CameraZoomRange
 59 |     func _zoomRange() -> Constant.CameraZoomRange {
 60 |         return (max: self.maxAvailableVideoZoomFactor, min: self.minAvailableVideoZoomFactor)
    |                           `- error: 'maxAvailableVideoZoomFactor' is unavailable in visionOS
 61 |     }
 62 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:2392:40: note: 'maxAvailableVideoZoomFactor' has been explicitly marked unavailable here
2390 |     Setting the videoZoomFactor to a value less than or equal to activeFormat.videoMaxZoomFactor, but greater than maxAvailableVideoZoomFactor results in the value being clamped to the maxAvailableVideoZoomFactor. Clients can key value observe the value of this property.
2391 |  */
2392 | @property(nonatomic, readonly) CGFloat maxAvailableVideoZoomFactor API_AVAILABLE(ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
     |                                        `- note: 'maxAvailableVideoZoomFactor' has been explicitly marked unavailable here
2393 |
2394 | @end
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:60:66: error: 'minAvailableVideoZoomFactor' is unavailable in visionOS
 58 |     /// - Returns: CameraZoomRange
 59 |     func _zoomRange() -> Constant.CameraZoomRange {
 60 |         return (max: self.maxAvailableVideoZoomFactor, min: self.minAvailableVideoZoomFactor)
    |                                                                  `- error: 'minAvailableVideoZoomFactor' is unavailable in visionOS
 61 |     }
 62 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:2380:40: note: 'minAvailableVideoZoomFactor' has been explicitly marked unavailable here
2378 |     Setting the videoZoomFactor to a value greater than or equal to 1.0, but lower than minAvailableVideoZoomFactor results in the value being clamped to the minAvailableVideoZoomFactor. Clients can key value observe the value of this property.
2379 |  */
2380 | @property(nonatomic, readonly) CGFloat minAvailableVideoZoomFactor API_AVAILABLE(ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
     |                                        `- note: 'minAvailableVideoZoomFactor' has been explicitly marked unavailable here
2381 |
2382 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:70:34: error: 'maxAvailableVideoZoomFactor' is unavailable in visionOS
 68 |     func _zoomIn(with rate: CGFloat, isSmooth: Bool = true) -> Result<CGFloat?, Error> {
 69 |
 70 |         let maxZoomFactor = self.maxAvailableVideoZoomFactor
    |                                  `- error: 'maxAvailableVideoZoomFactor' is unavailable in visionOS
 71 |         let currentVideoZoomFactor = self.videoZoomFactor
 72 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:2392:40: note: 'maxAvailableVideoZoomFactor' has been explicitly marked unavailable here
2390 |     Setting the videoZoomFactor to a value less than or equal to activeFormat.videoMaxZoomFactor, but greater than maxAvailableVideoZoomFactor results in the value being clamped to the maxAvailableVideoZoomFactor. Clients can key value observe the value of this property.
2391 |  */
2392 | @property(nonatomic, readonly) CGFloat maxAvailableVideoZoomFactor API_AVAILABLE(ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
     |                                        `- note: 'maxAvailableVideoZoomFactor' has been explicitly marked unavailable here
2393 |
2394 | @end
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:71:43: error: 'videoZoomFactor' is unavailable in visionOS
 69 |
 70 |         let maxZoomFactor = self.maxAvailableVideoZoomFactor
 71 |         let currentVideoZoomFactor = self.videoZoomFactor
    |                                           `- error: 'videoZoomFactor' is unavailable in visionOS
 72 |
 73 |         if (maxZoomFactor < currentVideoZoomFactor) { return .success(nil) }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:2068:30: note: 'videoZoomFactor' has been explicitly marked unavailable here
2066 |  @seealso -[AVCaptureDeviceFormat videoMaxZoomFactor], -[AVCaptureDeviceFormat videoZoomFactorUpscaleThreshold], -[AVCaptureDevice minAvailableVideoZoomFactor], -[AVCaptureDevice maxAvailableVideoZoomFactor],  -[AVCaptureDeviceFormat supportedVideoZoomFactorsForDepthDataDelivery], -[AVCaptureDeviceFormat videoMinZoomFactorForCenterStage] and -[AVCaptureDeviceFormat videoMaxZoomFactorForCenterStage]
2067 |  */
2068 | @property(nonatomic) CGFloat videoZoomFactor API_AVAILABLE(ios(7.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
     |                              `- note: 'videoZoomFactor' has been explicitly marked unavailable here
2069 |
2070 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:85:34: error: 'minAvailableVideoZoomFactor' is unavailable in visionOS
 83 |     func _zoomOut(with rate: CGFloat, isSmooth: Bool = true) -> Result<CGFloat?, Error> {
 84 |
 85 |         let minZoomFactor = self.minAvailableVideoZoomFactor
    |                                  `- error: 'minAvailableVideoZoomFactor' is unavailable in visionOS
 86 |         let currentVideoZoomFactor = self.videoZoomFactor
 87 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:2380:40: note: 'minAvailableVideoZoomFactor' has been explicitly marked unavailable here
2378 |     Setting the videoZoomFactor to a value greater than or equal to 1.0, but lower than minAvailableVideoZoomFactor results in the value being clamped to the minAvailableVideoZoomFactor. Clients can key value observe the value of this property.
2379 |  */
2380 | @property(nonatomic, readonly) CGFloat minAvailableVideoZoomFactor API_AVAILABLE(ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
     |                                        `- note: 'minAvailableVideoZoomFactor' has been explicitly marked unavailable here
2381 |
2382 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:86:43: error: 'videoZoomFactor' is unavailable in visionOS
 84 |
 85 |         let minZoomFactor = self.minAvailableVideoZoomFactor
 86 |         let currentVideoZoomFactor = self.videoZoomFactor
    |                                           `- error: 'videoZoomFactor' is unavailable in visionOS
 87 |
 88 |         if (currentVideoZoomFactor < minZoomFactor) { return .success(nil) }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:2068:30: note: 'videoZoomFactor' has been explicitly marked unavailable here
2066 |  @seealso -[AVCaptureDeviceFormat videoMaxZoomFactor], -[AVCaptureDeviceFormat videoZoomFactorUpscaleThreshold], -[AVCaptureDevice minAvailableVideoZoomFactor], -[AVCaptureDevice maxAvailableVideoZoomFactor],  -[AVCaptureDeviceFormat supportedVideoZoomFactorsForDepthDataDelivery], -[AVCaptureDeviceFormat videoMinZoomFactorForCenterStage] and -[AVCaptureDeviceFormat videoMaxZoomFactorForCenterStage]
2067 |  */
2068 | @property(nonatomic) CGFloat videoZoomFactor API_AVAILABLE(ios(7.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
     |                              `- note: 'videoZoomFactor' has been explicitly marked unavailable here
2069 |
2070 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:104:22: error: 'ramp(toVideoZoomFactor:withRate:)' is unavailable in visionOS
102 |
103 |             if (isSmooth) {
104 |                 self.ramp(toVideoZoomFactor: factor, withRate: Float(rate))
    |                      `- error: 'ramp(toVideoZoomFactor:withRate:)' is unavailable in visionOS
105 |             } else {
106 |                 self.videoZoomFactor = factor
/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:2086:1: note: 'ramp(toVideoZoomFactor:withRate:)' has been explicitly marked unavailable here
2084 |     -rampToVideoZoomFactor:withRate: throws an NSGenericException if called without first obtaining exclusive access to the receiver using lockForConfiguration:.
2085 |  */
2086 | - (void)rampToVideoZoomFactor:(CGFloat)factor withRate:(float)rate API_AVAILABLE(ios(7.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
     | `- note: 'ramp(toVideoZoomFactor:withRate:)' has been explicitly marked unavailable here
2087 |
2088 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:106:22: error: 'videoZoomFactor' is unavailable in visionOS
104 |                 self.ramp(toVideoZoomFactor: factor, withRate: Float(rate))
105 |             } else {
106 |                 self.videoZoomFactor = factor
    |                      `- error: 'videoZoomFactor' is unavailable in visionOS
107 |             }
108 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:2068:30: note: 'videoZoomFactor' has been explicitly marked unavailable here
2066 |  @seealso -[AVCaptureDeviceFormat videoMaxZoomFactor], -[AVCaptureDeviceFormat videoZoomFactorUpscaleThreshold], -[AVCaptureDevice minAvailableVideoZoomFactor], -[AVCaptureDevice maxAvailableVideoZoomFactor],  -[AVCaptureDeviceFormat supportedVideoZoomFactorsForDepthDataDelivery], -[AVCaptureDeviceFormat videoMinZoomFactorForCenterStage] and -[AVCaptureDeviceFormat videoMaxZoomFactorForCenterStage]
2067 |  */
2068 | @property(nonatomic) CGFloat videoZoomFactor API_AVAILABLE(ios(7.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
     |                              `- note: 'videoZoomFactor' has been explicitly marked unavailable here
2069 |
2070 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:109:25: error: 'videoZoomFactor' is unavailable in visionOS
107 |             }
108 |
109 |             return self.videoZoomFactor
    |                         `- error: 'videoZoomFactor' is unavailable in visionOS
110 |         }
111 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:2068:30: note: 'videoZoomFactor' has been explicitly marked unavailable here
2066 |  @seealso -[AVCaptureDeviceFormat videoMaxZoomFactor], -[AVCaptureDeviceFormat videoZoomFactorUpscaleThreshold], -[AVCaptureDevice minAvailableVideoZoomFactor], -[AVCaptureDevice maxAvailableVideoZoomFactor],  -[AVCaptureDeviceFormat supportedVideoZoomFactorsForDepthDataDelivery], -[AVCaptureDeviceFormat videoMinZoomFactorForCenterStage] and -[AVCaptureDeviceFormat videoMaxZoomFactorForCenterStage]
2067 |  */
2068 | @property(nonatomic) CGFloat videoZoomFactor API_AVAILABLE(ios(7.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
     |                              `- note: 'videoZoomFactor' has been explicitly marked unavailable here
2069 |
2070 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:120:18: error: 'cancelVideoZoomRamp()' is unavailable in visionOS
118 |
119 |         let result = self._lockForConfiguration { () -> Bool in
120 |             self.cancelVideoZoomRamp()
    |                  `- error: 'cancelVideoZoomRamp()' is unavailable in visionOS
121 |             return true
122 |         }
/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:2108:1: note: 'cancelVideoZoomRamp()' has been explicitly marked unavailable here
2106 |     -cancelVideoZoomRamp: throws an NSGenericException if called without first obtaining exclusive access to the receiver using lockForConfiguration:.
2107 |  */
2108 | - (void)cancelVideoZoomRamp API_AVAILABLE(ios(7.0), macCatalyst(14.0)) API_UNAVAILABLE(macos, visionos);
     | `- note: 'cancelVideoZoomRamp()' has been explicitly marked unavailable here
2109 |
2110 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:134:18: error: 'automaticallyAdjustsVideoHDREnabled' is unavailable in visionOS
132 |         let result = self._lockForConfiguration { () -> Bool in
133 |
134 |             self.automaticallyAdjustsVideoHDREnabled = false
    |                  `- error: 'automaticallyAdjustsVideoHDREnabled' is unavailable in visionOS
135 |             self.isVideoHDREnabled = isEnable
136 |
/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:2290:27: note: 'automaticallyAdjustsVideoHDREnabled' has been explicitly marked unavailable here
2288 |     The value of this property is a BOOL indicating whether the receiver is free to turn high dynamic range streaming on or off. This property defaults to YES. When automaticallyAdjustsVideoHDREnabled, the AVCaptureDevice turns videoHDR on automatically if it's a good fit for the activeFormat. -setAutomaticallyAdjustsVideoHDREnabled: throws an NSGenericException if called without first obtaining exclusive access to the receiver using -lockForConfiguration:. Clients can key-value observe videoHDREnabled to know when the receiver has automatically changed the value.
2289 |  */
2290 | @property(nonatomic) BOOL automaticallyAdjustsVideoHDREnabled API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
     |                           `- note: 'automaticallyAdjustsVideoHDREnabled' has been explicitly marked unavailable here
2291 |
2292 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:135:18: error: 'isVideoHDREnabled' is unavailable in visionOS
133 |
134 |             self.automaticallyAdjustsVideoHDREnabled = false
135 |             self.isVideoHDREnabled = isEnable
    |                  `- error: 'isVideoHDREnabled' is unavailable in visionOS
136 |
137 |             return self.isVideoHDREnabled
/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:2302:53: note: 'isVideoHDREnabled' has been explicitly marked unavailable here
2300 |     Note that setting this property may cause a lengthy reconfiguration of the receiver, similar to setting a new active format or AVCaptureSession sessionPreset. If you are setting either the active format or the AVCaptureSession's sessionPreset AND this property, you should bracket these operations with [session beginConfiguration] and [session commitConfiguration] to minimize reconfiguration time.
2301 |  */
2302 | @property(nonatomic, getter=isVideoHDREnabled) BOOL videoHDREnabled API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
     |                                                     `- note: 'isVideoHDREnabled' has been explicitly marked unavailable here
2303 |
2304 | @end
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:137:25: error: 'isVideoHDREnabled' is unavailable in visionOS
135 |             self.isVideoHDREnabled = isEnable
136 |
137 |             return self.isVideoHDREnabled
    |                         `- error: 'isVideoHDREnabled' is unavailable in visionOS
138 |         }
139 |
/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:2302:53: note: 'isVideoHDREnabled' has been explicitly marked unavailable here
2300 |     Note that setting this property may cause a lengthy reconfiguration of the receiver, similar to setting a new active format or AVCaptureSession sessionPreset. If you are setting either the active format or the AVCaptureSession's sessionPreset AND this property, you should bracket these operations with [session beginConfiguration] and [session commitConfiguration] to minimize reconfiguration time.
2301 |  */
2302 | @property(nonatomic, getter=isVideoHDREnabled) BOOL videoHDREnabled API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
     |                                                     `- note: 'isVideoHDREnabled' has been explicitly marked unavailable here
2303 |
2304 | @end
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:168:28: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
166 |     func _previewLayer(with frame: CGRect, videoGravity: AVLayerVideoGravity = .resizeAspectFill) -> AVCaptureVideoPreviewLayer {
167 |
168 |         let previewLayer = AVCaptureVideoPreviewLayer(session: self)
    |                            `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
169 |
170 |         previewLayer.frame = frame
/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/WWCameraPickerController/Extension+.swift:242:24: error: cannot assign value of type 'Result<Bool, any Error>' to type 'Result<Bool, Never>'
240 |             case .front:
241 |                 _removeInputs([_input])
242 |                 result = _canAddDevices(with: [backCamera]); return
    |                        |- error: cannot assign value of type 'Result<Bool, any Error>' to type 'Result<Bool, Never>'
    |                        `- note: arguments to generic parameter 'Failure' ('any Error' and 'Never') are expected to be equal
243 |             case .back:
244 |                 _removeInputs([_input])
/Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift:250:16: error: cannot convert return expression of type 'Result<Bool, Never>' to return type 'Result<Bool, any Error>'
248 |         }
249 |
250 |         return result
    |                |- error: cannot convert return expression of type 'Result<Bool, Never>' to return type 'Result<Bool, any Error>'
    |                `- note: arguments to generic parameter 'Failure' ('Never' and 'any Error') are expected to be equal
251 |     }
252 | }
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWCameraPickerController/Extension+.swift (in target 'WWCameraPickerController' from project 'WWCameraPickerController')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Extension+.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-20 22:46:11.048 xcodebuild[798:4892] [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\ WWCameraPickerController (in target 'WWCameraPickerController' from project 'WWCameraPickerController')
	SwiftCompile normal arm64 (in target 'WWCameraPickerController' from project 'WWCameraPickerController')
	Building workspace WWCameraPickerController with scheme WWCameraPickerController
(3 failures)
BUILD FAILURE 6.4 visionOS