Build Information
Failed to build CameraView, reference master (34288e), with Swift 6.4 for watchOS using Xcode 27.0 on 15 Sep 2026 18:29:05 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 CameraView -destination generic/platform=watchOSBuild Log
| `- error: 'builtInWideAngleCamera' is unavailable in watchOS
180 | self.delegate = delegate
181 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:562:38: note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
560 | A built-in wide angle camera device. These devices are suitable for general purpose use.
561 | */
562 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInWideAngleCamera API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0), visionos(2.1)) API_UNAVAILABLE(watchos);
| `- note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
563 |
564 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:186:30: error: cannot find type 'UIViewRepresentableContext' in scope
184 | }
185 |
186 | func makeUIView(context: UIViewRepresentableContext<PreviewHolder>) -> PreviewView {
| `- error: cannot find type 'UIViewRepresentableContext' in scope
187 | view
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:190:55: error: cannot find type 'UIViewRepresentableContext' in scope
188 | }
189 |
190 | func updateUIView(_ uiView: PreviewView, context: UIViewRepresentableContext<PreviewHolder>) {
| `- error: cannot find type 'UIViewRepresentableContext' in scope
191 | }
192 |
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:173:31: error: cannot find type 'UIViewRepresentable' in scope
171 | }
172 |
173 | private struct PreviewHolder: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
174 | private var delegate: CameraViewDelegate?
175 | private var cameraType: AVCaptureDevice.DeviceType
Failed frontend command:
SwiftCompile normal arm64 (in target 'CameraView' from project 'CameraView')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraState.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraViewDelegate.swift -target arm64-apple-watchos9.0 -disable-cross-import-overlay-search -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libPreviewsMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#PreviewsMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#SwiftMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftUIMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.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/CameraView.build/Debug-watchos/CameraView-t.build/Objects-normal/arm64/CameraView-dependencies-1.json -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name CameraView -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/Objects-normal/arm64/CameraView_const_extract_protocols.json -disable-clang-spi -clang-target arm64-apple-watchos27.0 -target-sdk-version 27.0 -target-sdk-name watchos27.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/CameraView.build/Debug-watchos/CameraView-t.build/Objects-normal/arm64/CameraView.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/Objects-normal/arm64/CameraView.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/Objects-normal/arm64/CameraView-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/Objects-normal/arm64/CameraView-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/Objects-normal/arm64/CameraView-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/Objects-normal/arm64/CameraView.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/Objects-normal/arm64/CameraView.abi.json
SwiftCompile normal arm64 Compiling\ CameraState.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraState.swift (in target 'CameraView' from project 'CameraView')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraState.swift (in target 'CameraView' from project 'CameraView')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile CameraState.swift
SwiftCompile normal arm64 Compiling\ CameraView.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift (in target 'CameraView' from project 'CameraView')
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:14:29: error: 'AVCaptureDevice' is unavailable in watchOS
12 | public struct CameraView: View {
13 | private var delegate: CameraViewDelegate?
14 | private var cameraType: AVCaptureDevice.DeviceType
| `- error: 'AVCaptureDevice' is unavailable in watchOS
15 | private var cameraPosition: AVCaptureDevice.Position
16 | private var preview : PreviewHolder
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:15:33: error: 'AVCaptureDevice' is unavailable in watchOS
13 | private var delegate: CameraViewDelegate?
14 | private var cameraType: AVCaptureDevice.DeviceType
15 | private var cameraPosition: AVCaptureDevice.Position
| `- error: 'AVCaptureDevice' is unavailable in watchOS
16 | private var preview : PreviewHolder
17 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:20:66: error: 'AVCaptureDevice' is unavailable in watchOS
18 | @ObservedObject private var viewModel : CameraViewModel
19 |
20 | public init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
21 | self.delegate = delegate
22 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:20:136: error: 'AVCaptureDevice' is unavailable in watchOS
18 | @ObservedObject private var viewModel : CameraViewModel
19 |
20 | public init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
21 | self.delegate = delegate
22 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:20:96: error: 'builtInWideAngleCamera' is unavailable in watchOS
18 | @ObservedObject private var viewModel : CameraViewModel
19 |
20 | public init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'builtInWideAngleCamera' is unavailable in watchOS
21 | self.delegate = delegate
22 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:562:38: note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
560 | A built-in wide angle camera device. These devices are suitable for general purpose use.
561 | */
562 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInWideAngleCamera API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0), visionos(2.1)) API_UNAVAILABLE(watchos);
| `- note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
563 |
564 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:65:33: error: 'AVCaptureSession' is unavailable in watchOS
63 | private var delegate: CameraViewDelegate?
64 |
65 | private var captureSession: AVCaptureSession?
| `- error: 'AVCaptureSession' is unavailable in watchOS
66 | private var videoDeviceInput: AVCaptureDeviceInput?
67 | private var photoOutput: AVCapturePhotoOutput?
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:137:12: note: 'AVCaptureSession' has been explicitly marked unavailable here
135 | */
136 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
137 | @interface AVCaptureSession : NSObject
| `- note: 'AVCaptureSession' has been explicitly marked unavailable here
138 | {
139 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:66:35: error: 'AVCaptureDeviceInput' is unavailable in watchOS
64 |
65 | private var captureSession: AVCaptureSession?
66 | private var videoDeviceInput: AVCaptureDeviceInput?
| `- error: 'AVCaptureDeviceInput' is unavailable in watchOS
67 | private var photoOutput: AVCapturePhotoOutput?
68 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureInput.h:182:12: note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
180 | */
181 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
182 | @interface AVCaptureDeviceInput : AVCaptureInput
| `- note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
183 | {
184 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:67:30: error: 'AVCapturePhotoOutput' is unavailable in watchOS
65 | private var captureSession: AVCaptureSession?
66 | private var videoDeviceInput: AVCaptureDeviceInput?
67 | private var photoOutput: AVCapturePhotoOutput?
| `- error: 'AVCapturePhotoOutput' is unavailable in watchOS
68 |
69 | var videoPreviewLayer: AVCaptureVideoPreviewLayer {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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/CameraView/CameraView.swift:69:28: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
67 | private var photoOutput: AVCapturePhotoOutput?
68 |
69 | var videoPreviewLayer: AVCaptureVideoPreviewLayer {
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
70 | return layer as! AVCaptureVideoPreviewLayer
71 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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/CameraView/CameraView.swift:73:59: error: 'AVCaptureDevice' is unavailable in watchOS
71 | }
72 |
73 | init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
74 | super.init(frame: .zero)
75 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:73:129: error: 'AVCaptureDevice' is unavailable in watchOS
71 | }
72 |
73 | init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
74 | super.init(frame: .zero)
75 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:73:89: error: 'builtInWideAngleCamera' is unavailable in watchOS
71 | }
72 |
73 | init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'builtInWideAngleCamera' is unavailable in watchOS
74 | super.init(frame: .zero)
75 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:562:38: note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
560 | A built-in wide angle camera device. These devices are suitable for general purpose use.
561 | */
562 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInWideAngleCamera API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0), visionos(2.1)) API_UNAVAILABLE(watchos);
| `- note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
563 |
564 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:152:32: error: 'AVCapturePhotoOutput' is unavailable in watchOS
150 | }
151 |
152 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
| `- error: 'AVCapturePhotoOutput' is unavailable in watchOS
153 | if error != nil {
154 | cameraState.capturedImageError = PhotoParseError.error(error!)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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/CameraView/CameraView.swift:152:86: error: 'AVCapturePhoto' is unavailable in watchOS
150 | }
151 |
152 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
| `- error: 'AVCapturePhoto' is unavailable in watchOS
153 | if error != nil {
154 | cameraState.capturedImageError = PhotoParseError.error(error!)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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/CameraView/CameraView.swift:59:28: error: 'UIView' is unavailable in watchOS
57 | }
58 |
59 | private class PreviewView: UIView, AVCapturePhotoCaptureDelegate {
| `- error: 'UIView' is unavailable in watchOS
60 |
61 | @EnvironmentObject var cameraState : CameraState
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:59:36: error: 'AVCapturePhotoCaptureDelegate' is unavailable in watchOS
57 | }
58 |
59 | private class PreviewView: UIView, AVCapturePhotoCaptureDelegate {
| `- error: 'AVCapturePhotoCaptureDelegate' is unavailable in watchOS
60 |
61 | @EnvironmentObject var cameraState : CameraState
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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/CameraView/CameraView.swift:175:29: error: 'AVCaptureDevice' is unavailable in watchOS
173 | private struct PreviewHolder: UIViewRepresentable {
174 | private var delegate: CameraViewDelegate?
175 | private var cameraType: AVCaptureDevice.DeviceType
| `- error: 'AVCaptureDevice' is unavailable in watchOS
176 | private var cameraPosition: AVCaptureDevice.Position
177 | private var view: PreviewView
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:176:33: error: 'AVCaptureDevice' is unavailable in watchOS
174 | private var delegate: CameraViewDelegate?
175 | private var cameraType: AVCaptureDevice.DeviceType
176 | private var cameraPosition: AVCaptureDevice.Position
| `- error: 'AVCaptureDevice' is unavailable in watchOS
177 | private var view: PreviewView
178 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:179:59: error: 'AVCaptureDevice' is unavailable in watchOS
177 | private var view: PreviewView
178 |
179 | init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
180 | self.delegate = delegate
181 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:179:129: error: 'AVCaptureDevice' is unavailable in watchOS
177 | private var view: PreviewView
178 |
179 | init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
180 | self.delegate = delegate
181 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:179:89: error: 'builtInWideAngleCamera' is unavailable in watchOS
177 | private var view: PreviewView
178 |
179 | init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'builtInWideAngleCamera' is unavailable in watchOS
180 | self.delegate = delegate
181 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:562:38: note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
560 | A built-in wide angle camera device. These devices are suitable for general purpose use.
561 | */
562 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInWideAngleCamera API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0), visionos(2.1)) API_UNAVAILABLE(watchos);
| `- note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
563 |
564 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:186:30: error: cannot find type 'UIViewRepresentableContext' in scope
184 | }
185 |
186 | func makeUIView(context: UIViewRepresentableContext<PreviewHolder>) -> PreviewView {
| `- error: cannot find type 'UIViewRepresentableContext' in scope
187 | view
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:190:55: error: cannot find type 'UIViewRepresentableContext' in scope
188 | }
189 |
190 | func updateUIView(_ uiView: PreviewView, context: UIViewRepresentableContext<PreviewHolder>) {
| `- error: cannot find type 'UIViewRepresentableContext' in scope
191 | }
192 |
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:173:31: error: cannot find type 'UIViewRepresentable' in scope
171 | }
172 |
173 | private struct PreviewHolder: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
174 | private var delegate: CameraViewDelegate?
175 | private var cameraType: AVCaptureDevice.DeviceType
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:30:9: error: return type of property 'body' requires that 'PreviewHolder' conform to 'View'
27 | }
28 |
29 | public var body: some View {
| `- note: opaque return type declared here
30 | preview
| `- error: return type of property 'body' requires that 'PreviewHolder' conform to 'View'
31 | }
32 |
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:70:26: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
68 |
69 | var videoPreviewLayer: AVCaptureVideoPreviewLayer {
70 | return layer as! AVCaptureVideoPreviewLayer
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
71 | }
72 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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/CameraView/CameraView.swift:83:9: error: 'AVCaptureDevice' is unavailable in watchOS
81 | blocker.enter()
82 |
83 | AVCaptureDevice.requestAccess(for: .video) { (flag) in
| `- error: 'AVCaptureDevice' is unavailable in watchOS
84 | accessAllowed = true
85 | delegate?.cameraAccessGranted()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift (in target 'CameraView' from project 'CameraView')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile CameraView.swift
SwiftCompile normal arm64 Compiling\ CameraViewDelegate.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraViewDelegate.swift (in target 'CameraView' from project 'CameraView')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraViewDelegate.swift (in target 'CameraView' from project 'CameraView')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile CameraViewDelegate.swift
SwiftCompile normal arm64_32 Compiling\ CameraState.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraState.swift (in target 'CameraView' from project 'CameraView')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraState.swift (in target 'CameraView' from project 'CameraView')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile CameraState.swift
SwiftEmitModule normal arm64_32 Emitting\ module\ for\ CameraView (in target 'CameraView' from project 'CameraView')
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:14:29: error: 'AVCaptureDevice' is unavailable in watchOS
12 | public struct CameraView: View {
13 | private var delegate: CameraViewDelegate?
14 | private var cameraType: AVCaptureDevice.DeviceType
| `- error: 'AVCaptureDevice' is unavailable in watchOS
15 | private var cameraPosition: AVCaptureDevice.Position
16 | private var preview : PreviewHolder
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:15:33: error: 'AVCaptureDevice' is unavailable in watchOS
13 | private var delegate: CameraViewDelegate?
14 | private var cameraType: AVCaptureDevice.DeviceType
15 | private var cameraPosition: AVCaptureDevice.Position
| `- error: 'AVCaptureDevice' is unavailable in watchOS
16 | private var preview : PreviewHolder
17 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:20:66: error: 'AVCaptureDevice' is unavailable in watchOS
18 | @ObservedObject private var viewModel : CameraViewModel
19 |
20 | public init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
21 | self.delegate = delegate
22 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:20:136: error: 'AVCaptureDevice' is unavailable in watchOS
18 | @ObservedObject private var viewModel : CameraViewModel
19 |
20 | public init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
21 | self.delegate = delegate
22 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:20:96: error: 'builtInWideAngleCamera' is unavailable in watchOS
18 | @ObservedObject private var viewModel : CameraViewModel
19 |
20 | public init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'builtInWideAngleCamera' is unavailable in watchOS
21 | self.delegate = delegate
22 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:562:38: note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
560 | A built-in wide angle camera device. These devices are suitable for general purpose use.
561 | */
562 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInWideAngleCamera API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0), visionos(2.1)) API_UNAVAILABLE(watchos);
| `- note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
563 |
564 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:65:33: error: 'AVCaptureSession' is unavailable in watchOS
63 | private var delegate: CameraViewDelegate?
64 |
65 | private var captureSession: AVCaptureSession?
| `- error: 'AVCaptureSession' is unavailable in watchOS
66 | private var videoDeviceInput: AVCaptureDeviceInput?
67 | private var photoOutput: AVCapturePhotoOutput?
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:137:12: note: 'AVCaptureSession' has been explicitly marked unavailable here
135 | */
136 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
137 | @interface AVCaptureSession : NSObject
| `- note: 'AVCaptureSession' has been explicitly marked unavailable here
138 | {
139 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:66:35: error: 'AVCaptureDeviceInput' is unavailable in watchOS
64 |
65 | private var captureSession: AVCaptureSession?
66 | private var videoDeviceInput: AVCaptureDeviceInput?
| `- error: 'AVCaptureDeviceInput' is unavailable in watchOS
67 | private var photoOutput: AVCapturePhotoOutput?
68 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureInput.h:182:12: note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
180 | */
181 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
182 | @interface AVCaptureDeviceInput : AVCaptureInput
| `- note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
183 | {
184 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:67:30: error: 'AVCapturePhotoOutput' is unavailable in watchOS
65 | private var captureSession: AVCaptureSession?
66 | private var videoDeviceInput: AVCaptureDeviceInput?
67 | private var photoOutput: AVCapturePhotoOutput?
| `- error: 'AVCapturePhotoOutput' is unavailable in watchOS
68 |
69 | var videoPreviewLayer: AVCaptureVideoPreviewLayer {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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/CameraView/CameraView.swift:69:28: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
67 | private var photoOutput: AVCapturePhotoOutput?
68 |
69 | var videoPreviewLayer: AVCaptureVideoPreviewLayer {
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
70 | return layer as! AVCaptureVideoPreviewLayer
71 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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/CameraView/CameraView.swift:73:59: error: 'AVCaptureDevice' is unavailable in watchOS
71 | }
72 |
73 | init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
74 | super.init(frame: .zero)
75 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:73:129: error: 'AVCaptureDevice' is unavailable in watchOS
71 | }
72 |
73 | init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
74 | super.init(frame: .zero)
75 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:73:89: error: 'builtInWideAngleCamera' is unavailable in watchOS
71 | }
72 |
73 | init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'builtInWideAngleCamera' is unavailable in watchOS
74 | super.init(frame: .zero)
75 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:562:38: note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
560 | A built-in wide angle camera device. These devices are suitable for general purpose use.
561 | */
562 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInWideAngleCamera API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0), visionos(2.1)) API_UNAVAILABLE(watchos);
| `- note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
563 |
564 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:152:32: error: 'AVCapturePhotoOutput' is unavailable in watchOS
150 | }
151 |
152 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
| `- error: 'AVCapturePhotoOutput' is unavailable in watchOS
153 | if error != nil {
154 | cameraState.capturedImageError = PhotoParseError.error(error!)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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/CameraView/CameraView.swift:152:86: error: 'AVCapturePhoto' is unavailable in watchOS
150 | }
151 |
152 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
| `- error: 'AVCapturePhoto' is unavailable in watchOS
153 | if error != nil {
154 | cameraState.capturedImageError = PhotoParseError.error(error!)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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/CameraView/CameraView.swift:59:28: error: 'UIView' is unavailable in watchOS
57 | }
58 |
59 | private class PreviewView: UIView, AVCapturePhotoCaptureDelegate {
| `- error: 'UIView' is unavailable in watchOS
60 |
61 | @EnvironmentObject var cameraState : CameraState
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:59:36: error: 'AVCapturePhotoCaptureDelegate' is unavailable in watchOS
57 | }
58 |
59 | private class PreviewView: UIView, AVCapturePhotoCaptureDelegate {
| `- error: 'AVCapturePhotoCaptureDelegate' is unavailable in watchOS
60 |
61 | @EnvironmentObject var cameraState : CameraState
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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
SwiftCompile normal arm64_32 (in target 'CameraView' from project 'CameraView')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftCompile normal arm64_32 Compiling\ CameraView.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift (in target 'CameraView' from project 'CameraView')
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:14:29: error: 'AVCaptureDevice' is unavailable in watchOS
12 | public struct CameraView: View {
13 | private var delegate: CameraViewDelegate?
14 | private var cameraType: AVCaptureDevice.DeviceType
| `- error: 'AVCaptureDevice' is unavailable in watchOS
15 | private var cameraPosition: AVCaptureDevice.Position
16 | private var preview : PreviewHolder
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:15:33: error: 'AVCaptureDevice' is unavailable in watchOS
13 | private var delegate: CameraViewDelegate?
14 | private var cameraType: AVCaptureDevice.DeviceType
15 | private var cameraPosition: AVCaptureDevice.Position
| `- error: 'AVCaptureDevice' is unavailable in watchOS
16 | private var preview : PreviewHolder
17 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:20:66: error: 'AVCaptureDevice' is unavailable in watchOS
18 | @ObservedObject private var viewModel : CameraViewModel
19 |
20 | public init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
21 | self.delegate = delegate
22 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:20:136: error: 'AVCaptureDevice' is unavailable in watchOS
18 | @ObservedObject private var viewModel : CameraViewModel
19 |
20 | public init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
21 | self.delegate = delegate
22 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:20:96: error: 'builtInWideAngleCamera' is unavailable in watchOS
18 | @ObservedObject private var viewModel : CameraViewModel
19 |
20 | public init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'builtInWideAngleCamera' is unavailable in watchOS
21 | self.delegate = delegate
22 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:562:38: note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
560 | A built-in wide angle camera device. These devices are suitable for general purpose use.
561 | */
562 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInWideAngleCamera API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0), visionos(2.1)) API_UNAVAILABLE(watchos);
| `- note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
563 |
564 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:65:33: error: 'AVCaptureSession' is unavailable in watchOS
63 | private var delegate: CameraViewDelegate?
64 |
65 | private var captureSession: AVCaptureSession?
| `- error: 'AVCaptureSession' is unavailable in watchOS
66 | private var videoDeviceInput: AVCaptureDeviceInput?
67 | private var photoOutput: AVCapturePhotoOutput?
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:137:12: note: 'AVCaptureSession' has been explicitly marked unavailable here
135 | */
136 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
137 | @interface AVCaptureSession : NSObject
| `- note: 'AVCaptureSession' has been explicitly marked unavailable here
138 | {
139 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:66:35: error: 'AVCaptureDeviceInput' is unavailable in watchOS
64 |
65 | private var captureSession: AVCaptureSession?
66 | private var videoDeviceInput: AVCaptureDeviceInput?
| `- error: 'AVCaptureDeviceInput' is unavailable in watchOS
67 | private var photoOutput: AVCapturePhotoOutput?
68 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureInput.h:182:12: note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
180 | */
181 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
182 | @interface AVCaptureDeviceInput : AVCaptureInput
| `- note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
183 | {
184 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:67:30: error: 'AVCapturePhotoOutput' is unavailable in watchOS
65 | private var captureSession: AVCaptureSession?
66 | private var videoDeviceInput: AVCaptureDeviceInput?
67 | private var photoOutput: AVCapturePhotoOutput?
| `- error: 'AVCapturePhotoOutput' is unavailable in watchOS
68 |
69 | var videoPreviewLayer: AVCaptureVideoPreviewLayer {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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/CameraView/CameraView.swift:69:28: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
67 | private var photoOutput: AVCapturePhotoOutput?
68 |
69 | var videoPreviewLayer: AVCaptureVideoPreviewLayer {
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
70 | return layer as! AVCaptureVideoPreviewLayer
71 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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/CameraView/CameraView.swift:73:59: error: 'AVCaptureDevice' is unavailable in watchOS
71 | }
72 |
73 | init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
74 | super.init(frame: .zero)
75 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:73:129: error: 'AVCaptureDevice' is unavailable in watchOS
71 | }
72 |
73 | init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
74 | super.init(frame: .zero)
75 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:73:89: error: 'builtInWideAngleCamera' is unavailable in watchOS
71 | }
72 |
73 | init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'builtInWideAngleCamera' is unavailable in watchOS
74 | super.init(frame: .zero)
75 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:562:38: note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
560 | A built-in wide angle camera device. These devices are suitable for general purpose use.
561 | */
562 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInWideAngleCamera API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0), visionos(2.1)) API_UNAVAILABLE(watchos);
| `- note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
563 |
564 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:152:32: error: 'AVCapturePhotoOutput' is unavailable in watchOS
150 | }
151 |
152 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
| `- error: 'AVCapturePhotoOutput' is unavailable in watchOS
153 | if error != nil {
154 | cameraState.capturedImageError = PhotoParseError.error(error!)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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/CameraView/CameraView.swift:152:86: error: 'AVCapturePhoto' is unavailable in watchOS
150 | }
151 |
152 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
| `- error: 'AVCapturePhoto' is unavailable in watchOS
153 | if error != nil {
154 | cameraState.capturedImageError = PhotoParseError.error(error!)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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/CameraView/CameraView.swift:59:28: error: 'UIView' is unavailable in watchOS
57 | }
58 |
59 | private class PreviewView: UIView, AVCapturePhotoCaptureDelegate {
| `- error: 'UIView' is unavailable in watchOS
60 |
61 | @EnvironmentObject var cameraState : CameraState
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift (in target 'CameraView' from project 'CameraView')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile CameraView.swift
SwiftCompile normal arm64_32 Compiling\ CameraViewDelegate.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraViewDelegate.swift (in target 'CameraView' from project 'CameraView')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraViewDelegate.swift (in target 'CameraView' from project 'CameraView')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile CameraViewDelegate.swift
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
2026-09-15 14:28:55.221 xcodebuild[647:4183] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
** BUILD FAILED **
The following build commands failed:
SwiftCompile normal arm64 (in target 'CameraView' from project 'CameraView')
SwiftEmitModule normal arm64 Emitting\ module\ for\ CameraView (in target 'CameraView' from project 'CameraView')
Building workspace CameraView with scheme CameraView
(3 failures)
Command line invocation:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -resolvePackageDependencies
Resolve Package Graph
Resolved source packages:
CameraView: /Users/admin/builder/spi-builder-workspace
resolved source packages: CameraView
2026-09-15 14:29:01.958 xcodebuild[798:4754] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
{
"dependencies" : [
],
"manifest_display_name" : "CameraView",
"name" : "CameraView",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
}
],
"products" : [
{
"name" : "CameraView",
"targets" : [
"CameraView"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CameraViewTests",
"module_type" : "SwiftTarget",
"name" : "CameraViewTests",
"path" : "Tests/CameraViewTests",
"sources" : [
"CameraViewTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"CameraView"
],
"type" : "test"
},
{
"c99name" : "CameraView",
"module_type" : "SwiftTarget",
"name" : "CameraView",
"path" : "Sources/CameraView",
"product_memberships" : [
"CameraView"
],
"sources" : [
"CameraState.swift",
"CameraView.swift",
"CameraViewDelegate.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
{
"workspace" : {
"name" : "CameraView",
"schemes" : [
"CameraView"
]
}
}
2026-09-15 14:29:03.191 xcodebuild[806:4822] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$PWD/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath $PWD/.derivedData build -scheme CameraView -destination generic/platform=watchOS
Command line invocation:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath /Users/admin/builder/spi-builder-workspace/.derivedData build -scheme CameraView -destination generic/platform=watchOS
Resolve Package Graph
Resolved source packages:
CameraView: /Users/admin/builder/spi-builder-workspace
ComputePackagePrebuildTargetDependencyGraph
Prepare packages
CreateBuildRequest
SendProjectDescription
CreateBuildOperation
ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (2 targets)
Target 'CameraView-product' in project 'CameraView'
➜ Explicit dependency on target 'CameraView' in project 'CameraView'
Target 'CameraView' in project 'CameraView' (no dependencies)
GatherProvisioningInputs
CreateBuildDescription
ClangStatCache /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -o /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache
SwiftDriver CameraView normal arm64_32 com.apple.xcode.tools.swift.compiler (in target 'CameraView' from project 'CameraView')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftDriver -- /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -parse-as-library -module-name CameraView -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/Objects-normal/arm64_32/CameraView.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -DXcode -plugin-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -target arm64_32-apple-watchos9.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -profile-coverage-mapping -profile-generate -enable-testing -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -swift-version 5 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/Objects-normal/arm64_32/CameraView-OutputFileMap.json -save-temps -no-color-diagnostics -explicit-module-build -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -clang-scanner-module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -sdk-module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules -emit-dependencies -emit-module -emit-module-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/Objects-normal/arm64_32/CameraView.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/Objects-normal/arm64_32/CameraView-dependency-scan.dia -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -emit-const-values -const-gather-protocols-list /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/Objects-normal/arm64_32/CameraView_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/DerivedSources-normal/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/DerivedSources/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -emit-objc-header -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/Objects-normal/arm64_32/CameraView-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftDriver CameraView normal arm64 com.apple.xcode.tools.swift.compiler (in target 'CameraView' from project 'CameraView')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftDriver -- /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -parse-as-library -module-name CameraView -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/Objects-normal/arm64/CameraView.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -DXcode -plugin-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -target arm64-apple-watchos9.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -profile-coverage-mapping -profile-generate -enable-testing -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -swift-version 5 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/Objects-normal/arm64/CameraView-OutputFileMap.json -save-temps -no-color-diagnostics -explicit-module-build -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -clang-scanner-module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -sdk-module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules -emit-dependencies -emit-module -emit-module-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/Objects-normal/arm64/CameraView.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/Objects-normal/arm64/CameraView-dependency-scan.dia -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -emit-const-values -const-gather-protocols-list /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/Objects-normal/arm64/CameraView_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -emit-objc-header -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/Objects-normal/arm64/CameraView-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftEmitModule normal arm64 Emitting\ module\ for\ CameraView (in target 'CameraView' from project 'CameraView')
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:14:29: error: 'AVCaptureDevice' is unavailable in watchOS
12 | public struct CameraView: View {
13 | private var delegate: CameraViewDelegate?
14 | private var cameraType: AVCaptureDevice.DeviceType
| `- error: 'AVCaptureDevice' is unavailable in watchOS
15 | private var cameraPosition: AVCaptureDevice.Position
16 | private var preview : PreviewHolder
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:15:33: error: 'AVCaptureDevice' is unavailable in watchOS
13 | private var delegate: CameraViewDelegate?
14 | private var cameraType: AVCaptureDevice.DeviceType
15 | private var cameraPosition: AVCaptureDevice.Position
| `- error: 'AVCaptureDevice' is unavailable in watchOS
16 | private var preview : PreviewHolder
17 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:20:66: error: 'AVCaptureDevice' is unavailable in watchOS
18 | @ObservedObject private var viewModel : CameraViewModel
19 |
20 | public init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
21 | self.delegate = delegate
22 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:20:136: error: 'AVCaptureDevice' is unavailable in watchOS
18 | @ObservedObject private var viewModel : CameraViewModel
19 |
20 | public init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
21 | self.delegate = delegate
22 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:20:96: error: 'builtInWideAngleCamera' is unavailable in watchOS
18 | @ObservedObject private var viewModel : CameraViewModel
19 |
20 | public init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'builtInWideAngleCamera' is unavailable in watchOS
21 | self.delegate = delegate
22 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:562:38: note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
560 | A built-in wide angle camera device. These devices are suitable for general purpose use.
561 | */
562 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInWideAngleCamera API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0), visionos(2.1)) API_UNAVAILABLE(watchos);
| `- note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
563 |
564 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:65:33: error: 'AVCaptureSession' is unavailable in watchOS
63 | private var delegate: CameraViewDelegate?
64 |
65 | private var captureSession: AVCaptureSession?
| `- error: 'AVCaptureSession' is unavailable in watchOS
66 | private var videoDeviceInput: AVCaptureDeviceInput?
67 | private var photoOutput: AVCapturePhotoOutput?
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:137:12: note: 'AVCaptureSession' has been explicitly marked unavailable here
135 | */
136 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
137 | @interface AVCaptureSession : NSObject
| `- note: 'AVCaptureSession' has been explicitly marked unavailable here
138 | {
139 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:66:35: error: 'AVCaptureDeviceInput' is unavailable in watchOS
64 |
65 | private var captureSession: AVCaptureSession?
66 | private var videoDeviceInput: AVCaptureDeviceInput?
| `- error: 'AVCaptureDeviceInput' is unavailable in watchOS
67 | private var photoOutput: AVCapturePhotoOutput?
68 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureInput.h:182:12: note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
180 | */
181 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
182 | @interface AVCaptureDeviceInput : AVCaptureInput
| `- note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
183 | {
184 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:67:30: error: 'AVCapturePhotoOutput' is unavailable in watchOS
65 | private var captureSession: AVCaptureSession?
66 | private var videoDeviceInput: AVCaptureDeviceInput?
67 | private var photoOutput: AVCapturePhotoOutput?
| `- error: 'AVCapturePhotoOutput' is unavailable in watchOS
68 |
69 | var videoPreviewLayer: AVCaptureVideoPreviewLayer {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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/CameraView/CameraView.swift:69:28: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
67 | private var photoOutput: AVCapturePhotoOutput?
68 |
69 | var videoPreviewLayer: AVCaptureVideoPreviewLayer {
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
70 | return layer as! AVCaptureVideoPreviewLayer
71 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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/CameraView/CameraView.swift:73:59: error: 'AVCaptureDevice' is unavailable in watchOS
71 | }
72 |
73 | init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
74 | super.init(frame: .zero)
75 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:73:129: error: 'AVCaptureDevice' is unavailable in watchOS
71 | }
72 |
73 | init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
74 | super.init(frame: .zero)
75 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:73:89: error: 'builtInWideAngleCamera' is unavailable in watchOS
71 | }
72 |
73 | init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'builtInWideAngleCamera' is unavailable in watchOS
74 | super.init(frame: .zero)
75 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:562:38: note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
560 | A built-in wide angle camera device. These devices are suitable for general purpose use.
561 | */
562 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInWideAngleCamera API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0), visionos(2.1)) API_UNAVAILABLE(watchos);
| `- note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
563 |
564 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:152:32: error: 'AVCapturePhotoOutput' is unavailable in watchOS
150 | }
151 |
152 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
| `- error: 'AVCapturePhotoOutput' is unavailable in watchOS
153 | if error != nil {
154 | cameraState.capturedImageError = PhotoParseError.error(error!)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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/CameraView/CameraView.swift:152:86: error: 'AVCapturePhoto' is unavailable in watchOS
150 | }
151 |
152 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
| `- error: 'AVCapturePhoto' is unavailable in watchOS
153 | if error != nil {
154 | cameraState.capturedImageError = PhotoParseError.error(error!)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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/CameraView/CameraView.swift:59:28: error: 'UIView' is unavailable in watchOS
57 | }
58 |
59 | private class PreviewView: UIView, AVCapturePhotoCaptureDelegate {
| `- error: 'UIView' is unavailable in watchOS
60 |
61 | @EnvironmentObject var cameraState : CameraState
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:59:36: error: 'AVCapturePhotoCaptureDelegate' is unavailable in watchOS
57 | }
58 |
59 | private class PreviewView: UIView, AVCapturePhotoCaptureDelegate {
| `- error: 'AVCapturePhotoCaptureDelegate' is unavailable in watchOS
60 |
61 | @EnvironmentObject var cameraState : CameraState
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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/CameraView/CameraView.swift:175:29: error: 'AVCaptureDevice' is unavailable in watchOS
173 | private struct PreviewHolder: UIViewRepresentable {
174 | private var delegate: CameraViewDelegate?
175 | private var cameraType: AVCaptureDevice.DeviceType
| `- error: 'AVCaptureDevice' is unavailable in watchOS
176 | private var cameraPosition: AVCaptureDevice.Position
177 | private var view: PreviewView
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:176:33: error: 'AVCaptureDevice' is unavailable in watchOS
174 | private var delegate: CameraViewDelegate?
175 | private var cameraType: AVCaptureDevice.DeviceType
176 | private var cameraPosition: AVCaptureDevice.Position
| `- error: 'AVCaptureDevice' is unavailable in watchOS
177 | private var view: PreviewView
178 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:179:59: error: 'AVCaptureDevice' is unavailable in watchOS
177 | private var view: PreviewView
178 |
179 | init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
180 | self.delegate = delegate
181 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:179:129: error: 'AVCaptureDevice' is unavailable in watchOS
177 | private var view: PreviewView
178 |
179 | init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
180 | self.delegate = delegate
181 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:179:89: error: 'builtInWideAngleCamera' is unavailable in watchOS
177 | private var view: PreviewView
178 |
179 | init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'builtInWideAngleCamera' is unavailable in watchOS
180 | self.delegate = delegate
181 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:562:38: note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
560 | A built-in wide angle camera device. These devices are suitable for general purpose use.
561 | */
562 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInWideAngleCamera API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0), visionos(2.1)) API_UNAVAILABLE(watchos);
| `- note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
563 |
564 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:186:30: error: cannot find type 'UIViewRepresentableContext' in scope
184 | }
185 |
186 | func makeUIView(context: UIViewRepresentableContext<PreviewHolder>) -> PreviewView {
| `- error: cannot find type 'UIViewRepresentableContext' in scope
187 | view
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:190:55: error: cannot find type 'UIViewRepresentableContext' in scope
188 | }
189 |
190 | func updateUIView(_ uiView: PreviewView, context: UIViewRepresentableContext<PreviewHolder>) {
| `- error: cannot find type 'UIViewRepresentableContext' in scope
191 | }
192 |
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:173:31: error: cannot find type 'UIViewRepresentable' in scope
171 | }
172 |
173 | private struct PreviewHolder: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
174 | private var delegate: CameraViewDelegate?
175 | private var cameraType: AVCaptureDevice.DeviceType
Failed frontend command:
SwiftCompile normal arm64 (in target 'CameraView' from project 'CameraView')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraState.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraViewDelegate.swift -target arm64-apple-watchos9.0 -disable-cross-import-overlay-search -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libPreviewsMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#PreviewsMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#SwiftMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftUIMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.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/CameraView.build/Debug-watchos/CameraView-t.build/Objects-normal/arm64/CameraView-dependencies-2.json -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name CameraView -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/Objects-normal/arm64/CameraView_const_extract_protocols.json -disable-clang-spi -clang-target arm64-apple-watchos27.0 -target-sdk-version 27.0 -target-sdk-name watchos27.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/CameraView.build/Debug-watchos/CameraView-t.build/Objects-normal/arm64/CameraView.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/Objects-normal/arm64/CameraView.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/Objects-normal/arm64/CameraView-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/Objects-normal/arm64/CameraView-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/Objects-normal/arm64/CameraView-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/Objects-normal/arm64/CameraView.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraView.build/Debug-watchos/CameraView-t.build/Objects-normal/arm64/CameraView.abi.json
SwiftCompile normal arm64 Compiling\ CameraView.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift (in target 'CameraView' from project 'CameraView')
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:14:29: error: 'AVCaptureDevice' is unavailable in watchOS
12 | public struct CameraView: View {
13 | private var delegate: CameraViewDelegate?
14 | private var cameraType: AVCaptureDevice.DeviceType
| `- error: 'AVCaptureDevice' is unavailable in watchOS
15 | private var cameraPosition: AVCaptureDevice.Position
16 | private var preview : PreviewHolder
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:15:33: error: 'AVCaptureDevice' is unavailable in watchOS
13 | private var delegate: CameraViewDelegate?
14 | private var cameraType: AVCaptureDevice.DeviceType
15 | private var cameraPosition: AVCaptureDevice.Position
| `- error: 'AVCaptureDevice' is unavailable in watchOS
16 | private var preview : PreviewHolder
17 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:20:66: error: 'AVCaptureDevice' is unavailable in watchOS
18 | @ObservedObject private var viewModel : CameraViewModel
19 |
20 | public init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
21 | self.delegate = delegate
22 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:20:136: error: 'AVCaptureDevice' is unavailable in watchOS
18 | @ObservedObject private var viewModel : CameraViewModel
19 |
20 | public init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
21 | self.delegate = delegate
22 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:20:96: error: 'builtInWideAngleCamera' is unavailable in watchOS
18 | @ObservedObject private var viewModel : CameraViewModel
19 |
20 | public init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'builtInWideAngleCamera' is unavailable in watchOS
21 | self.delegate = delegate
22 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:562:38: note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
560 | A built-in wide angle camera device. These devices are suitable for general purpose use.
561 | */
562 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInWideAngleCamera API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0), visionos(2.1)) API_UNAVAILABLE(watchos);
| `- note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
563 |
564 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:65:33: error: 'AVCaptureSession' is unavailable in watchOS
63 | private var delegate: CameraViewDelegate?
64 |
65 | private var captureSession: AVCaptureSession?
| `- error: 'AVCaptureSession' is unavailable in watchOS
66 | private var videoDeviceInput: AVCaptureDeviceInput?
67 | private var photoOutput: AVCapturePhotoOutput?
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:137:12: note: 'AVCaptureSession' has been explicitly marked unavailable here
135 | */
136 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
137 | @interface AVCaptureSession : NSObject
| `- note: 'AVCaptureSession' has been explicitly marked unavailable here
138 | {
139 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:66:35: error: 'AVCaptureDeviceInput' is unavailable in watchOS
64 |
65 | private var captureSession: AVCaptureSession?
66 | private var videoDeviceInput: AVCaptureDeviceInput?
| `- error: 'AVCaptureDeviceInput' is unavailable in watchOS
67 | private var photoOutput: AVCapturePhotoOutput?
68 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureInput.h:182:12: note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
180 | */
181 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
182 | @interface AVCaptureDeviceInput : AVCaptureInput
| `- note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
183 | {
184 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:67:30: error: 'AVCapturePhotoOutput' is unavailable in watchOS
65 | private var captureSession: AVCaptureSession?
66 | private var videoDeviceInput: AVCaptureDeviceInput?
67 | private var photoOutput: AVCapturePhotoOutput?
| `- error: 'AVCapturePhotoOutput' is unavailable in watchOS
68 |
69 | var videoPreviewLayer: AVCaptureVideoPreviewLayer {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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/CameraView/CameraView.swift:69:28: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
67 | private var photoOutput: AVCapturePhotoOutput?
68 |
69 | var videoPreviewLayer: AVCaptureVideoPreviewLayer {
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
70 | return layer as! AVCaptureVideoPreviewLayer
71 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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/CameraView/CameraView.swift:73:59: error: 'AVCaptureDevice' is unavailable in watchOS
71 | }
72 |
73 | init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
74 | super.init(frame: .zero)
75 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:73:129: error: 'AVCaptureDevice' is unavailable in watchOS
71 | }
72 |
73 | init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
74 | super.init(frame: .zero)
75 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:73:89: error: 'builtInWideAngleCamera' is unavailable in watchOS
71 | }
72 |
73 | init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'builtInWideAngleCamera' is unavailable in watchOS
74 | super.init(frame: .zero)
75 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:562:38: note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
560 | A built-in wide angle camera device. These devices are suitable for general purpose use.
561 | */
562 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInWideAngleCamera API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0), visionos(2.1)) API_UNAVAILABLE(watchos);
| `- note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
563 |
564 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:152:32: error: 'AVCapturePhotoOutput' is unavailable in watchOS
150 | }
151 |
152 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
| `- error: 'AVCapturePhotoOutput' is unavailable in watchOS
153 | if error != nil {
154 | cameraState.capturedImageError = PhotoParseError.error(error!)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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/CameraView/CameraView.swift:152:86: error: 'AVCapturePhoto' is unavailable in watchOS
150 | }
151 |
152 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
| `- error: 'AVCapturePhoto' is unavailable in watchOS
153 | if error != nil {
154 | cameraState.capturedImageError = PhotoParseError.error(error!)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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/CameraView/CameraView.swift:59:28: error: 'UIView' is unavailable in watchOS
57 | }
58 |
59 | private class PreviewView: UIView, AVCapturePhotoCaptureDelegate {
| `- error: 'UIView' is unavailable in watchOS
60 |
61 | @EnvironmentObject var cameraState : CameraState
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:59:36: error: 'AVCapturePhotoCaptureDelegate' is unavailable in watchOS
57 | }
58 |
59 | private class PreviewView: UIView, AVCapturePhotoCaptureDelegate {
| `- error: 'AVCapturePhotoCaptureDelegate' is unavailable in watchOS
60 |
61 | @EnvironmentObject var cameraState : CameraState
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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/CameraView/CameraView.swift:175:29: error: 'AVCaptureDevice' is unavailable in watchOS
173 | private struct PreviewHolder: UIViewRepresentable {
174 | private var delegate: CameraViewDelegate?
175 | private var cameraType: AVCaptureDevice.DeviceType
| `- error: 'AVCaptureDevice' is unavailable in watchOS
176 | private var cameraPosition: AVCaptureDevice.Position
177 | private var view: PreviewView
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:176:33: error: 'AVCaptureDevice' is unavailable in watchOS
174 | private var delegate: CameraViewDelegate?
175 | private var cameraType: AVCaptureDevice.DeviceType
176 | private var cameraPosition: AVCaptureDevice.Position
| `- error: 'AVCaptureDevice' is unavailable in watchOS
177 | private var view: PreviewView
178 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift (in target 'CameraView' from project 'CameraView')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile CameraView.swift
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:179:59: error: 'AVCaptureDevice' is unavailable in watchOS
177 | private var view: PreviewView
178 |
179 | init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
180 | self.delegate = delegate
181 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:179:129: error: 'AVCaptureDevice' is unavailable in watchOS
177 | private var view: PreviewView
178 |
179 | init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
180 | self.delegate = delegate
181 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:179:89: error: 'builtInWideAngleCamera' is unavailable in watchOS
177 | private var view: PreviewView
178 |
179 | init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'builtInWideAngleCamera' is unavailable in watchOS
180 | self.delegate = delegate
181 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:562:38: note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
560 | A built-in wide angle camera device. These devices are suitable for general purpose use.
561 | */
562 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInWideAngleCamera API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0), visionos(2.1)) API_UNAVAILABLE(watchos);
| `- note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
563 |
564 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:186:30: error: cannot find type 'UIViewRepresentableContext' in scope
184 | }
185 |
186 | func makeUIView(context: UIViewRepresentableContext<PreviewHolder>) -> PreviewView {
| `- error: cannot find type 'UIViewRepresentableContext' in scope
187 | view
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:190:55: error: cannot find type 'UIViewRepresentableContext' in scope
188 | }
189 |
190 | func updateUIView(_ uiView: PreviewView, context: UIViewRepresentableContext<PreviewHolder>) {
| `- error: cannot find type 'UIViewRepresentableContext' in scope
191 | }
192 |
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:173:31: error: cannot find type 'UIViewRepresentable' in scope
171 | }
172 |
173 | private struct PreviewHolder: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
174 | private var delegate: CameraViewDelegate?
175 | private var cameraType: AVCaptureDevice.DeviceType
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:30:9: error: return type of property 'body' requires that 'PreviewHolder' conform to 'View'
27 | }
28 |
29 | public var body: some View {
| `- note: opaque return type declared here
30 | preview
| `- error: return type of property 'body' requires that 'PreviewHolder' conform to 'View'
31 | }
32 |
SwiftEmitModule normal arm64_32 Emitting\ module\ for\ CameraView (in target 'CameraView' from project 'CameraView')
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:14:29: error: 'AVCaptureDevice' is unavailable in watchOS
12 | public struct CameraView: View {
13 | private var delegate: CameraViewDelegate?
14 | private var cameraType: AVCaptureDevice.DeviceType
| `- error: 'AVCaptureDevice' is unavailable in watchOS
15 | private var cameraPosition: AVCaptureDevice.Position
16 | private var preview : PreviewHolder
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:15:33: error: 'AVCaptureDevice' is unavailable in watchOS
13 | private var delegate: CameraViewDelegate?
14 | private var cameraType: AVCaptureDevice.DeviceType
15 | private var cameraPosition: AVCaptureDevice.Position
| `- error: 'AVCaptureDevice' is unavailable in watchOS
16 | private var preview : PreviewHolder
17 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:20:66: error: 'AVCaptureDevice' is unavailable in watchOS
18 | @ObservedObject private var viewModel : CameraViewModel
19 |
20 | public init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
21 | self.delegate = delegate
22 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:20:136: error: 'AVCaptureDevice' is unavailable in watchOS
18 | @ObservedObject private var viewModel : CameraViewModel
19 |
20 | public init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
21 | self.delegate = delegate
22 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:20:96: error: 'builtInWideAngleCamera' is unavailable in watchOS
18 | @ObservedObject private var viewModel : CameraViewModel
19 |
20 | public init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'builtInWideAngleCamera' is unavailable in watchOS
21 | self.delegate = delegate
22 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:562:38: note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
560 | A built-in wide angle camera device. These devices are suitable for general purpose use.
561 | */
562 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInWideAngleCamera API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0), visionos(2.1)) API_UNAVAILABLE(watchos);
| `- note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
563 |
564 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:65:33: error: 'AVCaptureSession' is unavailable in watchOS
63 | private var delegate: CameraViewDelegate?
64 |
65 | private var captureSession: AVCaptureSession?
| `- error: 'AVCaptureSession' is unavailable in watchOS
66 | private var videoDeviceInput: AVCaptureDeviceInput?
67 | private var photoOutput: AVCapturePhotoOutput?
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:137:12: note: 'AVCaptureSession' has been explicitly marked unavailable here
135 | */
136 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
137 | @interface AVCaptureSession : NSObject
| `- note: 'AVCaptureSession' has been explicitly marked unavailable here
138 | {
139 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:66:35: error: 'AVCaptureDeviceInput' is unavailable in watchOS
64 |
65 | private var captureSession: AVCaptureSession?
66 | private var videoDeviceInput: AVCaptureDeviceInput?
| `- error: 'AVCaptureDeviceInput' is unavailable in watchOS
67 | private var photoOutput: AVCapturePhotoOutput?
68 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureInput.h:182:12: note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
180 | */
181 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
182 | @interface AVCaptureDeviceInput : AVCaptureInput
| `- note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
183 | {
184 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:67:30: error: 'AVCapturePhotoOutput' is unavailable in watchOS
65 | private var captureSession: AVCaptureSession?
66 | private var videoDeviceInput: AVCaptureDeviceInput?
67 | private var photoOutput: AVCapturePhotoOutput?
| `- error: 'AVCapturePhotoOutput' is unavailable in watchOS
68 |
69 | var videoPreviewLayer: AVCaptureVideoPreviewLayer {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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/CameraView/CameraView.swift:69:28: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
67 | private var photoOutput: AVCapturePhotoOutput?
68 |
69 | var videoPreviewLayer: AVCaptureVideoPreviewLayer {
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
70 | return layer as! AVCaptureVideoPreviewLayer
71 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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/CameraView/CameraView.swift:73:59: error: 'AVCaptureDevice' is unavailable in watchOS
71 | }
72 |
73 | init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
74 | super.init(frame: .zero)
75 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:73:129: error: 'AVCaptureDevice' is unavailable in watchOS
71 | }
72 |
73 | init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
74 | super.init(frame: .zero)
75 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:73:89: error: 'builtInWideAngleCamera' is unavailable in watchOS
71 | }
72 |
73 | init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'builtInWideAngleCamera' is unavailable in watchOS
74 | super.init(frame: .zero)
75 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:562:38: note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
560 | A built-in wide angle camera device. These devices are suitable for general purpose use.
561 | */
562 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInWideAngleCamera API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0), visionos(2.1)) API_UNAVAILABLE(watchos);
| `- note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
563 |
564 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:152:32: error: 'AVCapturePhotoOutput' is unavailable in watchOS
150 | }
151 |
152 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
| `- error: 'AVCapturePhotoOutput' is unavailable in watchOS
153 | if error != nil {
154 | cameraState.capturedImageError = PhotoParseError.error(error!)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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/CameraView/CameraView.swift:152:86: error: 'AVCapturePhoto' is unavailable in watchOS
150 | }
151 |
152 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
| `- error: 'AVCapturePhoto' is unavailable in watchOS
153 | if error != nil {
154 | cameraState.capturedImageError = PhotoParseError.error(error!)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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/CameraView/CameraView.swift:59:28: error: 'UIView' is unavailable in watchOS
57 | }
58 |
59 | private class PreviewView: UIView, AVCapturePhotoCaptureDelegate {
| `- error: 'UIView' is unavailable in watchOS
60 |
61 | @EnvironmentObject var cameraState : CameraState
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:59:36: error: 'AVCapturePhotoCaptureDelegate' is unavailable in watchOS
57 | }
58 |
59 | private class PreviewView: UIView, AVCapturePhotoCaptureDelegate {
| `- error: 'AVCapturePhotoCaptureDelegate' is unavailable in watchOS
60 |
61 | @EnvironmentObject var cameraState : CameraState
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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/CameraView/CameraView.swift:175:29: error: 'AVCaptureDevice' is unavailable in watchOS
173 | private struct PreviewHolder: UIViewRepresentable {
174 | private var delegate: CameraViewDelegate?
175 | private var cameraType: AVCaptureDevice.DeviceType
| `- error: 'AVCaptureDevice' is unavailable in watchOS
176 | private var cameraPosition: AVCaptureDevice.Position
177 | private var view: PreviewView
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:176:33: error: 'AVCaptureDevice' is unavailable in watchOS
174 | private var delegate: CameraViewDelegate?
175 | private var cameraType: AVCaptureDevice.DeviceType
176 | private var cameraPosition: AVCaptureDevice.Position
| `- error: 'AVCaptureDevice' is unavailable in watchOS
177 | private var view: PreviewView
178 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:179:59: error: 'AVCaptureDevice' is unavailable in watchOS
177 | private var view: PreviewView
178 |
179 | init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
180 | self.delegate = delegate
181 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:179:129: error: 'AVCaptureDevice' is unavailable in watchOS
177 | private var view: PreviewView
178 |
179 | init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
180 | self.delegate = delegate
181 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:179:89: error: 'builtInWideAngleCamera' is unavailable in watchOS
177 | private var view: PreviewView
178 |
179 | init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'builtInWideAngleCamera' is unavailable in watchOS
180 | self.delegate = delegate
181 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:562:38: note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
560 | A built-in wide angle camera device. These devices are suitable for general purpose use.
561 | */
562 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInWideAngleCamera API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0), visionos(2.1)) API_UNAVAILABLE(watchos);
| `- note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
563 |
564 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:186:30: error: cannot find type 'UIViewRepresentableContext' in scope
184 | }
185 |
186 | func makeUIView(context: UIViewRepresentableContext<PreviewHolder>) -> PreviewView {
| `- error: cannot find type 'UIViewRepresentableContext' in scope
187 | view
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:190:55: error: cannot find type 'UIViewRepresentableContext' in scope
188 | }
189 |
190 | func updateUIView(_ uiView: PreviewView, context: UIViewRepresentableContext<PreviewHolder>) {
| `- error: cannot find type 'UIViewRepresentableContext' in scope
191 | }
192 |
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:173:31: error: cannot find type 'UIViewRepresentable' in scope
171 | }
172 |
173 | private struct PreviewHolder: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
174 | private var delegate: CameraViewDelegate?
175 | private var cameraType: AVCaptureDevice.DeviceType
SwiftCompile normal arm64_32 (in target 'CameraView' from project 'CameraView')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftCompile normal arm64_32 Compiling\ CameraState.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraState.swift (in target 'CameraView' from project 'CameraView')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraState.swift (in target 'CameraView' from project 'CameraView')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile CameraState.swift
SwiftCompile normal arm64_32 Compiling\ CameraView.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift (in target 'CameraView' from project 'CameraView')
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:14:29: error: 'AVCaptureDevice' is unavailable in watchOS
12 | public struct CameraView: View {
13 | private var delegate: CameraViewDelegate?
14 | private var cameraType: AVCaptureDevice.DeviceType
| `- error: 'AVCaptureDevice' is unavailable in watchOS
15 | private var cameraPosition: AVCaptureDevice.Position
16 | private var preview : PreviewHolder
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:15:33: error: 'AVCaptureDevice' is unavailable in watchOS
13 | private var delegate: CameraViewDelegate?
14 | private var cameraType: AVCaptureDevice.DeviceType
15 | private var cameraPosition: AVCaptureDevice.Position
| `- error: 'AVCaptureDevice' is unavailable in watchOS
16 | private var preview : PreviewHolder
17 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:20:66: error: 'AVCaptureDevice' is unavailable in watchOS
18 | @ObservedObject private var viewModel : CameraViewModel
19 |
20 | public init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
21 | self.delegate = delegate
22 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:20:136: error: 'AVCaptureDevice' is unavailable in watchOS
18 | @ObservedObject private var viewModel : CameraViewModel
19 |
20 | public init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
21 | self.delegate = delegate
22 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:20:96: error: 'builtInWideAngleCamera' is unavailable in watchOS
18 | @ObservedObject private var viewModel : CameraViewModel
19 |
20 | public init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'builtInWideAngleCamera' is unavailable in watchOS
21 | self.delegate = delegate
22 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:562:38: note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
560 | A built-in wide angle camera device. These devices are suitable for general purpose use.
561 | */
562 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInWideAngleCamera API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0), visionos(2.1)) API_UNAVAILABLE(watchos);
| `- note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
563 |
564 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:65:33: error: 'AVCaptureSession' is unavailable in watchOS
63 | private var delegate: CameraViewDelegate?
64 |
65 | private var captureSession: AVCaptureSession?
| `- error: 'AVCaptureSession' is unavailable in watchOS
66 | private var videoDeviceInput: AVCaptureDeviceInput?
67 | private var photoOutput: AVCapturePhotoOutput?
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:137:12: note: 'AVCaptureSession' has been explicitly marked unavailable here
135 | */
136 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
137 | @interface AVCaptureSession : NSObject
| `- note: 'AVCaptureSession' has been explicitly marked unavailable here
138 | {
139 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:66:35: error: 'AVCaptureDeviceInput' is unavailable in watchOS
64 |
65 | private var captureSession: AVCaptureSession?
66 | private var videoDeviceInput: AVCaptureDeviceInput?
| `- error: 'AVCaptureDeviceInput' is unavailable in watchOS
67 | private var photoOutput: AVCapturePhotoOutput?
68 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureInput.h:182:12: note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
180 | */
181 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
182 | @interface AVCaptureDeviceInput : AVCaptureInput
| `- note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
183 | {
184 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:67:30: error: 'AVCapturePhotoOutput' is unavailable in watchOS
65 | private var captureSession: AVCaptureSession?
66 | private var videoDeviceInput: AVCaptureDeviceInput?
67 | private var photoOutput: AVCapturePhotoOutput?
| `- error: 'AVCapturePhotoOutput' is unavailable in watchOS
68 |
69 | var videoPreviewLayer: AVCaptureVideoPreviewLayer {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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/CameraView/CameraView.swift:69:28: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
67 | private var photoOutput: AVCapturePhotoOutput?
68 |
69 | var videoPreviewLayer: AVCaptureVideoPreviewLayer {
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
70 | return layer as! AVCaptureVideoPreviewLayer
71 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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/CameraView/CameraView.swift:73:59: error: 'AVCaptureDevice' is unavailable in watchOS
71 | }
72 |
73 | init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
74 | super.init(frame: .zero)
75 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:73:129: error: 'AVCaptureDevice' is unavailable in watchOS
71 | }
72 |
73 | init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
74 | super.init(frame: .zero)
75 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:73:89: error: 'builtInWideAngleCamera' is unavailable in watchOS
71 | }
72 |
73 | init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'builtInWideAngleCamera' is unavailable in watchOS
74 | super.init(frame: .zero)
75 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:562:38: note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
560 | A built-in wide angle camera device. These devices are suitable for general purpose use.
561 | */
562 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInWideAngleCamera API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0), visionos(2.1)) API_UNAVAILABLE(watchos);
| `- note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
563 |
564 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:152:32: error: 'AVCapturePhotoOutput' is unavailable in watchOS
150 | }
151 |
152 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
| `- error: 'AVCapturePhotoOutput' is unavailable in watchOS
153 | if error != nil {
154 | cameraState.capturedImageError = PhotoParseError.error(error!)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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/CameraView/CameraView.swift:152:86: error: 'AVCapturePhoto' is unavailable in watchOS
150 | }
151 |
152 | func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
| `- error: 'AVCapturePhoto' is unavailable in watchOS
153 | if error != nil {
154 | cameraState.capturedImageError = PhotoParseError.error(error!)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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/CameraView/CameraView.swift:59:28: error: 'UIView' is unavailable in watchOS
57 | }
58 |
59 | private class PreviewView: UIView, AVCapturePhotoCaptureDelegate {
| `- error: 'UIView' is unavailable in watchOS
60 |
61 | @EnvironmentObject var cameraState : CameraState
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:59:36: error: 'AVCapturePhotoCaptureDelegate' is unavailable in watchOS
57 | }
58 |
59 | private class PreviewView: UIView, AVCapturePhotoCaptureDelegate {
| `- error: 'AVCapturePhotoCaptureDelegate' is unavailable in watchOS
60 |
61 | @EnvironmentObject var cameraState : CameraState
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.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/CameraView/CameraView.swift:175:29: error: 'AVCaptureDevice' is unavailable in watchOS
173 | private struct PreviewHolder: UIViewRepresentable {
174 | private var delegate: CameraViewDelegate?
175 | private var cameraType: AVCaptureDevice.DeviceType
| `- error: 'AVCaptureDevice' is unavailable in watchOS
176 | private var cameraPosition: AVCaptureDevice.Position
177 | private var view: PreviewView
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:176:33: error: 'AVCaptureDevice' is unavailable in watchOS
174 | private var delegate: CameraViewDelegate?
175 | private var cameraType: AVCaptureDevice.DeviceType
176 | private var cameraPosition: AVCaptureDevice.Position
| `- error: 'AVCaptureDevice' is unavailable in watchOS
177 | private var view: PreviewView
178 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:179:59: error: 'AVCaptureDevice' is unavailable in watchOS
177 | private var view: PreviewView
178 |
179 | init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
180 | self.delegate = delegate
181 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:179:129: error: 'AVCaptureDevice' is unavailable in watchOS
177 | private var view: PreviewView
178 |
179 | init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
180 | self.delegate = delegate
181 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
132 | */
133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
134 | @interface AVCaptureDevice : NSObject
| `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
135 | {
136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:179:89: error: 'builtInWideAngleCamera' is unavailable in watchOS
177 | private var view: PreviewView
178 |
179 | init(delegate: CameraViewDelegate? = nil, cameraType: AVCaptureDevice.DeviceType = .builtInWideAngleCamera, cameraPosition: AVCaptureDevice.Position = .back) {
| `- error: 'builtInWideAngleCamera' is unavailable in watchOS
180 | self.delegate = delegate
181 | self.cameraType = cameraType
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:562:38: note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
560 | A built-in wide angle camera device. These devices are suitable for general purpose use.
561 | */
562 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInWideAngleCamera API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0), visionos(2.1)) API_UNAVAILABLE(watchos);
| `- note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
563 |
564 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:186:30: error: cannot find type 'UIViewRepresentableContext' in scope
184 | }
185 |
186 | func makeUIView(context: UIViewRepresentableContext<PreviewHolder>) -> PreviewView {
| `- error: cannot find type 'UIViewRepresentableContext' in scope
187 | view
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:190:55: error: cannot find type 'UIViewRepresentableContext' in scope
188 | }
189 |
190 | func updateUIView(_ uiView: PreviewView, context: UIViewRepresentableContext<PreviewHolder>) {
| `- error: cannot find type 'UIViewRepresentableContext' in scope
191 | }
192 |
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:173:31: error: cannot find type 'UIViewRepresentable' in scope
171 | }
172 |
173 | private struct PreviewHolder: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
174 | private var delegate: CameraViewDelegate?
175 | private var cameraType: AVCaptureDevice.DeviceType
/Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift:30:9: error: return type of property 'body' requires that 'PreviewHolder' conform to 'View'
27 | }
28 |
29 | public var body: some View {
| `- note: opaque return type declared here
30 | preview
| `- error: return type of property 'body' requires that 'PreviewHolder' conform to 'View'
31 | }
32 |
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraView.swift (in target 'CameraView' from project 'CameraView')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile CameraView.swift
SwiftCompile normal arm64 Compiling\ CameraState.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraState.swift (in target 'CameraView' from project 'CameraView')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraState.swift (in target 'CameraView' from project 'CameraView')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile CameraState.swift
SwiftCompile normal arm64 Compiling\ CameraViewDelegate.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraViewDelegate.swift (in target 'CameraView' from project 'CameraView')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraViewDelegate.swift (in target 'CameraView' from project 'CameraView')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile CameraViewDelegate.swift
SwiftCompile normal arm64_32 Compiling\ CameraViewDelegate.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraViewDelegate.swift (in target 'CameraView' from project 'CameraView')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/CameraView/CameraViewDelegate.swift (in target 'CameraView' from project 'CameraView')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile CameraViewDelegate.swift
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
2026-09-15 14:29:04.160 xcodebuild[807:4845] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
** BUILD FAILED **
The following build commands failed:
SwiftCompile normal arm64 (in target 'CameraView' from project 'CameraView')
SwiftEmitModule normal arm64 Emitting\ module\ for\ CameraView (in target 'CameraView' from project 'CameraView')
Building workspace CameraView with scheme CameraView
(3 failures)
BUILD FAILURE 6.4 watchOS