Build Information
Failed to build AVCaptureViewModel, reference main (e0e6a9), with Swift 6.4 for visionOS using Xcode 27.0 on 20 Sep 2026 11:39:57 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 AVCaptureViewModel -destination generic/platform=xrOSBuild Log
SwiftCompile normal arm64 Compiling\ PhotoCaptureProcessor.swift,\ AVCaptureDeviceDiscoverySession+Extension.swift /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Helper\ Types/PhotoCaptureProcessor.swift /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Misc\ Extensions/AVCaptureDeviceDiscoverySession+Extension.swift (in target 'AVCaptureViewModel' from project 'AVCaptureViewModel')
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Helper Types/PhotoCaptureProcessor.swift:12:46: error: 'AVCapturePhotoSettings' is unavailable in visionOS
10 |
11 | class PhotoCaptureProcessor: NSObject {
12 | private(set) var requestedPhotoSettings: AVCapturePhotoSettings
| `- error: 'AVCapturePhotoSettings' is unavailable in visionOS
13 |
14 | internal var tagLocationInCaptures: Bool
/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/AVCaptureViewModel/Helper Types/PhotoCaptureProcessor.swift:33:39: error: 'AVCapturePhotoSettings' is unavailable in visionOS
31 | var location: CLLocation?
32 |
33 | init(with requestedPhotoSettings: AVCapturePhotoSettings,
| `- error: 'AVCapturePhotoSettings' is unavailable in visionOS
34 | tagLocationInCaptures: Bool,
35 | shouldSaveCapturesToLibrary: Bool,
/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/AVCaptureViewModel/Helper Types/PhotoCaptureProcessor.swift:65:32: error: 'AVCapturePhotoOutput' is unavailable in visionOS
63 | extension PhotoCaptureProcessor: AVCapturePhotoCaptureDelegate {
64 | /// - Tag: WillBeginCapture
65 | func photoOutput(_ output: AVCapturePhotoOutput, willBeginCaptureFor resolvedSettings: AVCaptureResolvedPhotoSettings) {
| `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
66 | if resolvedSettings.livePhotoMovieDimensions.width > 0 && resolvedSettings.livePhotoMovieDimensions.height > 0 {
67 | livePhotoCaptureHandler(true)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h: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/AVCaptureViewModel/Helper Types/PhotoCaptureProcessor.swift:65:92: error: 'AVCaptureResolvedPhotoSettings' is unavailable in visionOS
63 | extension PhotoCaptureProcessor: AVCapturePhotoCaptureDelegate {
64 | /// - Tag: WillBeginCapture
65 | func photoOutput(_ output: AVCapturePhotoOutput, willBeginCaptureFor resolvedSettings: AVCaptureResolvedPhotoSettings) {
| `- error: 'AVCaptureResolvedPhotoSettings' is unavailable in visionOS
66 | if resolvedSettings.livePhotoMovieDimensions.width > 0 && resolvedSettings.livePhotoMovieDimensions.height > 0 {
67 | livePhotoCaptureHandler(true)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h: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/AVCaptureViewModel/Helper Types/PhotoCaptureProcessor.swift:72:32: error: 'AVCapturePhotoOutput' is unavailable in visionOS
70 |
71 | /// - Tag: WillCapturePhoto
72 | func photoOutput(_ output: AVCapturePhotoOutput, willCapturePhotoFor resolvedSettings: AVCaptureResolvedPhotoSettings) {
| `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
73 | willCapturePhotoAnimation()
74 | }
/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/AVCaptureViewModel/Helper Types/PhotoCaptureProcessor.swift:72:92: error: 'AVCaptureResolvedPhotoSettings' is unavailable in visionOS
70 |
71 | /// - Tag: WillCapturePhoto
72 | func photoOutput(_ output: AVCapturePhotoOutput, willCapturePhotoFor resolvedSettings: AVCaptureResolvedPhotoSettings) {
| `- error: 'AVCaptureResolvedPhotoSettings' is unavailable in visionOS
73 | willCapturePhotoAnimation()
74 | }
/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/AVCaptureViewModel/Helper Types/PhotoCaptureProcessor.swift:77:32: error: 'AVCapturePhotoOutput' is unavailable in visionOS
75 |
76 | /// - Tag: DidFinishProcessingPhoto
77 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
| `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
78 |
79 | if let error = error {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h: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/AVCaptureViewModel/Helper Types/PhotoCaptureProcessor.swift:77:86: error: 'AVCapturePhoto' is unavailable in visionOS
75 |
76 | /// - Tag: DidFinishProcessingPhoto
77 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
| `- error: 'AVCapturePhoto' is unavailable in visionOS
78 |
79 | if let error = error {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h: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/AVCaptureViewModel/Helper Types/PhotoCaptureProcessor.swift:98:32: error: 'AVCapturePhotoOutput' is unavailable in visionOS
96 |
97 | /// - Tag: DidFinishRecordingLive
98 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishRecordingLivePhotoMovieForEventualFileAt outputFileURL: URL, resolvedSettings: AVCaptureResolvedPhotoSettings) {
| `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
99 | livePhotoCaptureHandler(false)
100 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/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/AVCaptureViewModel/Helper Types/PhotoCaptureProcessor.swift:98:142: error: 'AVCaptureResolvedPhotoSettings' is unavailable in visionOS
96 |
97 | /// - Tag: DidFinishRecordingLive
98 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishRecordingLivePhotoMovieForEventualFileAt outputFileURL: URL, resolvedSettings: AVCaptureResolvedPhotoSettings) {
| `- error: 'AVCaptureResolvedPhotoSettings' is unavailable in visionOS
99 | livePhotoCaptureHandler(false)
100 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/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/AVCaptureViewModel/Helper Types/PhotoCaptureProcessor.swift:103:32: error: 'AVCapturePhotoOutput' is unavailable in visionOS
101 |
102 | /// - Tag: DidFinishProcessingLive
103 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingLivePhotoToMovieFileAt outputFileURL: URL, duration: CMTime, photoDisplayTime: CMTime, resolvedSettings: AVCaptureResolvedPhotoSettings, error: Error?) {
| `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
104 | if error != nil {
105 | print("Error processing Live Photo companion movie: \(String(describing: 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/AVCaptureViewModel/Helper Types/PhotoCaptureProcessor.swift:103:178: error: 'AVCaptureResolvedPhotoSettings' is unavailable in visionOS
101 |
102 | /// - Tag: DidFinishProcessingLive
103 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingLivePhotoToMovieFileAt outputFileURL: URL, duration: CMTime, photoDisplayTime: CMTime, resolvedSettings: AVCaptureResolvedPhotoSettings, error: Error?) {
| `- error: 'AVCaptureResolvedPhotoSettings' is unavailable in visionOS
104 | if error != nil {
105 | print("Error processing Live Photo companion movie: \(String(describing: error))")
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:1788:12: note: 'AVCaptureResolvedPhotoSettings' has been explicitly marked unavailable here
1786 | */
1787 | API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
1788 | @interface AVCaptureResolvedPhotoSettings : NSObject
| `- note: 'AVCaptureResolvedPhotoSettings' has been explicitly marked unavailable here
1789 | {
1790 | @private
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Helper Types/PhotoCaptureProcessor.swift:112:32: error: 'AVCapturePhotoOutput' is unavailable in visionOS
110 |
111 | /// - Tag: DidFinishCapture
112 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishCaptureFor resolvedSettings: AVCaptureResolvedPhotoSettings, error: Error?) {
| `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
113 | if let error = error {
114 | print("Error capturing photo: \(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/AVCaptureViewModel/Helper Types/PhotoCaptureProcessor.swift:112:92: error: 'AVCaptureResolvedPhotoSettings' is unavailable in visionOS
110 |
111 | /// - Tag: DidFinishCapture
112 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishCaptureFor resolvedSettings: AVCaptureResolvedPhotoSettings, error: Error?) {
| `- error: 'AVCaptureResolvedPhotoSettings' is unavailable in visionOS
113 | if let error = error {
114 | print("Error capturing photo: \(error)")
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:1788:12: note: 'AVCaptureResolvedPhotoSettings' has been explicitly marked unavailable here
1786 | */
1787 | API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
1788 | @interface AVCaptureResolvedPhotoSettings : NSObject
| `- note: 'AVCaptureResolvedPhotoSettings' has been explicitly marked unavailable here
1789 | {
1790 | @private
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Helper Types/PhotoCaptureProcessor.swift:77:10: error: cannot override 'photoOutput' which has been marked unavailable
75 |
76 | /// - Tag: DidFinishProcessingPhoto
77 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
| `- error: cannot override 'photoOutput' which has been marked unavailable
78 |
79 | if let error = error {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:1053:1: note: 'photoOutput(_:didFinishProcessingPhoto:error:)' has been explicitly marked unavailable here
1051 | This callback fires resolvedSettings.expectedPhotoCount number of times for a given capture request. Note that the photo parameter is always non nil, even if an error is returned. The delivered AVCapturePhoto's rawPhoto property can be queried to know if it's a RAW image or processed image.
1052 | */
1053 | - (void)captureOutput:(AVCapturePhotoOutput *)output didFinishProcessingPhoto:(AVCapturePhoto *)photo error:(nullable NSError *)error API_AVAILABLE(ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos);
| `- note: 'photoOutput(_:didFinishProcessingPhoto:error:)' has been explicitly marked unavailable here
1054 |
1055 | /*!
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Helper\ Types/PhotoCaptureProcessor.swift (in target 'AVCaptureViewModel' from project 'AVCaptureViewModel')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile PhotoCaptureProcessor.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Misc\ Extensions/AVCaptureDeviceDiscoverySession+Extension.swift (in target 'AVCaptureViewModel' from project 'AVCaptureViewModel')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile AVCaptureDeviceDiscoverySession+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Helper Types/PhotoCaptureProcessor.swift:63:34: error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
61 |
62 | /// This extension adopts all of the AVCapturePhotoCaptureDelegate protocol methods.
63 | extension PhotoCaptureProcessor: AVCapturePhotoCaptureDelegate {
| `- error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
64 | /// - Tag: WillBeginCapture
65 | 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: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/AVCaptureViewModel/Helper Types/PhotoCaptureProcessor.swift:84:32: error: 'fileDataRepresentation()' is unavailable in visionOS
82 | }
83 |
84 | self.photoData = photo.fileDataRepresentation()
| `- error: 'fileDataRepresentation()' is unavailable in visionOS
85 | }
86 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:2168:1: note: 'fileDataRepresentation()' has been explicitly marked unavailable here
2166 | An NSData containing bits in the file container's format, or nil if the flattening process fails.
2167 | */
2168 | - (nullable NSData *)fileDataRepresentation API_AVAILABLE(ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos);
| `- note: 'fileDataRepresentation()' has been explicitly marked unavailable here
2169 |
2170 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Helper Types/PhotoCaptureProcessor.swift:136:81: error: 'processedFileType' is unavailable in visionOS
134 | let options = PHAssetResourceCreationOptions()
135 | let creationRequest = PHAssetCreationRequest.forAsset()
136 | options.uniformTypeIdentifier = self.requestedPhotoSettings.processedFileType.map { $0.rawValue }
| `- error: 'processedFileType' is unavailable in visionOS
137 |
138 | let resourceType = PHAssetResourceType.photo
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:1332:42: note: 'processedFileType' has been explicitly marked unavailable here
1330 | The formatting of data within a photo buffer is often dependent on the file format intended for storage. For instance, a JPEG encoded photo buffer intended for storage in a JPEG (JPEG File Interchange Format) file differs from JPEG to be stored in HEIF. The HEIF-containerized JPEG buffer is tiled for readback efficiency and partitioned into the box structure dictated by the HEIF file format. Some codecs are only supported by AVCapturePhotoOutput if containerized. For instance, the AVVideoCodecTypeHEVC is only supported with AVFileTypeHEIF and AVFileTypeHEIC formatting. To discover which photo pixel format types and video codecs are supported for a given file type, you may query AVCapturePhotoOutput's -supportedPhotoPixelFormatTypesForFileType:, or -supportedPhotoCodecTypesForFileType: respectively.
1331 | */
1332 | @property(nullable, readonly) AVFileType processedFileType API_AVAILABLE(ios(11.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos);
| `- note: 'processedFileType' has been explicitly marked unavailable here
1333 |
1334 | /*!
SwiftCompile normal arm64 Compiling\ AVCaptureViewModel+Readiness.swift /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+Readiness.swift (in target 'AVCaptureViewModel' from project 'AVCaptureViewModel')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+Readiness.swift (in target 'AVCaptureViewModel' from project 'AVCaptureViewModel')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile AVCaptureViewModel+Readiness.swift
SwiftCompile normal arm64 Compiling\ AVCaptureViewModel+DeviceConfig.swift,\ AVCaptureViewModel+InputCallbacks.swift /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+DeviceConfig.swift /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+InputCallbacks.swift (in target 'AVCaptureViewModel' from project 'AVCaptureViewModel')
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+DeviceConfig.swift:42:74: error: 'DiscoverySession' is only available in visionOS 2.1 or newer
9 | import AVFoundation
10 |
11 | extension AVCaptureViewModel {
| `- note: add '@available' attribute to enclosing extension
12 | // TODO: what to do with these state changes? view modifier callbacks?
13 |
:
25 | }
26 |
27 | private func changeCamera(_ videoDevice: AVCaptureDevice?, isUserSelection: Bool, completion: (() -> Void)? = nil) {
| `- note: add '@available' attribute to enclosing instance method
28 | sessionQueue.async {
29 | let currentVideoDevice = self.videoDeviceInput.device
:
40 | mediaType: .video, position: .front)
41 |
42 | let externalVideoDeviceDiscoverySession: AVCaptureDevice.DiscoverySession? = nil
| |- error: 'DiscoverySession' is only available in visionOS 2.1 or newer
| `- note: add 'if #available' version check
43 | // if #available(iOS 17, *) {
44 | // externalVideoDeviceDiscoverySession = AVCaptureDevice.DiscoverySession(deviceTypes: [.external],
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+DeviceConfig.swift:37:71: error: 'DiscoverySession' is only available in visionOS 2.1 or newer
9 | import AVFoundation
10 |
11 | extension AVCaptureViewModel {
| `- note: add '@available' attribute to enclosing extension
12 | // TODO: what to do with these state changes? view modifier callbacks?
13 |
:
25 | }
26 |
27 | private func changeCamera(_ videoDevice: AVCaptureDevice?, isUserSelection: Bool, completion: (() -> Void)? = nil) {
| `- note: add '@available' attribute to enclosing instance method
28 | sessionQueue.async {
29 | let currentVideoDevice = self.videoDeviceInput.device
:
35 | let currentPosition = currentVideoDevice.position
36 |
37 | let backVideoDeviceDiscoverySession = AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInDualCamera, .builtInWideAngleCamera],
| |- error: 'DiscoverySession' is only available in visionOS 2.1 or newer
| `- note: add 'if #available' version check
38 | mediaType: .video, position: .back)
39 | let frontVideoDeviceDiscoverySession = AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInTrueDepthCamera, .builtInWideAngleCamera],
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+DeviceConfig.swift:37:103: error: 'builtInDualCamera' is unavailable in visionOS
35 | let currentPosition = currentVideoDevice.position
36 |
37 | let backVideoDeviceDiscoverySession = AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInDualCamera, .builtInWideAngleCamera],
| `- error: 'builtInDualCamera' is unavailable in visionOS
38 | mediaType: .video, position: .back)
39 | let frontVideoDeviceDiscoverySession = AVCaptureDevice.DiscoverySession(deviceTypes: [.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/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+DeviceConfig.swift:37:123: error: 'builtInWideAngleCamera' is only available in visionOS 2.1 or newer
9 | import AVFoundation
10 |
11 | extension AVCaptureViewModel {
| `- note: add '@available' attribute to enclosing extension
12 | // TODO: what to do with these state changes? view modifier callbacks?
13 |
:
25 | }
26 |
27 | private func changeCamera(_ videoDevice: AVCaptureDevice?, isUserSelection: Bool, completion: (() -> Void)? = nil) {
| `- note: add '@available' attribute to enclosing instance method
28 | sessionQueue.async {
29 | let currentVideoDevice = self.videoDeviceInput.device
:
35 | let currentPosition = currentVideoDevice.position
36 |
37 | let backVideoDeviceDiscoverySession = AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInDualCamera, .builtInWideAngleCamera],
| |- error: 'builtInWideAngleCamera' is only available in visionOS 2.1 or newer
| `- note: add 'if #available' version check
38 | mediaType: .video, position: .back)
39 | let frontVideoDeviceDiscoverySession = AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInTrueDepthCamera, .builtInWideAngleCamera],
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+DeviceConfig.swift:39:72: error: 'DiscoverySession' is only available in visionOS 2.1 or newer
9 | import AVFoundation
10 |
11 | extension AVCaptureViewModel {
| `- note: add '@available' attribute to enclosing extension
12 | // TODO: what to do with these state changes? view modifier callbacks?
13 |
:
25 | }
26 |
27 | private func changeCamera(_ videoDevice: AVCaptureDevice?, isUserSelection: Bool, completion: (() -> Void)? = nil) {
| `- note: add '@available' attribute to enclosing instance method
28 | sessionQueue.async {
29 | let currentVideoDevice = self.videoDeviceInput.device
:
37 | let backVideoDeviceDiscoverySession = AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInDualCamera, .builtInWideAngleCamera],
38 | mediaType: .video, position: .back)
39 | let frontVideoDeviceDiscoverySession = AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInTrueDepthCamera, .builtInWideAngleCamera],
| |- error: 'DiscoverySession' is only available in visionOS 2.1 or newer
| `- note: add 'if #available' version check
40 | mediaType: .video, position: .front)
41 |
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+DeviceConfig.swift:39:104: error: 'builtInTrueDepthCamera' is unavailable in visionOS
37 | let backVideoDeviceDiscoverySession = AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInDualCamera, .builtInWideAngleCamera],
38 | mediaType: .video, position: .back)
39 | let frontVideoDeviceDiscoverySession = AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInTrueDepthCamera, .builtInWideAngleCamera],
| `- error: 'builtInTrueDepthCamera' is unavailable in visionOS
40 | mediaType: .video, position: .front)
41 |
/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/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+DeviceConfig.swift:39:129: error: 'builtInWideAngleCamera' is only available in visionOS 2.1 or newer
9 | import AVFoundation
10 |
11 | extension AVCaptureViewModel {
| `- note: add '@available' attribute to enclosing extension
12 | // TODO: what to do with these state changes? view modifier callbacks?
13 |
:
25 | }
26 |
27 | private func changeCamera(_ videoDevice: AVCaptureDevice?, isUserSelection: Bool, completion: (() -> Void)? = nil) {
| `- note: add '@available' attribute to enclosing instance method
28 | sessionQueue.async {
29 | let currentVideoDevice = self.videoDeviceInput.device
:
37 | let backVideoDeviceDiscoverySession = AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInDualCamera, .builtInWideAngleCamera],
38 | mediaType: .video, position: .back)
39 | let frontVideoDeviceDiscoverySession = AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInTrueDepthCamera, .builtInWideAngleCamera],
| |- error: 'builtInWideAngleCamera' is only available in visionOS 2.1 or newer
| `- note: add 'if #available' version check
40 | mediaType: .video, position: .front)
41 |
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+DeviceConfig.swift:63:54: error: 'default(_:for:position:)' is only available in visionOS 2.1 or newer
9 | import AVFoundation
10 |
11 | extension AVCaptureViewModel {
| `- note: add '@available' attribute to enclosing extension
12 | // TODO: what to do with these state changes? view modifier callbacks?
13 |
:
25 | }
26 |
27 | private func changeCamera(_ videoDevice: AVCaptureDevice?, isUserSelection: Bool, completion: (() -> Void)? = nil) {
| `- note: add '@available' attribute to enclosing instance method
28 | sessionQueue.async {
29 | let currentVideoDevice = self.videoDeviceInput.device
:
61 | @unknown default:
62 | print("Unknown capture position. Defaulting to back, dual-camera.")
63 | newVideoDevice = AVCaptureDevice.default(.builtInDualCamera, for: .video, position: .back)
| |- error: 'default(_:for:position:)' is only available in visionOS 2.1 or newer
| `- note: add 'if #available' version check
64 | }
65 | }
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+DeviceConfig.swift:63:63: error: 'builtInDualCamera' is unavailable in visionOS
61 | @unknown default:
62 | print("Unknown capture position. Defaulting to back, dual-camera.")
63 | newVideoDevice = AVCaptureDevice.default(.builtInDualCamera, for: .video, position: .back)
| `- error: 'builtInDualCamera' is unavailable in visionOS
64 | }
65 | }
/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/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+DeviceConfig.swift:79:80: error: 'AVCaptureDeviceSubjectAreaDidChange' is unavailable in visionOS
77 |
78 | if self.session.canAddInput(videoDeviceInput) {
79 | NotificationCenter.default.removeObserver(self, name: .AVCaptureDeviceSubjectAreaDidChange, object: currentVideoDevice)
| `- error: 'AVCaptureDeviceSubjectAreaDidChange' is unavailable in visionOS
80 | NotificationCenter.default.addObserver(forName: .AVCaptureDeviceSubjectAreaDidChange, object: videoDeviceInput.device, queue: nil, using: self.subjectAreaDidChange(notification:))
81 |
AVFoundation.NSNotification.Name.AVCaptureDeviceSubjectAreaDidChange:9:23: note: 'AVCaptureDeviceSubjectAreaDidChange' has been explicitly marked unavailable here
7 | @available(visionOS, unavailable)
8 | @available(watchOS, unavailable)
9 | public static var AVCaptureDeviceSubjectAreaDidChange: NSNotification.Name { get } }
| `- note: 'AVCaptureDeviceSubjectAreaDidChange' has been explicitly marked unavailable here
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+DeviceConfig.swift:80:74: error: 'AVCaptureDeviceSubjectAreaDidChange' is unavailable in visionOS
78 | if self.session.canAddInput(videoDeviceInput) {
79 | NotificationCenter.default.removeObserver(self, name: .AVCaptureDeviceSubjectAreaDidChange, object: currentVideoDevice)
80 | NotificationCenter.default.addObserver(forName: .AVCaptureDeviceSubjectAreaDidChange, object: videoDeviceInput.device, queue: nil, using: self.subjectAreaDidChange(notification:))
| `- error: 'AVCaptureDeviceSubjectAreaDidChange' is unavailable in visionOS
81 |
82 | self.session.addInput(videoDeviceInput)
AVFoundation.NSNotification.Name.AVCaptureDeviceSubjectAreaDidChange:9:23: note: 'AVCaptureDeviceSubjectAreaDidChange' has been explicitly marked unavailable here
7 | @available(visionOS, unavailable)
8 | @available(watchOS, unavailable)
9 | public static var AVCaptureDeviceSubjectAreaDidChange: NSNotification.Name { get } }
| `- note: 'AVCaptureDeviceSubjectAreaDidChange' has been explicitly marked unavailable here
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+DeviceConfig.swift:98:38: error: 'sessionPreset' is unavailable in visionOS
96 | }
97 | if let connection = self.movieFileOutput?.connection(with: .video) {
98 | self.session.sessionPreset = .high
| `- error: 'sessionPreset' is unavailable in visionOS
99 |
100 | self.selectedMovieMode10BitDeviceFormat = self.tenBitVariantOfFormat(activeFormat: self.videoDeviceInput.device.activeFormat)
/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/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+DeviceConfig.swift:98:55: error: 'high' is unavailable in visionOS
96 | }
97 | if let connection = self.movieFileOutput?.connection(with: .video) {
98 | self.session.sessionPreset = .high
| `- error: 'high' is unavailable in visionOS
99 |
100 | self.selectedMovieMode10BitDeviceFormat = self.tenBitVariantOfFormat(activeFormat: self.videoDeviceInput.device.activeFormat)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSessionPreset.h:41:41: note: 'high' has been explicitly marked unavailable here
39 | Clients may set an AVCaptureSession instance's sessionPreset to AVCaptureSessionPresetHigh to achieve high quality video and audio output. AVCaptureSessionPresetHigh is the default sessionPreset value.
40 | */
41 | AVF_EXPORT AVCaptureSessionPreset const AVCaptureSessionPresetHigh API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
| `- note: 'high' has been explicitly marked unavailable here
42 |
43 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+DeviceConfig.swift:116:39: error: 'isVideoStabilizationSupported' is unavailable in visionOS
114 | }
115 |
116 | if connection.isVideoStabilizationSupported {
| `- error: 'isVideoStabilizationSupported' is unavailable in visionOS
117 | connection.preferredVideoStabilizationMode = .auto
118 | }
/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:1233:75: note: 'isVideoStabilizationSupported' has been explicitly marked unavailable here
1231 | This property is only applicable to AVCaptureConnection instances involving video. In such connections, the -enablesVideoStabilizationWhenAvailable property may only be set if -supportsVideoStabilization returns YES. This property returns YES if the connection's input device has one or more formats that support video stabilization and the connection's output supports video stabilization (or in the case of ProRes RAW, support stabilization metadata attachments). See [AVCaptureDeviceFormat isVideoStabilizationModeSupported:] to check which video stabilization modes are supported by the active device format.
1232 | */
1233 | @property(nonatomic, readonly, getter=isVideoStabilizationSupported) BOOL supportsVideoStabilization API_AVAILABLE(ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
| `- note: 'isVideoStabilizationSupported' has been explicitly marked unavailable here
1234 |
1235 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+DeviceConfig.swift:117:40: error: 'preferredVideoStabilizationMode' is unavailable in visionOS
115 |
116 | if connection.isVideoStabilizationSupported {
117 | connection.preferredVideoStabilizationMode = .auto
| `- error: 'preferredVideoStabilizationMode' is unavailable in visionOS
118 | }
119 | }
/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:1213:54: note: 'preferredVideoStabilizationMode' has been explicitly marked unavailable here
1211 | Enabling video stabilization introduces additional latency into the video capture pipeline and may consume more system memory depending on the stabilization mode and format. If the preferred stabilization mode isn't available, the activeVideoStabilizationMode will be set to AVCaptureVideoStabilizationModeOff. Clients may key-value observe the activeVideoStabilizationMode property to know which stabilization mode is in use or when it is off. The default value is AVCaptureVideoStabilizationModeOff. When setting this property to AVCaptureVideoStabilizationModeAuto, an appropriate stabilization mode will be chosen based on the format and frame rate. For apps linked before iOS 6.0, the default value is AVCaptureVideoStabilizationModeStandard for a video connection attached to an AVCaptureMovieFileOutput instance. For apps linked on or after iOS 6.0, the default value is always AVCaptureVideoStabilizationModeOff. Setting a video stabilization mode using this property may change the value of enablesVideoStabilizationWhenAvailable.
1212 | */
1213 | @property(nonatomic) AVCaptureVideoStabilizationMode preferredVideoStabilizationMode API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
| `- note: 'preferredVideoStabilizationMode' has been explicitly marked unavailable here
1214 |
1215 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+InputCallbacks.swift:65:30: error: 'sessionPreset' is unavailable in visionOS
63 | self.session.removeOutput(movieFileOutput)
64 | }
65 | self.session.sessionPreset = .photo
| `- error: 'sessionPreset' is unavailable in visionOS
66 |
67 | // DispatchQueue.main.async {
/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/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+InputCallbacks.swift:65:47: error: 'photo' is unavailable in visionOS
63 | self.session.removeOutput(movieFileOutput)
64 | }
65 | self.session.sessionPreset = .photo
| `- error: 'photo' is unavailable in visionOS
66 |
67 | // DispatchQueue.main.async {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSessionPreset.h:31:41: note: 'photo' has been explicitly marked unavailable here
29 | Clients may set an AVCaptureSession instance's sessionPreset to AVCaptureSessionPresetPhoto for full resolution photo quality output.
30 | */
31 | AVF_EXPORT AVCaptureSessionPreset const AVCaptureSessionPresetPhoto API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
| `- note: 'photo' has been explicitly marked unavailable here
32 |
33 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+InputCallbacks.swift:90:39: error: 'AVCaptureMovieFileOutput' is unavailable in visionOS
88 |
89 | sessionQueue.async {
90 | let movieFileOutput = AVCaptureMovieFileOutput()
| `- error: 'AVCaptureMovieFileOutput' is unavailable in visionOS
91 |
92 | if self.session.canAddOutput(movieFileOutput) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h:405:12: note: 'AVCaptureMovieFileOutput' has been explicitly marked unavailable here
403 | */
404 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
405 | @interface AVCaptureMovieFileOutput : AVCaptureFileOutput
| `- note: 'AVCaptureMovieFileOutput' has been explicitly marked unavailable here
406 | {
407 | @private
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+InputCallbacks.swift:95:34: error: 'sessionPreset' is unavailable in visionOS
93 | self.session.beginConfiguration()
94 | self.session.addOutput(movieFileOutput)
95 | self.session.sessionPreset = .high
| `- error: 'sessionPreset' is unavailable in visionOS
96 |
97 | self.selectedMovieMode10BitDeviceFormat = self.tenBitVariantOfFormat(activeFormat: self.videoDeviceInput.device.activeFormat)
/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/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+InputCallbacks.swift:95:51: error: 'high' is unavailable in visionOS
93 | self.session.beginConfiguration()
94 | self.session.addOutput(movieFileOutput)
95 | self.session.sessionPreset = .high
| `- error: 'high' is unavailable in visionOS
96 |
97 | self.selectedMovieMode10BitDeviceFormat = self.tenBitVariantOfFormat(activeFormat: self.videoDeviceInput.device.activeFormat)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSessionPreset.h:41:41: note: 'high' has been explicitly marked unavailable here
39 | Clients may set an AVCaptureSession instance's sessionPreset to AVCaptureSessionPresetHigh to achieve high quality video and audio output. AVCaptureSessionPresetHigh is the default sessionPreset value.
40 | */
41 | AVF_EXPORT AVCaptureSessionPreset const AVCaptureSessionPresetHigh API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
| `- note: 'high' has been explicitly marked unavailable here
42 |
43 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+InputCallbacks.swift:118:39: error: 'isVideoStabilizationSupported' is unavailable in visionOS
116 |
117 | if let connection = movieFileOutput.connection(with: .video) {
118 | if connection.isVideoStabilizationSupported {
| `- error: 'isVideoStabilizationSupported' is unavailable in visionOS
119 | connection.preferredVideoStabilizationMode = .auto
120 | }
/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:1233:75: note: 'isVideoStabilizationSupported' has been explicitly marked unavailable here
1231 | This property is only applicable to AVCaptureConnection instances involving video. In such connections, the -enablesVideoStabilizationWhenAvailable property may only be set if -supportsVideoStabilization returns YES. This property returns YES if the connection's input device has one or more formats that support video stabilization and the connection's output supports video stabilization (or in the case of ProRes RAW, support stabilization metadata attachments). See [AVCaptureDeviceFormat isVideoStabilizationModeSupported:] to check which video stabilization modes are supported by the active device format.
1232 | */
1233 | @property(nonatomic, readonly, getter=isVideoStabilizationSupported) BOOL supportsVideoStabilization API_AVAILABLE(ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
| `- note: 'isVideoStabilizationSupported' has been explicitly marked unavailable here
1234 |
1235 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+InputCallbacks.swift:119:40: error: 'preferredVideoStabilizationMode' is unavailable in visionOS
117 | if let connection = movieFileOutput.connection(with: .video) {
118 | if connection.isVideoStabilizationSupported {
119 | connection.preferredVideoStabilizationMode = .auto
| `- error: 'preferredVideoStabilizationMode' is unavailable in visionOS
120 | }
121 | }
/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:1213:54: note: 'preferredVideoStabilizationMode' has been explicitly marked unavailable here
1211 | Enabling video stabilization introduces additional latency into the video capture pipeline and may consume more system memory depending on the stabilization mode and format. If the preferred stabilization mode isn't available, the activeVideoStabilizationMode will be set to AVCaptureVideoStabilizationModeOff. Clients may key-value observe the activeVideoStabilizationMode property to know which stabilization mode is in use or when it is off. The default value is AVCaptureVideoStabilizationModeOff. When setting this property to AVCaptureVideoStabilizationModeAuto, an appropriate stabilization mode will be chosen based on the format and frame rate. For apps linked before iOS 6.0, the default value is AVCaptureVideoStabilizationModeStandard for a video connection attached to an AVCaptureMovieFileOutput instance. For apps linked on or after iOS 6.0, the default value is always AVCaptureVideoStabilizationModeOff. Setting a video stabilization mode using this property may change the value of enablesVideoStabilizationWhenAvailable.
1212 | */
1213 | @property(nonatomic) AVCaptureVideoStabilizationMode preferredVideoStabilizationMode API_AVAILABLE(ios(8.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
| `- note: 'preferredVideoStabilizationMode' has been explicitly marked unavailable here
1214 |
1215 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+InputCallbacks.swift:146:89: error: 'supportedMaxPhotoDimensions' is unavailable in visionOS
144 | internal func configurePhotoOutput() {
145 | if #available(iOS 16.0, *) {
146 | let supportedMaxPhotoDimensions = self.videoDeviceInput.device.activeFormat.supportedMaxPhotoDimensions
| `- error: 'supportedMaxPhotoDimensions' is unavailable in visionOS
147 | let largestDimesnion = supportedMaxPhotoDimensions.last
148 | self.photoOutput.maxPhotoDimensions = largestDimesnion!
AVFoundation.AVCaptureDevice.Format.supportedMaxPhotoDimensions:3:21: note: 'supportedMaxPhotoDimensions' has been explicitly marked unavailable here
1 | class AVCaptureDevice {
2 | class Format {
3 | @nonobjc public var supportedMaxPhotoDimensions: [CMVideoDimensions] { get } }
| `- note: 'supportedMaxPhotoDimensions' has been explicitly marked unavailable here
4 | }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Primary Types/AVCaptureViewModel.swift:457:32: error: 'AVCapturePhotoOutput' is unavailable in visionOS
455 | @Published public var lastPhotoCaptured: Data? = nil
456 |
457 | internal let photoOutput = AVCapturePhotoOutput()
| `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
458 |
459 | // @available(iOS 17.0, *)
/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/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+InputCallbacks.swift:148:30: error: 'maxPhotoDimensions' is unavailable in visionOS
146 | let supportedMaxPhotoDimensions = self.videoDeviceInput.device.activeFormat.supportedMaxPhotoDimensions
147 | let largestDimesnion = supportedMaxPhotoDimensions.last
148 | self.photoOutput.maxPhotoDimensions = largestDimesnion!
| `- error: 'maxPhotoDimensions' is unavailable in visionOS
149 | }
150 |
/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:547:40: note: 'maxPhotoDimensions' has been explicitly marked unavailable here
545 | Note: When supported, the 24MP setting (5712, 4284) is only serviced as 24MP when opted-in to autoDeferredPhotoDeliveryEnabled.
546 | */
547 | @property(nonatomic) CMVideoDimensions maxPhotoDimensions API_AVAILABLE(ios(16.0), macos(13.0), macCatalyst(16.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
| `- note: 'maxPhotoDimensions' has been explicitly marked unavailable here
548 |
549 | /*!
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+DeviceConfig.swift (in target 'AVCaptureViewModel' from project 'AVCaptureViewModel')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile AVCaptureViewModel+DeviceConfig.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+InputCallbacks.swift (in target 'AVCaptureViewModel' from project 'AVCaptureViewModel')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile AVCaptureViewModel+InputCallbacks.swift
SwiftCompile normal arm64 Compiling\ AVCaptureViewModelSettings.swift,\ CameraSessionState.swift /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Helper\ Types/AVCaptureViewModelSettings.swift /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Helper\ Types/CameraSessionState.swift (in target 'AVCaptureViewModel' from project 'AVCaptureViewModel')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Helper\ Types/AVCaptureViewModelSettings.swift (in target 'AVCaptureViewModel' from project 'AVCaptureViewModel')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile AVCaptureViewModelSettings.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Helper\ Types/CameraSessionState.swift (in target 'AVCaptureViewModel' from project 'AVCaptureViewModel')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile CameraSessionState.swift
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Helper Types/AVCaptureViewModelSettings.swift:51:75: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
49 | ///
50 | /// - Note: This callback is called on the main thread.
51 | public var photoCaptureScreenFlashCallback: (_ videoPreviewLayer: AVCaptureVideoPreviewLayer) -> Void = { videoPreviewLayer in
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
52 | videoPreviewLayer.opacity = 0
53 | UIView.animate(withDuration: 0.25) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureVideoPreviewLayer.h:33:12: note: 'AVCaptureVideoPreviewLayer' has been explicitly marked unavailable here
31 | */
32 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
33 | @interface AVCaptureVideoPreviewLayer : CALayer
| `- note: 'AVCaptureVideoPreviewLayer' has been explicitly marked unavailable here
34 | {
35 | @private
SwiftCompile normal arm64 Compiling\ AVCaptureViewModel+RecordingMovies.swift /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+RecordingMovies.swift (in target 'AVCaptureViewModel' from project 'AVCaptureViewModel')
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+RecordingMovies.swift:85:38: error: 'AVCaptureFileOutput' is unavailable in visionOS
83 |
84 | /// - Tag: DidStartRecording
85 | public func fileOutput(_ output: AVCaptureFileOutput, didStartRecordingTo fileURL: URL, from connections: [AVCaptureConnection]) {
| `- error: 'AVCaptureFileOutput' is unavailable in visionOS
86 | capturedMovieURLs.insert(fileURL)
87 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h:36:12: note: 'AVCaptureFileOutput' has been explicitly marked unavailable here
34 | */
35 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
36 | @interface AVCaptureFileOutput : AVCaptureOutput
| `- note: 'AVCaptureFileOutput' has been explicitly marked unavailable here
37 | {
38 | @private
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+RecordingMovies.swift:98:38: error: 'AVCaptureFileOutput' is unavailable in visionOS
96 |
97 | /// - Tag: DidFinishRecording
98 | public func fileOutput(_ output: AVCaptureFileOutput,
| `- error: 'AVCaptureFileOutput' is unavailable in visionOS
99 | didFinishRecordingTo outputFileURL: URL,
100 | from connections: [AVCaptureConnection],
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h:36:12: note: 'AVCaptureFileOutput' has been explicitly marked unavailable here
34 | */
35 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
36 | @interface AVCaptureFileOutput : AVCaptureOutput
| `- note: 'AVCaptureFileOutput' has been explicitly marked unavailable here
37 | {
38 | @private
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+RecordingMovies.swift:14:31: error: 'AVCaptureFileOutputRecordingDelegate' is unavailable in visionOS
12 | // MARK: Recording Movies
13 |
14 | extension AVCaptureViewModel: AVCaptureFileOutputRecordingDelegate {
| `- error: 'AVCaptureFileOutputRecordingDelegate' is unavailable in visionOS
15 | /// Starts/stops video capture recording video.
16 | ///
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h:206:11: note: 'AVCaptureFileOutputRecordingDelegate' has been explicitly marked unavailable here
204 | */
205 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
206 | @protocol AVCaptureFileOutputRecordingDelegate <NSObject>
| `- note: 'AVCaptureFileOutputRecordingDelegate' has been explicitly marked unavailable here
207 |
208 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+RecordingMovies.swift:60:57: error: 'isVideoOrientationSupported' is unavailable in visionOS
58 | // TODO: add use of isVideoRotationAngleSupported(videoRotationAngle) on photoOutputConnection
59 | // movieFileOutputConnection?.videoRotationAngle = videoRotationAngle
60 | } else if movieFileOutputConnection.isVideoOrientationSupported {
| `- error: 'isVideoOrientationSupported' is unavailable in visionOS
61 | movieFileOutputConnection.videoOrientation = captureOrientation
62 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:1101:73: note: 'isVideoOrientationSupported' has been explicitly marked unavailable here
1099 | This property is deprecated. Use -isVideoRotationAngleSupported: instead.
1100 | */
1101 | @property(nonatomic, readonly, getter=isVideoOrientationSupported) BOOL supportsVideoOrientation API_DEPRECATED("Use -isVideoRotationAngleSupported: instead", macos(10.7, 14.0), ios(4.0, 17.0), macCatalyst(14.0, 17.0)) API_UNAVAILABLE(tvos, visionos);
| `- note: 'isVideoOrientationSupported' has been explicitly marked unavailable here
1102 |
1103 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+RecordingMovies.swift:61:51: error: 'videoOrientation' is unavailable in visionOS
59 | // movieFileOutputConnection?.videoRotationAngle = videoRotationAngle
60 | } else if movieFileOutputConnection.isVideoOrientationSupported {
61 | movieFileOutputConnection.videoOrientation = captureOrientation
| `- error: 'videoOrientation' is unavailable in visionOS
62 | }
63 |
/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/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+RecordingMovies.swift:66:68: error: 'availableVideoCodecTypes' is unavailable in visionOS
64 | // TODO: if making this a package, make sure to make this an option
65 | // Sets output settings to .hevc if device supports. We need to keep it with jpeg
66 | let availableVideoCodecTypes = movieFileOutput.availableVideoCodecTypes
| `- error: 'availableVideoCodecTypes' is unavailable in visionOS
67 | if availableVideoCodecTypes.contains(.hevc) {
68 | movieFileOutput.setOutputSettings([AVVideoCodecKey: AVVideoCodecType.hevc], for: movieFileOutputConnection)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h:447:59: note: 'availableVideoCodecTypes' has been explicitly marked unavailable here
445 | The value of this property is an NSArray of AVVideoCodecTypes that can be used as values for the AVVideoCodecKey in the receiver's setOutputSettingsForConnection: dictionary. The array of available video codecs may change depending on the current session preset. The first codec in the array is used by default when recording a file.
446 | */
447 | @property(nonatomic, readonly) NSArray<AVVideoCodecType> *availableVideoCodecTypes API_AVAILABLE(ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(macos, visionos);
| `- note: 'availableVideoCodecTypes' has been explicitly marked unavailable here
448 |
449 | /*!
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+RecordingMovies.swift (in target 'AVCaptureViewModel' from project 'AVCaptureViewModel')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile AVCaptureViewModel+RecordingMovies.swift
SwiftCompile normal arm64 Compiling\ AVCaptureViewModel.swift,\ AVCaptureViewModel+CapturingPhotos.swift /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Primary\ Types/AVCaptureViewModel.swift /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+CapturingPhotos.swift (in target 'AVCaptureViewModel' from project 'AVCaptureViewModel')
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Primary Types/AVCaptureViewModel.swift:43:35: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
41 | /// - term SwiftUI: This must be set to ``CameraPreview/videoPreviewLayer`` via ``CameraPreview/init(videoPreviewLayer:session:)``.
42 | /// - term UIKit: This must be set to ``CameraPreviewView/videoPreviewLayer`` directly.
43 | public var videoPreviewLayer: AVCaptureVideoPreviewLayer! {
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
44 | didSet {
45 | guard videoPreviewLayer != nil 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/AVCaptureVideoPreviewLayer.h:33:12: note: 'AVCaptureVideoPreviewLayer' has been explicitly marked unavailable here
31 | */
32 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
33 | @interface AVCaptureVideoPreviewLayer : CALayer
| `- note: 'AVCaptureVideoPreviewLayer' has been explicitly marked unavailable here
34 | {
35 | @private
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Primary Types/AVCaptureViewModel.swift:412:64: error: 'DiscoverySession' is only available in visionOS 2.1 or newer
17 | ///
18 | /// > Important: While it's not always necessary request permissions for current location (``settings-swift.property``.``Settings-swift.struct/tagLocationInCaptures`` can be set to `false`), camera permissions are required ([`NSCameraUsageDescription`](https://developer.apple.com/documentation/bundleresources/information_property_list/nscamerausagedescription)). Additionally, microphone permissions are optional, but recommended, as it's needed to capture audio for Live Photos and movies ([`NSMicrophoneUsageDescription`](https://developer.apple.com/documentation/bundleresources/information_property_list/nsmicrophoneusagedescription)).
19 | public class AVCaptureViewModel: NSObject, ObservableObject {
| `- note: add '@available' attribute to enclosing class
20 | // MARK: Private/Internal Properties
21 |
:
410 | }
411 |
412 | internal let videoDeviceDiscoverySession = AVCaptureDevice.DiscoverySession(
| `- error: 'DiscoverySession' is only available in visionOS 2.1 or newer
413 | deviceTypes: [.builtInWideAngleCamera, .builtInDualCamera, .builtInTrueDepthCamera],
414 | mediaType: .video,
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Primary Types/AVCaptureViewModel.swift:413:24: error: 'builtInWideAngleCamera' is only available in visionOS 2.1 or newer
17 | ///
18 | /// > Important: While it's not always necessary request permissions for current location (``settings-swift.property``.``Settings-swift.struct/tagLocationInCaptures`` can be set to `false`), camera permissions are required ([`NSCameraUsageDescription`](https://developer.apple.com/documentation/bundleresources/information_property_list/nscamerausagedescription)). Additionally, microphone permissions are optional, but recommended, as it's needed to capture audio for Live Photos and movies ([`NSMicrophoneUsageDescription`](https://developer.apple.com/documentation/bundleresources/information_property_list/nsmicrophoneusagedescription)).
19 | public class AVCaptureViewModel: NSObject, ObservableObject {
| `- note: add '@available' attribute to enclosing class
20 | // MARK: Private/Internal Properties
21 |
:
411 |
412 | internal let videoDeviceDiscoverySession = AVCaptureDevice.DiscoverySession(
413 | deviceTypes: [.builtInWideAngleCamera, .builtInDualCamera, .builtInTrueDepthCamera],
| `- error: 'builtInWideAngleCamera' is only available in visionOS 2.1 or newer
414 | mediaType: .video,
415 | position: .unspecified
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Primary Types/AVCaptureViewModel.swift:413:49: error: 'builtInDualCamera' is unavailable in visionOS
411 |
412 | internal let videoDeviceDiscoverySession = AVCaptureDevice.DiscoverySession(
413 | deviceTypes: [.builtInWideAngleCamera, .builtInDualCamera, .builtInTrueDepthCamera],
| `- error: 'builtInDualCamera' is unavailable in visionOS
414 | mediaType: .video,
415 | position: .unspecified
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/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/AVCaptureViewModel/Primary Types/AVCaptureViewModel.swift:413:69: error: 'builtInTrueDepthCamera' is unavailable in visionOS
411 |
412 | internal let videoDeviceDiscoverySession = AVCaptureDevice.DiscoverySession(
413 | deviceTypes: [.builtInWideAngleCamera, .builtInDualCamera, .builtInTrueDepthCamera],
| `- error: 'builtInTrueDepthCamera' is unavailable in visionOS
414 | mediaType: .video,
415 | position: .unspecified
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/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/AVCaptureViewModel/Primary Types/AVCaptureViewModel.swift:425:38: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
423 | /// This updated automatically and can be subscribed to.
424 | @Published public var currentDeviceOrientation: UIDeviceOrientation = .unknown
425 | internal var captureOrientation: AVCaptureVideoOrientation {
| `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
426 | switch currentDeviceOrientation {
427 | case .portrait:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:104:28: note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
102 |
103 | /// Constants indicating video orientation, for use with AVCaptureDeviceRotationCoordinator.
104 | typedef NS_ENUM(NSInteger, AVCaptureVideoOrientation) {
| `- note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
105 | /// Indicates that video should be oriented vertically, port on the bottom.
106 | AVCaptureVideoOrientationPortrait = 1,
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Primary Types/AVCaptureViewModel.swift:457:32: error: 'AVCapturePhotoOutput' is unavailable in visionOS
455 | @Published public var lastPhotoCaptured: Data? = nil
456 |
457 | internal let photoOutput = AVCapturePhotoOutput()
| `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
458 |
459 | // @available(iOS 17.0, *)
/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/AVCaptureViewModel/Primary Types/AVCaptureViewModel.swift:462:33: error: 'AVCapturePhotoSettings' is unavailable in visionOS
460 | // internal var photoOutputReadinessCoordinator: AVCapturePhotoOutputReadinessCoordinator!
461 |
462 | internal var photoSettings: AVCapturePhotoSettings!
| `- error: 'AVCapturePhotoSettings' is unavailable in visionOS
463 |
464 | internal var inProgressPhotoCaptureDelegates = [Int64: PhotoCaptureProcessor]()
/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/AVCaptureViewModel/Primary Types/AVCaptureViewModel.swift:473:54: error: 'FlashMode' is unavailable in visionOS
471 | ///
472 | /// > See More: [`flashMode`](https://developer.apple.com/documentation/avfoundation/avcapturephotosettings/1648760-flashmode).
473 | @Published public var flashMode: AVCaptureDevice.FlashMode = .auto
| `- error: 'FlashMode' is unavailable in visionOS
474 |
475 | /// Whether the active session is capturing Live Photos.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:967:28: note: 'FlashMode' has been explicitly marked unavailable here
965 | Indicates that the flash should be used automatically depending on ambient light conditions.
966 | */
967 | typedef NS_ENUM(NSInteger, AVCaptureFlashMode) {
| `- note: 'FlashMode' has been explicitly marked unavailable here
968 | AVCaptureFlashModeOff = 0,
969 | AVCaptureFlashModeOn = 1,
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Primary Types/AVCaptureViewModel.swift:487:59: error: 'AVCapturePhotoOutput' is unavailable in visionOS
485 | ///
486 | /// For more info, see [`AVCapturePhotoSettings.photoQualityPrioritization`](https://developer.apple.com/documentation/avfoundation/avcapturephotosettings/3183000-photoqualityprioritization).
487 | @Published public var photoQualityPrioritizationMode: AVCapturePhotoOutput.QualityPrioritization = .balanced
| `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
488 |
489 | // TODO: add Published properties for state/processingPhoto (or isCapturingPhoto) and isCapturingVideo or events (maybe via a subject)
/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/AVCaptureViewModel/Primary Types/AVCaptureViewModel.swift:521:35: error: 'AVCaptureMovieFileOutput' is unavailable in visionOS
519 | internal var capturedMovieURLs: Set<URL> = []
520 |
521 | internal var movieFileOutput: AVCaptureMovieFileOutput?
| `- error: 'AVCaptureMovieFileOutput' is unavailable in visionOS
522 |
523 | internal var backgroundRecordingID: UIBackgroundTaskIdentifier?
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h:405:12: note: 'AVCaptureMovieFileOutput' has been explicitly marked unavailable here
403 | */
404 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
405 | @interface AVCaptureMovieFileOutput : AVCaptureFileOutput
| `- note: 'AVCaptureMovieFileOutput' has been explicitly marked unavailable here
406 | {
407 | @private
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Primary Types/AVCaptureViewModel.swift:151:26: error: 'beginGeneratingDeviceOrientationNotifications()' is unavailable in visionOS
149 |
150 | // Observing changes to device orientation
151 | UIDevice.current.beginGeneratingDeviceOrientationNotifications()
| `- error: 'beginGeneratingDeviceOrientationNotifications()' is unavailable in visionOS
152 | let orientationChanges = NotificationCenter.default.publisher(for: UIDevice.orientationDidChangeNotification)
153 | .handleEvents(receiveCancel: {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h:49:1: note: 'beginGeneratingDeviceOrientationNotifications()' has been explicitly marked unavailable here
47 |
48 | @property(nonatomic,readonly,getter=isGeneratingDeviceOrientationNotifications) BOOL generatesDeviceOrientationNotifications API_UNAVAILABLE(tvos, visionos);
49 | - (void)beginGeneratingDeviceOrientationNotifications API_UNAVAILABLE(tvos, visionos); // nestable
| `- note: 'beginGeneratingDeviceOrientationNotifications()' has been explicitly marked unavailable here
50 | - (void)endGeneratingDeviceOrientationNotifications API_UNAVAILABLE(tvos, visionos);
51 |
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Primary Types/AVCaptureViewModel.swift:152:85: error: 'orientationDidChangeNotification' is unavailable in visionOS
150 | // Observing changes to device orientation
151 | UIDevice.current.beginGeneratingDeviceOrientationNotifications()
152 | let orientationChanges = NotificationCenter.default.publisher(for: UIDevice.orientationDidChangeNotification)
| `- error: 'orientationDidChangeNotification' is unavailable in visionOS
153 | .handleEvents(receiveCancel: {
154 | UIDevice.current.endGeneratingDeviceOrientationNotifications()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h:83:39: note: 'orientationDidChangeNotification' has been explicitly marked unavailable here
81 | }
82 |
83 | UIKIT_EXTERN NSNotificationName const UIDeviceOrientationDidChangeNotification API_UNAVAILABLE(tvos, visionos, watchos) NS_SWIFT_NONISOLATED;
| `- note: 'orientationDidChangeNotification' has been explicitly marked unavailable here
84 | UIKIT_EXTERN NSNotificationName const UIDeviceBatteryStateDidChangeNotification API_AVAILABLE(ios(3.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_NONISOLATED;
85 | UIKIT_EXTERN NSNotificationName const UIDeviceBatteryLevelDidChangeNotification API_AVAILABLE(ios(3.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_NONISOLATED;
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Primary Types/AVCaptureViewModel.swift:154:34: error: 'endGeneratingDeviceOrientationNotifications()' is unavailable in visionOS
152 | let orientationChanges = NotificationCenter.default.publisher(for: UIDevice.orientationDidChangeNotification)
153 | .handleEvents(receiveCancel: {
154 | UIDevice.current.endGeneratingDeviceOrientationNotifications()
| `- error: 'endGeneratingDeviceOrientationNotifications()' is unavailable in visionOS
155 | })
156 | .compactMap { $0.object as? UIDevice }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h:50:1: note: 'endGeneratingDeviceOrientationNotifications()' has been explicitly marked unavailable here
48 | @property(nonatomic,readonly,getter=isGeneratingDeviceOrientationNotifications) BOOL generatesDeviceOrientationNotifications API_UNAVAILABLE(tvos, visionos);
49 | - (void)beginGeneratingDeviceOrientationNotifications API_UNAVAILABLE(tvos, visionos); // nestable
50 | - (void)endGeneratingDeviceOrientationNotifications API_UNAVAILABLE(tvos, visionos);
| `- note: 'endGeneratingDeviceOrientationNotifications()' has been explicitly marked unavailable here
51 |
52 | @property(nonatomic,getter=isBatteryMonitoringEnabled) BOOL batteryMonitoringEnabled API_AVAILABLE(ios(3.0)) API_UNAVAILABLE(tvos); // default is NO
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Primary Types/AVCaptureViewModel.swift:157:20: error: 'orientation' is unavailable in visionOS
155 | })
156 | .compactMap { $0.object as? UIDevice }
157 | .map(\.orientation)
| `- error: 'orientation' is unavailable in visionOS
158 | .receive(on: DispatchQueue.main)
159 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h:44:51: note: 'orientation' has been explicitly marked unavailable here
42 | @property(nonatomic,readonly,strong) NSString *systemName; // e.g. @"iOS"
43 | @property(nonatomic,readonly,strong) NSString *systemVersion; // e.g. @"4.0"
44 | @property(nonatomic,readonly) UIDeviceOrientation orientation API_UNAVAILABLE(tvos, visionos); // return current device orientation. this will return UIDeviceOrientationUnknown unless device orientation notifications are being generated.
| `- note: 'orientation' has been explicitly marked unavailable here
45 |
46 | @property(nullable, nonatomic,readonly,strong) NSUUID *identifierForVendor API_AVAILABLE(ios(6.0)); // a UUID that may be used to uniquely identify the device, same across apps from a single vendor.
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Primary Types/AVCaptureViewModel.swift:251:17: error: 'sessionPreset' is unavailable in visionOS
249 | // because Live Photo is not supported when AVCaptureMovieFileOutput is
250 | // added to the session.
251 | session.sessionPreset = .photo
| `- error: 'sessionPreset' is unavailable in visionOS
252 |
253 | // Add video input.
/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/AVCaptureViewModel/Primary Types/AVCaptureViewModel.swift:251:34: error: 'photo' is unavailable in visionOS
249 | // because Live Photo is not supported when AVCaptureMovieFileOutput is
250 | // added to the session.
251 | session.sessionPreset = .photo
| `- error: 'photo' is unavailable in visionOS
252 |
253 | // Add video input.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSessionPreset.h:31:41: note: 'photo' has been explicitly marked unavailable here
29 | Clients may set an AVCaptureSession instance's sessionPreset to AVCaptureSessionPresetPhoto for full resolution photo quality output.
30 | */
31 | AVF_EXPORT AVCaptureSessionPreset const AVCaptureSessionPresetPhoto API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
| `- note: 'photo' has been explicitly marked unavailable here
32 |
33 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Primary Types/AVCaptureViewModel.swift:260:50: error: 'default(for:)' is only available in visionOS 2.1 or newer
17 | ///
18 | /// > Important: While it's not always necessary request permissions for current location (``settings-swift.property``.``Settings-swift.struct/tagLocationInCaptures`` can be set to `false`), camera permissions are required ([`NSCameraUsageDescription`](https://developer.apple.com/documentation/bundleresources/information_property_list/nscamerausagedescription)). Additionally, microphone permissions are optional, but recommended, as it's needed to capture audio for Live Photos and movies ([`NSMicrophoneUsageDescription`](https://developer.apple.com/documentation/bundleresources/information_property_list/nsmicrophoneusagedescription)).
19 | public class AVCaptureViewModel: NSObject, ObservableObject {
| `- note: add '@available' attribute to enclosing class
20 | // MARK: Private/Internal Properties
21 |
:
239 |
240 | // Call this on the session queue.
241 | private func configureSession() {
| `- note: add '@available' attribute to enclosing instance method
242 | if ![.success, .initial].contains(setupResult) {
243 | return
:
258 | // defaultVideoDevice = AVCaptureDevice.systemPreferredCamera
259 | // } else {
260 | defaultVideoDevice = AVCaptureDevice.default(for: .video)
| |- error: 'default(for:)' is only available in visionOS 2.1 or newer
| `- note: add 'if #available' version check
261 | // }
262 |
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Primary Types/AVCaptureViewModel.swift:265:71: error: 'DiscoverySession' is only available in visionOS 2.1 or newer
17 | ///
18 | /// > Important: While it's not always necessary request permissions for current location (``settings-swift.property``.``Settings-swift.struct/tagLocationInCaptures`` can be set to `false`), camera permissions are required ([`NSCameraUsageDescription`](https://developer.apple.com/documentation/bundleresources/information_property_list/nscamerausagedescription)). Additionally, microphone permissions are optional, but recommended, as it's needed to capture audio for Live Photos and movies ([`NSMicrophoneUsageDescription`](https://developer.apple.com/documentation/bundleresources/information_property_list/nsmicrophoneusagedescription)).
19 | public class AVCaptureViewModel: NSObject, ObservableObject {
| `- note: add '@available' attribute to enclosing class
20 | // MARK: Private/Internal Properties
21 |
:
239 |
240 | // Call this on the session queue.
241 | private func configureSession() {
| `- note: add '@available' attribute to enclosing instance method
242 | if ![.success, .initial].contains(setupResult) {
243 | return
:
263 | let userDefaults = UserDefaults.standard
264 | if !userDefaults.bool(forKey: "setInitialUserPreferredCamera") || defaultVideoDevice == nil {
265 | let backVideoDeviceDiscoverySession = AVCaptureDevice.DiscoverySession(
| |- error: 'DiscoverySession' is only available in visionOS 2.1 or newer
| `- note: add 'if #available' version check
266 | deviceTypes: [.builtInDualCamera, .builtInWideAngleCamera],
267 | mediaType: .video,
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Primary Types/AVCaptureViewModel.swift:266:36: error: 'builtInDualCamera' is unavailable in visionOS
264 | if !userDefaults.bool(forKey: "setInitialUserPreferredCamera") || defaultVideoDevice == nil {
265 | let backVideoDeviceDiscoverySession = AVCaptureDevice.DiscoverySession(
266 | deviceTypes: [.builtInDualCamera, .builtInWideAngleCamera],
| `- error: 'builtInDualCamera' is unavailable in visionOS
267 | mediaType: .video,
268 | position: .back
/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/AVCaptureViewModel/Primary Types/AVCaptureViewModel.swift:266:56: error: 'builtInWideAngleCamera' is only available in visionOS 2.1 or newer
17 | ///
18 | /// > Important: While it's not always necessary request permissions for current location (``settings-swift.property``.``Settings-swift.struct/tagLocationInCaptures`` can be set to `false`), camera permissions are required ([`NSCameraUsageDescription`](https://developer.apple.com/documentation/bundleresources/information_property_list/nscamerausagedescription)). Additionally, microphone permissions are optional, but recommended, as it's needed to capture audio for Live Photos and movies ([`NSMicrophoneUsageDescription`](https://developer.apple.com/documentation/bundleresources/information_property_list/nsmicrophoneusagedescription)).
19 | public class AVCaptureViewModel: NSObject, ObservableObject {
| `- note: add '@available' attribute to enclosing class
20 | // MARK: Private/Internal Properties
21 |
:
239 |
240 | // Call this on the session queue.
241 | private func configureSession() {
| `- note: add '@available' attribute to enclosing instance method
242 | if ![.success, .initial].contains(setupResult) {
243 | return
:
264 | if !userDefaults.bool(forKey: "setInitialUserPreferredCamera") || defaultVideoDevice == nil {
265 | let backVideoDeviceDiscoverySession = AVCaptureDevice.DiscoverySession(
266 | deviceTypes: [.builtInDualCamera, .builtInWideAngleCamera],
| |- error: 'builtInWideAngleCamera' is only available in visionOS 2.1 or newer
| `- note: add 'if #available' version check
267 | mediaType: .video,
268 | position: .back
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Primary Types/AVCaptureViewModel.swift:326:50: error: 'default(for:)' is only available in visionOS 2.1 or newer
17 | ///
18 | /// > Important: While it's not always necessary request permissions for current location (``settings-swift.property``.``Settings-swift.struct/tagLocationInCaptures`` can be set to `false`), camera permissions are required ([`NSCameraUsageDescription`](https://developer.apple.com/documentation/bundleresources/information_property_list/nscamerausagedescription)). Additionally, microphone permissions are optional, but recommended, as it's needed to capture audio for Live Photos and movies ([`NSMicrophoneUsageDescription`](https://developer.apple.com/documentation/bundleresources/information_property_list/nsmicrophoneusagedescription)).
19 | public class AVCaptureViewModel: NSObject, ObservableObject {
| `- note: add '@available' attribute to enclosing class
20 | // MARK: Private/Internal Properties
21 |
:
239 |
240 | // Call this on the session queue.
241 | private func configureSession() {
| `- note: add '@available' attribute to enclosing instance method
242 | if ![.success, .initial].contains(setupResult) {
243 | return
:
324 | // Add an audio input device.
325 | do {
326 | if let audioDevice = AVCaptureDevice.default(for: .audio) {
| |- error: 'default(for:)' is only available in visionOS 2.1 or newer
| `- note: add 'if #available' version check
327 | let audioDeviceInput = try AVCaptureDeviceInput(device: audioDevice)
328 |
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Primary\ Types/AVCaptureViewModel.swift (in target 'AVCaptureViewModel' from project 'AVCaptureViewModel')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile AVCaptureViewModel.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+CapturingPhotos.swift (in target 'AVCaptureViewModel' from project 'AVCaptureViewModel')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile AVCaptureViewModel+CapturingPhotos.swift
SwiftCompile normal arm64 Compiling\ AVCaptureViewModel+TapAndFocus.swift /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+TapAndFocus.swift (in target 'AVCaptureViewModel' from project 'AVCaptureViewModel')
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+TapAndFocus.swift:50:55: error: 'FocusMode' is unavailable in visionOS
48 | /// }
49 | /// ```
50 | public func focus(with focusMode: AVCaptureDevice.FocusMode,
| `- error: 'FocusMode' is unavailable in visionOS
51 | exposureMode: AVCaptureDevice.ExposureMode,
52 | at touchPosition: CGPoint) {
/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/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+TapAndFocus.swift:51:53: error: 'ExposureMode' is unavailable in visionOS
49 | /// ```
50 | public func focus(with focusMode: AVCaptureDevice.FocusMode,
51 | exposureMode: AVCaptureDevice.ExposureMode,
| `- error: 'ExposureMode' is unavailable in visionOS
52 | at touchPosition: CGPoint) {
53 | let devicePoint = videoPreviewLayer.captureDevicePointConverted(fromLayerPoint: touchPosition)
/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/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+TapAndFocus.swift:79:55: error: 'FocusMode' is unavailable in visionOS
77 | ///
78 | /// To use this functionality, call this function from an `@IBAction` outlet function, passing in the `UITapGestureRecognizer` parameter.
79 | public func focus(with focusMode: AVCaptureDevice.FocusMode,
| `- error: 'FocusMode' is unavailable in visionOS
80 | exposureMode: AVCaptureDevice.ExposureMode,
81 | gestureRecognizer: UITapGestureRecognizer) {
/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/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+TapAndFocus.swift:80:53: error: 'ExposureMode' is unavailable in visionOS
78 | /// To use this functionality, call this function from an `@IBAction` outlet function, passing in the `UITapGestureRecognizer` parameter.
79 | public func focus(with focusMode: AVCaptureDevice.FocusMode,
80 | exposureMode: AVCaptureDevice.ExposureMode,
| `- error: 'ExposureMode' is unavailable in visionOS
81 | gestureRecognizer: UITapGestureRecognizer) {
82 | focus(with: focusMode, exposureMode: exposureMode, at: gestureRecognizer.location(in: gestureRecognizer.view), monitorSubjectAreaChange: true)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:1422:28: note: 'ExposureMode' has been explicitly marked unavailable here
1420 | Indicates that the device should only adjust exposure according to user provided ISO, exposureDuration values.
1421 | */
1422 | typedef NS_ENUM(NSInteger, AVCaptureExposureMode) {
| `- note: 'ExposureMode' has been explicitly marked unavailable here
1423 | AVCaptureExposureModeLocked = 0,
1424 | AVCaptureExposureModeAutoExpose = 1,
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+TapAndFocus.swift:88:57: error: 'FocusMode' is unavailable in visionOS
86 | extension AVCaptureViewModel {
87 | /// Internally used as the backend for ``focusAndExposeTap(gesturePosition:)``, ``focusAndExposeTap(gestureRecognizer:)``, ``focus(with:exposureMode:at:)``, and ``focus(with:exposureMode:gestureRecognizer:)``.
88 | internal func focus(with focusMode: AVCaptureDevice.FocusMode,
| `- error: 'FocusMode' is unavailable in visionOS
89 | exposureMode: AVCaptureDevice.ExposureMode,
90 | at previewPoint: CGPoint,
/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/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+TapAndFocus.swift:89:55: error: 'ExposureMode' is unavailable in visionOS
87 | /// Internally used as the backend for ``focusAndExposeTap(gesturePosition:)``, ``focusAndExposeTap(gestureRecognizer:)``, ``focus(with:exposureMode:at:)``, and ``focus(with:exposureMode:gestureRecognizer:)``.
88 | internal func focus(with focusMode: AVCaptureDevice.FocusMode,
89 | exposureMode: AVCaptureDevice.ExposureMode,
| `- error: 'ExposureMode' is unavailable in visionOS
90 | at previewPoint: CGPoint,
91 | monitorSubjectAreaChange: Bool) {
/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/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+TapAndFocus.swift:53:45: error: 'captureDevicePointConverted(fromLayerPoint:)' is unavailable in visionOS
51 | exposureMode: AVCaptureDevice.ExposureMode,
52 | at touchPosition: CGPoint) {
53 | let devicePoint = videoPreviewLayer.captureDevicePointConverted(fromLayerPoint: touchPosition)
| `- error: 'captureDevicePointConverted(fromLayerPoint:)' is unavailable in visionOS
54 | focus(with: focusMode, exposureMode: exposureMode, at: devicePoint, monitorSubjectAreaChange: true)
55 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureVideoPreviewLayer.h:150:1: note: 'captureDevicePointConverted(fromLayerPoint:)' has been explicitly marked unavailable here
148 | AVCaptureDevice pointOfInterest is expressed as a CGPoint where {0,0} represents the top left of the picture area, and {1,1} represents the bottom right on an unrotated picture. This convenience method converts a point in the coordinate space of the receiver to a point of interest in the coordinate space of the AVCaptureDevice providing input to the receiver. The conversion takes frameSize and videoGravity into consideration.
149 | */
150 | - (CGPoint)captureDevicePointOfInterestForPoint:(CGPoint)pointInLayer API_AVAILABLE(macos(10.15), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos);
| `- note: 'captureDevicePointConverted(fromLayerPoint:)' has been explicitly marked unavailable here
151 |
152 | /*!
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+TapAndFocus.swift (in target 'AVCaptureViewModel' from project 'AVCaptureViewModel')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile AVCaptureViewModel+TapAndFocus.swift
SwiftCompile normal arm64 Compiling\ CameraPreviewView.swift /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Views/CameraPreviewView.swift (in target 'AVCaptureViewModel' from project 'AVCaptureViewModel')
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Views/CameraPreviewView.swift:64:35: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
62 |
63 | /// The view preview `CALayer`.
64 | public var videoPreviewLayer: AVCaptureVideoPreviewLayer {
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
65 | guard let layer = layer as? AVCaptureVideoPreviewLayer else {
66 | fatalError("Expected `AVCaptureVideoPreviewLayer` type for layer. Check CameraPreviewView.layerClass implementation.")
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureVideoPreviewLayer.h:33:12: note: 'AVCaptureVideoPreviewLayer' has been explicitly marked unavailable here
31 | */
32 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
33 | @interface AVCaptureVideoPreviewLayer : CALayer
| `- note: 'AVCaptureVideoPreviewLayer' has been explicitly marked unavailable here
34 | {
35 | @private
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Views/CameraPreviewView.swift:65:37: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
63 | /// The view preview `CALayer`.
64 | public var videoPreviewLayer: AVCaptureVideoPreviewLayer {
65 | guard let layer = layer as? AVCaptureVideoPreviewLayer else {
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
66 | fatalError("Expected `AVCaptureVideoPreviewLayer` type for layer. Check CameraPreviewView.layerClass implementation.")
67 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureVideoPreviewLayer.h:33:12: note: 'AVCaptureVideoPreviewLayer' has been explicitly marked unavailable here
31 | */
32 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
33 | @interface AVCaptureVideoPreviewLayer : CALayer
| `- note: 'AVCaptureVideoPreviewLayer' has been explicitly marked unavailable here
34 | {
35 | @private
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Views/CameraPreviewView.swift:81:16: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
79 |
80 | public override class var layerClass: AnyClass {
81 | return AVCaptureVideoPreviewLayer.self
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
82 | }
83 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureVideoPreviewLayer.h:33:12: note: 'AVCaptureVideoPreviewLayer' has been explicitly marked unavailable here
31 | */
32 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
33 | @interface AVCaptureVideoPreviewLayer : CALayer
| `- note: 'AVCaptureVideoPreviewLayer' has been explicitly marked unavailable here
34 | {
35 | @private
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Views/CameraPreviewView.swift:99:44: error: 'layerPointConverted(fromCaptureDevicePoint:)' is unavailable in visionOS
97 | extension CameraPreviewView {
98 | private var videoPreviewRect: CGRect {
99 | let topLeading = videoPreviewLayer.layerPointConverted(fromCaptureDevicePoint: CGPoint(x: 0, y: 1))
| `- error: 'layerPointConverted(fromCaptureDevicePoint:)' is unavailable in visionOS
100 | let topTrailing = videoPreviewLayer.layerPointConverted(fromCaptureDevicePoint: CGPoint(x: 0, y: 0))
101 | let bottomLeading = videoPreviewLayer.layerPointConverted(fromCaptureDevicePoint: CGPoint(x: 1, y: 1))
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureVideoPreviewLayer.h:165:1: note: 'layerPointConverted(fromCaptureDevicePoint:)' has been explicitly marked unavailable here
163 | AVCaptureDevice pointOfInterest is expressed as a CGPoint where {0,0} represents the top left of the picture area, and {1,1} represents the bottom right on an unrotated picture. This convenience method converts a point in the coordinate space of the AVCaptureDevice providing input to the coordinate space of the receiver. The conversion takes frame size and videoGravity into consideration.
164 | */
165 | - (CGPoint)pointForCaptureDevicePointOfInterest:(CGPoint)captureDevicePointOfInterest API_AVAILABLE(macos(10.15), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos);
| `- note: 'layerPointConverted(fromCaptureDevicePoint:)' has been explicitly marked unavailable here
166 |
167 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Views/CameraPreviewView.swift:100:45: error: 'layerPointConverted(fromCaptureDevicePoint:)' is unavailable in visionOS
98 | private var videoPreviewRect: CGRect {
99 | let topLeading = videoPreviewLayer.layerPointConverted(fromCaptureDevicePoint: CGPoint(x: 0, y: 1))
100 | let topTrailing = videoPreviewLayer.layerPointConverted(fromCaptureDevicePoint: CGPoint(x: 0, y: 0))
| `- error: 'layerPointConverted(fromCaptureDevicePoint:)' is unavailable in visionOS
101 | let bottomLeading = videoPreviewLayer.layerPointConverted(fromCaptureDevicePoint: CGPoint(x: 1, y: 1))
102 | return CGRect(origin: topLeading, size: CGSize(width: topTrailing.x - topLeading.x, height: bottomLeading.y - topLeading.y))
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureVideoPreviewLayer.h:165:1: note: 'layerPointConverted(fromCaptureDevicePoint:)' has been explicitly marked unavailable here
163 | AVCaptureDevice pointOfInterest is expressed as a CGPoint where {0,0} represents the top left of the picture area, and {1,1} represents the bottom right on an unrotated picture. This convenience method converts a point in the coordinate space of the AVCaptureDevice providing input to the coordinate space of the receiver. The conversion takes frame size and videoGravity into consideration.
164 | */
165 | - (CGPoint)pointForCaptureDevicePointOfInterest:(CGPoint)captureDevicePointOfInterest API_AVAILABLE(macos(10.15), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos);
| `- note: 'layerPointConverted(fromCaptureDevicePoint:)' has been explicitly marked unavailable here
166 |
167 | /*!
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Views/CameraPreviewView.swift (in target 'AVCaptureViewModel' from project 'AVCaptureViewModel')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile CameraPreviewView.swift
SwiftEmitModule normal arm64 Emitting\ module\ for\ AVCaptureViewModel (in target 'AVCaptureViewModel' from project 'AVCaptureViewModel')
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Helper Types/AVCaptureViewModelSettings.swift:51:75: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
49 | ///
50 | /// - Note: This callback is called on the main thread.
51 | public var photoCaptureScreenFlashCallback: (_ videoPreviewLayer: AVCaptureVideoPreviewLayer) -> Void = { videoPreviewLayer in
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
52 | videoPreviewLayer.opacity = 0
53 | UIView.animate(withDuration: 0.25) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureVideoPreviewLayer.h:33:12: note: 'AVCaptureVideoPreviewLayer' has been explicitly marked unavailable here
31 | */
32 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
33 | @interface AVCaptureVideoPreviewLayer : CALayer
| `- note: 'AVCaptureVideoPreviewLayer' has been explicitly marked unavailable here
34 | {
35 | @private
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Helper Types/AVCaptureViewModelSettings.swift:77:73: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
75 |
76 | /// Convenience getter/setter for ``settings``'s ``Settings/photoCaptureScreenFlashCallback``.
77 | internal var photoCaptureScreenFlashCallback: (_ videoPreviewLayer: AVCaptureVideoPreviewLayer) -> Void {
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
78 | get {
79 | settings.photoCaptureScreenFlashCallback
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureVideoPreviewLayer.h:33:12: note: 'AVCaptureVideoPreviewLayer' has been explicitly marked unavailable here
31 | */
32 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
33 | @interface AVCaptureVideoPreviewLayer : CALayer
| `- note: 'AVCaptureVideoPreviewLayer' has been explicitly marked unavailable here
34 | {
35 | @private
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Helper Types/PhotoCaptureProcessor.swift:12:46: error: 'AVCapturePhotoSettings' is unavailable in visionOS
10 |
11 | class PhotoCaptureProcessor: NSObject {
12 | private(set) var requestedPhotoSettings: AVCapturePhotoSettings
| `- error: 'AVCapturePhotoSettings' is unavailable in visionOS
13 |
14 | internal var tagLocationInCaptures: Bool
/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/AVCaptureViewModel/Helper Types/PhotoCaptureProcessor.swift:33:39: error: 'AVCapturePhotoSettings' is unavailable in visionOS
31 | var location: CLLocation?
32 |
33 | init(with requestedPhotoSettings: AVCapturePhotoSettings,
| `- error: 'AVCapturePhotoSettings' is unavailable in visionOS
34 | tagLocationInCaptures: Bool,
35 | shouldSaveCapturesToLibrary: Bool,
/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/AVCaptureViewModel/Helper Types/PhotoCaptureProcessor.swift:65:32: error: 'AVCapturePhotoOutput' is unavailable in visionOS
63 | extension PhotoCaptureProcessor: AVCapturePhotoCaptureDelegate {
64 | /// - Tag: WillBeginCapture
65 | func photoOutput(_ output: AVCapturePhotoOutput, willBeginCaptureFor resolvedSettings: AVCaptureResolvedPhotoSettings) {
| `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
66 | if resolvedSettings.livePhotoMovieDimensions.width > 0 && resolvedSettings.livePhotoMovieDimensions.height > 0 {
67 | livePhotoCaptureHandler(true)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h: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/AVCaptureViewModel/Helper Types/PhotoCaptureProcessor.swift:65:92: error: 'AVCaptureResolvedPhotoSettings' is unavailable in visionOS
63 | extension PhotoCaptureProcessor: AVCapturePhotoCaptureDelegate {
64 | /// - Tag: WillBeginCapture
65 | func photoOutput(_ output: AVCapturePhotoOutput, willBeginCaptureFor resolvedSettings: AVCaptureResolvedPhotoSettings) {
| `- error: 'AVCaptureResolvedPhotoSettings' is unavailable in visionOS
66 | if resolvedSettings.livePhotoMovieDimensions.width > 0 && resolvedSettings.livePhotoMovieDimensions.height > 0 {
67 | livePhotoCaptureHandler(true)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h: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/AVCaptureViewModel/Helper Types/PhotoCaptureProcessor.swift:72:32: error: 'AVCapturePhotoOutput' is unavailable in visionOS
70 |
71 | /// - Tag: WillCapturePhoto
72 | func photoOutput(_ output: AVCapturePhotoOutput, willCapturePhotoFor resolvedSettings: AVCaptureResolvedPhotoSettings) {
| `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
73 | willCapturePhotoAnimation()
74 | }
/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/AVCaptureViewModel/Helper Types/PhotoCaptureProcessor.swift:72:92: error: 'AVCaptureResolvedPhotoSettings' is unavailable in visionOS
70 |
71 | /// - Tag: WillCapturePhoto
72 | func photoOutput(_ output: AVCapturePhotoOutput, willCapturePhotoFor resolvedSettings: AVCaptureResolvedPhotoSettings) {
| `- error: 'AVCaptureResolvedPhotoSettings' is unavailable in visionOS
73 | willCapturePhotoAnimation()
74 | }
/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/AVCaptureViewModel/Helper Types/PhotoCaptureProcessor.swift:77:32: error: 'AVCapturePhotoOutput' is unavailable in visionOS
75 |
76 | /// - Tag: DidFinishProcessingPhoto
77 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
| `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
78 |
79 | if let error = error {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h: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/AVCaptureViewModel/Helper Types/PhotoCaptureProcessor.swift:77:86: error: 'AVCapturePhoto' is unavailable in visionOS
75 |
76 | /// - Tag: DidFinishProcessingPhoto
77 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
| `- error: 'AVCapturePhoto' is unavailable in visionOS
78 |
79 | if let error = error {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h: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/AVCaptureViewModel/Helper Types/PhotoCaptureProcessor.swift:98:32: error: 'AVCapturePhotoOutput' is unavailable in visionOS
96 |
97 | /// - Tag: DidFinishRecordingLive
98 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishRecordingLivePhotoMovieForEventualFileAt outputFileURL: URL, resolvedSettings: AVCaptureResolvedPhotoSettings) {
| `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
99 | livePhotoCaptureHandler(false)
100 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/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/AVCaptureViewModel/Helper Types/PhotoCaptureProcessor.swift:98:142: error: 'AVCaptureResolvedPhotoSettings' is unavailable in visionOS
96 |
97 | /// - Tag: DidFinishRecordingLive
98 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishRecordingLivePhotoMovieForEventualFileAt outputFileURL: URL, resolvedSettings: AVCaptureResolvedPhotoSettings) {
| `- error: 'AVCaptureResolvedPhotoSettings' is unavailable in visionOS
99 | livePhotoCaptureHandler(false)
100 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/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/AVCaptureViewModel/Helper Types/PhotoCaptureProcessor.swift:103:32: error: 'AVCapturePhotoOutput' is unavailable in visionOS
101 |
102 | /// - Tag: DidFinishProcessingLive
103 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingLivePhotoToMovieFileAt outputFileURL: URL, duration: CMTime, photoDisplayTime: CMTime, resolvedSettings: AVCaptureResolvedPhotoSettings, error: Error?) {
| `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
104 | if error != nil {
105 | print("Error processing Live Photo companion movie: \(String(describing: 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/AVCaptureViewModel/Helper Types/PhotoCaptureProcessor.swift:103:178: error: 'AVCaptureResolvedPhotoSettings' is unavailable in visionOS
101 |
102 | /// - Tag: DidFinishProcessingLive
103 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingLivePhotoToMovieFileAt outputFileURL: URL, duration: CMTime, photoDisplayTime: CMTime, resolvedSettings: AVCaptureResolvedPhotoSettings, error: Error?) {
| `- error: 'AVCaptureResolvedPhotoSettings' is unavailable in visionOS
104 | if error != nil {
105 | print("Error processing Live Photo companion movie: \(String(describing: error))")
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:1788:12: note: 'AVCaptureResolvedPhotoSettings' has been explicitly marked unavailable here
1786 | */
1787 | API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
1788 | @interface AVCaptureResolvedPhotoSettings : NSObject
| `- note: 'AVCaptureResolvedPhotoSettings' has been explicitly marked unavailable here
1789 | {
1790 | @private
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Helper Types/PhotoCaptureProcessor.swift:112:32: error: 'AVCapturePhotoOutput' is unavailable in visionOS
110 |
111 | /// - Tag: DidFinishCapture
112 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishCaptureFor resolvedSettings: AVCaptureResolvedPhotoSettings, error: Error?) {
| `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
113 | if let error = error {
114 | print("Error capturing photo: \(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/AVCaptureViewModel/Helper Types/PhotoCaptureProcessor.swift:112:92: error: 'AVCaptureResolvedPhotoSettings' is unavailable in visionOS
110 |
111 | /// - Tag: DidFinishCapture
112 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishCaptureFor resolvedSettings: AVCaptureResolvedPhotoSettings, error: Error?) {
| `- error: 'AVCaptureResolvedPhotoSettings' is unavailable in visionOS
113 | if let error = error {
114 | print("Error capturing photo: \(error)")
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h:1788:12: note: 'AVCaptureResolvedPhotoSettings' has been explicitly marked unavailable here
1786 | */
1787 | API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
1788 | @interface AVCaptureResolvedPhotoSettings : NSObject
| `- note: 'AVCaptureResolvedPhotoSettings' has been explicitly marked unavailable here
1789 | {
1790 | @private
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Helper Types/PhotoCaptureProcessor.swift:77:10: error: cannot override 'photoOutput' which has been marked unavailable
75 |
76 | /// - Tag: DidFinishProcessingPhoto
77 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
| `- error: cannot override 'photoOutput' which has been marked unavailable
78 |
79 | if let error = error {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h: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/AVCaptureViewModel/Helper Types/PhotoCaptureProcessor.swift:63:34: error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
61 |
62 | /// This extension adopts all of the AVCapturePhotoCaptureDelegate protocol methods.
63 | extension PhotoCaptureProcessor: AVCapturePhotoCaptureDelegate {
| `- error: 'AVCapturePhotoCaptureDelegate' is unavailable in visionOS
64 | /// - Tag: WillBeginCapture
65 | 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: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/AVCaptureViewModel/Misc Extensions/AVCaptureDeviceDiscoverySession+Extension.swift:11:27: error: 'DiscoverySession' is only available in visionOS 2.1 or newer
9 | import AVFoundation
10 |
11 | extension AVCaptureDevice.DiscoverySession {
| | `- error: 'DiscoverySession' is only available in visionOS 2.1 or newer
| `- note: add '@available' attribute to enclosing extension
12 | internal var uniqueDevicePositionsCount: Int {
13 | var uniqueDevicePositions = [AVCaptureDevice.Position]()
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Primary Types/AVCaptureViewModel.swift:43:35: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
41 | /// - term SwiftUI: This must be set to ``CameraPreview/videoPreviewLayer`` via ``CameraPreview/init(videoPreviewLayer:session:)``.
42 | /// - term UIKit: This must be set to ``CameraPreviewView/videoPreviewLayer`` directly.
43 | public var videoPreviewLayer: AVCaptureVideoPreviewLayer! {
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
44 | didSet {
45 | guard videoPreviewLayer != nil 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/AVCaptureVideoPreviewLayer.h:33:12: note: 'AVCaptureVideoPreviewLayer' has been explicitly marked unavailable here
31 | */
32 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
33 | @interface AVCaptureVideoPreviewLayer : CALayer
| `- note: 'AVCaptureVideoPreviewLayer' has been explicitly marked unavailable here
34 | {
35 | @private
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Primary Types/AVCaptureViewModel.swift:412:64: error: 'DiscoverySession' is only available in visionOS 2.1 or newer
17 | ///
18 | /// > Important: While it's not always necessary request permissions for current location (``settings-swift.property``.``Settings-swift.struct/tagLocationInCaptures`` can be set to `false`), camera permissions are required ([`NSCameraUsageDescription`](https://developer.apple.com/documentation/bundleresources/information_property_list/nscamerausagedescription)). Additionally, microphone permissions are optional, but recommended, as it's needed to capture audio for Live Photos and movies ([`NSMicrophoneUsageDescription`](https://developer.apple.com/documentation/bundleresources/information_property_list/nsmicrophoneusagedescription)).
19 | public class AVCaptureViewModel: NSObject, ObservableObject {
| `- note: add '@available' attribute to enclosing class
20 | // MARK: Private/Internal Properties
21 |
:
410 | }
411 |
412 | internal let videoDeviceDiscoverySession = AVCaptureDevice.DiscoverySession(
| `- error: 'DiscoverySession' is only available in visionOS 2.1 or newer
413 | deviceTypes: [.builtInWideAngleCamera, .builtInDualCamera, .builtInTrueDepthCamera],
414 | mediaType: .video,
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Primary Types/AVCaptureViewModel.swift:413:24: error: 'builtInWideAngleCamera' is only available in visionOS 2.1 or newer
17 | ///
18 | /// > Important: While it's not always necessary request permissions for current location (``settings-swift.property``.``Settings-swift.struct/tagLocationInCaptures`` can be set to `false`), camera permissions are required ([`NSCameraUsageDescription`](https://developer.apple.com/documentation/bundleresources/information_property_list/nscamerausagedescription)). Additionally, microphone permissions are optional, but recommended, as it's needed to capture audio for Live Photos and movies ([`NSMicrophoneUsageDescription`](https://developer.apple.com/documentation/bundleresources/information_property_list/nsmicrophoneusagedescription)).
19 | public class AVCaptureViewModel: NSObject, ObservableObject {
| `- note: add '@available' attribute to enclosing class
20 | // MARK: Private/Internal Properties
21 |
:
411 |
412 | internal let videoDeviceDiscoverySession = AVCaptureDevice.DiscoverySession(
413 | deviceTypes: [.builtInWideAngleCamera, .builtInDualCamera, .builtInTrueDepthCamera],
| `- error: 'builtInWideAngleCamera' is only available in visionOS 2.1 or newer
414 | mediaType: .video,
415 | position: .unspecified
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Primary Types/AVCaptureViewModel.swift:413:49: error: 'builtInDualCamera' is unavailable in visionOS
411 |
412 | internal let videoDeviceDiscoverySession = AVCaptureDevice.DiscoverySession(
413 | deviceTypes: [.builtInWideAngleCamera, .builtInDualCamera, .builtInTrueDepthCamera],
| `- error: 'builtInDualCamera' is unavailable in visionOS
414 | mediaType: .video,
415 | position: .unspecified
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/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/AVCaptureViewModel/Primary Types/AVCaptureViewModel.swift:413:69: error: 'builtInTrueDepthCamera' is unavailable in visionOS
411 |
412 | internal let videoDeviceDiscoverySession = AVCaptureDevice.DiscoverySession(
413 | deviceTypes: [.builtInWideAngleCamera, .builtInDualCamera, .builtInTrueDepthCamera],
| `- error: 'builtInTrueDepthCamera' is unavailable in visionOS
414 | mediaType: .video,
415 | position: .unspecified
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/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/AVCaptureViewModel/Primary Types/AVCaptureViewModel.swift:425:38: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
423 | /// This updated automatically and can be subscribed to.
424 | @Published public var currentDeviceOrientation: UIDeviceOrientation = .unknown
425 | internal var captureOrientation: AVCaptureVideoOrientation {
| `- error: 'AVCaptureVideoOrientation' is unavailable in visionOS
426 | switch currentDeviceOrientation {
427 | case .portrait:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:104:28: note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
102 |
103 | /// Constants indicating video orientation, for use with AVCaptureDeviceRotationCoordinator.
104 | typedef NS_ENUM(NSInteger, AVCaptureVideoOrientation) {
| `- note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
105 | /// Indicates that video should be oriented vertically, port on the bottom.
106 | AVCaptureVideoOrientationPortrait = 1,
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Primary Types/AVCaptureViewModel.swift:457:32: error: 'AVCapturePhotoOutput' is unavailable in visionOS
455 | @Published public var lastPhotoCaptured: Data? = nil
456 |
457 | internal let photoOutput = AVCapturePhotoOutput()
| `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
458 |
459 | // @available(iOS 17.0, *)
/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/AVCaptureViewModel/Primary Types/AVCaptureViewModel.swift:462:33: error: 'AVCapturePhotoSettings' is unavailable in visionOS
460 | // internal var photoOutputReadinessCoordinator: AVCapturePhotoOutputReadinessCoordinator!
461 |
462 | internal var photoSettings: AVCapturePhotoSettings!
| `- error: 'AVCapturePhotoSettings' is unavailable in visionOS
463 |
464 | internal var inProgressPhotoCaptureDelegates = [Int64: PhotoCaptureProcessor]()
/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/AVCaptureViewModel/Primary Types/AVCaptureViewModel.swift:473:54: error: 'FlashMode' is unavailable in visionOS
471 | ///
472 | /// > See More: [`flashMode`](https://developer.apple.com/documentation/avfoundation/avcapturephotosettings/1648760-flashmode).
473 | @Published public var flashMode: AVCaptureDevice.FlashMode = .auto
| `- error: 'FlashMode' is unavailable in visionOS
474 |
475 | /// Whether the active session is capturing Live Photos.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:967:28: note: 'FlashMode' has been explicitly marked unavailable here
965 | Indicates that the flash should be used automatically depending on ambient light conditions.
966 | */
967 | typedef NS_ENUM(NSInteger, AVCaptureFlashMode) {
| `- note: 'FlashMode' has been explicitly marked unavailable here
968 | AVCaptureFlashModeOff = 0,
969 | AVCaptureFlashModeOn = 1,
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Primary Types/AVCaptureViewModel.swift:487:59: error: 'AVCapturePhotoOutput' is unavailable in visionOS
485 | ///
486 | /// For more info, see [`AVCapturePhotoSettings.photoQualityPrioritization`](https://developer.apple.com/documentation/avfoundation/avcapturephotosettings/3183000-photoqualityprioritization).
487 | @Published public var photoQualityPrioritizationMode: AVCapturePhotoOutput.QualityPrioritization = .balanced
| `- error: 'AVCapturePhotoOutput' is unavailable in visionOS
488 |
489 | // TODO: add Published properties for state/processingPhoto (or isCapturingPhoto) and isCapturingVideo or events (maybe via a subject)
/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/AVCaptureViewModel/Primary Types/AVCaptureViewModel.swift:521:35: error: 'AVCaptureMovieFileOutput' is unavailable in visionOS
519 | internal var capturedMovieURLs: Set<URL> = []
520 |
521 | internal var movieFileOutput: AVCaptureMovieFileOutput?
| `- error: 'AVCaptureMovieFileOutput' is unavailable in visionOS
522 |
523 | internal var backgroundRecordingID: UIBackgroundTaskIdentifier?
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h:405:12: note: 'AVCaptureMovieFileOutput' has been explicitly marked unavailable here
403 | */
404 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
405 | @interface AVCaptureMovieFileOutput : AVCaptureFileOutput
| `- note: 'AVCaptureMovieFileOutput' has been explicitly marked unavailable here
406 | {
407 | @private
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+CapturingPhotos.swift:97:43: error: 'AVCapturePhotoSettings' is unavailable in visionOS
95 | }
96 |
97 | internal func setUpPhotoSettings() -> AVCapturePhotoSettings {
| `- error: 'AVCapturePhotoSettings' is unavailable in visionOS
98 | var photoSettings = AVCapturePhotoSettings()
99 |
/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/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+RecordingMovies.swift:85:38: error: 'AVCaptureFileOutput' is unavailable in visionOS
83 |
84 | /// - Tag: DidStartRecording
85 | public func fileOutput(_ output: AVCaptureFileOutput, didStartRecordingTo fileURL: URL, from connections: [AVCaptureConnection]) {
| `- error: 'AVCaptureFileOutput' is unavailable in visionOS
86 | capturedMovieURLs.insert(fileURL)
87 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h:36:12: note: 'AVCaptureFileOutput' has been explicitly marked unavailable here
34 | */
35 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
36 | @interface AVCaptureFileOutput : AVCaptureOutput
| `- note: 'AVCaptureFileOutput' has been explicitly marked unavailable here
37 | {
38 | @private
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+RecordingMovies.swift:98:38: error: 'AVCaptureFileOutput' is unavailable in visionOS
96 |
97 | /// - Tag: DidFinishRecording
98 | public func fileOutput(_ output: AVCaptureFileOutput,
| `- error: 'AVCaptureFileOutput' is unavailable in visionOS
99 | didFinishRecordingTo outputFileURL: URL,
100 | from connections: [AVCaptureConnection],
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h:36:12: note: 'AVCaptureFileOutput' has been explicitly marked unavailable here
34 | */
35 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
36 | @interface AVCaptureFileOutput : AVCaptureOutput
| `- note: 'AVCaptureFileOutput' has been explicitly marked unavailable here
37 | {
38 | @private
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+RecordingMovies.swift:14:31: error: 'AVCaptureFileOutputRecordingDelegate' is unavailable in visionOS
12 | // MARK: Recording Movies
13 |
14 | extension AVCaptureViewModel: AVCaptureFileOutputRecordingDelegate {
| `- error: 'AVCaptureFileOutputRecordingDelegate' is unavailable in visionOS
15 | /// Starts/stops video capture recording video.
16 | ///
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h:206:11: note: 'AVCaptureFileOutputRecordingDelegate' has been explicitly marked unavailable here
204 | */
205 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
206 | @protocol AVCaptureFileOutputRecordingDelegate <NSObject>
| `- note: 'AVCaptureFileOutputRecordingDelegate' has been explicitly marked unavailable here
207 |
208 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+TapAndFocus.swift:50:55: error: 'FocusMode' is unavailable in visionOS
48 | /// }
49 | /// ```
50 | public func focus(with focusMode: AVCaptureDevice.FocusMode,
| `- error: 'FocusMode' is unavailable in visionOS
51 | exposureMode: AVCaptureDevice.ExposureMode,
52 | at touchPosition: CGPoint) {
/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/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+TapAndFocus.swift:51:53: error: 'ExposureMode' is unavailable in visionOS
49 | /// ```
50 | public func focus(with focusMode: AVCaptureDevice.FocusMode,
51 | exposureMode: AVCaptureDevice.ExposureMode,
| `- error: 'ExposureMode' is unavailable in visionOS
52 | at touchPosition: CGPoint) {
53 | let devicePoint = videoPreviewLayer.captureDevicePointConverted(fromLayerPoint: touchPosition)
/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/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+TapAndFocus.swift:79:55: error: 'FocusMode' is unavailable in visionOS
77 | ///
78 | /// To use this functionality, call this function from an `@IBAction` outlet function, passing in the `UITapGestureRecognizer` parameter.
79 | public func focus(with focusMode: AVCaptureDevice.FocusMode,
| `- error: 'FocusMode' is unavailable in visionOS
80 | exposureMode: AVCaptureDevice.ExposureMode,
81 | gestureRecognizer: UITapGestureRecognizer) {
/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/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+TapAndFocus.swift:80:53: error: 'ExposureMode' is unavailable in visionOS
78 | /// To use this functionality, call this function from an `@IBAction` outlet function, passing in the `UITapGestureRecognizer` parameter.
79 | public func focus(with focusMode: AVCaptureDevice.FocusMode,
80 | exposureMode: AVCaptureDevice.ExposureMode,
| `- error: 'ExposureMode' is unavailable in visionOS
81 | gestureRecognizer: UITapGestureRecognizer) {
82 | focus(with: focusMode, exposureMode: exposureMode, at: gestureRecognizer.location(in: gestureRecognizer.view), monitorSubjectAreaChange: true)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:1422:28: note: 'ExposureMode' has been explicitly marked unavailable here
1420 | Indicates that the device should only adjust exposure according to user provided ISO, exposureDuration values.
1421 | */
1422 | typedef NS_ENUM(NSInteger, AVCaptureExposureMode) {
| `- note: 'ExposureMode' has been explicitly marked unavailable here
1423 | AVCaptureExposureModeLocked = 0,
1424 | AVCaptureExposureModeAutoExpose = 1,
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+TapAndFocus.swift:88:57: error: 'FocusMode' is unavailable in visionOS
86 | extension AVCaptureViewModel {
87 | /// Internally used as the backend for ``focusAndExposeTap(gesturePosition:)``, ``focusAndExposeTap(gestureRecognizer:)``, ``focus(with:exposureMode:at:)``, and ``focus(with:exposureMode:gestureRecognizer:)``.
88 | internal func focus(with focusMode: AVCaptureDevice.FocusMode,
| `- error: 'FocusMode' is unavailable in visionOS
89 | exposureMode: AVCaptureDevice.ExposureMode,
90 | at previewPoint: CGPoint,
/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/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+TapAndFocus.swift:89:55: error: 'ExposureMode' is unavailable in visionOS
87 | /// Internally used as the backend for ``focusAndExposeTap(gesturePosition:)``, ``focusAndExposeTap(gestureRecognizer:)``, ``focus(with:exposureMode:at:)``, and ``focus(with:exposureMode:gestureRecognizer:)``.
88 | internal func focus(with focusMode: AVCaptureDevice.FocusMode,
89 | exposureMode: AVCaptureDevice.ExposureMode,
| `- error: 'ExposureMode' is unavailable in visionOS
90 | at previewPoint: CGPoint,
91 | monitorSubjectAreaChange: Bool) {
/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/AVCaptureViewModel/Views/CameraPreview.swift:15:44: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
13 | public struct CameraPreview: UIViewRepresentable {
14 | /// The view preview `CALayer` from ``CameraPreviewView``'s ``CameraPreviewView/videoPreviewLayer``, that is shared with ``AVCaptureViewModel/AVCaptureViewModel``'s ``AVCaptureViewModel/AVCaptureViewModel/videoPreviewLayer``.
15 | @Binding public var videoPreviewLayer: AVCaptureVideoPreviewLayer!
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
16 |
17 | /// The preview layer's capture session from ``AVCaptureViewModel/AVCaptureViewModel/session`` that is passed to ``CameraPreviewView``.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureVideoPreviewLayer.h:33:12: note: 'AVCaptureVideoPreviewLayer' has been explicitly marked unavailable here
31 | */
32 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
33 | @interface AVCaptureVideoPreviewLayer : CALayer
| `- note: 'AVCaptureVideoPreviewLayer' has been explicitly marked unavailable here
34 | {
35 | @private
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Views/CameraPreview.swift:20:44: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
18 | public var session: AVCaptureSession?
19 |
20 | public init(videoPreviewLayer: Binding<AVCaptureVideoPreviewLayer?>, session: AVCaptureSession?) {
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
21 | self._videoPreviewLayer = videoPreviewLayer
22 | self.session = session
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureVideoPreviewLayer.h:33:12: note: 'AVCaptureVideoPreviewLayer' has been explicitly marked unavailable here
31 | */
32 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
33 | @interface AVCaptureVideoPreviewLayer : CALayer
| `- note: 'AVCaptureVideoPreviewLayer' has been explicitly marked unavailable here
34 | {
35 | @private
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Views/CameraPreviewView.swift:64:35: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
62 |
63 | /// The view preview `CALayer`.
64 | public var videoPreviewLayer: AVCaptureVideoPreviewLayer {
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
65 | guard let layer = layer as? AVCaptureVideoPreviewLayer else {
66 | fatalError("Expected `AVCaptureVideoPreviewLayer` type for layer. Check CameraPreviewView.layerClass implementation.")
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureVideoPreviewLayer.h:33:12: note: 'AVCaptureVideoPreviewLayer' has been explicitly marked unavailable here
31 | */
32 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
33 | @interface AVCaptureVideoPreviewLayer : CALayer
| `- note: 'AVCaptureVideoPreviewLayer' has been explicitly marked unavailable here
34 | {
35 | @private
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/AVCaptureViewModel/Helper\ Types/AVCaptureViewModelSettings.swift /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Helper\ Types/CameraSessionState.swift /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Helper\ Types/PhotoCaptureProcessor.swift /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Misc\ Extensions/AVCaptureDeviceDiscoverySession+Extension.swift /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Primary\ Types/AVCaptureViewModel.swift /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+CapturingPhotos.swift /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+DeviceConfig.swift /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+InputCallbacks.swift /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+KVO.swift /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+PinchAndZoom.swift /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+Readiness.swift /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+RecordingMovies.swift /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+TapAndFocus.swift /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Views/CameraPreview.swift /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Views/CameraPreviewView.swift -target arm64-apple-xros1.0 -disable-cross-import-overlay-search -swift-module-cross-import Photos /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS.sdk/System/Library/Frameworks/Photos.framework/Modules/Photos.swiftcrossimport/AppIntents.swiftoverlay -swift-module-cross-import Photos /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/Photos.framework/Modules/Photos.swiftcrossimport/AppIntents.swiftoverlay -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/AVCaptureViewModel.build/Debug-xros/AVCaptureViewModel-t.build/Objects-normal/arm64/AVCaptureViewModel-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/AVCaptureViewModel.build/Debug-xros/AVCaptureViewModel-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/AVCaptureViewModel.build/Debug-xros/AVCaptureViewModel-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/AVCaptureViewModel.build/Debug-xros/AVCaptureViewModel-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name AVCaptureViewModel -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/AVCaptureViewModel.build/Debug-xros/AVCaptureViewModel-t.build/Objects-normal/arm64/AVCaptureViewModel_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/AVCaptureViewModel.build/Debug-xros/AVCaptureViewModel-t.build/Objects-normal/arm64/AVCaptureViewModel.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/AVCaptureViewModel.build/Debug-xros/AVCaptureViewModel-t.build/Objects-normal/arm64/AVCaptureViewModel.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/AVCaptureViewModel.build/Debug-xros/AVCaptureViewModel-t.build/Objects-normal/arm64/AVCaptureViewModel-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/AVCaptureViewModel.build/Debug-xros/AVCaptureViewModel-t.build/Objects-normal/arm64/AVCaptureViewModel-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/AVCaptureViewModel.build/Debug-xros/AVCaptureViewModel-t.build/Objects-normal/arm64/AVCaptureViewModel-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/AVCaptureViewModel.build/Debug-xros/AVCaptureViewModel-t.build/Objects-normal/arm64/AVCaptureViewModel.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/AVCaptureViewModel.build/Debug-xros/AVCaptureViewModel-t.build/Objects-normal/arm64/AVCaptureViewModel.abi.json
SwiftCompile normal arm64 (in target 'AVCaptureViewModel' from project 'AVCaptureViewModel')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftCompile normal arm64 Compiling\ CameraPreview.swift /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Views/CameraPreview.swift (in target 'AVCaptureViewModel' from project 'AVCaptureViewModel')
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Views/CameraPreview.swift:15:44: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
13 | public struct CameraPreview: UIViewRepresentable {
14 | /// The view preview `CALayer` from ``CameraPreviewView``'s ``CameraPreviewView/videoPreviewLayer``, that is shared with ``AVCaptureViewModel/AVCaptureViewModel``'s ``AVCaptureViewModel/AVCaptureViewModel/videoPreviewLayer``.
15 | @Binding public var videoPreviewLayer: AVCaptureVideoPreviewLayer!
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
16 |
17 | /// The preview layer's capture session from ``AVCaptureViewModel/AVCaptureViewModel/session`` that is passed to ``CameraPreviewView``.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureVideoPreviewLayer.h:33:12: note: 'AVCaptureVideoPreviewLayer' has been explicitly marked unavailable here
31 | */
32 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
33 | @interface AVCaptureVideoPreviewLayer : CALayer
| `- note: 'AVCaptureVideoPreviewLayer' has been explicitly marked unavailable here
34 | {
35 | @private
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Views/CameraPreview.swift:20:44: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
18 | public var session: AVCaptureSession?
19 |
20 | public init(videoPreviewLayer: Binding<AVCaptureVideoPreviewLayer?>, session: AVCaptureSession?) {
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
21 | self._videoPreviewLayer = videoPreviewLayer
22 | self.session = session
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureVideoPreviewLayer.h:33:12: note: 'AVCaptureVideoPreviewLayer' has been explicitly marked unavailable here
31 | */
32 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
33 | @interface AVCaptureVideoPreviewLayer : CALayer
| `- note: 'AVCaptureVideoPreviewLayer' has been explicitly marked unavailable here
34 | {
35 | @private
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Views/CameraPreview.swift:41:44: error: 'layerPointConverted(fromCaptureDevicePoint:)' is unavailable in visionOS
39 | private var videoPreviewRect: CGRect? {
40 | guard let videoPreviewLayer else { return nil }
41 | let topLeading = videoPreviewLayer.layerPointConverted(fromCaptureDevicePoint: CGPoint(x: 0, y: 1))
| `- error: 'layerPointConverted(fromCaptureDevicePoint:)' is unavailable in visionOS
42 | let topTrailing = videoPreviewLayer.layerPointConverted(fromCaptureDevicePoint: CGPoint(x: 0, y: 0))
43 | let bottomLeading = videoPreviewLayer.layerPointConverted(fromCaptureDevicePoint: CGPoint(x: 1, y: 1))
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureVideoPreviewLayer.h:165:1: note: 'layerPointConverted(fromCaptureDevicePoint:)' has been explicitly marked unavailable here
163 | AVCaptureDevice pointOfInterest is expressed as a CGPoint where {0,0} represents the top left of the picture area, and {1,1} represents the bottom right on an unrotated picture. This convenience method converts a point in the coordinate space of the AVCaptureDevice providing input to the coordinate space of the receiver. The conversion takes frame size and videoGravity into consideration.
164 | */
165 | - (CGPoint)pointForCaptureDevicePointOfInterest:(CGPoint)captureDevicePointOfInterest API_AVAILABLE(macos(10.15), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos);
| `- note: 'layerPointConverted(fromCaptureDevicePoint:)' has been explicitly marked unavailable here
166 |
167 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Views/CameraPreview.swift:42:45: error: 'layerPointConverted(fromCaptureDevicePoint:)' is unavailable in visionOS
40 | guard let videoPreviewLayer else { return nil }
41 | let topLeading = videoPreviewLayer.layerPointConverted(fromCaptureDevicePoint: CGPoint(x: 0, y: 1))
42 | let topTrailing = videoPreviewLayer.layerPointConverted(fromCaptureDevicePoint: CGPoint(x: 0, y: 0))
| `- error: 'layerPointConverted(fromCaptureDevicePoint:)' is unavailable in visionOS
43 | let bottomLeading = videoPreviewLayer.layerPointConverted(fromCaptureDevicePoint: CGPoint(x: 1, y: 1))
44 | return CGRect(origin: topLeading, size: CGSize(width: topTrailing.x - topLeading.x, height: bottomLeading.y - topLeading.y))
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureVideoPreviewLayer.h:165:1: note: 'layerPointConverted(fromCaptureDevicePoint:)' has been explicitly marked unavailable here
163 | AVCaptureDevice pointOfInterest is expressed as a CGPoint where {0,0} represents the top left of the picture area, and {1,1} represents the bottom right on an unrotated picture. This convenience method converts a point in the coordinate space of the AVCaptureDevice providing input to the coordinate space of the receiver. The conversion takes frame size and videoGravity into consideration.
164 | */
165 | - (CGPoint)pointForCaptureDevicePointOfInterest:(CGPoint)captureDevicePointOfInterest API_AVAILABLE(macos(10.15), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos);
| `- note: 'layerPointConverted(fromCaptureDevicePoint:)' has been explicitly marked unavailable here
166 |
167 | /*!
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/Views/CameraPreview.swift (in target 'AVCaptureViewModel' from project 'AVCaptureViewModel')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile CameraPreview.swift
SwiftCompile normal arm64 Compiling\ AVCaptureViewModel+KVO.swift,\ AVCaptureViewModel+PinchAndZoom.swift /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+KVO.swift /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+PinchAndZoom.swift (in target 'AVCaptureViewModel' from project 'AVCaptureViewModel')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+KVO.swift (in target 'AVCaptureViewModel' from project 'AVCaptureViewModel')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile AVCaptureViewModel+KVO.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/AVCaptureViewModel/ViewModel+Extensions/AVCaptureViewModel+PinchAndZoom.swift (in target 'AVCaptureViewModel' from project 'AVCaptureViewModel')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile AVCaptureViewModel+PinchAndZoom.swift
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
2026-09-20 07:39:55.929 xcodebuild[775:4615] [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\ AVCaptureViewModel (in target 'AVCaptureViewModel' from project 'AVCaptureViewModel')
SwiftCompile normal arm64 (in target 'AVCaptureViewModel' from project 'AVCaptureViewModel')
Building workspace AVCaptureViewModel with scheme AVCaptureViewModel
(3 failures)
BUILD FAILURE 6.4 visionOS