Build Information
Failed to build VideoIO, reference 2.3.1 (22f7c0), with Swift 6.4 for visionOS using Xcode 27.0 on 19 Sep 2026 08:01:41 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 VideoIO -destination generic/platform=xrOSBuild Log
50 | @interface AVCapturePhotoOutput : AVCaptureOutput
| `- note: 'AVCapturePhotoOutput' has been explicitly marked unavailable here
51 | {
52 | @private
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift:54:56: error: 'Preset' is unavailable in visionOS
52 | private let defaultCameraPosition: AVCaptureDevice.Position
53 |
54 | public init(captureSessionPreset: AVCaptureSession.Preset, defaultCameraPosition: AVCaptureDevice.Position = .back, configurator: Configurator = Configurator()) {
| `- error: 'Preset' is unavailable in visionOS
55 | let captureSession = AVCaptureSession()
56 | assert(captureSession.canSetSessionPreset(captureSessionPreset))
/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/VideoIO/Camera.swift:100:124: error: 'DeviceType' is only available in visionOS 2.1 or newer
98 | }
99 |
100 | public func switchToVideoCaptureDevice(with position: AVCaptureDevice.Position, preferredDeviceTypes: [AVCaptureDevice.DeviceType] = []) throws {
| | `- error: 'DeviceType' is only available in visionOS 2.1 or newer
| `- note: add '@available' attribute to enclosing instance method
101 | let deviceTypes: [AVCaptureDevice.DeviceType]
102 | if preferredDeviceTypes.count == 0 {
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift:195:46: error: 'AVCaptureAudioDataOutput' is unavailable in visionOS
193 | }
194 |
195 | public private(set) var audioDataOutput: AVCaptureAudioDataOutput?
| `- error: 'AVCaptureAudioDataOutput' is unavailable in visionOS
196 |
197 | public func enableAudioDataOutput(on queue: DispatchQueue = .main, delegate: AVCaptureAudioDataOutputSampleBufferDelegate) throws {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureAudioDataOutput.h:30:12: note: 'AVCaptureAudioDataOutput' has been explicitly marked unavailable here
28 | */
29 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
30 | @interface AVCaptureAudioDataOutput : AVCaptureOutput
| `- note: 'AVCaptureAudioDataOutput' has been explicitly marked unavailable here
31 | {
32 | @private
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift:197:82: error: 'AVCaptureAudioDataOutputSampleBufferDelegate' is unavailable in visionOS
195 | public private(set) var audioDataOutput: AVCaptureAudioDataOutput?
196 |
197 | public func enableAudioDataOutput(on queue: DispatchQueue = .main, delegate: AVCaptureAudioDataOutputSampleBufferDelegate) throws {
| `- error: 'AVCaptureAudioDataOutputSampleBufferDelegate' is unavailable in visionOS
198 | self.captureSession.beginConfiguration()
199 | defer {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureAudioDataOutput.h:128:11: note: 'AVCaptureAudioDataOutputSampleBufferDelegate' has been explicitly marked unavailable here
126 | */
127 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
128 | @protocol AVCaptureAudioDataOutputSampleBufferDelegate <NSObject>
| `- note: 'AVCaptureAudioDataOutputSampleBufferDelegate' has been explicitly marked unavailable here
129 |
130 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift:56:31: error: 'canSetSessionPreset' is unavailable in visionOS
54 | public init(captureSessionPreset: AVCaptureSession.Preset, defaultCameraPosition: AVCaptureDevice.Position = .back, configurator: Configurator = Configurator()) {
55 | let captureSession = AVCaptureSession()
56 | assert(captureSession.canSetSessionPreset(captureSessionPreset))
| `- error: 'canSetSessionPreset' is unavailable in visionOS
57 | captureSession.beginConfiguration()
58 | captureSession.sessionPreset = captureSessionPreset
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:156:1: note: 'canSetSessionPreset' has been explicitly marked unavailable here
154 | An AVCaptureSession instance can be associated with a preset that configures its inputs and outputs to fulfill common use cases. This method can be used to determine if the receiver supports the desired preset given its current input and output configuration. The receiver's sessionPreset property may only be set to a certain preset if this method returns YES for that preset.
155 | */
156 | - (BOOL)canSetSessionPreset:(AVCaptureSessionPreset)preset API_UNAVAILABLE(visionos);
| `- note: 'canSetSessionPreset' has been explicitly marked unavailable here
157 |
158 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift:58:24: error: 'sessionPreset' is unavailable in visionOS
56 | assert(captureSession.canSetSessionPreset(captureSessionPreset))
57 | captureSession.beginConfiguration()
58 | captureSession.sessionPreset = captureSessionPreset
| `- error: 'sessionPreset' is unavailable in visionOS
59 | let photoOutput = AVCapturePhotoOutput()
60 | if captureSession.canAddOutput(photoOutput) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:166:51: note: 'sessionPreset' has been explicitly marked unavailable here
164 | The value of this property is an AVCaptureSessionPreset indicating the current session preset in use by the receiver. The sessionPreset property may be set while the receiver is running.
165 | */
166 | @property(nonatomic, copy) AVCaptureSessionPreset sessionPreset API_UNAVAILABLE(visionos);
| `- note: 'sessionPreset' has been explicitly marked unavailable here
167 |
168 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift:59:27: error: 'AVCapturePhotoOutput' is unavailable in visionOS
57 | captureSession.beginConfiguration()
58 | captureSession.sessionPreset = captureSessionPreset
59 | let photoOutput = AVCapturePhotoOutput()
| `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
60 | if captureSession.canAddOutput(photoOutput) {
61 | captureSession.addOutput(photoOutput)
/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/VideoIO/Camera.swift:101:43: error: 'DeviceType' is only available in visionOS 2.1 or newer
98 | }
99 |
100 | public func switchToVideoCaptureDevice(with position: AVCaptureDevice.Position, preferredDeviceTypes: [AVCaptureDevice.DeviceType] = []) throws {
| `- note: add '@available' attribute to enclosing instance method
101 | let deviceTypes: [AVCaptureDevice.DeviceType]
| |- error: 'DeviceType' is only available in visionOS 2.1 or newer
| `- note: add 'if #available' version check
102 | if preferredDeviceTypes.count == 0 {
103 | #if os(macOS)
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift:109:33: error: 'builtInDualWideCamera' is unavailable in visionOS
107 | #else
108 | if #available(iOS 13.0, *) {
109 | deviceTypes = [.builtInDualWideCamera, .builtInDualCamera, .builtInTrueDepthCamera, .builtInWideAngleCamera]
| `- error: 'builtInDualWideCamera' is unavailable in visionOS
110 | } else if #available(iOS 11.1, *) {
111 | deviceTypes = [.builtInDualCamera, .builtInTrueDepthCamera, .builtInWideAngleCamera]
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:611:38: note: 'builtInDualWideCamera' has been explicitly marked unavailable here
609 | Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.
610 | */
611 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInDualWideCamera API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
| `- note: 'builtInDualWideCamera' has been explicitly marked unavailable here
612 |
613 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift:109:57: error: 'builtInDualCamera' is unavailable in visionOS
107 | #else
108 | if #available(iOS 13.0, *) {
109 | deviceTypes = [.builtInDualWideCamera, .builtInDualCamera, .builtInTrueDepthCamera, .builtInWideAngleCamera]
| `- error: 'builtInDualCamera' is unavailable in visionOS
110 | } else if #available(iOS 11.1, *) {
111 | deviceTypes = [.builtInDualCamera, .builtInTrueDepthCamera, .builtInWideAngleCamera]
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:593:38: note: 'builtInDualCamera' has been explicitly marked unavailable here
591 | Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.
592 | */
593 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInDualCamera API_AVAILABLE(ios(10.2), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
| `- note: 'builtInDualCamera' has been explicitly marked unavailable here
594 |
595 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift:109:77: error: 'builtInTrueDepthCamera' is unavailable in visionOS
107 | #else
108 | if #available(iOS 13.0, *) {
109 | deviceTypes = [.builtInDualWideCamera, .builtInDualCamera, .builtInTrueDepthCamera, .builtInWideAngleCamera]
| `- error: 'builtInTrueDepthCamera' is unavailable in visionOS
110 | } else if #available(iOS 11.1, *) {
111 | deviceTypes = [.builtInDualCamera, .builtInTrueDepthCamera, .builtInWideAngleCamera]
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:634:38: note: 'builtInTrueDepthCamera' has been explicitly marked unavailable here
632 | A device that consists of two cameras, one YUV and one Infrared. The infrared camera provides high quality depth information that is synchronized and perspective corrected to frames produced by the YUV camera. While the resolution of the depth data and YUV frames may differ, their field of view and aspect ratio always match. Note that devices of this type may only be discovered using an AVCaptureDeviceDiscoverySession or -[AVCaptureDevice defaultDeviceWithDeviceType:mediaType:position:].
633 | */
634 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInTrueDepthCamera API_AVAILABLE(ios(11.1), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
| `- note: 'builtInTrueDepthCamera' has been explicitly marked unavailable here
635 |
636 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift:109:102: error: 'builtInWideAngleCamera' is only available in visionOS 2.1 or newer
98 | }
99 |
100 | public func switchToVideoCaptureDevice(with position: AVCaptureDevice.Position, preferredDeviceTypes: [AVCaptureDevice.DeviceType] = []) throws {
| `- note: add '@available' attribute to enclosing instance method
101 | let deviceTypes: [AVCaptureDevice.DeviceType]
102 | if preferredDeviceTypes.count == 0 {
:
107 | #else
108 | if #available(iOS 13.0, *) {
109 | deviceTypes = [.builtInDualWideCamera, .builtInDualCamera, .builtInTrueDepthCamera, .builtInWideAngleCamera]
| |- error: 'builtInWideAngleCamera' is only available in visionOS 2.1 or newer
| `- note: add 'if #available' version check
110 | } else if #available(iOS 11.1, *) {
111 | deviceTypes = [.builtInDualCamera, .builtInTrueDepthCamera, .builtInWideAngleCamera]
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift:111:33: error: 'builtInDualCamera' is unavailable in visionOS
109 | deviceTypes = [.builtInDualWideCamera, .builtInDualCamera, .builtInTrueDepthCamera, .builtInWideAngleCamera]
110 | } else if #available(iOS 11.1, *) {
111 | deviceTypes = [.builtInDualCamera, .builtInTrueDepthCamera, .builtInWideAngleCamera]
| `- error: 'builtInDualCamera' is unavailable in visionOS
112 | } else if #available(iOS 10.2, *) {
113 | deviceTypes = [.builtInDualCamera, .builtInWideAngleCamera]
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:593:38: note: 'builtInDualCamera' has been explicitly marked unavailable here
591 | Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.
592 | */
593 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInDualCamera API_AVAILABLE(ios(10.2), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
| `- note: 'builtInDualCamera' has been explicitly marked unavailable here
594 |
595 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift:111:53: error: 'builtInTrueDepthCamera' is unavailable in visionOS
109 | deviceTypes = [.builtInDualWideCamera, .builtInDualCamera, .builtInTrueDepthCamera, .builtInWideAngleCamera]
110 | } else if #available(iOS 11.1, *) {
111 | deviceTypes = [.builtInDualCamera, .builtInTrueDepthCamera, .builtInWideAngleCamera]
| `- error: 'builtInTrueDepthCamera' is unavailable in visionOS
112 | } else if #available(iOS 10.2, *) {
113 | deviceTypes = [.builtInDualCamera, .builtInWideAngleCamera]
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:634:38: note: 'builtInTrueDepthCamera' has been explicitly marked unavailable here
632 | A device that consists of two cameras, one YUV and one Infrared. The infrared camera provides high quality depth information that is synchronized and perspective corrected to frames produced by the YUV camera. While the resolution of the depth data and YUV frames may differ, their field of view and aspect ratio always match. Note that devices of this type may only be discovered using an AVCaptureDeviceDiscoverySession or -[AVCaptureDevice defaultDeviceWithDeviceType:mediaType:position:].
633 | */
634 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInTrueDepthCamera API_AVAILABLE(ios(11.1), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
| `- note: 'builtInTrueDepthCamera' has been explicitly marked unavailable here
635 |
636 | /*!
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+PhotoCapture.swift (in target 'VideoIO' from project 'VideoIO')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Camera+PhotoCapture.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift (in target 'VideoIO' from project 'VideoIO')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Camera.swift
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift:113:33: error: 'builtInDualCamera' is unavailable in visionOS
111 | deviceTypes = [.builtInDualCamera, .builtInTrueDepthCamera, .builtInWideAngleCamera]
112 | } else if #available(iOS 10.2, *) {
113 | deviceTypes = [.builtInDualCamera, .builtInWideAngleCamera]
| `- error: 'builtInDualCamera' is unavailable in visionOS
114 | } else {
115 | deviceTypes = [.builtInWideAngleCamera]
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:593:38: note: 'builtInDualCamera' has been explicitly marked unavailable here
591 | Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.
592 | */
593 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInDualCamera API_AVAILABLE(ios(10.2), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
| `- note: 'builtInDualCamera' has been explicitly marked unavailable here
594 |
595 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift:121:48: error: 'DiscoverySession' is only available in visionOS 2.1 or newer
98 | }
99 |
100 | public func switchToVideoCaptureDevice(with position: AVCaptureDevice.Position, preferredDeviceTypes: [AVCaptureDevice.DeviceType] = []) throws {
| `- note: add '@available' attribute to enclosing instance method
101 | let deviceTypes: [AVCaptureDevice.DeviceType]
102 | if preferredDeviceTypes.count == 0 {
:
119 | deviceTypes = preferredDeviceTypes
120 | }
121 | let discoverySession = AVCaptureDevice.DiscoverySession(deviceTypes: deviceTypes, mediaType: .video, position: position)
| |- error: 'DiscoverySession' is only available in visionOS 2.1 or newer
| `- note: add 'if #available' version check
122 | if let device = discoverySession.devices.first {
123 | let newVideoDeviceInput = try AVCaptureDeviceInput(device: device)
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift:203:45: error: 'default(for:)' is only available in visionOS 2.1 or newer
195 | public private(set) var audioDataOutput: AVCaptureAudioDataOutput?
196 |
197 | public func enableAudioDataOutput(on queue: DispatchQueue = .main, delegate: AVCaptureAudioDataOutputSampleBufferDelegate) throws {
| `- note: add '@available' attribute to enclosing instance method
198 | self.captureSession.beginConfiguration()
199 | defer {
:
201 | }
202 | if self.audioDeviceInput == nil {
203 | if let device = AVCaptureDevice.default(for: .audio), let audioDeviceInput = try? AVCaptureDeviceInput(device: device) {
| |- error: 'default(for:)' is only available in visionOS 2.1 or newer
| `- note: add 'if #available' version check
204 | if self.captureSession.canAddInput(audioDeviceInput) {
205 | self.captureSession.addInput(audioDeviceInput)
SwiftCompile normal arm64 Compiling\ MovieMerger.swift,\ MultitrackMovieRecorder.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/MovieMerger.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/MultitrackMovieRecorder.swift (in target 'VideoIO' from project 'VideoIO')
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/MovieMerger.swift:41:68: error: 'tracks(withMediaType:)' is unavailable in visionOS
39 | for segment in assets {
40 | let asset = AVURLAsset(url: segment, options: [AVURLAssetPreferPreciseDurationAndTimingKey: true])
41 | if !isFirstSegmentTransformSet, let videoTrack = asset.tracks(withMediaType: .video).first {
| `- error: 'tracks(withMediaType:)' is unavailable in visionOS
42 | firstSegmentTransform = videoTrack.preferredTransform
43 | isFirstSegmentTransformSet = true
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVAsset.h:191:1: note: 'tracks(withMediaType:)' has been explicitly marked unavailable here
189 | ///
190 | /// - Returns: An NSArray of AVAssetTracks; may be empty if no tracks of the specified media type are available.
191 | - (NSArray<AVAssetTrack *> *)tracksWithMediaType:(AVMediaType)mediaType
| `- note: 'tracks(withMediaType:)' has been explicitly marked unavailable here
192 | #if __swift__
193 | API_DEPRECATED("Use loadTracks(withMediaType:) instead", macos(10.7, 13.0), ios(4.0, 16.0), tvos(9.0, 16.0), watchos(1.0, 9.0)) API_UNAVAILABLE(visionos);
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/MovieMerger.swift:42:52: warning: 'preferredTransform' was deprecated in visionOS 1.0: Use load(.preferredTransform) instead [#DeprecatedDeclaration]
40 | let asset = AVURLAsset(url: segment, options: [AVURLAssetPreferPreciseDurationAndTimingKey: true])
41 | if !isFirstSegmentTransformSet, let videoTrack = asset.tracks(withMediaType: .video).first {
42 | firstSegmentTransform = videoTrack.preferredTransform
| `- warning: 'preferredTransform' was deprecated in visionOS 1.0: Use load(.preferredTransform) instead [#DeprecatedDeclaration]
43 | isFirstSegmentTransformSet = true
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/MovieMerger.swift:45:67: warning: 'duration' was deprecated in visionOS 1.0: Use load(.duration) instead [#DeprecatedDeclaration]
43 | isFirstSegmentTransformSet = true
44 | }
45 | let range = CMTimeRange(start: .zero, duration: asset.duration)
| `- warning: 'duration' was deprecated in visionOS 1.0: Use load(.duration) instead [#DeprecatedDeclaration]
46 | do {
47 | try composition.insertTimeRange(range, of: asset, at: current)
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/MovieMerger.swift (in target 'VideoIO' from project 'VideoIO')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile MovieMerger.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/MultitrackMovieRecorder.swift (in target 'VideoIO' from project 'VideoIO')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile MultitrackMovieRecorder.swift
SwiftCompile normal arm64 Compiling\ AudioQueueCaptureSession.swift,\ AudioVideoSettings.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AudioQueueCaptureSession.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AudioVideoSettings.swift (in target 'VideoIO' from project 'VideoIO')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AudioQueueCaptureSession.swift (in target 'VideoIO' from project 'VideoIO')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile AudioQueueCaptureSession.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AudioVideoSettings.swift (in target 'VideoIO' from project 'VideoIO')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile AudioVideoSettings.swift
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AudioVideoSettings.swift:12:1: warning: extension declares a conformance of imported type 'AVVideoCodecType' to imported protocols 'Decodable', 'Encodable'; this will not behave correctly if the owners of 'AVFoundation' introduce this conformance in the future
10 | import VideoToolbox
11 |
12 | extension AVVideoCodecType: Codable {
| |- warning: extension declares a conformance of imported type 'AVVideoCodecType' to imported protocols 'Decodable', 'Encodable'; this will not behave correctly if the owners of 'AVFoundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
13 |
14 | }
SwiftCompile normal arm64 Compiling\ VideoComposition.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/VideoComposition.swift (in target 'VideoIO' from project 'VideoIO')
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/VideoComposition.swift:31:20: warning: stored property 'requiredSourceTrackIDs' of 'Sendable'-conforming class 'Instruction' has non-Sendable type '[NSValue]?'
29 | public let containsTweening: Bool = true
30 |
31 | public let requiredSourceTrackIDs: [NSValue]?
| `- warning: stored property 'requiredSourceTrackIDs' of 'Sendable'-conforming class 'Instruction' has non-Sendable type '[NSValue]?'
32 |
33 | public let passthroughTrackID: CMPersistentTrackID = kCMPersistentTrackID_Invalid
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable, ~Escapable where Wrapped : ~Copyable, Wrapped : ~Escapable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/VideoComposition.swift:48:16: warning: sendability of function types in property 'sourcePixelBufferAttributes' does not match requirement in protocol 'AVVideoCompositing'; this is an error in the Swift 6 language mode
46 | }
47 |
48 | public let sourcePixelBufferAttributes: [String : Any]? = [kCVPixelBufferPixelFormatTypeKey as String: [kCVPixelFormatType_420YpCbCr8BiPlanarFullRange, kCVPixelFormatType_32BGRA, kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange]]
| `- warning: sendability of function types in property 'sourcePixelBufferAttributes' does not match requirement in protocol 'AVVideoCompositing'; this is an error in the Swift 6 language mode
49 |
50 | public let requiredPixelBufferAttributesForRenderContext: [String : Any] = [kCVPixelBufferPixelFormatTypeKey as String: kCVPixelFormatType_32BGRA]
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVVideoCompositing.h:123:91: note: expected sendability to match requirement here
121 | ///
122 | /// Missing attributes will be set by the composition engine to values allowing the best performance. This property is queried once before any composition request is sent to the compositor. Changing source buffer attributes afterwards is not supported.
123 | @property (nonatomic, readonly, nullable) NSDictionary<NSString *, id> NS_SWIFT_SENDABLE *sourcePixelBufferAttributes;
| `- note: expected sendability to match requirement here
124 |
125 | /// Indicates the pixel buffer attributes required by the video compositor for new buffers that it creates for processing.
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/VideoComposition.swift:50:16: warning: sendability of function types in property 'requiredPixelBufferAttributesForRenderContext' does not match requirement in protocol 'AVVideoCompositing'; this is an error in the Swift 6 language mode
48 | public let sourcePixelBufferAttributes: [String : Any]? = [kCVPixelBufferPixelFormatTypeKey as String: [kCVPixelFormatType_420YpCbCr8BiPlanarFullRange, kCVPixelFormatType_32BGRA, kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange]]
49 |
50 | public let requiredPixelBufferAttributesForRenderContext: [String : Any] = [kCVPixelBufferPixelFormatTypeKey as String: kCVPixelFormatType_32BGRA]
| `- warning: sendability of function types in property 'requiredPixelBufferAttributesForRenderContext' does not match requirement in protocol 'AVVideoCompositing'; this is an error in the Swift 6 language mode
51 |
52 | public func renderContextChanged(_ newRenderContext: AVVideoCompositionRenderContext) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVVideoCompositing.h:130:81: note: expected sendability to match requirement here
128 | ///
129 | /// This property is queried once before any composition request is sent to the compositor. Changing required buffer attributes afterwards is not supported.
130 | @property (nonatomic, readonly) NSDictionary<NSString *, id> NS_SWIFT_SENDABLE *requiredPixelBufferAttributesForRenderContext;
| `- note: expected sendability to match requirement here
131 |
132 | /// Called to notify the custom compositor that a composition will switch to a different render context
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/VideoComposition.swift (in target 'VideoIO' from project 'VideoIO')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile VideoComposition.swift
SwiftCompile normal arm64 Compiling\ Camera+AudioQueueCapture.swift,\ Camera+FocusExposure.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+AudioQueueCapture.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+FocusExposure.swift (in target 'VideoIO' from project 'VideoIO')
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+FocusExposure.swift:16:101: error: 'FocusMode' is unavailable in visionOS
14 | extension Camera {
15 | @available(macOS, unavailable)
16 | public func setFocusExposurePointOfInterest(to devicePoint: CGPoint, focusMode: AVCaptureDevice.FocusMode = .continuousAutoFocus, exposureMode: AVCaptureDevice.ExposureMode = .continuousAutoExposure, shouldMonitorSubjectAreaChange: Bool = false) throws {
| `- error: 'FocusMode' is unavailable in visionOS
17 | guard let videoDevice = self.videoDevice else {
18 | return
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:1156:28: note: 'FocusMode' has been explicitly marked unavailable here
1154 | Indicates that the device should automatically focus when needed.
1155 | */
1156 | typedef NS_ENUM(NSInteger, AVCaptureFocusMode) {
| `- note: 'FocusMode' has been explicitly marked unavailable here
1157 | AVCaptureFocusModeLocked = 0,
1158 | AVCaptureFocusModeAutoFocus = 1,
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+FocusExposure.swift:16:165: error: 'ExposureMode' is unavailable in visionOS
14 | extension Camera {
15 | @available(macOS, unavailable)
16 | public func setFocusExposurePointOfInterest(to devicePoint: CGPoint, focusMode: AVCaptureDevice.FocusMode = .continuousAutoFocus, exposureMode: AVCaptureDevice.ExposureMode = .continuousAutoExposure, shouldMonitorSubjectAreaChange: Bool = false) throws {
| `- error: 'ExposureMode' is unavailable in visionOS
17 | guard let videoDevice = self.videoDevice else {
18 | return
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:1422:28: note: 'ExposureMode' has been explicitly marked unavailable here
1420 | Indicates that the device should only adjust exposure according to user provided ISO, exposureDuration values.
1421 | */
1422 | typedef NS_ENUM(NSInteger, AVCaptureExposureMode) {
| `- note: 'ExposureMode' has been explicitly marked unavailable here
1423 | AVCaptureExposureModeLocked = 0,
1424 | AVCaptureExposureModeAutoExpose = 1,
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+FocusExposure.swift:33:101: error: 'FocusMode' is unavailable in visionOS
31 | }
32 |
33 | public func setFocusExposurePointOfInterest(to devicePoint: CGPoint, focusMode: AVCaptureDevice.FocusMode = .continuousAutoFocus, exposureMode: AVCaptureDevice.ExposureMode = .continuousAutoExposure) throws {
| `- error: 'FocusMode' is unavailable in visionOS
34 | guard let videoDevice = self.videoDevice else {
35 | return
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:1156:28: note: 'FocusMode' has been explicitly marked unavailable here
1154 | Indicates that the device should automatically focus when needed.
1155 | */
1156 | typedef NS_ENUM(NSInteger, AVCaptureFocusMode) {
| `- note: 'FocusMode' has been explicitly marked unavailable here
1157 | AVCaptureFocusModeLocked = 0,
1158 | AVCaptureFocusModeAutoFocus = 1,
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+FocusExposure.swift:33:165: error: 'ExposureMode' is unavailable in visionOS
31 | }
32 |
33 | public func setFocusExposurePointOfInterest(to devicePoint: CGPoint, focusMode: AVCaptureDevice.FocusMode = .continuousAutoFocus, exposureMode: AVCaptureDevice.ExposureMode = .continuousAutoExposure) throws {
| `- error: 'ExposureMode' is unavailable in visionOS
34 | guard let videoDevice = self.videoDevice else {
35 | return
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:1422:28: note: 'ExposureMode' has been explicitly marked unavailable here
1420 | Indicates that the device should only adjust exposure according to user provided ISO, exposureDuration values.
1421 | */
1422 | typedef NS_ENUM(NSInteger, AVCaptureExposureMode) {
| `- note: 'ExposureMode' has been explicitly marked unavailable here
1423 | AVCaptureExposureModeLocked = 0,
1424 | AVCaptureExposureModeAutoExpose = 1,
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+FocusExposure.swift:29:21: error: 'isSubjectAreaChangeMonitoringEnabled' is unavailable in visionOS
27 | videoDevice.exposureMode = exposureMode
28 | }
29 | videoDevice.isSubjectAreaChangeMonitoringEnabled = shouldMonitorSubjectAreaChange
| `- error: 'isSubjectAreaChangeMonitoringEnabled' is unavailable in visionOS
30 | videoDevice.unlockForConfiguration()
31 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:2012:72: note: 'isSubjectAreaChangeMonitoringEnabled' has been explicitly marked unavailable here
2010 | The value of this property is a BOOL indicating whether the receiver should monitor the video subject area for changes, such as lighting changes, substantial movement, etc. If subject area change monitoring is enabled, the receiver sends an AVCaptureDeviceSubjectAreaDidChangeNotification whenever it detects a change to the subject area, at which time an interested client may wish to re-focus, adjust exposure, white balance, etc. The receiver must be locked for configuration using lockForConfiguration: before clients can set the value of this property.
2011 | */
2012 | @property(nonatomic, getter=isSubjectAreaChangeMonitoringEnabled) BOOL subjectAreaChangeMonitoringEnabled API_AVAILABLE(ios(5.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
| `- note: 'isSubjectAreaChangeMonitoringEnabled' has been explicitly marked unavailable here
2013 |
2014 | @end
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+FocusExposure.swift:54:50: error: 'minExposureTargetBias' is unavailable in visionOS
52 | return
53 | }
54 | let targetBias = simd_clamp(bias, device.minExposureTargetBias, device.maxExposureTargetBias)
| `- error: 'minExposureTargetBias' is unavailable in visionOS
55 | if device.exposureTargetBias == targetBias { return }
56 | try device.lockForConfiguration()
/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:1678:38: note: 'minExposureTargetBias' has been explicitly marked unavailable here
1676 | This read-only property indicates the minimum supported exposure bias.
1677 | */
1678 | @property(nonatomic, readonly) float minExposureTargetBias API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
| `- note: 'minExposureTargetBias' has been explicitly marked unavailable here
1679 |
1680 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+FocusExposure.swift:54:80: error: 'maxExposureTargetBias' is unavailable in visionOS
52 | return
53 | }
54 | let targetBias = simd_clamp(bias, device.minExposureTargetBias, device.maxExposureTargetBias)
| `- error: 'maxExposureTargetBias' is unavailable in visionOS
55 | if device.exposureTargetBias == targetBias { return }
56 | try device.lockForConfiguration()
/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:1688:38: note: 'maxExposureTargetBias' has been explicitly marked unavailable here
1686 | This read-only property indicates the maximum supported exposure bias.
1687 | */
1688 | @property(nonatomic, readonly) float maxExposureTargetBias API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
| `- note: 'maxExposureTargetBias' has been explicitly marked unavailable here
1689 |
1690 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+FocusExposure.swift:55:19: error: 'exposureTargetBias' is unavailable in visionOS
53 | }
54 | let targetBias = simd_clamp(bias, device.minExposureTargetBias, device.maxExposureTargetBias)
55 | if device.exposureTargetBias == targetBias { return }
| `- error: 'exposureTargetBias' is unavailable in visionOS
56 | try device.lockForConfiguration()
57 | device.setExposureTargetBias(targetBias, completionHandler: completion)
/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:1668:38: note: 'exposureTargetBias' has been explicitly marked unavailable here
1666 | /// When the exposure mode is AVCaptureExposureModeCustom and none of the custom parameters are "Auto", bias is disabled and will only affect metering. In custom modes with "Auto" parameters, those parameters will be adjusted to apply the requested bias.
1667 | /// This property is key-value observable. It can be read at any time, but can only be set via setExposureTargetBias:completionHandler:.
1668 | @property(nonatomic, readonly) float exposureTargetBias API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
| `- note: 'exposureTargetBias' has been explicitly marked unavailable here
1669 |
1670 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+FocusExposure.swift:57:16: error: 'setExposureTargetBias(_:completionHandler:)' is unavailable in visionOS
55 | if device.exposureTargetBias == targetBias { return }
56 | try device.lockForConfiguration()
57 | device.setExposureTargetBias(targetBias, completionHandler: completion)
| `- error: 'setExposureTargetBias(_:completionHandler:)' is unavailable in visionOS
58 | device.unlockForConfiguration()
59 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:1709:1: note: 'setExposureTargetBias(_:completionHandler:)' has been explicitly marked unavailable here
1707 | This is the only way of setting exposureTargetBias. This method throws an NSRangeException if exposureTargetBias is set to an unsupported level. This method throws an NSGenericException if called without first obtaining exclusive access to the receiver using lockForConfiguration:.
1708 | */
1709 | - (void)setExposureTargetBias:(float)bias completionHandler:(nullable void (^)(CMTime syncTime))handler API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
| `- note: 'setExposureTargetBias(_:completionHandler:)' has been explicitly marked unavailable here
1710 |
1711 | /// Reports which characteristics the auto exposure system associates with the current scene. Auto exposure may adjust properties such as lens aperture size based on these factors. This property is key-value observable.
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+FocusExposure.swift:78:27: error: 'videoOrientation' is unavailable in visionOS
76 | var viewHeight: CGFloat
77 | var viewWidth: CGFloat
78 | switch connection.videoOrientation {
| `- error: 'videoOrientation' is unavailable in visionOS
79 | case .portrait:
80 | viewHeight = size.width
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:1111:48: note: 'videoOrientation' has been explicitly marked unavailable here
1109 | This property is deprecated. Use -videoRotationAngle instead. This property may only be set if -isVideoOrientationSupported returns YES, otherwise an NSInvalidArgumentException is thrown.
1110 | */
1111 | @property(nonatomic) AVCaptureVideoOrientation videoOrientation API_DEPRECATED("Use -videoRotationAngle instead", macos(10.7, 14.0), ios(4.0, 17.0), macCatalyst(14.0, 17.0)) API_UNAVAILABLE(tvos, visionos);
| `- note: 'videoOrientation' has been explicitly marked unavailable here
1112 |
1113 | /*!
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+AudioQueueCapture.swift (in target 'VideoIO' from project 'VideoIO')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Camera+AudioQueueCapture.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+FocusExposure.swift (in target 'VideoIO' from project 'VideoIO')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Camera+FocusExposure.swift
SwiftCompile normal arm64 Compiling\ PlayerVideoOutput.swift,\ SampleBufferUtilities.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/PlayerVideoOutput.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/SampleBufferUtilities.swift (in target 'VideoIO' from project 'VideoIO')
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/PlayerVideoOutput.swift:136:39: warning: 'tracks' was deprecated in visionOS 1.0: Use load(.tracks) instead [#DeprecatedDeclaration]
134 |
135 | var hasVideoTrack: Bool = false
136 | for track in playerItem.asset.tracks {
| `- warning: 'tracks' was deprecated in visionOS 1.0: Use load(.tracks) instead [#DeprecatedDeclaration]
137 | if track.mediaType == .video {
138 | hasVideoTrack = true
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/PlayerVideoOutput.swift (in target 'VideoIO' from project 'VideoIO')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile PlayerVideoOutput.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/SampleBufferUtilities.swift (in target 'VideoIO' from project 'VideoIO')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile SampleBufferUtilities.swift
SwiftCompile normal arm64 Compiling\ DeviceOrientationTracker.swift,\ MovieFileType.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/DeviceOrientationTracker.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/MovieFileType.swift (in target 'VideoIO' from project 'VideoIO')
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/DeviceOrientationTracker.swift:35:34: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
33 |
34 | // Access in main queue.
35 | public var videoOrientation: AVCaptureVideoOrientation = .portrait
| `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
36 |
37 | public weak var delegate: DeviceOrientationTrackerDelegate?
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:104:28: note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
102 |
103 | /// Constants indicating video orientation, for use with AVCaptureDeviceRotationCoordinator.
104 | typedef NS_ENUM(NSInteger, AVCaptureVideoOrientation) {
| `- note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
105 | /// Indicates that video should be oriented vertically, port on the bottom.
106 | AVCaptureVideoOrientationPortrait = 1,
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/DeviceOrientationTracker.swift (in target 'VideoIO' from project 'VideoIO')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile DeviceOrientationTracker.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/MovieFileType.swift (in target 'VideoIO' from project 'VideoIO')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile MovieFileType.swift
SwiftCompile normal arm64 Compiling\ AVAsset.swift,\ AssetExportSession.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AVAsset.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AssetExportSession.swift (in target 'VideoIO' from project 'VideoIO')
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AVAsset.swift:13:34: error: 'tracks(withMediaType:)' is unavailable in visionOS
11 | extension AVAsset {
12 | public var presentationVideoSize: CGSize? {
13 | if let videoTrack = self.tracks(withMediaType: AVMediaType.video).first {
| `- error: 'tracks(withMediaType:)' is unavailable in visionOS
14 | let size = videoTrack.naturalSize.applying(videoTrack.preferredTransform)
15 | return CGSize(width: abs(size.width), height: abs(size.height))
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVAsset.h:191:1: note: 'tracks(withMediaType:)' has been explicitly marked unavailable here
189 | ///
190 | /// - Returns: An NSArray of AVAssetTracks; may be empty if no tracks of the specified media type are available.
191 | - (NSArray<AVAssetTrack *> *)tracksWithMediaType:(AVMediaType)mediaType
| `- note: 'tracks(withMediaType:)' has been explicitly marked unavailable here
192 | #if __swift__
193 | API_DEPRECATED("Use loadTracks(withMediaType:) instead", macos(10.7, 13.0), ios(4.0, 16.0), tvos(9.0, 16.0), watchos(1.0, 9.0)) API_UNAVAILABLE(visionos);
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AVAsset.swift:14:35: warning: 'naturalSize' was deprecated in visionOS 1.0: Use load(.naturalSize) instead [#DeprecatedDeclaration]
12 | public var presentationVideoSize: CGSize? {
13 | if let videoTrack = self.tracks(withMediaType: AVMediaType.video).first {
14 | let size = videoTrack.naturalSize.applying(videoTrack.preferredTransform)
| `- warning: 'naturalSize' was deprecated in visionOS 1.0: Use load(.naturalSize) instead [#DeprecatedDeclaration]
15 | return CGSize(width: abs(size.width), height: abs(size.height))
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AVAsset.swift:14:67: warning: 'preferredTransform' was deprecated in visionOS 1.0: Use load(.preferredTransform) instead [#DeprecatedDeclaration]
12 | public var presentationVideoSize: CGSize? {
13 | if let videoTrack = self.tracks(withMediaType: AVMediaType.video).first {
14 | let size = videoTrack.naturalSize.applying(videoTrack.preferredTransform)
| `- warning: 'preferredTransform' was deprecated in visionOS 1.0: Use load(.preferredTransform) instead [#DeprecatedDeclaration]
15 | return CGSize(width: abs(size.width), height: abs(size.height))
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AVAsset.swift:20:34: error: 'tracks(withMediaType:)' is unavailable in visionOS
18 | }
19 | public var naturalVideoSize: CGSize? {
20 | if let videoTrack = self.tracks(withMediaType: AVMediaType.video).first {
| `- error: 'tracks(withMediaType:)' is unavailable in visionOS
21 | return videoTrack.naturalSize
22 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVAsset.h:191:1: note: 'tracks(withMediaType:)' has been explicitly marked unavailable here
189 | ///
190 | /// - Returns: An NSArray of AVAssetTracks; may be empty if no tracks of the specified media type are available.
191 | - (NSArray<AVAssetTrack *> *)tracksWithMediaType:(AVMediaType)mediaType
| `- note: 'tracks(withMediaType:)' has been explicitly marked unavailable here
192 | #if __swift__
193 | API_DEPRECATED("Use loadTracks(withMediaType:) instead", macos(10.7, 13.0), ios(4.0, 16.0), tvos(9.0, 16.0), watchos(1.0, 9.0)) API_UNAVAILABLE(visionos);
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AVAsset.swift:21:31: warning: 'naturalSize' was deprecated in visionOS 1.0: Use load(.naturalSize) instead [#DeprecatedDeclaration]
19 | public var naturalVideoSize: CGSize? {
20 | if let videoTrack = self.tracks(withMediaType: AVMediaType.video).first {
21 | return videoTrack.naturalSize
| `- warning: 'naturalSize' was deprecated in visionOS 1.0: Use load(.naturalSize) instead [#DeprecatedDeclaration]
22 | }
23 | return nil
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AssetExportSession.swift:216:18: warning: class 'ExportProgress' must restate inherited '@unchecked Sendable' conformance
214 |
215 |
216 | public class ExportProgress: Progress {
| `- warning: class 'ExportProgress' must restate inherited '@unchecked Sendable' conformance
217 | public let videoEncodingProgress: Progress?
218 | public let audioEncodingProgress: Progress?
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AssetExportSession.swift:97:40: warning: 'duration' was deprecated in visionOS 1.0: Use load(.duration) instead [#DeprecatedDeclaration]
95 | self.duration = configuration.timeRange.duration
96 | } else {
97 | self.duration = self.asset.duration
| `- warning: 'duration' was deprecated in visionOS 1.0: Use load(.duration) instead [#DeprecatedDeclaration]
98 | }
99 |
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AssetExportSession.swift:100:38: error: 'tracks(withMediaType:)' is unavailable in visionOS
98 | }
99 |
100 | let videoTracks = self.asset.tracks(withMediaType: .video)
| `- error: 'tracks(withMediaType:)' is unavailable in visionOS
101 | if (videoTracks.count > 0) {
102 | let videoOutput: AVAssetReaderOutput
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVAsset.h:191:1: note: 'tracks(withMediaType:)' has been explicitly marked unavailable here
189 | ///
190 | /// - Returns: An NSArray of AVAssetTracks; may be empty if no tracks of the specified media type are available.
191 | - (NSArray<AVAssetTrack *> *)tracksWithMediaType:(AVMediaType)mediaType
| `- note: 'tracks(withMediaType:)' has been explicitly marked unavailable here
192 | #if __swift__
193 | API_DEPRECATED("Use loadTracks(withMediaType:) instead", macos(10.7, 13.0), ios(4.0, 16.0), tvos(9.0, 16.0), watchos(1.0, 9.0)) API_UNAVAILABLE(visionos);
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AssetExportSession.swift:112:43: warning: 'hasMediaCharacteristic' was deprecated in visionOS 1.0: Use load(.mediaCharacteristics) instead [#DeprecatedDeclaration]
110 | } else {
111 | if #available(iOS 13.0, tvOS 13.0, macOS 10.15, *) {
112 | if videoTracks.first!.hasMediaCharacteristic(.containsAlphaChannel) {
| `- warning: 'hasMediaCharacteristic' was deprecated in visionOS 1.0: Use load(.mediaCharacteristics) instead [#DeprecatedDeclaration]
113 | videoOutput = AVAssetReaderTrackOutput(track: videoTracks.first!, outputSettings: [kCVPixelBufferPixelFormatTypeKey as String: kCVPixelFormatType_32BGRA])
114 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AssetExportSession.swift:121:53: warning: 'preferredTransform' was deprecated in visionOS 1.0: Use load(.preferredTransform) instead [#DeprecatedDeclaration]
119 | }
120 | videoOutput.alwaysCopiesSampleData = false
121 | inputTransform = videoTracks.first!.preferredTransform
| `- warning: 'preferredTransform' was deprecated in visionOS 1.0: Use load(.preferredTransform) instead [#DeprecatedDeclaration]
122 | }
123 | if self.reader.canAdd(videoOutput) {
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AVAsset.swift (in target 'VideoIO' from project 'VideoIO')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile AVAsset.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AssetExportSession.swift (in target 'VideoIO' from project 'VideoIO')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile AssetExportSession.swift
SwiftCompile normal arm64 Compiling\ UnfairLock.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/UnfairLock.swift (in target 'VideoIO' from project 'VideoIO')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/UnfairLock.swift (in target 'VideoIO' from project 'VideoIO')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile UnfairLock.swift
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
2026-09-19 04:01:30.019 xcodebuild[650:4198] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
** BUILD FAILED **
The following build commands failed:
SwiftCompile normal arm64 (in target 'VideoIO' from project 'VideoIO')
SwiftEmitModule normal arm64 Emitting\ module\ for\ VideoIO (in target 'VideoIO' from project 'VideoIO')
Building workspace VideoIO with scheme VideoIO
(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:
VideoIO: /Users/admin/builder/spi-builder-workspace
resolved source packages: VideoIO
2026-09-19 04:01:37.698 xcodebuild[754:4617] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
{
"dependencies" : [
],
"manifest_display_name" : "VideoIO",
"name" : "VideoIO",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "10.0"
},
{
"name" : "macos",
"version" : "10.13"
},
{
"name" : "tvos",
"version" : "10.0"
}
],
"products" : [
{
"name" : "VideoIO",
"targets" : [
"VideoIO"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "VideoIOTests",
"module_type" : "SwiftTarget",
"name" : "VideoIOTests",
"path" : "Tests/VideoIOTests",
"sources" : [
"VideoIOTests.swift"
],
"target_dependencies" : [
"VideoIO"
],
"type" : "test"
},
{
"c99name" : "VideoIO",
"module_type" : "SwiftTarget",
"name" : "VideoIO",
"path" : "Sources/VideoIO",
"product_memberships" : [
"VideoIO"
],
"sources" : [
"AVAsset.swift",
"AssetExportSession.swift",
"AudioQueueCaptureSession.swift",
"AudioVideoSettings.swift",
"Camera+AudioQueueCapture.swift",
"Camera+FocusExposure.swift",
"Camera+PhotoCapture.swift",
"Camera.swift",
"DeviceOrientationTracker.swift",
"MovieFileType.swift",
"MovieMerger.swift",
"MultitrackMovieRecorder.swift",
"PlayerVideoOutput.swift",
"SampleBufferUtilities.swift",
"UnfairLock.swift",
"VideoComposition.swift",
"VideoOrientationUtilities.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
{
"workspace" : {
"name" : "VideoIO",
"schemes" : [
"VideoIO"
]
}
}
2026-09-19 04:01:38.920 xcodebuild[762:4683] [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 VideoIO -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 VideoIO -destination generic/platform=xrOS
Resolve Package Graph
Resolved source packages:
VideoIO: /Users/admin/builder/spi-builder-workspace
ComputePackagePrebuildTargetDependencyGraph
Prepare packages
CreateBuildRequest
SendProjectDescription
CreateBuildOperation
ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (2 targets)
Target 'VideoIO-product' in project 'VideoIO'
➜ Explicit dependency on target 'VideoIO' in project 'VideoIO'
Target 'VideoIO' in project 'VideoIO' (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 VideoIO normal arm64 com.apple.xcode.tools.swift.compiler (in target 'VideoIO' from project 'VideoIO')
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 VideoIO -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/VideoIO.build/Debug-xros/VideoIO-t.build/Objects-normal/arm64/VideoIO.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -DXcode -plugin-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk -target arm64-apple-xros1.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -profile-coverage-mapping -profile-generate -enable-testing -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -swift-version 5 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/xros27.0-24M361-e829b21a6f8c9b70876ba0858053c044735bd543db762f57723cac368afd1ce4.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/VideoIO.build/Debug-xros/VideoIO-t.build/Objects-normal/arm64/VideoIO-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/VideoIO.build/Debug-xros/VideoIO-t.build/Objects-normal/arm64/VideoIO.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/VideoIO.build/Debug-xros/VideoIO-t.build/Objects-normal/arm64/VideoIO-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/VideoIO.build/Debug-xros/VideoIO-t.build/Objects-normal/arm64/VideoIO_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/VideoIO.build/Debug-xros/VideoIO-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/VideoIO.build/Debug-xros/VideoIO-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/VideoIO.build/Debug-xros/VideoIO-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/VideoIO.build/Debug-xros/VideoIO-t.build/Objects-normal/arm64/VideoIO-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftCompile normal arm64 Compiling\ AudioQueueCaptureSession.swift,\ AudioVideoSettings.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AudioQueueCaptureSession.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AudioVideoSettings.swift (in target 'VideoIO' from project 'VideoIO')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AudioQueueCaptureSession.swift (in target 'VideoIO' from project 'VideoIO')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile AudioQueueCaptureSession.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AudioVideoSettings.swift (in target 'VideoIO' from project 'VideoIO')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile AudioVideoSettings.swift
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AudioVideoSettings.swift:12:1: warning: extension declares a conformance of imported type 'AVVideoCodecType' to imported protocols 'Decodable', 'Encodable'; this will not behave correctly if the owners of 'AVFoundation' introduce this conformance in the future
10 | import VideoToolbox
11 |
12 | extension AVVideoCodecType: Codable {
| |- warning: extension declares a conformance of imported type 'AVVideoCodecType' to imported protocols 'Decodable', 'Encodable'; this will not behave correctly if the owners of 'AVFoundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
13 |
14 | }
SwiftCompile normal arm64 Compiling\ Camera+PhotoCapture.swift,\ Camera.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+PhotoCapture.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift (in target 'VideoIO' from project 'VideoIO')
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+PhotoCapture.swift:20:40: error: 'AVCaptureResolvedPhotoSettings' is unavailable in visionOS
18 | @available(macCatalyst 14.0, *)
19 | private class PhotoCaptureDelegateHandler: NSObject, AVCapturePhotoCaptureDelegate {
20 | var willBeginCaptureHandler: ((AVCaptureResolvedPhotoSettings) -> Void)?
| `- error: 'AVCaptureResolvedPhotoSettings' is unavailable in visionOS
21 | var didFinishProcessingHandler: ((Result<AVCapturePhoto, Swift.Error>) -> Void)?
22 | func photoOutput(_ output: AVCapturePhotoOutput, willBeginCaptureFor resolvedSettings: AVCaptureResolvedPhotoSettings) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:1788:12: note: 'AVCaptureResolvedPhotoSettings' has been explicitly marked unavailable here
1786 | */
1787 | API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
1788 | @interface AVCaptureResolvedPhotoSettings : NSObject
| `- note: 'AVCaptureResolvedPhotoSettings' has been explicitly marked unavailable here
1789 | {
1790 | @private
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+PhotoCapture.swift:21:50: error: 'AVCapturePhoto' is unavailable in visionOS
19 | private class PhotoCaptureDelegateHandler: NSObject, AVCapturePhotoCaptureDelegate {
20 | var willBeginCaptureHandler: ((AVCaptureResolvedPhotoSettings) -> Void)?
21 | var didFinishProcessingHandler: ((Result<AVCapturePhoto, Swift.Error>) -> Void)?
| `- error: 'AVCapturePhoto' is unavailable in visionOS
22 | func photoOutput(_ output: AVCapturePhotoOutput, willBeginCaptureFor resolvedSettings: AVCaptureResolvedPhotoSettings) {
23 | self.willBeginCaptureHandler?(resolvedSettings)
/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/VideoIO/Camera+PhotoCapture.swift:22:36: error: 'AVCapturePhotoOutput' is unavailable in visionOS
20 | var willBeginCaptureHandler: ((AVCaptureResolvedPhotoSettings) -> Void)?
21 | var didFinishProcessingHandler: ((Result<AVCapturePhoto, Swift.Error>) -> Void)?
22 | func photoOutput(_ output: AVCapturePhotoOutput, willBeginCaptureFor resolvedSettings: AVCaptureResolvedPhotoSettings) {
| `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
23 | self.willBeginCaptureHandler?(resolvedSettings)
24 | }
/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/VideoIO/Camera+PhotoCapture.swift:22:96: error: 'AVCaptureResolvedPhotoSettings' is unavailable in visionOS
20 | var willBeginCaptureHandler: ((AVCaptureResolvedPhotoSettings) -> Void)?
21 | var didFinishProcessingHandler: ((Result<AVCapturePhoto, Swift.Error>) -> Void)?
22 | func photoOutput(_ output: AVCapturePhotoOutput, willBeginCaptureFor resolvedSettings: AVCaptureResolvedPhotoSettings) {
| `- error: 'AVCaptureResolvedPhotoSettings' is unavailable in visionOS
23 | self.willBeginCaptureHandler?(resolvedSettings)
24 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:1788:12: note: 'AVCaptureResolvedPhotoSettings' has been explicitly marked unavailable here
1786 | */
1787 | API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
1788 | @interface AVCaptureResolvedPhotoSettings : NSObject
| `- note: 'AVCaptureResolvedPhotoSettings' has been explicitly marked unavailable here
1789 | {
1790 | @private
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+PhotoCapture.swift:25:36: error: 'AVCapturePhotoOutput' is unavailable in visionOS
23 | self.willBeginCaptureHandler?(resolvedSettings)
24 | }
25 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Swift.Error?) {
| `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
26 | if let error = error {
27 | self.didFinishProcessingHandler?(.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/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/VideoIO/Camera+PhotoCapture.swift:25:90: error: 'AVCapturePhoto' is unavailable in visionOS
23 | self.willBeginCaptureHandler?(resolvedSettings)
24 | }
25 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Swift.Error?) {
| `- error: 'AVCapturePhoto' is unavailable in visionOS
26 | if let error = error {
27 | self.didFinishProcessingHandler?(.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/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/VideoIO/Camera+PhotoCapture.swift:19:58: error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
17 | @available(iOS 11.0, *)
18 | @available(macCatalyst 14.0, *)
19 | private class PhotoCaptureDelegateHandler: NSObject, AVCapturePhotoCaptureDelegate {
| `- error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
20 | var willBeginCaptureHandler: ((AVCaptureResolvedPhotoSettings) -> Void)?
21 | var didFinishProcessingHandler: ((Result<AVCapturePhoto, Swift.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: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/VideoIO/Camera+PhotoCapture.swift:25:14: error: cannot override 'photoOutput' which has been marked unavailable
23 | self.willBeginCaptureHandler?(resolvedSettings)
24 | }
25 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Swift.Error?) {
| `- error: cannot override 'photoOutput' which has been marked unavailable
26 | if let error = error {
27 | self.didFinishProcessingHandler?(.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/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/VideoIO/Camera+PhotoCapture.swift:36:45: error: 'AVCapturePhotoSettings' is unavailable in visionOS
34 | @available(iOS 11.0, *)
35 | @available(macCatalyst 14.0, *)
36 | public func capturePhoto(with settings: AVCapturePhotoSettings,
| `- error: 'AVCapturePhotoSettings' is unavailable in visionOS
37 | willBeginCaptureHandler: ((AVCaptureResolvedPhotoSettings) -> Void)? = nil,
38 | didFinishProcessingHandler: @escaping (Result<AVCapturePhoto, Swift.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: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/VideoIO/Camera+PhotoCapture.swift:37:57: error: 'AVCaptureResolvedPhotoSettings' is unavailable in visionOS
35 | @available(macCatalyst 14.0, *)
36 | public func capturePhoto(with settings: AVCapturePhotoSettings,
37 | willBeginCaptureHandler: ((AVCaptureResolvedPhotoSettings) -> Void)? = nil,
| `- error: 'AVCaptureResolvedPhotoSettings' is unavailable in visionOS
38 | didFinishProcessingHandler: @escaping (Result<AVCapturePhoto, Swift.Error>) -> Void) {
39 | assert(self.photoOutput != 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/AVCapturePhotoOutput.h:1788:12: note: 'AVCaptureResolvedPhotoSettings' has been explicitly marked unavailable here
1786 | */
1787 | API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
1788 | @interface AVCaptureResolvedPhotoSettings : NSObject
| `- note: 'AVCaptureResolvedPhotoSettings' has been explicitly marked unavailable here
1789 | {
1790 | @private
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+PhotoCapture.swift:38:76: error: 'AVCapturePhoto' is unavailable in visionOS
36 | public func capturePhoto(with settings: AVCapturePhotoSettings,
37 | willBeginCaptureHandler: ((AVCaptureResolvedPhotoSettings) -> Void)? = nil,
38 | didFinishProcessingHandler: @escaping (Result<AVCapturePhoto, Swift.Error>) -> Void) {
| `- error: 'AVCapturePhoto' is unavailable in visionOS
39 | assert(self.photoOutput != nil)
40 | guard let photoOutput = self.photoOutput else { return }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h: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/VideoIO/Camera+PhotoCapture.swift:52:45: error: 'AVCapturePhotoSettings' is unavailable in visionOS
50 | }
51 |
52 | public func capturePhoto(with settings: AVCapturePhotoSettings, delegate: AVCapturePhotoCaptureDelegate) {
| `- error: 'AVCapturePhotoSettings' is unavailable in visionOS
53 | assert(self.photoOutput != nil)
54 | self.photoOutput?.capturePhoto(with: settings, delegate: delegate)
/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/VideoIO/Camera+PhotoCapture.swift:52:79: error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
50 | }
51 |
52 | public func capturePhoto(with settings: AVCapturePhotoSettings, delegate: AVCapturePhotoCaptureDelegate) {
| `- error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
53 | assert(self.photoOutput != nil)
54 | self.photoOutput?.capturePhoto(with: settings, delegate: delegate)
/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/VideoIO/Camera.swift:32:28: error: 'videoOrientation' is unavailable in visionOS
30 | var configurator = Configurator()
31 | configurator.videoConnectionConfigurator = { camera, connection in
32 | connection.videoOrientation = .portrait
| `- error: 'videoOrientation' is unavailable in visionOS
33 | if camera.videoDevice?.position == .front {
34 | connection.isVideoMirrored = true
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:1111:48: note: 'videoOrientation' has been explicitly marked unavailable here
1109 | This property is deprecated. Use -videoRotationAngle instead. This property may only be set if -isVideoOrientationSupported returns YES, otherwise an NSInvalidArgumentException is thrown.
1110 | */
1111 | @property(nonatomic) AVCaptureVideoOrientation videoOrientation API_DEPRECATED("Use -videoRotationAngle instead", macos(10.7, 14.0), ios(4.0, 17.0), macCatalyst(14.0, 17.0)) API_UNAVAILABLE(tvos, visionos);
| `- note: 'videoOrientation' has been explicitly marked unavailable here
1112 |
1113 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift:48:29: error: 'AVCapturePhotoOutput' is unavailable in visionOS
46 | public let captureSession: AVCaptureSession
47 |
48 | public let photoOutput: AVCapturePhotoOutput?
| `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
49 |
50 | private let configurator: Configurator
/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/VideoIO/Camera.swift:54:56: error: 'Preset' is unavailable in visionOS
52 | private let defaultCameraPosition: AVCaptureDevice.Position
53 |
54 | public init(captureSessionPreset: AVCaptureSession.Preset, defaultCameraPosition: AVCaptureDevice.Position = .back, configurator: Configurator = Configurator()) {
| `- error: 'Preset' is unavailable in visionOS
55 | let captureSession = AVCaptureSession()
56 | assert(captureSession.canSetSessionPreset(captureSessionPreset))
/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/VideoIO/Camera.swift:100:124: error: 'DeviceType' is only available in visionOS 2.1 or newer
98 | }
99 |
100 | public func switchToVideoCaptureDevice(with position: AVCaptureDevice.Position, preferredDeviceTypes: [AVCaptureDevice.DeviceType] = []) throws {
| | `- error: 'DeviceType' is only available in visionOS 2.1 or newer
| `- note: add '@available' attribute to enclosing instance method
101 | let deviceTypes: [AVCaptureDevice.DeviceType]
102 | if preferredDeviceTypes.count == 0 {
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift:195:46: error: 'AVCaptureAudioDataOutput' is unavailable in visionOS
193 | }
194 |
195 | public private(set) var audioDataOutput: AVCaptureAudioDataOutput?
| `- error: 'AVCaptureAudioDataOutput' is unavailable in visionOS
196 |
197 | public func enableAudioDataOutput(on queue: DispatchQueue = .main, delegate: AVCaptureAudioDataOutputSampleBufferDelegate) throws {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureAudioDataOutput.h:30:12: note: 'AVCaptureAudioDataOutput' has been explicitly marked unavailable here
28 | */
29 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
30 | @interface AVCaptureAudioDataOutput : AVCaptureOutput
| `- note: 'AVCaptureAudioDataOutput' has been explicitly marked unavailable here
31 | {
32 | @private
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift:197:82: error: 'AVCaptureAudioDataOutputSampleBufferDelegate' is unavailable in visionOS
195 | public private(set) var audioDataOutput: AVCaptureAudioDataOutput?
196 |
197 | public func enableAudioDataOutput(on queue: DispatchQueue = .main, delegate: AVCaptureAudioDataOutputSampleBufferDelegate) throws {
| `- error: 'AVCaptureAudioDataOutputSampleBufferDelegate' is unavailable in visionOS
198 | self.captureSession.beginConfiguration()
199 | defer {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureAudioDataOutput.h:128:11: note: 'AVCaptureAudioDataOutputSampleBufferDelegate' has been explicitly marked unavailable here
126 | */
127 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
128 | @protocol AVCaptureAudioDataOutputSampleBufferDelegate <NSObject>
| `- note: 'AVCaptureAudioDataOutputSampleBufferDelegate' has been explicitly marked unavailable here
129 |
130 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift:56:31: error: 'canSetSessionPreset' is unavailable in visionOS
54 | public init(captureSessionPreset: AVCaptureSession.Preset, defaultCameraPosition: AVCaptureDevice.Position = .back, configurator: Configurator = Configurator()) {
55 | let captureSession = AVCaptureSession()
56 | assert(captureSession.canSetSessionPreset(captureSessionPreset))
| `- error: 'canSetSessionPreset' is unavailable in visionOS
57 | captureSession.beginConfiguration()
58 | captureSession.sessionPreset = captureSessionPreset
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:156:1: note: 'canSetSessionPreset' has been explicitly marked unavailable here
154 | An AVCaptureSession instance can be associated with a preset that configures its inputs and outputs to fulfill common use cases. This method can be used to determine if the receiver supports the desired preset given its current input and output configuration. The receiver's sessionPreset property may only be set to a certain preset if this method returns YES for that preset.
155 | */
156 | - (BOOL)canSetSessionPreset:(AVCaptureSessionPreset)preset API_UNAVAILABLE(visionos);
| `- note: 'canSetSessionPreset' has been explicitly marked unavailable here
157 |
158 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift:58:24: error: 'sessionPreset' is unavailable in visionOS
56 | assert(captureSession.canSetSessionPreset(captureSessionPreset))
57 | captureSession.beginConfiguration()
58 | captureSession.sessionPreset = captureSessionPreset
| `- error: 'sessionPreset' is unavailable in visionOS
59 | let photoOutput = AVCapturePhotoOutput()
60 | if captureSession.canAddOutput(photoOutput) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:166:51: note: 'sessionPreset' has been explicitly marked unavailable here
164 | The value of this property is an AVCaptureSessionPreset indicating the current session preset in use by the receiver. The sessionPreset property may be set while the receiver is running.
165 | */
166 | @property(nonatomic, copy) AVCaptureSessionPreset sessionPreset API_UNAVAILABLE(visionos);
| `- note: 'sessionPreset' has been explicitly marked unavailable here
167 |
168 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift:59:27: error: 'AVCapturePhotoOutput' is unavailable in visionOS
57 | captureSession.beginConfiguration()
58 | captureSession.sessionPreset = captureSessionPreset
59 | let photoOutput = AVCapturePhotoOutput()
| `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
60 | if captureSession.canAddOutput(photoOutput) {
61 | captureSession.addOutput(photoOutput)
/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/VideoIO/Camera.swift:101:43: error: 'DeviceType' is only available in visionOS 2.1 or newer
98 | }
99 |
100 | public func switchToVideoCaptureDevice(with position: AVCaptureDevice.Position, preferredDeviceTypes: [AVCaptureDevice.DeviceType] = []) throws {
| `- note: add '@available' attribute to enclosing instance method
101 | let deviceTypes: [AVCaptureDevice.DeviceType]
| |- error: 'DeviceType' is only available in visionOS 2.1 or newer
| `- note: add 'if #available' version check
102 | if preferredDeviceTypes.count == 0 {
103 | #if os(macOS)
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift:109:33: error: 'builtInDualWideCamera' is unavailable in visionOS
107 | #else
108 | if #available(iOS 13.0, *) {
109 | deviceTypes = [.builtInDualWideCamera, .builtInDualCamera, .builtInTrueDepthCamera, .builtInWideAngleCamera]
| `- error: 'builtInDualWideCamera' is unavailable in visionOS
110 | } else if #available(iOS 11.1, *) {
111 | deviceTypes = [.builtInDualCamera, .builtInTrueDepthCamera, .builtInWideAngleCamera]
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:611:38: note: 'builtInDualWideCamera' has been explicitly marked unavailable here
609 | Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.
610 | */
611 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInDualWideCamera API_AVAILABLE(ios(13.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
| `- note: 'builtInDualWideCamera' has been explicitly marked unavailable here
612 |
613 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift:109:57: error: 'builtInDualCamera' is unavailable in visionOS
107 | #else
108 | if #available(iOS 13.0, *) {
109 | deviceTypes = [.builtInDualWideCamera, .builtInDualCamera, .builtInTrueDepthCamera, .builtInWideAngleCamera]
| `- error: 'builtInDualCamera' is unavailable in visionOS
110 | } else if #available(iOS 11.1, *) {
111 | deviceTypes = [.builtInDualCamera, .builtInTrueDepthCamera, .builtInWideAngleCamera]
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:593:38: note: 'builtInDualCamera' has been explicitly marked unavailable here
591 | Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.
592 | */
593 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInDualCamera API_AVAILABLE(ios(10.2), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
| `- note: 'builtInDualCamera' has been explicitly marked unavailable here
594 |
595 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift:109:77: error: 'builtInTrueDepthCamera' is unavailable in visionOS
107 | #else
108 | if #available(iOS 13.0, *) {
109 | deviceTypes = [.builtInDualWideCamera, .builtInDualCamera, .builtInTrueDepthCamera, .builtInWideAngleCamera]
| `- error: 'builtInTrueDepthCamera' is unavailable in visionOS
110 | } else if #available(iOS 11.1, *) {
111 | deviceTypes = [.builtInDualCamera, .builtInTrueDepthCamera, .builtInWideAngleCamera]
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:634:38: note: 'builtInTrueDepthCamera' has been explicitly marked unavailable here
632 | A device that consists of two cameras, one YUV and one Infrared. The infrared camera provides high quality depth information that is synchronized and perspective corrected to frames produced by the YUV camera. While the resolution of the depth data and YUV frames may differ, their field of view and aspect ratio always match. Note that devices of this type may only be discovered using an AVCaptureDeviceDiscoverySession or -[AVCaptureDevice defaultDeviceWithDeviceType:mediaType:position:].
633 | */
634 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInTrueDepthCamera API_AVAILABLE(ios(11.1), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
| `- note: 'builtInTrueDepthCamera' has been explicitly marked unavailable here
635 |
636 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift:109:102: error: 'builtInWideAngleCamera' is only available in visionOS 2.1 or newer
98 | }
99 |
100 | public func switchToVideoCaptureDevice(with position: AVCaptureDevice.Position, preferredDeviceTypes: [AVCaptureDevice.DeviceType] = []) throws {
| `- note: add '@available' attribute to enclosing instance method
101 | let deviceTypes: [AVCaptureDevice.DeviceType]
102 | if preferredDeviceTypes.count == 0 {
:
107 | #else
108 | if #available(iOS 13.0, *) {
109 | deviceTypes = [.builtInDualWideCamera, .builtInDualCamera, .builtInTrueDepthCamera, .builtInWideAngleCamera]
| |- error: 'builtInWideAngleCamera' is only available in visionOS 2.1 or newer
| `- note: add 'if #available' version check
110 | } else if #available(iOS 11.1, *) {
111 | deviceTypes = [.builtInDualCamera, .builtInTrueDepthCamera, .builtInWideAngleCamera]
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift:111:33: error: 'builtInDualCamera' is unavailable in visionOS
109 | deviceTypes = [.builtInDualWideCamera, .builtInDualCamera, .builtInTrueDepthCamera, .builtInWideAngleCamera]
110 | } else if #available(iOS 11.1, *) {
111 | deviceTypes = [.builtInDualCamera, .builtInTrueDepthCamera, .builtInWideAngleCamera]
| `- error: 'builtInDualCamera' is unavailable in visionOS
112 | } else if #available(iOS 10.2, *) {
113 | deviceTypes = [.builtInDualCamera, .builtInWideAngleCamera]
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:593:38: note: 'builtInDualCamera' has been explicitly marked unavailable here
591 | Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.
592 | */
593 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInDualCamera API_AVAILABLE(ios(10.2), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
| `- note: 'builtInDualCamera' has been explicitly marked unavailable here
594 |
595 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift:111:53: error: 'builtInTrueDepthCamera' is unavailable in visionOS
109 | deviceTypes = [.builtInDualWideCamera, .builtInDualCamera, .builtInTrueDepthCamera, .builtInWideAngleCamera]
110 | } else if #available(iOS 11.1, *) {
111 | deviceTypes = [.builtInDualCamera, .builtInTrueDepthCamera, .builtInWideAngleCamera]
| `- error: 'builtInTrueDepthCamera' is unavailable in visionOS
112 | } else if #available(iOS 10.2, *) {
113 | deviceTypes = [.builtInDualCamera, .builtInWideAngleCamera]
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:634:38: note: 'builtInTrueDepthCamera' has been explicitly marked unavailable here
632 | A device that consists of two cameras, one YUV and one Infrared. The infrared camera provides high quality depth information that is synchronized and perspective corrected to frames produced by the YUV camera. While the resolution of the depth data and YUV frames may differ, their field of view and aspect ratio always match. Note that devices of this type may only be discovered using an AVCaptureDeviceDiscoverySession or -[AVCaptureDevice defaultDeviceWithDeviceType:mediaType:position:].
633 | */
634 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInTrueDepthCamera API_AVAILABLE(ios(11.1), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
| `- note: 'builtInTrueDepthCamera' has been explicitly marked unavailable here
635 |
636 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift:113:33: error: 'builtInDualCamera' is unavailable in visionOS
111 | deviceTypes = [.builtInDualCamera, .builtInTrueDepthCamera, .builtInWideAngleCamera]
112 | } else if #available(iOS 10.2, *) {
113 | deviceTypes = [.builtInDualCamera, .builtInWideAngleCamera]
| `- error: 'builtInDualCamera' is unavailable in visionOS
114 | } else {
115 | deviceTypes = [.builtInWideAngleCamera]
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:593:38: note: 'builtInDualCamera' has been explicitly marked unavailable here
591 | Even when locked, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device switches from one camera to the other. The overall exposure, white balance, and focus position however should be consistent.
592 | */
593 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInDualCamera API_AVAILABLE(ios(10.2), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos) API_UNAVAILABLE(watchos);
| `- note: 'builtInDualCamera' has been explicitly marked unavailable here
594 |
595 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift:121:48: error: 'DiscoverySession' is only available in visionOS 2.1 or newer
98 | }
99 |
100 | public func switchToVideoCaptureDevice(with position: AVCaptureDevice.Position, preferredDeviceTypes: [AVCaptureDevice.DeviceType] = []) throws {
| `- note: add '@available' attribute to enclosing instance method
101 | let deviceTypes: [AVCaptureDevice.DeviceType]
102 | if preferredDeviceTypes.count == 0 {
:
119 | deviceTypes = preferredDeviceTypes
120 | }
121 | let discoverySession = AVCaptureDevice.DiscoverySession(deviceTypes: deviceTypes, mediaType: .video, position: position)
| |- error: 'DiscoverySession' is only available in visionOS 2.1 or newer
| `- note: add 'if #available' version check
122 | if let device = discoverySession.devices.first {
123 | let newVideoDeviceInput = try AVCaptureDeviceInput(device: device)
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift:203:45: error: 'default(for:)' is only available in visionOS 2.1 or newer
195 | public private(set) var audioDataOutput: AVCaptureAudioDataOutput?
196 |
197 | public func enableAudioDataOutput(on queue: DispatchQueue = .main, delegate: AVCaptureAudioDataOutputSampleBufferDelegate) throws {
| `- note: add '@available' attribute to enclosing instance method
198 | self.captureSession.beginConfiguration()
199 | defer {
:
201 | }
202 | if self.audioDeviceInput == nil {
203 | if let device = AVCaptureDevice.default(for: .audio), let audioDeviceInput = try? AVCaptureDeviceInput(device: device) {
| |- error: 'default(for:)' is only available in visionOS 2.1 or newer
| `- note: add 'if #available' version check
204 | if self.captureSession.canAddInput(audioDeviceInput) {
205 | self.captureSession.addInput(audioDeviceInput)
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+PhotoCapture.swift (in target 'VideoIO' from project 'VideoIO')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Camera+PhotoCapture.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift (in target 'VideoIO' from project 'VideoIO')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Camera.swift
SwiftCompile normal arm64 Compiling\ Camera+AudioQueueCapture.swift,\ Camera+FocusExposure.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+AudioQueueCapture.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+FocusExposure.swift (in target 'VideoIO' from project 'VideoIO')
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+FocusExposure.swift:16:101: error: 'FocusMode' is unavailable in visionOS
14 | extension Camera {
15 | @available(macOS, unavailable)
16 | public func setFocusExposurePointOfInterest(to devicePoint: CGPoint, focusMode: AVCaptureDevice.FocusMode = .continuousAutoFocus, exposureMode: AVCaptureDevice.ExposureMode = .continuousAutoExposure, shouldMonitorSubjectAreaChange: Bool = false) throws {
| `- error: 'FocusMode' is unavailable in visionOS
17 | guard let videoDevice = self.videoDevice else {
18 | return
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:1156:28: note: 'FocusMode' has been explicitly marked unavailable here
1154 | Indicates that the device should automatically focus when needed.
1155 | */
1156 | typedef NS_ENUM(NSInteger, AVCaptureFocusMode) {
| `- note: 'FocusMode' has been explicitly marked unavailable here
1157 | AVCaptureFocusModeLocked = 0,
1158 | AVCaptureFocusModeAutoFocus = 1,
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+FocusExposure.swift:16:165: error: 'ExposureMode' is unavailable in visionOS
14 | extension Camera {
15 | @available(macOS, unavailable)
16 | public func setFocusExposurePointOfInterest(to devicePoint: CGPoint, focusMode: AVCaptureDevice.FocusMode = .continuousAutoFocus, exposureMode: AVCaptureDevice.ExposureMode = .continuousAutoExposure, shouldMonitorSubjectAreaChange: Bool = false) throws {
| `- error: 'ExposureMode' is unavailable in visionOS
17 | guard let videoDevice = self.videoDevice else {
18 | return
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:1422:28: note: 'ExposureMode' has been explicitly marked unavailable here
1420 | Indicates that the device should only adjust exposure according to user provided ISO, exposureDuration values.
1421 | */
1422 | typedef NS_ENUM(NSInteger, AVCaptureExposureMode) {
| `- note: 'ExposureMode' has been explicitly marked unavailable here
1423 | AVCaptureExposureModeLocked = 0,
1424 | AVCaptureExposureModeAutoExpose = 1,
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+FocusExposure.swift:33:101: error: 'FocusMode' is unavailable in visionOS
31 | }
32 |
33 | public func setFocusExposurePointOfInterest(to devicePoint: CGPoint, focusMode: AVCaptureDevice.FocusMode = .continuousAutoFocus, exposureMode: AVCaptureDevice.ExposureMode = .continuousAutoExposure) throws {
| `- error: 'FocusMode' is unavailable in visionOS
34 | guard let videoDevice = self.videoDevice else {
35 | return
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:1156:28: note: 'FocusMode' has been explicitly marked unavailable here
1154 | Indicates that the device should automatically focus when needed.
1155 | */
1156 | typedef NS_ENUM(NSInteger, AVCaptureFocusMode) {
| `- note: 'FocusMode' has been explicitly marked unavailable here
1157 | AVCaptureFocusModeLocked = 0,
1158 | AVCaptureFocusModeAutoFocus = 1,
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+FocusExposure.swift:33:165: error: 'ExposureMode' is unavailable in visionOS
31 | }
32 |
33 | public func setFocusExposurePointOfInterest(to devicePoint: CGPoint, focusMode: AVCaptureDevice.FocusMode = .continuousAutoFocus, exposureMode: AVCaptureDevice.ExposureMode = .continuousAutoExposure) throws {
| `- error: 'ExposureMode' is unavailable in visionOS
34 | guard let videoDevice = self.videoDevice else {
35 | return
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:1422:28: note: 'ExposureMode' has been explicitly marked unavailable here
1420 | Indicates that the device should only adjust exposure according to user provided ISO, exposureDuration values.
1421 | */
1422 | typedef NS_ENUM(NSInteger, AVCaptureExposureMode) {
| `- note: 'ExposureMode' has been explicitly marked unavailable here
1423 | AVCaptureExposureModeLocked = 0,
1424 | AVCaptureExposureModeAutoExpose = 1,
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+FocusExposure.swift:29:21: error: 'isSubjectAreaChangeMonitoringEnabled' is unavailable in visionOS
27 | videoDevice.exposureMode = exposureMode
28 | }
29 | videoDevice.isSubjectAreaChangeMonitoringEnabled = shouldMonitorSubjectAreaChange
| `- error: 'isSubjectAreaChangeMonitoringEnabled' is unavailable in visionOS
30 | videoDevice.unlockForConfiguration()
31 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:2012:72: note: 'isSubjectAreaChangeMonitoringEnabled' has been explicitly marked unavailable here
2010 | The value of this property is a BOOL indicating whether the receiver should monitor the video subject area for changes, such as lighting changes, substantial movement, etc. If subject area change monitoring is enabled, the receiver sends an AVCaptureDeviceSubjectAreaDidChangeNotification whenever it detects a change to the subject area, at which time an interested client may wish to re-focus, adjust exposure, white balance, etc. The receiver must be locked for configuration using lockForConfiguration: before clients can set the value of this property.
2011 | */
2012 | @property(nonatomic, getter=isSubjectAreaChangeMonitoringEnabled) BOOL subjectAreaChangeMonitoringEnabled API_AVAILABLE(ios(5.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
| `- note: 'isSubjectAreaChangeMonitoringEnabled' has been explicitly marked unavailable here
2013 |
2014 | @end
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+FocusExposure.swift:54:50: error: 'minExposureTargetBias' is unavailable in visionOS
52 | return
53 | }
54 | let targetBias = simd_clamp(bias, device.minExposureTargetBias, device.maxExposureTargetBias)
| `- error: 'minExposureTargetBias' is unavailable in visionOS
55 | if device.exposureTargetBias == targetBias { return }
56 | try device.lockForConfiguration()
/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:1678:38: note: 'minExposureTargetBias' has been explicitly marked unavailable here
1676 | This read-only property indicates the minimum supported exposure bias.
1677 | */
1678 | @property(nonatomic, readonly) float minExposureTargetBias API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
| `- note: 'minExposureTargetBias' has been explicitly marked unavailable here
1679 |
1680 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+FocusExposure.swift:54:80: error: 'maxExposureTargetBias' is unavailable in visionOS
52 | return
53 | }
54 | let targetBias = simd_clamp(bias, device.minExposureTargetBias, device.maxExposureTargetBias)
| `- error: 'maxExposureTargetBias' is unavailable in visionOS
55 | if device.exposureTargetBias == targetBias { return }
56 | try device.lockForConfiguration()
/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:1688:38: note: 'maxExposureTargetBias' has been explicitly marked unavailable here
1686 | This read-only property indicates the maximum supported exposure bias.
1687 | */
1688 | @property(nonatomic, readonly) float maxExposureTargetBias API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
| `- note: 'maxExposureTargetBias' has been explicitly marked unavailable here
1689 |
1690 | /*!
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+AudioQueueCapture.swift (in target 'VideoIO' from project 'VideoIO')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Camera+AudioQueueCapture.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+FocusExposure.swift (in target 'VideoIO' from project 'VideoIO')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Camera+FocusExposure.swift
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+FocusExposure.swift:55:19: error: 'exposureTargetBias' is unavailable in visionOS
53 | }
54 | let targetBias = simd_clamp(bias, device.minExposureTargetBias, device.maxExposureTargetBias)
55 | if device.exposureTargetBias == targetBias { return }
| `- error: 'exposureTargetBias' is unavailable in visionOS
56 | try device.lockForConfiguration()
57 | device.setExposureTargetBias(targetBias, completionHandler: completion)
/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:1668:38: note: 'exposureTargetBias' has been explicitly marked unavailable here
1666 | /// When the exposure mode is AVCaptureExposureModeCustom and none of the custom parameters are "Auto", bias is disabled and will only affect metering. In custom modes with "Auto" parameters, those parameters will be adjusted to apply the requested bias.
1667 | /// This property is key-value observable. It can be read at any time, but can only be set via setExposureTargetBias:completionHandler:.
1668 | @property(nonatomic, readonly) float exposureTargetBias API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
| `- note: 'exposureTargetBias' has been explicitly marked unavailable here
1669 |
1670 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+FocusExposure.swift:57:16: error: 'setExposureTargetBias(_:completionHandler:)' is unavailable in visionOS
55 | if device.exposureTargetBias == targetBias { return }
56 | try device.lockForConfiguration()
57 | device.setExposureTargetBias(targetBias, completionHandler: completion)
| `- error: 'setExposureTargetBias(_:completionHandler:)' is unavailable in visionOS
58 | device.unlockForConfiguration()
59 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:1709:1: note: 'setExposureTargetBias(_:completionHandler:)' has been explicitly marked unavailable here
1707 | This is the only way of setting exposureTargetBias. This method throws an NSRangeException if exposureTargetBias is set to an unsupported level. This method throws an NSGenericException if called without first obtaining exclusive access to the receiver using lockForConfiguration:.
1708 | */
1709 | - (void)setExposureTargetBias:(float)bias completionHandler:(nullable void (^)(CMTime syncTime))handler API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
| `- note: 'setExposureTargetBias(_:completionHandler:)' has been explicitly marked unavailable here
1710 |
1711 | /// Reports which characteristics the auto exposure system associates with the current scene. Auto exposure may adjust properties such as lens aperture size based on these factors. This property is key-value observable.
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+FocusExposure.swift:78:27: error: 'videoOrientation' is unavailable in visionOS
76 | var viewHeight: CGFloat
77 | var viewWidth: CGFloat
78 | switch connection.videoOrientation {
| `- error: 'videoOrientation' is unavailable in visionOS
79 | case .portrait:
80 | viewHeight = size.width
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:1111:48: note: 'videoOrientation' has been explicitly marked unavailable here
1109 | This property is deprecated. Use -videoRotationAngle instead. This property may only be set if -isVideoOrientationSupported returns YES, otherwise an NSInvalidArgumentException is thrown.
1110 | */
1111 | @property(nonatomic) AVCaptureVideoOrientation videoOrientation API_DEPRECATED("Use -videoRotationAngle instead", macos(10.7, 14.0), ios(4.0, 17.0), macCatalyst(14.0, 17.0)) API_UNAVAILABLE(tvos, visionos);
| `- note: 'videoOrientation' has been explicitly marked unavailable here
1112 |
1113 | /*!
SwiftEmitModule normal arm64 Emitting\ module\ for\ VideoIO (in target 'VideoIO' from project 'VideoIO')
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AssetExportSession.swift:216:18: warning: class 'ExportProgress' must restate inherited '@unchecked Sendable' conformance
214 |
215 |
216 | public class ExportProgress: Progress {
| `- warning: class 'ExportProgress' must restate inherited '@unchecked Sendable' conformance
217 | public let videoEncodingProgress: Progress?
218 | public let audioEncodingProgress: Progress?
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AudioVideoSettings.swift:12:1: warning: extension declares a conformance of imported type 'AVVideoCodecType' to imported protocols 'Decodable', 'Encodable'; this will not behave correctly if the owners of 'AVFoundation' introduce this conformance in the future
10 | import VideoToolbox
11 |
12 | extension AVVideoCodecType: Codable {
| |- warning: extension declares a conformance of imported type 'AVVideoCodecType' to imported protocols 'Decodable', 'Encodable'; this will not behave correctly if the owners of 'AVFoundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
13 |
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+FocusExposure.swift:16:101: error: 'FocusMode' is unavailable in visionOS
14 | extension Camera {
15 | @available(macOS, unavailable)
16 | public func setFocusExposurePointOfInterest(to devicePoint: CGPoint, focusMode: AVCaptureDevice.FocusMode = .continuousAutoFocus, exposureMode: AVCaptureDevice.ExposureMode = .continuousAutoExposure, shouldMonitorSubjectAreaChange: Bool = false) throws {
| `- error: 'FocusMode' is unavailable in visionOS
17 | guard let videoDevice = self.videoDevice else {
18 | return
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:1156:28: note: 'FocusMode' has been explicitly marked unavailable here
1154 | Indicates that the device should automatically focus when needed.
1155 | */
1156 | typedef NS_ENUM(NSInteger, AVCaptureFocusMode) {
| `- note: 'FocusMode' has been explicitly marked unavailable here
1157 | AVCaptureFocusModeLocked = 0,
1158 | AVCaptureFocusModeAutoFocus = 1,
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+FocusExposure.swift:16:165: error: 'ExposureMode' is unavailable in visionOS
14 | extension Camera {
15 | @available(macOS, unavailable)
16 | public func setFocusExposurePointOfInterest(to devicePoint: CGPoint, focusMode: AVCaptureDevice.FocusMode = .continuousAutoFocus, exposureMode: AVCaptureDevice.ExposureMode = .continuousAutoExposure, shouldMonitorSubjectAreaChange: Bool = false) throws {
| `- error: 'ExposureMode' is unavailable in visionOS
17 | guard let videoDevice = self.videoDevice else {
18 | return
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:1422:28: note: 'ExposureMode' has been explicitly marked unavailable here
1420 | Indicates that the device should only adjust exposure according to user provided ISO, exposureDuration values.
1421 | */
1422 | typedef NS_ENUM(NSInteger, AVCaptureExposureMode) {
| `- note: 'ExposureMode' has been explicitly marked unavailable here
1423 | AVCaptureExposureModeLocked = 0,
1424 | AVCaptureExposureModeAutoExpose = 1,
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+FocusExposure.swift:33:101: error: 'FocusMode' is unavailable in visionOS
31 | }
32 |
33 | public func setFocusExposurePointOfInterest(to devicePoint: CGPoint, focusMode: AVCaptureDevice.FocusMode = .continuousAutoFocus, exposureMode: AVCaptureDevice.ExposureMode = .continuousAutoExposure) throws {
| `- error: 'FocusMode' is unavailable in visionOS
34 | guard let videoDevice = self.videoDevice else {
35 | return
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:1156:28: note: 'FocusMode' has been explicitly marked unavailable here
1154 | Indicates that the device should automatically focus when needed.
1155 | */
1156 | typedef NS_ENUM(NSInteger, AVCaptureFocusMode) {
| `- note: 'FocusMode' has been explicitly marked unavailable here
1157 | AVCaptureFocusModeLocked = 0,
1158 | AVCaptureFocusModeAutoFocus = 1,
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+FocusExposure.swift:33:165: error: 'ExposureMode' is unavailable in visionOS
31 | }
32 |
33 | public func setFocusExposurePointOfInterest(to devicePoint: CGPoint, focusMode: AVCaptureDevice.FocusMode = .continuousAutoFocus, exposureMode: AVCaptureDevice.ExposureMode = .continuousAutoExposure) throws {
| `- error: 'ExposureMode' is unavailable in visionOS
34 | guard let videoDevice = self.videoDevice else {
35 | return
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:1422:28: note: 'ExposureMode' has been explicitly marked unavailable here
1420 | Indicates that the device should only adjust exposure according to user provided ISO, exposureDuration values.
1421 | */
1422 | typedef NS_ENUM(NSInteger, AVCaptureExposureMode) {
| `- note: 'ExposureMode' has been explicitly marked unavailable here
1423 | AVCaptureExposureModeLocked = 0,
1424 | AVCaptureExposureModeAutoExpose = 1,
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+PhotoCapture.swift:20:40: error: 'AVCaptureResolvedPhotoSettings' is unavailable in visionOS
18 | @available(macCatalyst 14.0, *)
19 | private class PhotoCaptureDelegateHandler: NSObject, AVCapturePhotoCaptureDelegate {
20 | var willBeginCaptureHandler: ((AVCaptureResolvedPhotoSettings) -> Void)?
| `- error: 'AVCaptureResolvedPhotoSettings' is unavailable in visionOS
21 | var didFinishProcessingHandler: ((Result<AVCapturePhoto, Swift.Error>) -> Void)?
22 | func photoOutput(_ output: AVCapturePhotoOutput, willBeginCaptureFor resolvedSettings: AVCaptureResolvedPhotoSettings) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:1788:12: note: 'AVCaptureResolvedPhotoSettings' has been explicitly marked unavailable here
1786 | */
1787 | API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
1788 | @interface AVCaptureResolvedPhotoSettings : NSObject
| `- note: 'AVCaptureResolvedPhotoSettings' has been explicitly marked unavailable here
1789 | {
1790 | @private
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+PhotoCapture.swift:21:50: error: 'AVCapturePhoto' is unavailable in visionOS
19 | private class PhotoCaptureDelegateHandler: NSObject, AVCapturePhotoCaptureDelegate {
20 | var willBeginCaptureHandler: ((AVCaptureResolvedPhotoSettings) -> Void)?
21 | var didFinishProcessingHandler: ((Result<AVCapturePhoto, Swift.Error>) -> Void)?
| `- error: 'AVCapturePhoto' is unavailable in visionOS
22 | func photoOutput(_ output: AVCapturePhotoOutput, willBeginCaptureFor resolvedSettings: AVCaptureResolvedPhotoSettings) {
23 | self.willBeginCaptureHandler?(resolvedSettings)
/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/VideoIO/Camera+PhotoCapture.swift:22:36: error: 'AVCapturePhotoOutput' is unavailable in visionOS
20 | var willBeginCaptureHandler: ((AVCaptureResolvedPhotoSettings) -> Void)?
21 | var didFinishProcessingHandler: ((Result<AVCapturePhoto, Swift.Error>) -> Void)?
22 | func photoOutput(_ output: AVCapturePhotoOutput, willBeginCaptureFor resolvedSettings: AVCaptureResolvedPhotoSettings) {
| `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
23 | self.willBeginCaptureHandler?(resolvedSettings)
24 | }
/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/VideoIO/Camera+PhotoCapture.swift:22:96: error: 'AVCaptureResolvedPhotoSettings' is unavailable in visionOS
20 | var willBeginCaptureHandler: ((AVCaptureResolvedPhotoSettings) -> Void)?
21 | var didFinishProcessingHandler: ((Result<AVCapturePhoto, Swift.Error>) -> Void)?
22 | func photoOutput(_ output: AVCapturePhotoOutput, willBeginCaptureFor resolvedSettings: AVCaptureResolvedPhotoSettings) {
| `- error: 'AVCaptureResolvedPhotoSettings' is unavailable in visionOS
23 | self.willBeginCaptureHandler?(resolvedSettings)
24 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:1788:12: note: 'AVCaptureResolvedPhotoSettings' has been explicitly marked unavailable here
1786 | */
1787 | API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
1788 | @interface AVCaptureResolvedPhotoSettings : NSObject
| `- note: 'AVCaptureResolvedPhotoSettings' has been explicitly marked unavailable here
1789 | {
1790 | @private
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+PhotoCapture.swift:25:36: error: 'AVCapturePhotoOutput' is unavailable in visionOS
23 | self.willBeginCaptureHandler?(resolvedSettings)
24 | }
25 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Swift.Error?) {
| `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
26 | if let error = error {
27 | self.didFinishProcessingHandler?(.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/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/VideoIO/Camera+PhotoCapture.swift:25:90: error: 'AVCapturePhoto' is unavailable in visionOS
23 | self.willBeginCaptureHandler?(resolvedSettings)
24 | }
25 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Swift.Error?) {
| `- error: 'AVCapturePhoto' is unavailable in visionOS
26 | if let error = error {
27 | self.didFinishProcessingHandler?(.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/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/VideoIO/Camera+PhotoCapture.swift:19:58: error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
17 | @available(iOS 11.0, *)
18 | @available(macCatalyst 14.0, *)
19 | private class PhotoCaptureDelegateHandler: NSObject, AVCapturePhotoCaptureDelegate {
| `- error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
20 | var willBeginCaptureHandler: ((AVCaptureResolvedPhotoSettings) -> Void)?
21 | var didFinishProcessingHandler: ((Result<AVCapturePhoto, Swift.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: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/VideoIO/Camera+PhotoCapture.swift:25:14: error: cannot override 'photoOutput' which has been marked unavailable
23 | self.willBeginCaptureHandler?(resolvedSettings)
24 | }
25 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Swift.Error?) {
| `- error: cannot override 'photoOutput' which has been marked unavailable
26 | if let error = error {
27 | self.didFinishProcessingHandler?(.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/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/VideoIO/Camera+PhotoCapture.swift:36:45: error: 'AVCapturePhotoSettings' is unavailable in visionOS
34 | @available(iOS 11.0, *)
35 | @available(macCatalyst 14.0, *)
36 | public func capturePhoto(with settings: AVCapturePhotoSettings,
| `- error: 'AVCapturePhotoSettings' is unavailable in visionOS
37 | willBeginCaptureHandler: ((AVCaptureResolvedPhotoSettings) -> Void)? = nil,
38 | didFinishProcessingHandler: @escaping (Result<AVCapturePhoto, Swift.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: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/VideoIO/Camera+PhotoCapture.swift:37:57: error: 'AVCaptureResolvedPhotoSettings' is unavailable in visionOS
35 | @available(macCatalyst 14.0, *)
36 | public func capturePhoto(with settings: AVCapturePhotoSettings,
37 | willBeginCaptureHandler: ((AVCaptureResolvedPhotoSettings) -> Void)? = nil,
| `- error: 'AVCaptureResolvedPhotoSettings' is unavailable in visionOS
38 | didFinishProcessingHandler: @escaping (Result<AVCapturePhoto, Swift.Error>) -> Void) {
39 | assert(self.photoOutput != 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/AVCapturePhotoOutput.h:1788:12: note: 'AVCaptureResolvedPhotoSettings' has been explicitly marked unavailable here
1786 | */
1787 | API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
1788 | @interface AVCaptureResolvedPhotoSettings : NSObject
| `- note: 'AVCaptureResolvedPhotoSettings' has been explicitly marked unavailable here
1789 | {
1790 | @private
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+PhotoCapture.swift:38:76: error: 'AVCapturePhoto' is unavailable in visionOS
36 | public func capturePhoto(with settings: AVCapturePhotoSettings,
37 | willBeginCaptureHandler: ((AVCaptureResolvedPhotoSettings) -> Void)? = nil,
38 | didFinishProcessingHandler: @escaping (Result<AVCapturePhoto, Swift.Error>) -> Void) {
| `- error: 'AVCapturePhoto' is unavailable in visionOS
39 | assert(self.photoOutput != nil)
40 | guard let photoOutput = self.photoOutput else { return }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h: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/VideoIO/Camera+PhotoCapture.swift:52:45: error: 'AVCapturePhotoSettings' is unavailable in visionOS
50 | }
51 |
52 | public func capturePhoto(with settings: AVCapturePhotoSettings, delegate: AVCapturePhotoCaptureDelegate) {
| `- error: 'AVCapturePhotoSettings' is unavailable in visionOS
53 | assert(self.photoOutput != nil)
54 | self.photoOutput?.capturePhoto(with: settings, delegate: delegate)
/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/VideoIO/Camera+PhotoCapture.swift:52:79: error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
50 | }
51 |
52 | public func capturePhoto(with settings: AVCapturePhotoSettings, delegate: AVCapturePhotoCaptureDelegate) {
| `- error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
53 | assert(self.photoOutput != nil)
54 | self.photoOutput?.capturePhoto(with: settings, delegate: delegate)
/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/VideoIO/Camera.swift:32:28: error: 'videoOrientation' is unavailable in visionOS
30 | var configurator = Configurator()
31 | configurator.videoConnectionConfigurator = { camera, connection in
32 | connection.videoOrientation = .portrait
| `- error: 'videoOrientation' is unavailable in visionOS
33 | if camera.videoDevice?.position == .front {
34 | connection.isVideoMirrored = true
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:1111:48: note: 'videoOrientation' has been explicitly marked unavailable here
1109 | This property is deprecated. Use -videoRotationAngle instead. This property may only be set if -isVideoOrientationSupported returns YES, otherwise an NSInvalidArgumentException is thrown.
1110 | */
1111 | @property(nonatomic) AVCaptureVideoOrientation videoOrientation API_DEPRECATED("Use -videoRotationAngle instead", macos(10.7, 14.0), ios(4.0, 17.0), macCatalyst(14.0, 17.0)) API_UNAVAILABLE(tvos, visionos);
| `- note: 'videoOrientation' has been explicitly marked unavailable here
1112 |
1113 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift:48:29: error: 'AVCapturePhotoOutput' is unavailable in visionOS
46 | public let captureSession: AVCaptureSession
47 |
48 | public let photoOutput: AVCapturePhotoOutput?
| `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
49 |
50 | private let configurator: Configurator
/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/VideoIO/Camera.swift:54:56: error: 'Preset' is unavailable in visionOS
52 | private let defaultCameraPosition: AVCaptureDevice.Position
53 |
54 | public init(captureSessionPreset: AVCaptureSession.Preset, defaultCameraPosition: AVCaptureDevice.Position = .back, configurator: Configurator = Configurator()) {
| `- error: 'Preset' is unavailable in visionOS
55 | let captureSession = AVCaptureSession()
56 | assert(captureSession.canSetSessionPreset(captureSessionPreset))
/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/VideoIO/Camera.swift:100:124: error: 'DeviceType' is only available in visionOS 2.1 or newer
98 | }
99 |
100 | public func switchToVideoCaptureDevice(with position: AVCaptureDevice.Position, preferredDeviceTypes: [AVCaptureDevice.DeviceType] = []) throws {
| | `- error: 'DeviceType' is only available in visionOS 2.1 or newer
| `- note: add '@available' attribute to enclosing instance method
101 | let deviceTypes: [AVCaptureDevice.DeviceType]
102 | if preferredDeviceTypes.count == 0 {
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift:195:46: error: 'AVCaptureAudioDataOutput' is unavailable in visionOS
193 | }
194 |
195 | public private(set) var audioDataOutput: AVCaptureAudioDataOutput?
| `- error: 'AVCaptureAudioDataOutput' is unavailable in visionOS
196 |
197 | public func enableAudioDataOutput(on queue: DispatchQueue = .main, delegate: AVCaptureAudioDataOutputSampleBufferDelegate) throws {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureAudioDataOutput.h:30:12: note: 'AVCaptureAudioDataOutput' has been explicitly marked unavailable here
28 | */
29 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
30 | @interface AVCaptureAudioDataOutput : AVCaptureOutput
| `- note: 'AVCaptureAudioDataOutput' has been explicitly marked unavailable here
31 | {
32 | @private
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift:197:82: error: 'AVCaptureAudioDataOutputSampleBufferDelegate' is unavailable in visionOS
195 | public private(set) var audioDataOutput: AVCaptureAudioDataOutput?
196 |
197 | public func enableAudioDataOutput(on queue: DispatchQueue = .main, delegate: AVCaptureAudioDataOutputSampleBufferDelegate) throws {
| `- error: 'AVCaptureAudioDataOutputSampleBufferDelegate' is unavailable in visionOS
198 | self.captureSession.beginConfiguration()
199 | defer {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureAudioDataOutput.h:128:11: note: 'AVCaptureAudioDataOutputSampleBufferDelegate' has been explicitly marked unavailable here
126 | */
127 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
128 | @protocol AVCaptureAudioDataOutputSampleBufferDelegate <NSObject>
| `- note: 'AVCaptureAudioDataOutputSampleBufferDelegate' has been explicitly marked unavailable here
129 |
130 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/DeviceOrientationTracker.swift:35:34: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
33 |
34 | // Access in main queue.
35 | public var videoOrientation: AVCaptureVideoOrientation = .portrait
| `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
36 |
37 | public weak var delegate: DeviceOrientationTrackerDelegate?
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:104:28: note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
102 |
103 | /// Constants indicating video orientation, for use with AVCaptureDeviceRotationCoordinator.
104 | typedef NS_ENUM(NSInteger, AVCaptureVideoOrientation) {
| `- note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
105 | /// Indicates that video should be oriented vertically, port on the bottom.
106 | AVCaptureVideoOrientationPortrait = 1,
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/VideoComposition.swift:31:20: warning: stored property 'requiredSourceTrackIDs' of 'Sendable'-conforming class 'Instruction' has non-Sendable type '[NSValue]?'
29 | public let containsTweening: Bool = true
30 |
31 | public let requiredSourceTrackIDs: [NSValue]?
| `- warning: stored property 'requiredSourceTrackIDs' of 'Sendable'-conforming class 'Instruction' has non-Sendable type '[NSValue]?'
32 |
33 | public let passthroughTrackID: CMPersistentTrackID = kCMPersistentTrackID_Invalid
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable, ~Escapable where Wrapped : ~Copyable, Wrapped : ~Escapable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/VideoComposition.swift:48:16: warning: sendability of function types in property 'sourcePixelBufferAttributes' does not match requirement in protocol 'AVVideoCompositing'; this is an error in the Swift 6 language mode
46 | }
47 |
48 | public let sourcePixelBufferAttributes: [String : Any]? = [kCVPixelBufferPixelFormatTypeKey as String: [kCVPixelFormatType_420YpCbCr8BiPlanarFullRange, kCVPixelFormatType_32BGRA, kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange]]
| `- warning: sendability of function types in property 'sourcePixelBufferAttributes' does not match requirement in protocol 'AVVideoCompositing'; this is an error in the Swift 6 language mode
49 |
50 | public let requiredPixelBufferAttributesForRenderContext: [String : Any] = [kCVPixelBufferPixelFormatTypeKey as String: kCVPixelFormatType_32BGRA]
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVVideoCompositing.h:123:91: note: expected sendability to match requirement here
121 | ///
122 | /// Missing attributes will be set by the composition engine to values allowing the best performance. This property is queried once before any composition request is sent to the compositor. Changing source buffer attributes afterwards is not supported.
123 | @property (nonatomic, readonly, nullable) NSDictionary<NSString *, id> NS_SWIFT_SENDABLE *sourcePixelBufferAttributes;
| `- note: expected sendability to match requirement here
124 |
125 | /// Indicates the pixel buffer attributes required by the video compositor for new buffers that it creates for processing.
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/VideoComposition.swift:50:16: warning: sendability of function types in property 'requiredPixelBufferAttributesForRenderContext' does not match requirement in protocol 'AVVideoCompositing'; this is an error in the Swift 6 language mode
48 | public let sourcePixelBufferAttributes: [String : Any]? = [kCVPixelBufferPixelFormatTypeKey as String: [kCVPixelFormatType_420YpCbCr8BiPlanarFullRange, kCVPixelFormatType_32BGRA, kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange]]
49 |
50 | public let requiredPixelBufferAttributesForRenderContext: [String : Any] = [kCVPixelBufferPixelFormatTypeKey as String: kCVPixelFormatType_32BGRA]
| `- warning: sendability of function types in property 'requiredPixelBufferAttributesForRenderContext' does not match requirement in protocol 'AVVideoCompositing'; this is an error in the Swift 6 language mode
51 |
52 | public func renderContextChanged(_ newRenderContext: AVVideoCompositionRenderContext) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVVideoCompositing.h:130:81: note: expected sendability to match requirement here
128 | ///
129 | /// This property is queried once before any composition request is sent to the compositor. Changing required buffer attributes afterwards is not supported.
130 | @property (nonatomic, readonly) NSDictionary<NSString *, id> NS_SWIFT_SENDABLE *requiredPixelBufferAttributesForRenderContext;
| `- note: expected sendability to match requirement here
131 |
132 | /// Called to notify the custom compositor that a composition will switch to a different render context
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/VideoOrientationUtilities.swift:16:72: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
14 | @available(tvOS, unavailable)
15 | @available(macCatalyst 14.0, *)
16 | public static func exifOrientationToApply(from captureOrientation: AVCaptureVideoOrientation, to targetOrientation: AVCaptureVideoOrientation, shouldMirror: Bool) -> CGImagePropertyOrientation {
| `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
17 | switch captureOrientation {
18 | case .landscapeLeft:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:104:28: note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
102 |
103 | /// Constants indicating video orientation, for use with AVCaptureDeviceRotationCoordinator.
104 | typedef NS_ENUM(NSInteger, AVCaptureVideoOrientation) {
| `- note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
105 | /// Indicates that video should be oriented vertically, port on the bottom.
106 | AVCaptureVideoOrientationPortrait = 1,
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/VideoOrientationUtilities.swift:16:121: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
14 | @available(tvOS, unavailable)
15 | @available(macCatalyst 14.0, *)
16 | public static func exifOrientationToApply(from captureOrientation: AVCaptureVideoOrientation, to targetOrientation: AVCaptureVideoOrientation, shouldMirror: Bool) -> CGImagePropertyOrientation {
| `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
17 | switch captureOrientation {
18 | case .landscapeLeft:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:104:28: note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
102 |
103 | /// Constants indicating video orientation, for use with AVCaptureDeviceRotationCoordinator.
104 | typedef NS_ENUM(NSInteger, AVCaptureVideoOrientation) {
| `- note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
105 | /// Indicates that video should be oriented vertically, port on the bottom.
106 | AVCaptureVideoOrientationPortrait = 1,
Failed frontend command:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AVAsset.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AssetExportSession.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AudioQueueCaptureSession.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AudioVideoSettings.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+AudioQueueCapture.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+FocusExposure.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera+PhotoCapture.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/Camera.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/DeviceOrientationTracker.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/MovieFileType.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/MovieMerger.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/MultitrackMovieRecorder.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/PlayerVideoOutput.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/SampleBufferUtilities.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/UnfairLock.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/VideoComposition.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/VideoOrientationUtilities.swift -target arm64-apple-xros1.0 -module-can-import-version CoreMotion 3185.0.6 3185.0.6 -module-can-import-version UIKit 9127.0.84.1 9127.0.84 -disable-cross-import-overlay-search -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib/swift/host/plugins/libPreviewsMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/bin/swift-plugin-server\#PreviewsMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/bin/swift-plugin-server\#SwiftMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib/swift/host/plugins/libSwiftUIMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/bin/swift-plugin-server\#SwiftUIMacros -disable-implicit-swift-modules -Xcc -fno-implicit-modules -Xcc -fno-implicit-module-maps -explicit-swift-module-map-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/VideoIO.build/Debug-xros/VideoIO-t.build/Objects-normal/arm64/VideoIO-dependencies-1.json -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/Developer/Library/Frameworks -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -no-color-diagnostics -Xcc -fno-color-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -profile-generate -profile-coverage-mapping -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/xros27.0-24M361-e829b21a6f8c9b70876ba0858053c044735bd543db762f57723cac368afd1ce4.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/VideoIO.build/Debug-xros/VideoIO-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/VideoIO.build/Debug-xros/VideoIO-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/VideoIO.build/Debug-xros/VideoIO-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name VideoIO -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/VideoIO.build/Debug-xros/VideoIO-t.build/Objects-normal/arm64/VideoIO_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/VideoIO.build/Debug-xros/VideoIO-t.build/Objects-normal/arm64/VideoIO.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/VideoIO.build/Debug-xros/VideoIO-t.build/Objects-normal/arm64/VideoIO.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/VideoIO.build/Debug-xros/VideoIO-t.build/Objects-normal/arm64/VideoIO-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/VideoIO.build/Debug-xros/VideoIO-t.build/Objects-normal/arm64/VideoIO-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/VideoIO.build/Debug-xros/VideoIO-t.build/Objects-normal/arm64/VideoIO-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/VideoIO.build/Debug-xros/VideoIO-t.build/Objects-normal/arm64/VideoIO.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/VideoIO.build/Debug-xros/VideoIO-t.build/Objects-normal/arm64/VideoIO.abi.json
SwiftCompile normal arm64 (in target 'VideoIO' from project 'VideoIO')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftCompile normal arm64 Compiling\ UnfairLock.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/UnfairLock.swift (in target 'VideoIO' from project 'VideoIO')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/UnfairLock.swift (in target 'VideoIO' from project 'VideoIO')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile UnfairLock.swift
SwiftCompile normal arm64 Compiling\ VideoOrientationUtilities.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/VideoOrientationUtilities.swift (in target 'VideoIO' from project 'VideoIO')
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/VideoOrientationUtilities.swift:16:72: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
14 | @available(tvOS, unavailable)
15 | @available(macCatalyst 14.0, *)
16 | public static func exifOrientationToApply(from captureOrientation: AVCaptureVideoOrientation, to targetOrientation: AVCaptureVideoOrientation, shouldMirror: Bool) -> CGImagePropertyOrientation {
| `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
17 | switch captureOrientation {
18 | case .landscapeLeft:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:104:28: note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
102 |
103 | /// Constants indicating video orientation, for use with AVCaptureDeviceRotationCoordinator.
104 | typedef NS_ENUM(NSInteger, AVCaptureVideoOrientation) {
| `- note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
105 | /// Indicates that video should be oriented vertically, port on the bottom.
106 | AVCaptureVideoOrientationPortrait = 1,
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/VideoOrientationUtilities.swift (in target 'VideoIO' from project 'VideoIO')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile VideoOrientationUtilities.swift
SwiftCompile normal arm64 Compiling\ MovieMerger.swift,\ MultitrackMovieRecorder.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/MovieMerger.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/MultitrackMovieRecorder.swift (in target 'VideoIO' from project 'VideoIO')
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/MovieMerger.swift:41:68: error: 'tracks(withMediaType:)' is unavailable in visionOS
39 | for segment in assets {
40 | let asset = AVURLAsset(url: segment, options: [AVURLAssetPreferPreciseDurationAndTimingKey: true])
41 | if !isFirstSegmentTransformSet, let videoTrack = asset.tracks(withMediaType: .video).first {
| `- error: 'tracks(withMediaType:)' is unavailable in visionOS
42 | firstSegmentTransform = videoTrack.preferredTransform
43 | isFirstSegmentTransformSet = true
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVAsset.h:191:1: note: 'tracks(withMediaType:)' has been explicitly marked unavailable here
189 | ///
190 | /// - Returns: An NSArray of AVAssetTracks; may be empty if no tracks of the specified media type are available.
191 | - (NSArray<AVAssetTrack *> *)tracksWithMediaType:(AVMediaType)mediaType
| `- note: 'tracks(withMediaType:)' has been explicitly marked unavailable here
192 | #if __swift__
193 | API_DEPRECATED("Use loadTracks(withMediaType:) instead", macos(10.7, 13.0), ios(4.0, 16.0), tvos(9.0, 16.0), watchos(1.0, 9.0)) API_UNAVAILABLE(visionos);
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/MovieMerger.swift:42:52: warning: 'preferredTransform' was deprecated in visionOS 1.0: Use load(.preferredTransform) instead [#DeprecatedDeclaration]
40 | let asset = AVURLAsset(url: segment, options: [AVURLAssetPreferPreciseDurationAndTimingKey: true])
41 | if !isFirstSegmentTransformSet, let videoTrack = asset.tracks(withMediaType: .video).first {
42 | firstSegmentTransform = videoTrack.preferredTransform
| `- warning: 'preferredTransform' was deprecated in visionOS 1.0: Use load(.preferredTransform) instead [#DeprecatedDeclaration]
43 | isFirstSegmentTransformSet = true
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/MovieMerger.swift:45:67: warning: 'duration' was deprecated in visionOS 1.0: Use load(.duration) instead [#DeprecatedDeclaration]
43 | isFirstSegmentTransformSet = true
44 | }
45 | let range = CMTimeRange(start: .zero, duration: asset.duration)
| `- warning: 'duration' was deprecated in visionOS 1.0: Use load(.duration) instead [#DeprecatedDeclaration]
46 | do {
47 | try composition.insertTimeRange(range, of: asset, at: current)
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/MovieMerger.swift (in target 'VideoIO' from project 'VideoIO')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile MovieMerger.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/MultitrackMovieRecorder.swift (in target 'VideoIO' from project 'VideoIO')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile MultitrackMovieRecorder.swift
SwiftCompile normal arm64 Compiling\ DeviceOrientationTracker.swift,\ MovieFileType.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/DeviceOrientationTracker.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/MovieFileType.swift (in target 'VideoIO' from project 'VideoIO')
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/DeviceOrientationTracker.swift:35:34: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
33 |
34 | // Access in main queue.
35 | public var videoOrientation: AVCaptureVideoOrientation = .portrait
| `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
36 |
37 | public weak var delegate: DeviceOrientationTrackerDelegate?
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:104:28: note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
102 |
103 | /// Constants indicating video orientation, for use with AVCaptureDeviceRotationCoordinator.
104 | typedef NS_ENUM(NSInteger, AVCaptureVideoOrientation) {
| `- note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
105 | /// Indicates that video should be oriented vertically, port on the bottom.
106 | AVCaptureVideoOrientationPortrait = 1,
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/DeviceOrientationTracker.swift (in target 'VideoIO' from project 'VideoIO')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile DeviceOrientationTracker.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/MovieFileType.swift (in target 'VideoIO' from project 'VideoIO')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile MovieFileType.swift
SwiftCompile normal arm64 Compiling\ AVAsset.swift,\ AssetExportSession.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AVAsset.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AssetExportSession.swift (in target 'VideoIO' from project 'VideoIO')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AVAsset.swift (in target 'VideoIO' from project 'VideoIO')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile AVAsset.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AssetExportSession.swift (in target 'VideoIO' from project 'VideoIO')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile AssetExportSession.swift
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AVAsset.swift:13:34: error: 'tracks(withMediaType:)' is unavailable in visionOS
11 | extension AVAsset {
12 | public var presentationVideoSize: CGSize? {
13 | if let videoTrack = self.tracks(withMediaType: AVMediaType.video).first {
| `- error: 'tracks(withMediaType:)' is unavailable in visionOS
14 | let size = videoTrack.naturalSize.applying(videoTrack.preferredTransform)
15 | return CGSize(width: abs(size.width), height: abs(size.height))
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVAsset.h:191:1: note: 'tracks(withMediaType:)' has been explicitly marked unavailable here
189 | ///
190 | /// - Returns: An NSArray of AVAssetTracks; may be empty if no tracks of the specified media type are available.
191 | - (NSArray<AVAssetTrack *> *)tracksWithMediaType:(AVMediaType)mediaType
| `- note: 'tracks(withMediaType:)' has been explicitly marked unavailable here
192 | #if __swift__
193 | API_DEPRECATED("Use loadTracks(withMediaType:) instead", macos(10.7, 13.0), ios(4.0, 16.0), tvos(9.0, 16.0), watchos(1.0, 9.0)) API_UNAVAILABLE(visionos);
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AVAsset.swift:14:35: warning: 'naturalSize' was deprecated in visionOS 1.0: Use load(.naturalSize) instead [#DeprecatedDeclaration]
12 | public var presentationVideoSize: CGSize? {
13 | if let videoTrack = self.tracks(withMediaType: AVMediaType.video).first {
14 | let size = videoTrack.naturalSize.applying(videoTrack.preferredTransform)
| `- warning: 'naturalSize' was deprecated in visionOS 1.0: Use load(.naturalSize) instead [#DeprecatedDeclaration]
15 | return CGSize(width: abs(size.width), height: abs(size.height))
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AVAsset.swift:14:67: warning: 'preferredTransform' was deprecated in visionOS 1.0: Use load(.preferredTransform) instead [#DeprecatedDeclaration]
12 | public var presentationVideoSize: CGSize? {
13 | if let videoTrack = self.tracks(withMediaType: AVMediaType.video).first {
14 | let size = videoTrack.naturalSize.applying(videoTrack.preferredTransform)
| `- warning: 'preferredTransform' was deprecated in visionOS 1.0: Use load(.preferredTransform) instead [#DeprecatedDeclaration]
15 | return CGSize(width: abs(size.width), height: abs(size.height))
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AVAsset.swift:20:34: error: 'tracks(withMediaType:)' is unavailable in visionOS
18 | }
19 | public var naturalVideoSize: CGSize? {
20 | if let videoTrack = self.tracks(withMediaType: AVMediaType.video).first {
| `- error: 'tracks(withMediaType:)' is unavailable in visionOS
21 | return videoTrack.naturalSize
22 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVAsset.h:191:1: note: 'tracks(withMediaType:)' has been explicitly marked unavailable here
189 | ///
190 | /// - Returns: An NSArray of AVAssetTracks; may be empty if no tracks of the specified media type are available.
191 | - (NSArray<AVAssetTrack *> *)tracksWithMediaType:(AVMediaType)mediaType
| `- note: 'tracks(withMediaType:)' has been explicitly marked unavailable here
192 | #if __swift__
193 | API_DEPRECATED("Use loadTracks(withMediaType:) instead", macos(10.7, 13.0), ios(4.0, 16.0), tvos(9.0, 16.0), watchos(1.0, 9.0)) API_UNAVAILABLE(visionos);
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AVAsset.swift:21:31: warning: 'naturalSize' was deprecated in visionOS 1.0: Use load(.naturalSize) instead [#DeprecatedDeclaration]
19 | public var naturalVideoSize: CGSize? {
20 | if let videoTrack = self.tracks(withMediaType: AVMediaType.video).first {
21 | return videoTrack.naturalSize
| `- warning: 'naturalSize' was deprecated in visionOS 1.0: Use load(.naturalSize) instead [#DeprecatedDeclaration]
22 | }
23 | return nil
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AssetExportSession.swift:216:18: warning: class 'ExportProgress' must restate inherited '@unchecked Sendable' conformance
214 |
215 |
216 | public class ExportProgress: Progress {
| `- warning: class 'ExportProgress' must restate inherited '@unchecked Sendable' conformance
217 | public let videoEncodingProgress: Progress?
218 | public let audioEncodingProgress: Progress?
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AssetExportSession.swift:97:40: warning: 'duration' was deprecated in visionOS 1.0: Use load(.duration) instead [#DeprecatedDeclaration]
95 | self.duration = configuration.timeRange.duration
96 | } else {
97 | self.duration = self.asset.duration
| `- warning: 'duration' was deprecated in visionOS 1.0: Use load(.duration) instead [#DeprecatedDeclaration]
98 | }
99 |
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AssetExportSession.swift:100:38: error: 'tracks(withMediaType:)' is unavailable in visionOS
98 | }
99 |
100 | let videoTracks = self.asset.tracks(withMediaType: .video)
| `- error: 'tracks(withMediaType:)' is unavailable in visionOS
101 | if (videoTracks.count > 0) {
102 | let videoOutput: AVAssetReaderOutput
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVAsset.h:191:1: note: 'tracks(withMediaType:)' has been explicitly marked unavailable here
189 | ///
190 | /// - Returns: An NSArray of AVAssetTracks; may be empty if no tracks of the specified media type are available.
191 | - (NSArray<AVAssetTrack *> *)tracksWithMediaType:(AVMediaType)mediaType
| `- note: 'tracks(withMediaType:)' has been explicitly marked unavailable here
192 | #if __swift__
193 | API_DEPRECATED("Use loadTracks(withMediaType:) instead", macos(10.7, 13.0), ios(4.0, 16.0), tvos(9.0, 16.0), watchos(1.0, 9.0)) API_UNAVAILABLE(visionos);
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AssetExportSession.swift:112:43: warning: 'hasMediaCharacteristic' was deprecated in visionOS 1.0: Use load(.mediaCharacteristics) instead [#DeprecatedDeclaration]
110 | } else {
111 | if #available(iOS 13.0, tvOS 13.0, macOS 10.15, *) {
112 | if videoTracks.first!.hasMediaCharacteristic(.containsAlphaChannel) {
| `- warning: 'hasMediaCharacteristic' was deprecated in visionOS 1.0: Use load(.mediaCharacteristics) instead [#DeprecatedDeclaration]
113 | videoOutput = AVAssetReaderTrackOutput(track: videoTracks.first!, outputSettings: [kCVPixelBufferPixelFormatTypeKey as String: kCVPixelFormatType_32BGRA])
114 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/AssetExportSession.swift:121:53: warning: 'preferredTransform' was deprecated in visionOS 1.0: Use load(.preferredTransform) instead [#DeprecatedDeclaration]
119 | }
120 | videoOutput.alwaysCopiesSampleData = false
121 | inputTransform = videoTracks.first!.preferredTransform
| `- warning: 'preferredTransform' was deprecated in visionOS 1.0: Use load(.preferredTransform) instead [#DeprecatedDeclaration]
122 | }
123 | if self.reader.canAdd(videoOutput) {
SwiftCompile normal arm64 Compiling\ VideoComposition.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/VideoComposition.swift (in target 'VideoIO' from project 'VideoIO')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/VideoComposition.swift (in target 'VideoIO' from project 'VideoIO')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile VideoComposition.swift
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/VideoComposition.swift:31:20: warning: stored property 'requiredSourceTrackIDs' of 'Sendable'-conforming class 'Instruction' has non-Sendable type '[NSValue]?'
29 | public let containsTweening: Bool = true
30 |
31 | public let requiredSourceTrackIDs: [NSValue]?
| `- warning: stored property 'requiredSourceTrackIDs' of 'Sendable'-conforming class 'Instruction' has non-Sendable type '[NSValue]?'
32 |
33 | public let passthroughTrackID: CMPersistentTrackID = kCMPersistentTrackID_Invalid
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable, ~Escapable where Wrapped : ~Copyable, Wrapped : ~Escapable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/VideoComposition.swift:48:16: warning: sendability of function types in property 'sourcePixelBufferAttributes' does not match requirement in protocol 'AVVideoCompositing'; this is an error in the Swift 6 language mode
46 | }
47 |
48 | public let sourcePixelBufferAttributes: [String : Any]? = [kCVPixelBufferPixelFormatTypeKey as String: [kCVPixelFormatType_420YpCbCr8BiPlanarFullRange, kCVPixelFormatType_32BGRA, kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange]]
| `- warning: sendability of function types in property 'sourcePixelBufferAttributes' does not match requirement in protocol 'AVVideoCompositing'; this is an error in the Swift 6 language mode
49 |
50 | public let requiredPixelBufferAttributesForRenderContext: [String : Any] = [kCVPixelBufferPixelFormatTypeKey as String: kCVPixelFormatType_32BGRA]
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVVideoCompositing.h:123:91: note: expected sendability to match requirement here
121 | ///
122 | /// Missing attributes will be set by the composition engine to values allowing the best performance. This property is queried once before any composition request is sent to the compositor. Changing source buffer attributes afterwards is not supported.
123 | @property (nonatomic, readonly, nullable) NSDictionary<NSString *, id> NS_SWIFT_SENDABLE *sourcePixelBufferAttributes;
| `- note: expected sendability to match requirement here
124 |
125 | /// Indicates the pixel buffer attributes required by the video compositor for new buffers that it creates for processing.
/Users/admin/builder/spi-builder-workspace/Sources/VideoIO/VideoComposition.swift:50:16: warning: sendability of function types in property 'requiredPixelBufferAttributesForRenderContext' does not match requirement in protocol 'AVVideoCompositing'; this is an error in the Swift 6 language mode
48 | public let sourcePixelBufferAttributes: [String : Any]? = [kCVPixelBufferPixelFormatTypeKey as String: [kCVPixelFormatType_420YpCbCr8BiPlanarFullRange, kCVPixelFormatType_32BGRA, kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange]]
49 |
50 | public let requiredPixelBufferAttributesForRenderContext: [String : Any] = [kCVPixelBufferPixelFormatTypeKey as String: kCVPixelFormatType_32BGRA]
| `- warning: sendability of function types in property 'requiredPixelBufferAttributesForRenderContext' does not match requirement in protocol 'AVVideoCompositing'; this is an error in the Swift 6 language mode
51 |
52 | public func renderContextChanged(_ newRenderContext: AVVideoCompositionRenderContext) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVVideoCompositing.h:130:81: note: expected sendability to match requirement here
128 | ///
129 | /// This property is queried once before any composition request is sent to the compositor. Changing required buffer attributes afterwards is not supported.
130 | @property (nonatomic, readonly) NSDictionary<NSString *, id> NS_SWIFT_SENDABLE *requiredPixelBufferAttributesForRenderContext;
| `- note: expected sendability to match requirement here
131 |
132 | /// Called to notify the custom compositor that a composition will switch to a different render context
SwiftCompile normal arm64 Compiling\ PlayerVideoOutput.swift,\ SampleBufferUtilities.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/PlayerVideoOutput.swift /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/SampleBufferUtilities.swift (in target 'VideoIO' from project 'VideoIO')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/PlayerVideoOutput.swift (in target 'VideoIO' from project 'VideoIO')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile PlayerVideoOutput.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/VideoIO/SampleBufferUtilities.swift (in target 'VideoIO' from project 'VideoIO')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile SampleBufferUtilities.swift
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
2026-09-19 04:01:39.911 xcodebuild[763:4706] [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\ VideoIO (in target 'VideoIO' from project 'VideoIO')
SwiftCompile normal arm64 (in target 'VideoIO' from project 'VideoIO')
Building workspace VideoIO with scheme VideoIO
(3 failures)
BUILD FAILURE 6.4 visionOS