Build Information
Failed to build ScanBarcodes, reference 1.0.6 (c023ef), with Swift 6.4 for watchOS using Xcode 27.0 on 19 Sep 2026 05:58:16 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 ScanBarcodes -destination generic/platform=watchOSBuild Log
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/ScanBarcodes/ScanBarcodesView.swift:96:27: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
94 | let serialQueue = DispatchQueue(label: "AVCaptureSession")
95 | let barcodeQueue = DispatchQueue(label: "BarcodeDetection")
96 | var previewLayer: AVCaptureVideoPreviewLayer!
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
97 | var flashlightOn: Bool
98 | var zoomLevel: Int
/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/ScanBarcodes/ScanBarcodesView.swift:149:84: error: 'UIViewControllerTransitionCoordinator' is unavailable in watchOS
147 | }
148 |
149 | public override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
| `- error: 'UIViewControllerTransitionCoordinator' is unavailable in watchOS
150 | coordinator.animate(alongsideTransition: { (UIViewControllerTransitionCoordinatorContext) -> Void in
151 | self.previewLayer.connection?.videoOrientation = self.videoOrientationFromCurrentDeviceOrientation()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewControllerTransitionCoordinator.h:81:11: note: 'UIViewControllerTransitionCoordinator' has been explicitly marked unavailable here
79 |
80 | API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
81 | @protocol UIViewControllerTransitionCoordinator <UIViewControllerTransitionCoordinatorContext>
| `- note: 'UIViewControllerTransitionCoordinator' has been explicitly marked unavailable here
82 |
83 |
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:160:61: error: 'UIInterfaceOrientationMask' is unavailable in watchOS
158 | }
159 |
160 | public override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
| `- error: 'UIInterfaceOrientationMask' is unavailable in watchOS
161 | return .all
162 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h:49:32: note: 'UIInterfaceOrientationMask' has been explicitly marked unavailable here
47 | } API_UNAVAILABLE(tvos, watchos);
48 |
49 | typedef NS_OPTIONS(NSUInteger, UIInterfaceOrientationMask) {
| `- note: 'UIInterfaceOrientationMask' has been explicitly marked unavailable here
50 | UIInterfaceOrientationMaskPortrait = (1 << UIInterfaceOrientationPortrait),
51 | UIInterfaceOrientationMaskLandscapeLeft = (1 << UIInterfaceOrientationLandscapeLeft),
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:170:58: error: 'UITouch' is unavailable in watchOS
168 | }
169 |
170 | public override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: 'UITouch' is unavailable in watchOS
171 | guard touches.first?.view == view,
172 | let touchPoint = touches.first,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITouch.h:51:12: note: 'UITouch' has been explicitly marked unavailable here
49 |
50 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
51 | @interface UITouch : NSObject
| `- note: 'UITouch' has been explicitly marked unavailable here
52 |
53 | @property(nonatomic,readonly) NSTimeInterval timestamp;
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:170:80: error: 'UIEvent' is unavailable in watchOS
168 | }
169 |
170 | public override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: 'UIEvent' is unavailable in watchOS
171 | guard touches.first?.view == view,
172 | let touchPoint = touches.first,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h:62:12: note: 'UIEvent' has been explicitly marked unavailable here
60 |
61 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
62 | @interface UIEvent : NSObject
| `- note: 'UIEvent' has been explicitly marked unavailable here
63 |
64 | @property(nonatomic,readonly) UIEventType type API_AVAILABLE(ios(3.0));
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:214:39: error: 'AVCaptureDevice' is unavailable in watchOS
212 | }
213 |
214 | func safelySetTorch(_ device: AVCaptureDevice, mode: AVCaptureDevice.TorchMode) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
215 | if device.isTorchModeSupported(mode) {
216 | device.torchMode = mode
/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/ScanBarcodes/ScanBarcodesView.swift:214:62: error: 'AVCaptureDevice' is unavailable in watchOS
212 | }
213 |
214 | func safelySetTorch(_ device: AVCaptureDevice, mode: AVCaptureDevice.TorchMode) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
215 | if device.isTorchModeSupported(mode) {
216 | device.torchMode = mode
/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/ScanBarcodes/ScanBarcodesView.swift:279:64: error: 'AVCaptureVideoOrientation' is unavailable in watchOS
277 | }
278 |
279 | func videoOrientationFromCurrentDeviceOrientation() -> AVCaptureVideoOrientation {
| `- error: 'AVCaptureVideoOrientation' is unavailable in watchOS
280 | guard let deviceOrientation = UIApplication.shared.windows.first?.windowScene?.interfaceOrientation else {
281 | return .portrait
/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:104:28: note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
102 |
103 | /// Constants indicating video orientation, for use with AVCaptureDeviceRotationCoordinator.
104 | typedef NS_ENUM(NSInteger, AVCaptureVideoOrientation) {
| `- note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
105 | /// Indicates that video should be oriented vertically, port on the bottom.
106 | AVCaptureVideoOrientationPortrait = 1,
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:90:46: error: 'UIViewController' is unavailable in watchOS
88 | }
89 |
90 | public class ScanBarcodesViewController: UIViewController {
| `- error: 'UIViewController' is unavailable in watchOS
91 | var delegate: ScanBarcodesCoordinator?
92 | var captureSession = AVCaptureSession()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
SwiftCompile normal arm64_32 (in target 'ScanBarcodes' from project 'ScanBarcodes')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:8:33: error: cannot find type 'UIViewControllerRepresentable' in scope
6 | }
7 |
8 | public struct ScanBarcodesView: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewControllerRepresentable' in scope
9 | @Binding var zoomLevel: Int
10 | @Binding var flashlightOn: Bool
Failed frontend command:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift -target arm64_32-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/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64_32/ScanBarcodes-dependencies-1.json -enable-objc-interop -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/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/DerivedSources-normal/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/DerivedSources/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name ScanBarcodes -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64_32/ScanBarcodes_const_extract_protocols.json -disable-clang-spi -clang-target arm64_32-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/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64_32/ScanBarcodes.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64_32/ScanBarcodes.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64_32/ScanBarcodes-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64_32/ScanBarcodes-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64_32/ScanBarcodes-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64_32/ScanBarcodes.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64_32/ScanBarcodes.abi.json
SwiftCompile normal arm64_32 Compiling\ ScanBarcodesView.swift /Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift (in target 'ScanBarcodes' from project 'ScanBarcodes')
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:12:31: error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
10 | @Binding var flashlightOn: Bool
11 |
12 | public let barcodeTypes: [AVMetadataMachineReadableCodeObject.ObjectType]
| `- error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
13 | public var completion: (Result<String, BarcodeScanError>) -> Void
14 | public var scanRateDelay: Double
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:649:12: note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
647 | */
648 | API_AVAILABLE(macos(10.15), ios(7.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
649 | @interface AVMetadataMachineReadableCodeObject : AVMetadataObject
| `- note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
650 | {
651 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:17:24: error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
15 |
16 | public init(
17 | barcodeTypes: [AVMetadataMachineReadableCodeObject.ObjectType],
| `- error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
18 | zoomLevel : Binding<Int> = .constant(1),
19 | flashlightOn: Binding<Bool> = .constant(false),
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:649:12: note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
647 | */
648 | API_AVAILABLE(macos(10.15), ios(7.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
649 | @interface AVMetadataMachineReadableCodeObject : AVMetadataObject
| `- note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
650 | {
651 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:33:47: error: cannot find type 'Context' in scope
31 | }
32 |
33 | public func makeUIViewController(context: Context) -> ScanBarcodesViewController {
| `- error: cannot find type 'Context' in scope
34 | let viewC = ScanBarcodesViewController(flashlightOn, zoomLevel)
35 | viewC.delegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:39:97: error: cannot find type 'Context' in scope
37 | }
38 |
39 | public func updateUIViewController(_ uiViewController: ScanBarcodesViewController, context: Context) {
| `- error: cannot find type 'Context' in scope
40 | // update flashlight and zoom level
41 | guard let _ = AVCaptureDevice.default(for: .video) else {
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:63:23: error: 'AVCaptureMetadataOutput' is unavailable in watchOS
61 |
62 | public func metadataOutput(
63 | _ output: AVCaptureMetadataOutput,
| `- error: 'AVCaptureMetadataOutput' is unavailable in watchOS
64 | didOutput metadataObjects: [AVMetadataObject],
65 | from connection: AVCaptureConnection) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h:29:12: note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
27 | */
28 | API_AVAILABLE(macos(13.0), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
29 | @interface AVCaptureMetadataOutput : AVCaptureOutput
| `- note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
30 | {
31 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:64:41: error: 'AVMetadataObject' is unavailable in watchOS
62 | public func metadataOutput(
63 | _ output: AVCaptureMetadataOutput,
64 | didOutput metadataObjects: [AVMetadataObject],
| `- error: 'AVMetadataObject' is unavailable in watchOS
65 | from connection: AVCaptureConnection) {
66 | if let metadataObject = metadataObjects.first {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:44:12: note: 'AVMetadataObject' has been explicitly marked unavailable here
42 | */
43 | API_AVAILABLE(macos(10.10), ios(6.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
44 | @interface AVMetadataObject : NSObject
| `- note: 'AVMetadataObject' has been explicitly marked unavailable here
45 | {
46 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:65:30: error: 'AVCaptureConnection' is unavailable in watchOS
63 | _ output: AVCaptureMetadataOutput,
64 | didOutput metadataObjects: [AVMetadataObject],
65 | from connection: AVCaptureConnection) {
| `- error: 'AVCaptureConnection' is unavailable in watchOS
66 | if let metadataObject = metadataObjects.first {
67 | guard let readableObject = metadataObject as? AVMetadataMachineReadableCodeObject else { return }
/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:894:12: note: 'AVCaptureConnection' has been explicitly marked unavailable here
892 | */
893 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
894 | @interface AVCaptureConnection : NSObject
| `- note: 'AVCaptureConnection' has been explicitly marked unavailable here
895 | {
896 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:53:53: error: 'AVCaptureMetadataOutputObjectsDelegate' is unavailable in watchOS
51 |
52 |
53 | public class ScanBarcodesCoordinator: NSObject, AVCaptureMetadataOutputObjectsDelegate {
| `- error: 'AVCaptureMetadataOutputObjectsDelegate' is unavailable in watchOS
54 | var parent: ScanBarcodesView
55 | private var lastBarcodeScanned: String = ""
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h:126:11: note: 'AVCaptureMetadataOutputObjectsDelegate' has been explicitly marked unavailable here
124 | */
125 | API_AVAILABLE(macos(13.0), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
126 | @protocol AVCaptureMetadataOutputObjectsDelegate <NSObject>
| `- note: 'AVCaptureMetadataOutputObjectsDelegate' has been explicitly marked unavailable here
127 |
128 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:92:30: error: 'AVCaptureSession' is unavailable in watchOS
90 | public class ScanBarcodesViewController: UIViewController {
91 | var delegate: ScanBarcodesCoordinator?
92 | var captureSession = AVCaptureSession()
| `- error: 'AVCaptureSession' is unavailable in watchOS
93 | let photoOutput = AVCapturePhotoOutput()
94 | let serialQueue = DispatchQueue(label: "AVCaptureSession")
/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/ScanBarcodes/ScanBarcodesView.swift:93:27: error: 'AVCapturePhotoOutput' is unavailable in watchOS
91 | var delegate: ScanBarcodesCoordinator?
92 | var captureSession = AVCaptureSession()
93 | let photoOutput = AVCapturePhotoOutput()
| `- error: 'AVCapturePhotoOutput' is unavailable in watchOS
94 | let serialQueue = DispatchQueue(label: "AVCaptureSession")
95 | let barcodeQueue = DispatchQueue(label: "BarcodeDetection")
/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/ScanBarcodes/ScanBarcodesView.swift:96:27: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
94 | let serialQueue = DispatchQueue(label: "AVCaptureSession")
95 | let barcodeQueue = DispatchQueue(label: "BarcodeDetection")
96 | var previewLayer: AVCaptureVideoPreviewLayer!
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
97 | var flashlightOn: Bool
98 | var zoomLevel: Int
/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/ScanBarcodes/ScanBarcodesView.swift:149:84: error: 'UIViewControllerTransitionCoordinator' is unavailable in watchOS
147 | }
148 |
149 | public override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
| `- error: 'UIViewControllerTransitionCoordinator' is unavailable in watchOS
150 | coordinator.animate(alongsideTransition: { (UIViewControllerTransitionCoordinatorContext) -> Void in
151 | self.previewLayer.connection?.videoOrientation = self.videoOrientationFromCurrentDeviceOrientation()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewControllerTransitionCoordinator.h:81:11: note: 'UIViewControllerTransitionCoordinator' has been explicitly marked unavailable here
79 |
80 | API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
81 | @protocol UIViewControllerTransitionCoordinator <UIViewControllerTransitionCoordinatorContext>
| `- note: 'UIViewControllerTransitionCoordinator' has been explicitly marked unavailable here
82 |
83 |
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:160:61: error: 'UIInterfaceOrientationMask' is unavailable in watchOS
158 | }
159 |
160 | public override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
| `- error: 'UIInterfaceOrientationMask' is unavailable in watchOS
161 | return .all
162 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h:49:32: note: 'UIInterfaceOrientationMask' has been explicitly marked unavailable here
47 | } API_UNAVAILABLE(tvos, watchos);
48 |
49 | typedef NS_OPTIONS(NSUInteger, UIInterfaceOrientationMask) {
| `- note: 'UIInterfaceOrientationMask' has been explicitly marked unavailable here
50 | UIInterfaceOrientationMaskPortrait = (1 << UIInterfaceOrientationPortrait),
51 | UIInterfaceOrientationMaskLandscapeLeft = (1 << UIInterfaceOrientationLandscapeLeft),
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:170:58: error: 'UITouch' is unavailable in watchOS
168 | }
169 |
170 | public override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: 'UITouch' is unavailable in watchOS
171 | guard touches.first?.view == view,
172 | let touchPoint = touches.first,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITouch.h:51:12: note: 'UITouch' has been explicitly marked unavailable here
49 |
50 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
51 | @interface UITouch : NSObject
| `- note: 'UITouch' has been explicitly marked unavailable here
52 |
53 | @property(nonatomic,readonly) NSTimeInterval timestamp;
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:170:80: error: 'UIEvent' is unavailable in watchOS
168 | }
169 |
170 | public override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: 'UIEvent' is unavailable in watchOS
171 | guard touches.first?.view == view,
172 | let touchPoint = touches.first,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h:62:12: note: 'UIEvent' has been explicitly marked unavailable here
60 |
61 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
62 | @interface UIEvent : NSObject
| `- note: 'UIEvent' has been explicitly marked unavailable here
63 |
64 | @property(nonatomic,readonly) UIEventType type API_AVAILABLE(ios(3.0));
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:214:39: error: 'AVCaptureDevice' is unavailable in watchOS
212 | }
213 |
214 | func safelySetTorch(_ device: AVCaptureDevice, mode: AVCaptureDevice.TorchMode) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
215 | if device.isTorchModeSupported(mode) {
216 | device.torchMode = mode
/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/ScanBarcodes/ScanBarcodesView.swift:214:62: error: 'AVCaptureDevice' is unavailable in watchOS
212 | }
213 |
214 | func safelySetTorch(_ device: AVCaptureDevice, mode: AVCaptureDevice.TorchMode) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
215 | if device.isTorchModeSupported(mode) {
216 | device.torchMode = mode
/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/ScanBarcodes/ScanBarcodesView.swift:279:64: error: 'AVCaptureVideoOrientation' is unavailable in watchOS
277 | }
278 |
279 | func videoOrientationFromCurrentDeviceOrientation() -> AVCaptureVideoOrientation {
| `- error: 'AVCaptureVideoOrientation' is unavailable in watchOS
280 | guard let deviceOrientation = UIApplication.shared.windows.first?.windowScene?.interfaceOrientation else {
281 | return .portrait
/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:104:28: note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
102 |
103 | /// Constants indicating video orientation, for use with AVCaptureDeviceRotationCoordinator.
104 | typedef NS_ENUM(NSInteger, AVCaptureVideoOrientation) {
| `- note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
105 | /// Indicates that video should be oriented vertically, port on the bottom.
106 | AVCaptureVideoOrientationPortrait = 1,
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:90:46: error: 'UIViewController' is unavailable in watchOS
88 | }
89 |
90 | public class ScanBarcodesViewController: UIViewController {
| `- error: 'UIViewController' is unavailable in watchOS
91 | var delegate: ScanBarcodesCoordinator?
92 | var captureSession = AVCaptureSession()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift (in target 'ScanBarcodes' from project 'ScanBarcodes')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ScanBarcodesView.swift
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:8:33: error: cannot find type 'UIViewControllerRepresentable' in scope
6 | }
7 |
8 | public struct ScanBarcodesView: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewControllerRepresentable' in scope
9 | @Binding var zoomLevel: Int
10 | @Binding var flashlightOn: Bool
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:41:23: error: 'AVCaptureDevice' is unavailable in watchOS
39 | public func updateUIViewController(_ uiViewController: ScanBarcodesViewController, context: Context) {
40 | // update flashlight and zoom level
41 | guard let _ = AVCaptureDevice.default(for: .video) else {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
42 | return
43 | }
/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/ScanBarcodes/ScanBarcodesView.swift:67:67: error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
65 | from connection: AVCaptureConnection) {
66 | if let metadataObject = metadataObjects.first {
67 | guard let readableObject = metadataObject as? AVMetadataMachineReadableCodeObject else { return }
| `- error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
68 | guard let barcodeValue = readableObject.stringValue else { return }
69 | recognized(barcodeValue)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:649:12: note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
647 | */
648 | API_AVAILABLE(macos(10.15), ios(7.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
649 | @interface AVMetadataMachineReadableCodeObject : AVMetadataObject
| `- note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
650 | {
651 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:79:17: error: cannot find 'AudioServicesPlaySystemSound' in scope
77 | lastBarcodeScanned = barcodeValue
78 | lastScanTime = Date()
79 | AudioServicesPlaySystemSound(SystemSoundID(kSystemSoundID_Vibrate))
| `- error: cannot find 'AudioServicesPlaySystemSound' in scope
80 | parent.completion(.success(barcodeValue))
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:79:46: error: cannot find 'SystemSoundID' in scope
77 | lastBarcodeScanned = barcodeValue
78 | lastScanTime = Date()
79 | AudioServicesPlaySystemSound(SystemSoundID(kSystemSoundID_Vibrate))
| `- error: cannot find 'SystemSoundID' in scope
80 | parent.completion(.success(barcodeValue))
81 | }
SwiftEmitModule normal arm64 Emitting\ module\ for\ ScanBarcodes (in target 'ScanBarcodes' from project 'ScanBarcodes')
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:12:31: error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
10 | @Binding var flashlightOn: Bool
11 |
12 | public let barcodeTypes: [AVMetadataMachineReadableCodeObject.ObjectType]
| `- error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
13 | public var completion: (Result<String, BarcodeScanError>) -> Void
14 | public var scanRateDelay: Double
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:649:12: note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
647 | */
648 | API_AVAILABLE(macos(10.15), ios(7.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
649 | @interface AVMetadataMachineReadableCodeObject : AVMetadataObject
| `- note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
650 | {
651 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:17:24: error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
15 |
16 | public init(
17 | barcodeTypes: [AVMetadataMachineReadableCodeObject.ObjectType],
| `- error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
18 | zoomLevel : Binding<Int> = .constant(1),
19 | flashlightOn: Binding<Bool> = .constant(false),
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:649:12: note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
647 | */
648 | API_AVAILABLE(macos(10.15), ios(7.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
649 | @interface AVMetadataMachineReadableCodeObject : AVMetadataObject
| `- note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
650 | {
651 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:33:47: error: cannot find type 'Context' in scope
31 | }
32 |
33 | public func makeUIViewController(context: Context) -> ScanBarcodesViewController {
| `- error: cannot find type 'Context' in scope
34 | let viewC = ScanBarcodesViewController(flashlightOn, zoomLevel)
35 | viewC.delegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:39:97: error: cannot find type 'Context' in scope
37 | }
38 |
39 | public func updateUIViewController(_ uiViewController: ScanBarcodesViewController, context: Context) {
| `- error: cannot find type 'Context' in scope
40 | // update flashlight and zoom level
41 | guard let _ = AVCaptureDevice.default(for: .video) else {
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:63:23: error: 'AVCaptureMetadataOutput' is unavailable in watchOS
61 |
62 | public func metadataOutput(
63 | _ output: AVCaptureMetadataOutput,
| `- error: 'AVCaptureMetadataOutput' is unavailable in watchOS
64 | didOutput metadataObjects: [AVMetadataObject],
65 | from connection: AVCaptureConnection) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h:29:12: note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
27 | */
28 | API_AVAILABLE(macos(13.0), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
29 | @interface AVCaptureMetadataOutput : AVCaptureOutput
| `- note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
30 | {
31 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:64:41: error: 'AVMetadataObject' is unavailable in watchOS
62 | public func metadataOutput(
63 | _ output: AVCaptureMetadataOutput,
64 | didOutput metadataObjects: [AVMetadataObject],
| `- error: 'AVMetadataObject' is unavailable in watchOS
65 | from connection: AVCaptureConnection) {
66 | if let metadataObject = metadataObjects.first {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:44:12: note: 'AVMetadataObject' has been explicitly marked unavailable here
42 | */
43 | API_AVAILABLE(macos(10.10), ios(6.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
44 | @interface AVMetadataObject : NSObject
| `- note: 'AVMetadataObject' has been explicitly marked unavailable here
45 | {
46 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:65:30: error: 'AVCaptureConnection' is unavailable in watchOS
63 | _ output: AVCaptureMetadataOutput,
64 | didOutput metadataObjects: [AVMetadataObject],
65 | from connection: AVCaptureConnection) {
| `- error: 'AVCaptureConnection' is unavailable in watchOS
66 | if let metadataObject = metadataObjects.first {
67 | guard let readableObject = metadataObject as? AVMetadataMachineReadableCodeObject else { return }
/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:894:12: note: 'AVCaptureConnection' has been explicitly marked unavailable here
892 | */
893 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
894 | @interface AVCaptureConnection : NSObject
| `- note: 'AVCaptureConnection' has been explicitly marked unavailable here
895 | {
896 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:53:53: error: 'AVCaptureMetadataOutputObjectsDelegate' is unavailable in watchOS
51 |
52 |
53 | public class ScanBarcodesCoordinator: NSObject, AVCaptureMetadataOutputObjectsDelegate {
| `- error: 'AVCaptureMetadataOutputObjectsDelegate' is unavailable in watchOS
54 | var parent: ScanBarcodesView
55 | private var lastBarcodeScanned: String = ""
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h:126:11: note: 'AVCaptureMetadataOutputObjectsDelegate' has been explicitly marked unavailable here
124 | */
125 | API_AVAILABLE(macos(13.0), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
126 | @protocol AVCaptureMetadataOutputObjectsDelegate <NSObject>
| `- note: 'AVCaptureMetadataOutputObjectsDelegate' has been explicitly marked unavailable here
127 |
128 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:92:30: error: 'AVCaptureSession' is unavailable in watchOS
90 | public class ScanBarcodesViewController: UIViewController {
91 | var delegate: ScanBarcodesCoordinator?
92 | var captureSession = AVCaptureSession()
| `- error: 'AVCaptureSession' is unavailable in watchOS
93 | let photoOutput = AVCapturePhotoOutput()
94 | let serialQueue = DispatchQueue(label: "AVCaptureSession")
/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/ScanBarcodes/ScanBarcodesView.swift:93:27: error: 'AVCapturePhotoOutput' is unavailable in watchOS
91 | var delegate: ScanBarcodesCoordinator?
92 | var captureSession = AVCaptureSession()
93 | let photoOutput = AVCapturePhotoOutput()
| `- error: 'AVCapturePhotoOutput' is unavailable in watchOS
94 | let serialQueue = DispatchQueue(label: "AVCaptureSession")
95 | let barcodeQueue = DispatchQueue(label: "BarcodeDetection")
/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/ScanBarcodes/ScanBarcodesView.swift:96:27: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
94 | let serialQueue = DispatchQueue(label: "AVCaptureSession")
95 | let barcodeQueue = DispatchQueue(label: "BarcodeDetection")
96 | var previewLayer: AVCaptureVideoPreviewLayer!
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
97 | var flashlightOn: Bool
98 | var zoomLevel: Int
/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/ScanBarcodes/ScanBarcodesView.swift:149:84: error: 'UIViewControllerTransitionCoordinator' is unavailable in watchOS
147 | }
148 |
149 | public override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
| `- error: 'UIViewControllerTransitionCoordinator' is unavailable in watchOS
150 | coordinator.animate(alongsideTransition: { (UIViewControllerTransitionCoordinatorContext) -> Void in
151 | self.previewLayer.connection?.videoOrientation = self.videoOrientationFromCurrentDeviceOrientation()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewControllerTransitionCoordinator.h:81:11: note: 'UIViewControllerTransitionCoordinator' has been explicitly marked unavailable here
79 |
80 | API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
81 | @protocol UIViewControllerTransitionCoordinator <UIViewControllerTransitionCoordinatorContext>
| `- note: 'UIViewControllerTransitionCoordinator' has been explicitly marked unavailable here
82 |
83 |
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:160:61: error: 'UIInterfaceOrientationMask' is unavailable in watchOS
158 | }
159 |
160 | public override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
| `- error: 'UIInterfaceOrientationMask' is unavailable in watchOS
161 | return .all
162 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h:49:32: note: 'UIInterfaceOrientationMask' has been explicitly marked unavailable here
47 | } API_UNAVAILABLE(tvos, watchos);
48 |
49 | typedef NS_OPTIONS(NSUInteger, UIInterfaceOrientationMask) {
| `- note: 'UIInterfaceOrientationMask' has been explicitly marked unavailable here
50 | UIInterfaceOrientationMaskPortrait = (1 << UIInterfaceOrientationPortrait),
51 | UIInterfaceOrientationMaskLandscapeLeft = (1 << UIInterfaceOrientationLandscapeLeft),
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:170:58: error: 'UITouch' is unavailable in watchOS
168 | }
169 |
170 | public override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: 'UITouch' is unavailable in watchOS
171 | guard touches.first?.view == view,
172 | let touchPoint = touches.first,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITouch.h:51:12: note: 'UITouch' has been explicitly marked unavailable here
49 |
50 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
51 | @interface UITouch : NSObject
| `- note: 'UITouch' has been explicitly marked unavailable here
52 |
53 | @property(nonatomic,readonly) NSTimeInterval timestamp;
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:170:80: error: 'UIEvent' is unavailable in watchOS
168 | }
169 |
170 | public override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: 'UIEvent' is unavailable in watchOS
171 | guard touches.first?.view == view,
172 | let touchPoint = touches.first,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h:62:12: note: 'UIEvent' has been explicitly marked unavailable here
60 |
61 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
62 | @interface UIEvent : NSObject
| `- note: 'UIEvent' has been explicitly marked unavailable here
63 |
64 | @property(nonatomic,readonly) UIEventType type API_AVAILABLE(ios(3.0));
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:214:39: error: 'AVCaptureDevice' is unavailable in watchOS
212 | }
213 |
214 | func safelySetTorch(_ device: AVCaptureDevice, mode: AVCaptureDevice.TorchMode) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
215 | if device.isTorchModeSupported(mode) {
216 | device.torchMode = mode
/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/ScanBarcodes/ScanBarcodesView.swift:214:62: error: 'AVCaptureDevice' is unavailable in watchOS
212 | }
213 |
214 | func safelySetTorch(_ device: AVCaptureDevice, mode: AVCaptureDevice.TorchMode) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
215 | if device.isTorchModeSupported(mode) {
216 | device.torchMode = mode
/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/ScanBarcodes/ScanBarcodesView.swift:279:64: error: 'AVCaptureVideoOrientation' is unavailable in watchOS
277 | }
278 |
279 | func videoOrientationFromCurrentDeviceOrientation() -> AVCaptureVideoOrientation {
| `- error: 'AVCaptureVideoOrientation' is unavailable in watchOS
280 | guard let deviceOrientation = UIApplication.shared.windows.first?.windowScene?.interfaceOrientation else {
281 | return .portrait
/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:104:28: note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
102 |
103 | /// Constants indicating video orientation, for use with AVCaptureDeviceRotationCoordinator.
104 | typedef NS_ENUM(NSInteger, AVCaptureVideoOrientation) {
| `- note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
105 | /// Indicates that video should be oriented vertically, port on the bottom.
106 | AVCaptureVideoOrientationPortrait = 1,
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:90:46: error: 'UIViewController' is unavailable in watchOS
88 | }
89 |
90 | public class ScanBarcodesViewController: UIViewController {
| `- error: 'UIViewController' is unavailable in watchOS
91 | var delegate: ScanBarcodesCoordinator?
92 | var captureSession = AVCaptureSession()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
SwiftCompile normal arm64 (in target 'ScanBarcodes' from project 'ScanBarcodes')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:8:33: error: cannot find type 'UIViewControllerRepresentable' in scope
6 | }
7 |
8 | public struct ScanBarcodesView: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewControllerRepresentable' in scope
9 | @Binding var zoomLevel: Int
10 | @Binding var flashlightOn: Bool
SwiftCompile normal arm64 Compiling\ ScanBarcodesView.swift /Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift (in target 'ScanBarcodes' from project 'ScanBarcodes')
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:12:31: error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
10 | @Binding var flashlightOn: Bool
11 |
12 | public let barcodeTypes: [AVMetadataMachineReadableCodeObject.ObjectType]
| `- error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
13 | public var completion: (Result<String, BarcodeScanError>) -> Void
14 | public var scanRateDelay: Double
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:649:12: note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
647 | */
648 | API_AVAILABLE(macos(10.15), ios(7.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
649 | @interface AVMetadataMachineReadableCodeObject : AVMetadataObject
| `- note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
650 | {
651 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:17:24: error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
15 |
16 | public init(
17 | barcodeTypes: [AVMetadataMachineReadableCodeObject.ObjectType],
| `- error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
18 | zoomLevel : Binding<Int> = .constant(1),
19 | flashlightOn: Binding<Bool> = .constant(false),
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:649:12: note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
647 | */
648 | API_AVAILABLE(macos(10.15), ios(7.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
649 | @interface AVMetadataMachineReadableCodeObject : AVMetadataObject
| `- note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
650 | {
651 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:33:47: error: cannot find type 'Context' in scope
31 | }
32 |
33 | public func makeUIViewController(context: Context) -> ScanBarcodesViewController {
| `- error: cannot find type 'Context' in scope
34 | let viewC = ScanBarcodesViewController(flashlightOn, zoomLevel)
35 | viewC.delegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:39:97: error: cannot find type 'Context' in scope
37 | }
38 |
39 | public func updateUIViewController(_ uiViewController: ScanBarcodesViewController, context: Context) {
| `- error: cannot find type 'Context' in scope
40 | // update flashlight and zoom level
41 | guard let _ = AVCaptureDevice.default(for: .video) else {
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:63:23: error: 'AVCaptureMetadataOutput' is unavailable in watchOS
61 |
62 | public func metadataOutput(
63 | _ output: AVCaptureMetadataOutput,
| `- error: 'AVCaptureMetadataOutput' is unavailable in watchOS
64 | didOutput metadataObjects: [AVMetadataObject],
65 | from connection: AVCaptureConnection) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h:29:12: note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
27 | */
28 | API_AVAILABLE(macos(13.0), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
29 | @interface AVCaptureMetadataOutput : AVCaptureOutput
| `- note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
30 | {
31 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:64:41: error: 'AVMetadataObject' is unavailable in watchOS
62 | public func metadataOutput(
63 | _ output: AVCaptureMetadataOutput,
64 | didOutput metadataObjects: [AVMetadataObject],
| `- error: 'AVMetadataObject' is unavailable in watchOS
65 | from connection: AVCaptureConnection) {
66 | if let metadataObject = metadataObjects.first {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:44:12: note: 'AVMetadataObject' has been explicitly marked unavailable here
42 | */
43 | API_AVAILABLE(macos(10.10), ios(6.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
44 | @interface AVMetadataObject : NSObject
| `- note: 'AVMetadataObject' has been explicitly marked unavailable here
45 | {
46 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:65:30: error: 'AVCaptureConnection' is unavailable in watchOS
63 | _ output: AVCaptureMetadataOutput,
64 | didOutput metadataObjects: [AVMetadataObject],
65 | from connection: AVCaptureConnection) {
| `- error: 'AVCaptureConnection' is unavailable in watchOS
66 | if let metadataObject = metadataObjects.first {
67 | guard let readableObject = metadataObject as? AVMetadataMachineReadableCodeObject else { return }
/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:894:12: note: 'AVCaptureConnection' has been explicitly marked unavailable here
892 | */
893 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
894 | @interface AVCaptureConnection : NSObject
| `- note: 'AVCaptureConnection' has been explicitly marked unavailable here
895 | {
896 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:53:53: error: 'AVCaptureMetadataOutputObjectsDelegate' is unavailable in watchOS
51 |
52 |
53 | public class ScanBarcodesCoordinator: NSObject, AVCaptureMetadataOutputObjectsDelegate {
| `- error: 'AVCaptureMetadataOutputObjectsDelegate' is unavailable in watchOS
54 | var parent: ScanBarcodesView
55 | private var lastBarcodeScanned: String = ""
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h:126:11: note: 'AVCaptureMetadataOutputObjectsDelegate' has been explicitly marked unavailable here
124 | */
125 | API_AVAILABLE(macos(13.0), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
126 | @protocol AVCaptureMetadataOutputObjectsDelegate <NSObject>
| `- note: 'AVCaptureMetadataOutputObjectsDelegate' has been explicitly marked unavailable here
127 |
128 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:92:30: error: 'AVCaptureSession' is unavailable in watchOS
90 | public class ScanBarcodesViewController: UIViewController {
91 | var delegate: ScanBarcodesCoordinator?
92 | var captureSession = AVCaptureSession()
| `- error: 'AVCaptureSession' is unavailable in watchOS
93 | let photoOutput = AVCapturePhotoOutput()
94 | let serialQueue = DispatchQueue(label: "AVCaptureSession")
/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/ScanBarcodes/ScanBarcodesView.swift:93:27: error: 'AVCapturePhotoOutput' is unavailable in watchOS
91 | var delegate: ScanBarcodesCoordinator?
92 | var captureSession = AVCaptureSession()
93 | let photoOutput = AVCapturePhotoOutput()
| `- error: 'AVCapturePhotoOutput' is unavailable in watchOS
94 | let serialQueue = DispatchQueue(label: "AVCaptureSession")
95 | let barcodeQueue = DispatchQueue(label: "BarcodeDetection")
/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/ScanBarcodes/ScanBarcodesView.swift:96:27: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
94 | let serialQueue = DispatchQueue(label: "AVCaptureSession")
95 | let barcodeQueue = DispatchQueue(label: "BarcodeDetection")
96 | var previewLayer: AVCaptureVideoPreviewLayer!
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
97 | var flashlightOn: Bool
98 | var zoomLevel: Int
/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/ScanBarcodes/ScanBarcodesView.swift:149:84: error: 'UIViewControllerTransitionCoordinator' is unavailable in watchOS
147 | }
148 |
149 | public override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
| `- error: 'UIViewControllerTransitionCoordinator' is unavailable in watchOS
150 | coordinator.animate(alongsideTransition: { (UIViewControllerTransitionCoordinatorContext) -> Void in
151 | self.previewLayer.connection?.videoOrientation = self.videoOrientationFromCurrentDeviceOrientation()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewControllerTransitionCoordinator.h:81:11: note: 'UIViewControllerTransitionCoordinator' has been explicitly marked unavailable here
79 |
80 | API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
81 | @protocol UIViewControllerTransitionCoordinator <UIViewControllerTransitionCoordinatorContext>
| `- note: 'UIViewControllerTransitionCoordinator' has been explicitly marked unavailable here
82 |
83 |
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:160:61: error: 'UIInterfaceOrientationMask' is unavailable in watchOS
158 | }
159 |
160 | public override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
| `- error: 'UIInterfaceOrientationMask' is unavailable in watchOS
161 | return .all
162 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h:49:32: note: 'UIInterfaceOrientationMask' has been explicitly marked unavailable here
47 | } API_UNAVAILABLE(tvos, watchos);
48 |
49 | typedef NS_OPTIONS(NSUInteger, UIInterfaceOrientationMask) {
| `- note: 'UIInterfaceOrientationMask' has been explicitly marked unavailable here
50 | UIInterfaceOrientationMaskPortrait = (1 << UIInterfaceOrientationPortrait),
51 | UIInterfaceOrientationMaskLandscapeLeft = (1 << UIInterfaceOrientationLandscapeLeft),
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:170:58: error: 'UITouch' is unavailable in watchOS
168 | }
169 |
170 | public override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: 'UITouch' is unavailable in watchOS
171 | guard touches.first?.view == view,
172 | let touchPoint = touches.first,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITouch.h:51:12: note: 'UITouch' has been explicitly marked unavailable here
49 |
50 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
51 | @interface UITouch : NSObject
| `- note: 'UITouch' has been explicitly marked unavailable here
52 |
53 | @property(nonatomic,readonly) NSTimeInterval timestamp;
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:170:80: error: 'UIEvent' is unavailable in watchOS
168 | }
169 |
170 | public override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: 'UIEvent' is unavailable in watchOS
171 | guard touches.first?.view == view,
172 | let touchPoint = touches.first,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h:62:12: note: 'UIEvent' has been explicitly marked unavailable here
60 |
61 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
62 | @interface UIEvent : NSObject
| `- note: 'UIEvent' has been explicitly marked unavailable here
63 |
64 | @property(nonatomic,readonly) UIEventType type API_AVAILABLE(ios(3.0));
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:214:39: error: 'AVCaptureDevice' is unavailable in watchOS
212 | }
213 |
214 | func safelySetTorch(_ device: AVCaptureDevice, mode: AVCaptureDevice.TorchMode) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
215 | if device.isTorchModeSupported(mode) {
216 | device.torchMode = mode
/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/ScanBarcodes/ScanBarcodesView.swift:214:62: error: 'AVCaptureDevice' is unavailable in watchOS
212 | }
213 |
214 | func safelySetTorch(_ device: AVCaptureDevice, mode: AVCaptureDevice.TorchMode) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
215 | if device.isTorchModeSupported(mode) {
216 | device.torchMode = mode
/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/ScanBarcodes/ScanBarcodesView.swift:279:64: error: 'AVCaptureVideoOrientation' is unavailable in watchOS
277 | }
278 |
279 | func videoOrientationFromCurrentDeviceOrientation() -> AVCaptureVideoOrientation {
| `- error: 'AVCaptureVideoOrientation' is unavailable in watchOS
280 | guard let deviceOrientation = UIApplication.shared.windows.first?.windowScene?.interfaceOrientation else {
281 | return .portrait
/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:104:28: note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
102 |
103 | /// Constants indicating video orientation, for use with AVCaptureDeviceRotationCoordinator.
104 | typedef NS_ENUM(NSInteger, AVCaptureVideoOrientation) {
| `- note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
105 | /// Indicates that video should be oriented vertically, port on the bottom.
106 | AVCaptureVideoOrientationPortrait = 1,
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:90:46: error: 'UIViewController' is unavailable in watchOS
88 | }
89 |
90 | public class ScanBarcodesViewController: UIViewController {
| `- error: 'UIViewController' is unavailable in watchOS
91 | var delegate: ScanBarcodesCoordinator?
92 | var captureSession = AVCaptureSession()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift (in target 'ScanBarcodes' from project 'ScanBarcodes')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ScanBarcodesView.swift
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:8:33: error: cannot find type 'UIViewControllerRepresentable' in scope
6 | }
7 |
8 | public struct ScanBarcodesView: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewControllerRepresentable' in scope
9 | @Binding var zoomLevel: Int
10 | @Binding var flashlightOn: Bool
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
2026-09-19 01:58:06.265 xcodebuild[648:4173] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
** BUILD FAILED **
The following build commands failed:
SwiftCompile normal arm64_32 (in target 'ScanBarcodes' from project 'ScanBarcodes')
SwiftEmitModule normal arm64_32 Emitting\ module\ for\ ScanBarcodes (in target 'ScanBarcodes' from project 'ScanBarcodes')
Building workspace ScanBarcodes with scheme ScanBarcodes
(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:
ScanBarcodes: /Users/admin/builder/spi-builder-workspace
resolved source packages: ScanBarcodes
2026-09-19 01:58:12.953 xcodebuild[795:4738] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
{
"dependencies" : [
],
"manifest_display_name" : "ScanBarcodes",
"name" : "ScanBarcodes",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
}
],
"products" : [
{
"name" : "ScanBarcodes",
"targets" : [
"ScanBarcodes"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ScanBarcodesTests",
"module_type" : "SwiftTarget",
"name" : "ScanBarcodesTests",
"path" : "Tests/ScanBarcodesTests",
"sources" : [
"ScanBarcodesTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"ScanBarcodes"
],
"type" : "test"
},
{
"c99name" : "ScanBarcodes",
"module_type" : "SwiftTarget",
"name" : "ScanBarcodes",
"path" : "Sources/ScanBarcodes",
"product_memberships" : [
"ScanBarcodes"
],
"sources" : [
"ScanBarcodesView.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
{
"workspace" : {
"name" : "ScanBarcodes",
"schemes" : [
"ScanBarcodes"
]
}
}
2026-09-19 01:58:14.176 xcodebuild[803:4807] [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 ScanBarcodes -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 ScanBarcodes -destination generic/platform=watchOS
Resolve Package Graph
Resolved source packages:
ScanBarcodes: /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 'ScanBarcodes-product' in project 'ScanBarcodes'
➜ Explicit dependency on target 'ScanBarcodes' in project 'ScanBarcodes'
Target 'ScanBarcodes' in project 'ScanBarcodes' (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 ScanBarcodes normal arm64_32 com.apple.xcode.tools.swift.compiler (in target 'ScanBarcodes' from project 'ScanBarcodes')
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 ScanBarcodes -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64_32/ScanBarcodes.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/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64_32/ScanBarcodes-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/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64_32/ScanBarcodes.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64_32/ScanBarcodes-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/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64_32/ScanBarcodes_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/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/DerivedSources-normal/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/DerivedSources/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanBarcodes.build/Debug-watchos/ScanBarcodes-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/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64_32/ScanBarcodes-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftDriver ScanBarcodes normal arm64 com.apple.xcode.tools.swift.compiler (in target 'ScanBarcodes' from project 'ScanBarcodes')
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 ScanBarcodes -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64/ScanBarcodes.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/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64/ScanBarcodes-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/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64/ScanBarcodes.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64/ScanBarcodes-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/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64/ScanBarcodes_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/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanBarcodes.build/Debug-watchos/ScanBarcodes-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/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64/ScanBarcodes-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftEmitModule normal arm64_32 Emitting\ module\ for\ ScanBarcodes (in target 'ScanBarcodes' from project 'ScanBarcodes')
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:12:31: error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
10 | @Binding var flashlightOn: Bool
11 |
12 | public let barcodeTypes: [AVMetadataMachineReadableCodeObject.ObjectType]
| `- error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
13 | public var completion: (Result<String, BarcodeScanError>) -> Void
14 | public var scanRateDelay: Double
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:649:12: note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
647 | */
648 | API_AVAILABLE(macos(10.15), ios(7.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
649 | @interface AVMetadataMachineReadableCodeObject : AVMetadataObject
| `- note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
650 | {
651 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:17:24: error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
15 |
16 | public init(
17 | barcodeTypes: [AVMetadataMachineReadableCodeObject.ObjectType],
| `- error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
18 | zoomLevel : Binding<Int> = .constant(1),
19 | flashlightOn: Binding<Bool> = .constant(false),
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:649:12: note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
647 | */
648 | API_AVAILABLE(macos(10.15), ios(7.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
649 | @interface AVMetadataMachineReadableCodeObject : AVMetadataObject
| `- note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
650 | {
651 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:33:47: error: cannot find type 'Context' in scope
31 | }
32 |
33 | public func makeUIViewController(context: Context) -> ScanBarcodesViewController {
| `- error: cannot find type 'Context' in scope
34 | let viewC = ScanBarcodesViewController(flashlightOn, zoomLevel)
35 | viewC.delegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:39:97: error: cannot find type 'Context' in scope
37 | }
38 |
39 | public func updateUIViewController(_ uiViewController: ScanBarcodesViewController, context: Context) {
| `- error: cannot find type 'Context' in scope
40 | // update flashlight and zoom level
41 | guard let _ = AVCaptureDevice.default(for: .video) else {
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:63:23: error: 'AVCaptureMetadataOutput' is unavailable in watchOS
61 |
62 | public func metadataOutput(
63 | _ output: AVCaptureMetadataOutput,
| `- error: 'AVCaptureMetadataOutput' is unavailable in watchOS
64 | didOutput metadataObjects: [AVMetadataObject],
65 | from connection: AVCaptureConnection) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h:29:12: note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
27 | */
28 | API_AVAILABLE(macos(13.0), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
29 | @interface AVCaptureMetadataOutput : AVCaptureOutput
| `- note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
30 | {
31 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:64:41: error: 'AVMetadataObject' is unavailable in watchOS
62 | public func metadataOutput(
63 | _ output: AVCaptureMetadataOutput,
64 | didOutput metadataObjects: [AVMetadataObject],
| `- error: 'AVMetadataObject' is unavailable in watchOS
65 | from connection: AVCaptureConnection) {
66 | if let metadataObject = metadataObjects.first {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:44:12: note: 'AVMetadataObject' has been explicitly marked unavailable here
42 | */
43 | API_AVAILABLE(macos(10.10), ios(6.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
44 | @interface AVMetadataObject : NSObject
| `- note: 'AVMetadataObject' has been explicitly marked unavailable here
45 | {
46 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:65:30: error: 'AVCaptureConnection' is unavailable in watchOS
63 | _ output: AVCaptureMetadataOutput,
64 | didOutput metadataObjects: [AVMetadataObject],
65 | from connection: AVCaptureConnection) {
| `- error: 'AVCaptureConnection' is unavailable in watchOS
66 | if let metadataObject = metadataObjects.first {
67 | guard let readableObject = metadataObject as? AVMetadataMachineReadableCodeObject else { return }
/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:894:12: note: 'AVCaptureConnection' has been explicitly marked unavailable here
892 | */
893 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
894 | @interface AVCaptureConnection : NSObject
| `- note: 'AVCaptureConnection' has been explicitly marked unavailable here
895 | {
896 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:53:53: error: 'AVCaptureMetadataOutputObjectsDelegate' is unavailable in watchOS
51 |
52 |
53 | public class ScanBarcodesCoordinator: NSObject, AVCaptureMetadataOutputObjectsDelegate {
| `- error: 'AVCaptureMetadataOutputObjectsDelegate' is unavailable in watchOS
54 | var parent: ScanBarcodesView
55 | private var lastBarcodeScanned: String = ""
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h:126:11: note: 'AVCaptureMetadataOutputObjectsDelegate' has been explicitly marked unavailable here
124 | */
125 | API_AVAILABLE(macos(13.0), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
126 | @protocol AVCaptureMetadataOutputObjectsDelegate <NSObject>
| `- note: 'AVCaptureMetadataOutputObjectsDelegate' has been explicitly marked unavailable here
127 |
128 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:92:30: error: 'AVCaptureSession' is unavailable in watchOS
90 | public class ScanBarcodesViewController: UIViewController {
91 | var delegate: ScanBarcodesCoordinator?
92 | var captureSession = AVCaptureSession()
| `- error: 'AVCaptureSession' is unavailable in watchOS
93 | let photoOutput = AVCapturePhotoOutput()
94 | let serialQueue = DispatchQueue(label: "AVCaptureSession")
/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/ScanBarcodes/ScanBarcodesView.swift:93:27: error: 'AVCapturePhotoOutput' is unavailable in watchOS
91 | var delegate: ScanBarcodesCoordinator?
92 | var captureSession = AVCaptureSession()
93 | let photoOutput = AVCapturePhotoOutput()
| `- error: 'AVCapturePhotoOutput' is unavailable in watchOS
94 | let serialQueue = DispatchQueue(label: "AVCaptureSession")
95 | let barcodeQueue = DispatchQueue(label: "BarcodeDetection")
/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/ScanBarcodes/ScanBarcodesView.swift:96:27: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
94 | let serialQueue = DispatchQueue(label: "AVCaptureSession")
95 | let barcodeQueue = DispatchQueue(label: "BarcodeDetection")
96 | var previewLayer: AVCaptureVideoPreviewLayer!
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
97 | var flashlightOn: Bool
98 | var zoomLevel: Int
/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/ScanBarcodes/ScanBarcodesView.swift:149:84: error: 'UIViewControllerTransitionCoordinator' is unavailable in watchOS
147 | }
148 |
149 | public override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
| `- error: 'UIViewControllerTransitionCoordinator' is unavailable in watchOS
150 | coordinator.animate(alongsideTransition: { (UIViewControllerTransitionCoordinatorContext) -> Void in
151 | self.previewLayer.connection?.videoOrientation = self.videoOrientationFromCurrentDeviceOrientation()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewControllerTransitionCoordinator.h:81:11: note: 'UIViewControllerTransitionCoordinator' has been explicitly marked unavailable here
79 |
80 | API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
81 | @protocol UIViewControllerTransitionCoordinator <UIViewControllerTransitionCoordinatorContext>
| `- note: 'UIViewControllerTransitionCoordinator' has been explicitly marked unavailable here
82 |
83 |
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:160:61: error: 'UIInterfaceOrientationMask' is unavailable in watchOS
158 | }
159 |
160 | public override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
| `- error: 'UIInterfaceOrientationMask' is unavailable in watchOS
161 | return .all
162 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h:49:32: note: 'UIInterfaceOrientationMask' has been explicitly marked unavailable here
47 | } API_UNAVAILABLE(tvos, watchos);
48 |
49 | typedef NS_OPTIONS(NSUInteger, UIInterfaceOrientationMask) {
| `- note: 'UIInterfaceOrientationMask' has been explicitly marked unavailable here
50 | UIInterfaceOrientationMaskPortrait = (1 << UIInterfaceOrientationPortrait),
51 | UIInterfaceOrientationMaskLandscapeLeft = (1 << UIInterfaceOrientationLandscapeLeft),
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:170:58: error: 'UITouch' is unavailable in watchOS
168 | }
169 |
170 | public override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: 'UITouch' is unavailable in watchOS
171 | guard touches.first?.view == view,
172 | let touchPoint = touches.first,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITouch.h:51:12: note: 'UITouch' has been explicitly marked unavailable here
49 |
50 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
51 | @interface UITouch : NSObject
| `- note: 'UITouch' has been explicitly marked unavailable here
52 |
53 | @property(nonatomic,readonly) NSTimeInterval timestamp;
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:170:80: error: 'UIEvent' is unavailable in watchOS
168 | }
169 |
170 | public override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: 'UIEvent' is unavailable in watchOS
171 | guard touches.first?.view == view,
172 | let touchPoint = touches.first,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h:62:12: note: 'UIEvent' has been explicitly marked unavailable here
60 |
61 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
62 | @interface UIEvent : NSObject
| `- note: 'UIEvent' has been explicitly marked unavailable here
63 |
64 | @property(nonatomic,readonly) UIEventType type API_AVAILABLE(ios(3.0));
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:214:39: error: 'AVCaptureDevice' is unavailable in watchOS
212 | }
213 |
214 | func safelySetTorch(_ device: AVCaptureDevice, mode: AVCaptureDevice.TorchMode) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
215 | if device.isTorchModeSupported(mode) {
216 | device.torchMode = mode
/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/ScanBarcodes/ScanBarcodesView.swift:214:62: error: 'AVCaptureDevice' is unavailable in watchOS
212 | }
213 |
214 | func safelySetTorch(_ device: AVCaptureDevice, mode: AVCaptureDevice.TorchMode) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
215 | if device.isTorchModeSupported(mode) {
216 | device.torchMode = mode
/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/ScanBarcodes/ScanBarcodesView.swift:279:64: error: 'AVCaptureVideoOrientation' is unavailable in watchOS
277 | }
278 |
279 | func videoOrientationFromCurrentDeviceOrientation() -> AVCaptureVideoOrientation {
| `- error: 'AVCaptureVideoOrientation' is unavailable in watchOS
280 | guard let deviceOrientation = UIApplication.shared.windows.first?.windowScene?.interfaceOrientation else {
281 | return .portrait
/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:104:28: note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
102 |
103 | /// Constants indicating video orientation, for use with AVCaptureDeviceRotationCoordinator.
104 | typedef NS_ENUM(NSInteger, AVCaptureVideoOrientation) {
| `- note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
105 | /// Indicates that video should be oriented vertically, port on the bottom.
106 | AVCaptureVideoOrientationPortrait = 1,
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:90:46: error: 'UIViewController' is unavailable in watchOS
88 | }
89 |
90 | public class ScanBarcodesViewController: UIViewController {
| `- error: 'UIViewController' is unavailable in watchOS
91 | var delegate: ScanBarcodesCoordinator?
92 | var captureSession = AVCaptureSession()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
SwiftCompile normal arm64_32 (in target 'ScanBarcodes' from project 'ScanBarcodes')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:8:33: error: cannot find type 'UIViewControllerRepresentable' in scope
6 | }
7 |
8 | public struct ScanBarcodesView: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewControllerRepresentable' in scope
9 | @Binding var zoomLevel: Int
10 | @Binding var flashlightOn: Bool
Failed frontend command:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift -target arm64_32-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/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64_32/ScanBarcodes-dependencies-1.json -enable-objc-interop -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/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/DerivedSources-normal/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/DerivedSources/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name ScanBarcodes -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64_32/ScanBarcodes_const_extract_protocols.json -disable-clang-spi -clang-target arm64_32-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/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64_32/ScanBarcodes.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64_32/ScanBarcodes.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64_32/ScanBarcodes-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64_32/ScanBarcodes-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64_32/ScanBarcodes-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64_32/ScanBarcodes.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64_32/ScanBarcodes.abi.json
SwiftCompile normal arm64_32 Compiling\ ScanBarcodesView.swift /Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift (in target 'ScanBarcodes' from project 'ScanBarcodes')
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:12:31: error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
10 | @Binding var flashlightOn: Bool
11 |
12 | public let barcodeTypes: [AVMetadataMachineReadableCodeObject.ObjectType]
| `- error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
13 | public var completion: (Result<String, BarcodeScanError>) -> Void
14 | public var scanRateDelay: Double
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:649:12: note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
647 | */
648 | API_AVAILABLE(macos(10.15), ios(7.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
649 | @interface AVMetadataMachineReadableCodeObject : AVMetadataObject
| `- note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
650 | {
651 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:17:24: error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
15 |
16 | public init(
17 | barcodeTypes: [AVMetadataMachineReadableCodeObject.ObjectType],
| `- error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
18 | zoomLevel : Binding<Int> = .constant(1),
19 | flashlightOn: Binding<Bool> = .constant(false),
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:649:12: note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
647 | */
648 | API_AVAILABLE(macos(10.15), ios(7.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
649 | @interface AVMetadataMachineReadableCodeObject : AVMetadataObject
| `- note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
650 | {
651 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:33:47: error: cannot find type 'Context' in scope
31 | }
32 |
33 | public func makeUIViewController(context: Context) -> ScanBarcodesViewController {
| `- error: cannot find type 'Context' in scope
34 | let viewC = ScanBarcodesViewController(flashlightOn, zoomLevel)
35 | viewC.delegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:39:97: error: cannot find type 'Context' in scope
37 | }
38 |
39 | public func updateUIViewController(_ uiViewController: ScanBarcodesViewController, context: Context) {
| `- error: cannot find type 'Context' in scope
40 | // update flashlight and zoom level
41 | guard let _ = AVCaptureDevice.default(for: .video) else {
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:63:23: error: 'AVCaptureMetadataOutput' is unavailable in watchOS
61 |
62 | public func metadataOutput(
63 | _ output: AVCaptureMetadataOutput,
| `- error: 'AVCaptureMetadataOutput' is unavailable in watchOS
64 | didOutput metadataObjects: [AVMetadataObject],
65 | from connection: AVCaptureConnection) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h:29:12: note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
27 | */
28 | API_AVAILABLE(macos(13.0), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
29 | @interface AVCaptureMetadataOutput : AVCaptureOutput
| `- note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
30 | {
31 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:64:41: error: 'AVMetadataObject' is unavailable in watchOS
62 | public func metadataOutput(
63 | _ output: AVCaptureMetadataOutput,
64 | didOutput metadataObjects: [AVMetadataObject],
| `- error: 'AVMetadataObject' is unavailable in watchOS
65 | from connection: AVCaptureConnection) {
66 | if let metadataObject = metadataObjects.first {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:44:12: note: 'AVMetadataObject' has been explicitly marked unavailable here
42 | */
43 | API_AVAILABLE(macos(10.10), ios(6.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
44 | @interface AVMetadataObject : NSObject
| `- note: 'AVMetadataObject' has been explicitly marked unavailable here
45 | {
46 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:65:30: error: 'AVCaptureConnection' is unavailable in watchOS
63 | _ output: AVCaptureMetadataOutput,
64 | didOutput metadataObjects: [AVMetadataObject],
65 | from connection: AVCaptureConnection) {
| `- error: 'AVCaptureConnection' is unavailable in watchOS
66 | if let metadataObject = metadataObjects.first {
67 | guard let readableObject = metadataObject as? AVMetadataMachineReadableCodeObject else { return }
/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:894:12: note: 'AVCaptureConnection' has been explicitly marked unavailable here
892 | */
893 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
894 | @interface AVCaptureConnection : NSObject
| `- note: 'AVCaptureConnection' has been explicitly marked unavailable here
895 | {
896 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:53:53: error: 'AVCaptureMetadataOutputObjectsDelegate' is unavailable in watchOS
51 |
52 |
53 | public class ScanBarcodesCoordinator: NSObject, AVCaptureMetadataOutputObjectsDelegate {
| `- error: 'AVCaptureMetadataOutputObjectsDelegate' is unavailable in watchOS
54 | var parent: ScanBarcodesView
55 | private var lastBarcodeScanned: String = ""
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h:126:11: note: 'AVCaptureMetadataOutputObjectsDelegate' has been explicitly marked unavailable here
124 | */
125 | API_AVAILABLE(macos(13.0), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
126 | @protocol AVCaptureMetadataOutputObjectsDelegate <NSObject>
| `- note: 'AVCaptureMetadataOutputObjectsDelegate' has been explicitly marked unavailable here
127 |
128 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:92:30: error: 'AVCaptureSession' is unavailable in watchOS
90 | public class ScanBarcodesViewController: UIViewController {
91 | var delegate: ScanBarcodesCoordinator?
92 | var captureSession = AVCaptureSession()
| `- error: 'AVCaptureSession' is unavailable in watchOS
93 | let photoOutput = AVCapturePhotoOutput()
94 | let serialQueue = DispatchQueue(label: "AVCaptureSession")
/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/ScanBarcodes/ScanBarcodesView.swift:93:27: error: 'AVCapturePhotoOutput' is unavailable in watchOS
91 | var delegate: ScanBarcodesCoordinator?
92 | var captureSession = AVCaptureSession()
93 | let photoOutput = AVCapturePhotoOutput()
| `- error: 'AVCapturePhotoOutput' is unavailable in watchOS
94 | let serialQueue = DispatchQueue(label: "AVCaptureSession")
95 | let barcodeQueue = DispatchQueue(label: "BarcodeDetection")
/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/ScanBarcodes/ScanBarcodesView.swift:96:27: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
94 | let serialQueue = DispatchQueue(label: "AVCaptureSession")
95 | let barcodeQueue = DispatchQueue(label: "BarcodeDetection")
96 | var previewLayer: AVCaptureVideoPreviewLayer!
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
97 | var flashlightOn: Bool
98 | var zoomLevel: Int
/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/ScanBarcodes/ScanBarcodesView.swift:149:84: error: 'UIViewControllerTransitionCoordinator' is unavailable in watchOS
147 | }
148 |
149 | public override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
| `- error: 'UIViewControllerTransitionCoordinator' is unavailable in watchOS
150 | coordinator.animate(alongsideTransition: { (UIViewControllerTransitionCoordinatorContext) -> Void in
151 | self.previewLayer.connection?.videoOrientation = self.videoOrientationFromCurrentDeviceOrientation()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewControllerTransitionCoordinator.h:81:11: note: 'UIViewControllerTransitionCoordinator' has been explicitly marked unavailable here
79 |
80 | API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
81 | @protocol UIViewControllerTransitionCoordinator <UIViewControllerTransitionCoordinatorContext>
| `- note: 'UIViewControllerTransitionCoordinator' has been explicitly marked unavailable here
82 |
83 |
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:160:61: error: 'UIInterfaceOrientationMask' is unavailable in watchOS
158 | }
159 |
160 | public override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
| `- error: 'UIInterfaceOrientationMask' is unavailable in watchOS
161 | return .all
162 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h:49:32: note: 'UIInterfaceOrientationMask' has been explicitly marked unavailable here
47 | } API_UNAVAILABLE(tvos, watchos);
48 |
49 | typedef NS_OPTIONS(NSUInteger, UIInterfaceOrientationMask) {
| `- note: 'UIInterfaceOrientationMask' has been explicitly marked unavailable here
50 | UIInterfaceOrientationMaskPortrait = (1 << UIInterfaceOrientationPortrait),
51 | UIInterfaceOrientationMaskLandscapeLeft = (1 << UIInterfaceOrientationLandscapeLeft),
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:170:58: error: 'UITouch' is unavailable in watchOS
168 | }
169 |
170 | public override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: 'UITouch' is unavailable in watchOS
171 | guard touches.first?.view == view,
172 | let touchPoint = touches.first,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITouch.h:51:12: note: 'UITouch' has been explicitly marked unavailable here
49 |
50 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
51 | @interface UITouch : NSObject
| `- note: 'UITouch' has been explicitly marked unavailable here
52 |
53 | @property(nonatomic,readonly) NSTimeInterval timestamp;
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:170:80: error: 'UIEvent' is unavailable in watchOS
168 | }
169 |
170 | public override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: 'UIEvent' is unavailable in watchOS
171 | guard touches.first?.view == view,
172 | let touchPoint = touches.first,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h:62:12: note: 'UIEvent' has been explicitly marked unavailable here
60 |
61 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
62 | @interface UIEvent : NSObject
| `- note: 'UIEvent' has been explicitly marked unavailable here
63 |
64 | @property(nonatomic,readonly) UIEventType type API_AVAILABLE(ios(3.0));
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:214:39: error: 'AVCaptureDevice' is unavailable in watchOS
212 | }
213 |
214 | func safelySetTorch(_ device: AVCaptureDevice, mode: AVCaptureDevice.TorchMode) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
215 | if device.isTorchModeSupported(mode) {
216 | device.torchMode = mode
/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/ScanBarcodes/ScanBarcodesView.swift:214:62: error: 'AVCaptureDevice' is unavailable in watchOS
212 | }
213 |
214 | func safelySetTorch(_ device: AVCaptureDevice, mode: AVCaptureDevice.TorchMode) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
215 | if device.isTorchModeSupported(mode) {
216 | device.torchMode = mode
/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/ScanBarcodes/ScanBarcodesView.swift:279:64: error: 'AVCaptureVideoOrientation' is unavailable in watchOS
277 | }
278 |
279 | func videoOrientationFromCurrentDeviceOrientation() -> AVCaptureVideoOrientation {
| `- error: 'AVCaptureVideoOrientation' is unavailable in watchOS
280 | guard let deviceOrientation = UIApplication.shared.windows.first?.windowScene?.interfaceOrientation else {
281 | return .portrait
/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:104:28: note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
102 |
103 | /// Constants indicating video orientation, for use with AVCaptureDeviceRotationCoordinator.
104 | typedef NS_ENUM(NSInteger, AVCaptureVideoOrientation) {
| `- note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
105 | /// Indicates that video should be oriented vertically, port on the bottom.
106 | AVCaptureVideoOrientationPortrait = 1,
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:90:46: error: 'UIViewController' is unavailable in watchOS
88 | }
89 |
90 | public class ScanBarcodesViewController: UIViewController {
| `- error: 'UIViewController' is unavailable in watchOS
91 | var delegate: ScanBarcodesCoordinator?
92 | var captureSession = AVCaptureSession()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift (in target 'ScanBarcodes' from project 'ScanBarcodes')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ScanBarcodesView.swift
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:8:33: error: cannot find type 'UIViewControllerRepresentable' in scope
6 | }
7 |
8 | public struct ScanBarcodesView: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewControllerRepresentable' in scope
9 | @Binding var zoomLevel: Int
10 | @Binding var flashlightOn: Bool
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:41:23: error: 'AVCaptureDevice' is unavailable in watchOS
39 | public func updateUIViewController(_ uiViewController: ScanBarcodesViewController, context: Context) {
40 | // update flashlight and zoom level
41 | guard let _ = AVCaptureDevice.default(for: .video) else {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
42 | return
43 | }
/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
SwiftEmitModule normal arm64 Emitting\ module\ for\ ScanBarcodes (in target 'ScanBarcodes' from project 'ScanBarcodes')
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:12:31: error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
10 | @Binding var flashlightOn: Bool
11 |
12 | public let barcodeTypes: [AVMetadataMachineReadableCodeObject.ObjectType]
| `- error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
13 | public var completion: (Result<String, BarcodeScanError>) -> Void
14 | public var scanRateDelay: Double
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:649:12: note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
647 | */
648 | API_AVAILABLE(macos(10.15), ios(7.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
649 | @interface AVMetadataMachineReadableCodeObject : AVMetadataObject
| `- note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
650 | {
651 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:17:24: error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
15 |
16 | public init(
17 | barcodeTypes: [AVMetadataMachineReadableCodeObject.ObjectType],
| `- error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
18 | zoomLevel : Binding<Int> = .constant(1),
19 | flashlightOn: Binding<Bool> = .constant(false),
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:649:12: note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
647 | */
648 | API_AVAILABLE(macos(10.15), ios(7.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
649 | @interface AVMetadataMachineReadableCodeObject : AVMetadataObject
| `- note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
650 | {
651 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:33:47: error: cannot find type 'Context' in scope
31 | }
32 |
33 | public func makeUIViewController(context: Context) -> ScanBarcodesViewController {
| `- error: cannot find type 'Context' in scope
34 | let viewC = ScanBarcodesViewController(flashlightOn, zoomLevel)
35 | viewC.delegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:39:97: error: cannot find type 'Context' in scope
37 | }
38 |
39 | public func updateUIViewController(_ uiViewController: ScanBarcodesViewController, context: Context) {
| `- error: cannot find type 'Context' in scope
40 | // update flashlight and zoom level
41 | guard let _ = AVCaptureDevice.default(for: .video) else {
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:63:23: error: 'AVCaptureMetadataOutput' is unavailable in watchOS
61 |
62 | public func metadataOutput(
63 | _ output: AVCaptureMetadataOutput,
| `- error: 'AVCaptureMetadataOutput' is unavailable in watchOS
64 | didOutput metadataObjects: [AVMetadataObject],
65 | from connection: AVCaptureConnection) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h:29:12: note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
27 | */
28 | API_AVAILABLE(macos(13.0), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
29 | @interface AVCaptureMetadataOutput : AVCaptureOutput
| `- note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
30 | {
31 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:64:41: error: 'AVMetadataObject' is unavailable in watchOS
62 | public func metadataOutput(
63 | _ output: AVCaptureMetadataOutput,
64 | didOutput metadataObjects: [AVMetadataObject],
| `- error: 'AVMetadataObject' is unavailable in watchOS
65 | from connection: AVCaptureConnection) {
66 | if let metadataObject = metadataObjects.first {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:44:12: note: 'AVMetadataObject' has been explicitly marked unavailable here
42 | */
43 | API_AVAILABLE(macos(10.10), ios(6.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
44 | @interface AVMetadataObject : NSObject
| `- note: 'AVMetadataObject' has been explicitly marked unavailable here
45 | {
46 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:65:30: error: 'AVCaptureConnection' is unavailable in watchOS
63 | _ output: AVCaptureMetadataOutput,
64 | didOutput metadataObjects: [AVMetadataObject],
65 | from connection: AVCaptureConnection) {
| `- error: 'AVCaptureConnection' is unavailable in watchOS
66 | if let metadataObject = metadataObjects.first {
67 | guard let readableObject = metadataObject as? AVMetadataMachineReadableCodeObject else { return }
/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:894:12: note: 'AVCaptureConnection' has been explicitly marked unavailable here
892 | */
893 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
894 | @interface AVCaptureConnection : NSObject
| `- note: 'AVCaptureConnection' has been explicitly marked unavailable here
895 | {
896 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:53:53: error: 'AVCaptureMetadataOutputObjectsDelegate' is unavailable in watchOS
51 |
52 |
53 | public class ScanBarcodesCoordinator: NSObject, AVCaptureMetadataOutputObjectsDelegate {
| `- error: 'AVCaptureMetadataOutputObjectsDelegate' is unavailable in watchOS
54 | var parent: ScanBarcodesView
55 | private var lastBarcodeScanned: String = ""
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h:126:11: note: 'AVCaptureMetadataOutputObjectsDelegate' has been explicitly marked unavailable here
124 | */
125 | API_AVAILABLE(macos(13.0), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
126 | @protocol AVCaptureMetadataOutputObjectsDelegate <NSObject>
| `- note: 'AVCaptureMetadataOutputObjectsDelegate' has been explicitly marked unavailable here
127 |
128 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:92:30: error: 'AVCaptureSession' is unavailable in watchOS
90 | public class ScanBarcodesViewController: UIViewController {
91 | var delegate: ScanBarcodesCoordinator?
92 | var captureSession = AVCaptureSession()
| `- error: 'AVCaptureSession' is unavailable in watchOS
93 | let photoOutput = AVCapturePhotoOutput()
94 | let serialQueue = DispatchQueue(label: "AVCaptureSession")
/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/ScanBarcodes/ScanBarcodesView.swift:93:27: error: 'AVCapturePhotoOutput' is unavailable in watchOS
91 | var delegate: ScanBarcodesCoordinator?
92 | var captureSession = AVCaptureSession()
93 | let photoOutput = AVCapturePhotoOutput()
| `- error: 'AVCapturePhotoOutput' is unavailable in watchOS
94 | let serialQueue = DispatchQueue(label: "AVCaptureSession")
95 | let barcodeQueue = DispatchQueue(label: "BarcodeDetection")
/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/ScanBarcodes/ScanBarcodesView.swift:96:27: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
94 | let serialQueue = DispatchQueue(label: "AVCaptureSession")
95 | let barcodeQueue = DispatchQueue(label: "BarcodeDetection")
96 | var previewLayer: AVCaptureVideoPreviewLayer!
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
97 | var flashlightOn: Bool
98 | var zoomLevel: Int
/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/ScanBarcodes/ScanBarcodesView.swift:149:84: error: 'UIViewControllerTransitionCoordinator' is unavailable in watchOS
147 | }
148 |
149 | public override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
| `- error: 'UIViewControllerTransitionCoordinator' is unavailable in watchOS
150 | coordinator.animate(alongsideTransition: { (UIViewControllerTransitionCoordinatorContext) -> Void in
151 | self.previewLayer.connection?.videoOrientation = self.videoOrientationFromCurrentDeviceOrientation()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewControllerTransitionCoordinator.h:81:11: note: 'UIViewControllerTransitionCoordinator' has been explicitly marked unavailable here
79 |
80 | API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
81 | @protocol UIViewControllerTransitionCoordinator <UIViewControllerTransitionCoordinatorContext>
| `- note: 'UIViewControllerTransitionCoordinator' has been explicitly marked unavailable here
82 |
83 |
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:160:61: error: 'UIInterfaceOrientationMask' is unavailable in watchOS
158 | }
159 |
160 | public override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
| `- error: 'UIInterfaceOrientationMask' is unavailable in watchOS
161 | return .all
162 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h:49:32: note: 'UIInterfaceOrientationMask' has been explicitly marked unavailable here
47 | } API_UNAVAILABLE(tvos, watchos);
48 |
49 | typedef NS_OPTIONS(NSUInteger, UIInterfaceOrientationMask) {
| `- note: 'UIInterfaceOrientationMask' has been explicitly marked unavailable here
50 | UIInterfaceOrientationMaskPortrait = (1 << UIInterfaceOrientationPortrait),
51 | UIInterfaceOrientationMaskLandscapeLeft = (1 << UIInterfaceOrientationLandscapeLeft),
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:170:58: error: 'UITouch' is unavailable in watchOS
168 | }
169 |
170 | public override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: 'UITouch' is unavailable in watchOS
171 | guard touches.first?.view == view,
172 | let touchPoint = touches.first,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITouch.h:51:12: note: 'UITouch' has been explicitly marked unavailable here
49 |
50 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
51 | @interface UITouch : NSObject
| `- note: 'UITouch' has been explicitly marked unavailable here
52 |
53 | @property(nonatomic,readonly) NSTimeInterval timestamp;
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:170:80: error: 'UIEvent' is unavailable in watchOS
168 | }
169 |
170 | public override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: 'UIEvent' is unavailable in watchOS
171 | guard touches.first?.view == view,
172 | let touchPoint = touches.first,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h:62:12: note: 'UIEvent' has been explicitly marked unavailable here
60 |
61 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
62 | @interface UIEvent : NSObject
| `- note: 'UIEvent' has been explicitly marked unavailable here
63 |
64 | @property(nonatomic,readonly) UIEventType type API_AVAILABLE(ios(3.0));
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:214:39: error: 'AVCaptureDevice' is unavailable in watchOS
212 | }
213 |
214 | func safelySetTorch(_ device: AVCaptureDevice, mode: AVCaptureDevice.TorchMode) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
215 | if device.isTorchModeSupported(mode) {
216 | device.torchMode = mode
/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/ScanBarcodes/ScanBarcodesView.swift:214:62: error: 'AVCaptureDevice' is unavailable in watchOS
212 | }
213 |
214 | func safelySetTorch(_ device: AVCaptureDevice, mode: AVCaptureDevice.TorchMode) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
215 | if device.isTorchModeSupported(mode) {
216 | device.torchMode = mode
/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/ScanBarcodes/ScanBarcodesView.swift:279:64: error: 'AVCaptureVideoOrientation' is unavailable in watchOS
277 | }
278 |
279 | func videoOrientationFromCurrentDeviceOrientation() -> AVCaptureVideoOrientation {
| `- error: 'AVCaptureVideoOrientation' is unavailable in watchOS
280 | guard let deviceOrientation = UIApplication.shared.windows.first?.windowScene?.interfaceOrientation else {
281 | return .portrait
/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:104:28: note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
102 |
103 | /// Constants indicating video orientation, for use with AVCaptureDeviceRotationCoordinator.
104 | typedef NS_ENUM(NSInteger, AVCaptureVideoOrientation) {
| `- note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
105 | /// Indicates that video should be oriented vertically, port on the bottom.
106 | AVCaptureVideoOrientationPortrait = 1,
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:90:46: error: 'UIViewController' is unavailable in watchOS
88 | }
89 |
90 | public class ScanBarcodesViewController: UIViewController {
| `- error: 'UIViewController' is unavailable in watchOS
91 | var delegate: ScanBarcodesCoordinator?
92 | var captureSession = AVCaptureSession()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:8:33: error: cannot find type 'UIViewControllerRepresentable' in scope
6 | }
7 |
8 | public struct ScanBarcodesView: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewControllerRepresentable' in scope
9 | @Binding var zoomLevel: Int
10 | @Binding var flashlightOn: Bool
Failed frontend command:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.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/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64/ScanBarcodes-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/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name ScanBarcodes -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64/ScanBarcodes_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/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64/ScanBarcodes.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64/ScanBarcodes.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64/ScanBarcodes-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64/ScanBarcodes-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64/ScanBarcodes-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64/ScanBarcodes.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanBarcodes.build/Debug-watchos/ScanBarcodes-t.build/Objects-normal/arm64/ScanBarcodes.abi.json
SwiftCompile normal arm64 (in target 'ScanBarcodes' from project 'ScanBarcodes')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftCompile normal arm64 Compiling\ ScanBarcodesView.swift /Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift (in target 'ScanBarcodes' from project 'ScanBarcodes')
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:12:31: error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
10 | @Binding var flashlightOn: Bool
11 |
12 | public let barcodeTypes: [AVMetadataMachineReadableCodeObject.ObjectType]
| `- error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
13 | public var completion: (Result<String, BarcodeScanError>) -> Void
14 | public var scanRateDelay: Double
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:649:12: note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
647 | */
648 | API_AVAILABLE(macos(10.15), ios(7.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
649 | @interface AVMetadataMachineReadableCodeObject : AVMetadataObject
| `- note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
650 | {
651 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:17:24: error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
15 |
16 | public init(
17 | barcodeTypes: [AVMetadataMachineReadableCodeObject.ObjectType],
| `- error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
18 | zoomLevel : Binding<Int> = .constant(1),
19 | flashlightOn: Binding<Bool> = .constant(false),
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:649:12: note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
647 | */
648 | API_AVAILABLE(macos(10.15), ios(7.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
649 | @interface AVMetadataMachineReadableCodeObject : AVMetadataObject
| `- note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
650 | {
651 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:33:47: error: cannot find type 'Context' in scope
31 | }
32 |
33 | public func makeUIViewController(context: Context) -> ScanBarcodesViewController {
| `- error: cannot find type 'Context' in scope
34 | let viewC = ScanBarcodesViewController(flashlightOn, zoomLevel)
35 | viewC.delegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:39:97: error: cannot find type 'Context' in scope
37 | }
38 |
39 | public func updateUIViewController(_ uiViewController: ScanBarcodesViewController, context: Context) {
| `- error: cannot find type 'Context' in scope
40 | // update flashlight and zoom level
41 | guard let _ = AVCaptureDevice.default(for: .video) else {
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:63:23: error: 'AVCaptureMetadataOutput' is unavailable in watchOS
61 |
62 | public func metadataOutput(
63 | _ output: AVCaptureMetadataOutput,
| `- error: 'AVCaptureMetadataOutput' is unavailable in watchOS
64 | didOutput metadataObjects: [AVMetadataObject],
65 | from connection: AVCaptureConnection) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h:29:12: note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
27 | */
28 | API_AVAILABLE(macos(13.0), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
29 | @interface AVCaptureMetadataOutput : AVCaptureOutput
| `- note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
30 | {
31 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:64:41: error: 'AVMetadataObject' is unavailable in watchOS
62 | public func metadataOutput(
63 | _ output: AVCaptureMetadataOutput,
64 | didOutput metadataObjects: [AVMetadataObject],
| `- error: 'AVMetadataObject' is unavailable in watchOS
65 | from connection: AVCaptureConnection) {
66 | if let metadataObject = metadataObjects.first {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:44:12: note: 'AVMetadataObject' has been explicitly marked unavailable here
42 | */
43 | API_AVAILABLE(macos(10.10), ios(6.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
44 | @interface AVMetadataObject : NSObject
| `- note: 'AVMetadataObject' has been explicitly marked unavailable here
45 | {
46 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:65:30: error: 'AVCaptureConnection' is unavailable in watchOS
63 | _ output: AVCaptureMetadataOutput,
64 | didOutput metadataObjects: [AVMetadataObject],
65 | from connection: AVCaptureConnection) {
| `- error: 'AVCaptureConnection' is unavailable in watchOS
66 | if let metadataObject = metadataObjects.first {
67 | guard let readableObject = metadataObject as? AVMetadataMachineReadableCodeObject else { return }
/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:894:12: note: 'AVCaptureConnection' has been explicitly marked unavailable here
892 | */
893 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
894 | @interface AVCaptureConnection : NSObject
| `- note: 'AVCaptureConnection' has been explicitly marked unavailable here
895 | {
896 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:53:53: error: 'AVCaptureMetadataOutputObjectsDelegate' is unavailable in watchOS
51 |
52 |
53 | public class ScanBarcodesCoordinator: NSObject, AVCaptureMetadataOutputObjectsDelegate {
| `- error: 'AVCaptureMetadataOutputObjectsDelegate' is unavailable in watchOS
54 | var parent: ScanBarcodesView
55 | private var lastBarcodeScanned: String = ""
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h:126:11: note: 'AVCaptureMetadataOutputObjectsDelegate' has been explicitly marked unavailable here
124 | */
125 | API_AVAILABLE(macos(13.0), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
126 | @protocol AVCaptureMetadataOutputObjectsDelegate <NSObject>
| `- note: 'AVCaptureMetadataOutputObjectsDelegate' has been explicitly marked unavailable here
127 |
128 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:92:30: error: 'AVCaptureSession' is unavailable in watchOS
90 | public class ScanBarcodesViewController: UIViewController {
91 | var delegate: ScanBarcodesCoordinator?
92 | var captureSession = AVCaptureSession()
| `- error: 'AVCaptureSession' is unavailable in watchOS
93 | let photoOutput = AVCapturePhotoOutput()
94 | let serialQueue = DispatchQueue(label: "AVCaptureSession")
/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/ScanBarcodes/ScanBarcodesView.swift:93:27: error: 'AVCapturePhotoOutput' is unavailable in watchOS
91 | var delegate: ScanBarcodesCoordinator?
92 | var captureSession = AVCaptureSession()
93 | let photoOutput = AVCapturePhotoOutput()
| `- error: 'AVCapturePhotoOutput' is unavailable in watchOS
94 | let serialQueue = DispatchQueue(label: "AVCaptureSession")
95 | let barcodeQueue = DispatchQueue(label: "BarcodeDetection")
/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/ScanBarcodes/ScanBarcodesView.swift:96:27: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
94 | let serialQueue = DispatchQueue(label: "AVCaptureSession")
95 | let barcodeQueue = DispatchQueue(label: "BarcodeDetection")
96 | var previewLayer: AVCaptureVideoPreviewLayer!
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
97 | var flashlightOn: Bool
98 | var zoomLevel: Int
/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/ScanBarcodes/ScanBarcodesView.swift:149:84: error: 'UIViewControllerTransitionCoordinator' is unavailable in watchOS
147 | }
148 |
149 | public override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
| `- error: 'UIViewControllerTransitionCoordinator' is unavailable in watchOS
150 | coordinator.animate(alongsideTransition: { (UIViewControllerTransitionCoordinatorContext) -> Void in
151 | self.previewLayer.connection?.videoOrientation = self.videoOrientationFromCurrentDeviceOrientation()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewControllerTransitionCoordinator.h:81:11: note: 'UIViewControllerTransitionCoordinator' has been explicitly marked unavailable here
79 |
80 | API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
81 | @protocol UIViewControllerTransitionCoordinator <UIViewControllerTransitionCoordinatorContext>
| `- note: 'UIViewControllerTransitionCoordinator' has been explicitly marked unavailable here
82 |
83 |
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:160:61: error: 'UIInterfaceOrientationMask' is unavailable in watchOS
158 | }
159 |
160 | public override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
| `- error: 'UIInterfaceOrientationMask' is unavailable in watchOS
161 | return .all
162 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h:49:32: note: 'UIInterfaceOrientationMask' has been explicitly marked unavailable here
47 | } API_UNAVAILABLE(tvos, watchos);
48 |
49 | typedef NS_OPTIONS(NSUInteger, UIInterfaceOrientationMask) {
| `- note: 'UIInterfaceOrientationMask' has been explicitly marked unavailable here
50 | UIInterfaceOrientationMaskPortrait = (1 << UIInterfaceOrientationPortrait),
51 | UIInterfaceOrientationMaskLandscapeLeft = (1 << UIInterfaceOrientationLandscapeLeft),
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:170:58: error: 'UITouch' is unavailable in watchOS
168 | }
169 |
170 | public override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: 'UITouch' is unavailable in watchOS
171 | guard touches.first?.view == view,
172 | let touchPoint = touches.first,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITouch.h:51:12: note: 'UITouch' has been explicitly marked unavailable here
49 |
50 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
51 | @interface UITouch : NSObject
| `- note: 'UITouch' has been explicitly marked unavailable here
52 |
53 | @property(nonatomic,readonly) NSTimeInterval timestamp;
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:170:80: error: 'UIEvent' is unavailable in watchOS
168 | }
169 |
170 | public override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: 'UIEvent' is unavailable in watchOS
171 | guard touches.first?.view == view,
172 | let touchPoint = touches.first,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h:62:12: note: 'UIEvent' has been explicitly marked unavailable here
60 |
61 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
62 | @interface UIEvent : NSObject
| `- note: 'UIEvent' has been explicitly marked unavailable here
63 |
64 | @property(nonatomic,readonly) UIEventType type API_AVAILABLE(ios(3.0));
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:214:39: error: 'AVCaptureDevice' is unavailable in watchOS
212 | }
213 |
214 | func safelySetTorch(_ device: AVCaptureDevice, mode: AVCaptureDevice.TorchMode) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
215 | if device.isTorchModeSupported(mode) {
216 | device.torchMode = mode
/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/ScanBarcodes/ScanBarcodesView.swift:214:62: error: 'AVCaptureDevice' is unavailable in watchOS
212 | }
213 |
214 | func safelySetTorch(_ device: AVCaptureDevice, mode: AVCaptureDevice.TorchMode) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
215 | if device.isTorchModeSupported(mode) {
216 | device.torchMode = mode
/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/ScanBarcodes/ScanBarcodesView.swift:279:64: error: 'AVCaptureVideoOrientation' is unavailable in watchOS
277 | }
278 |
279 | func videoOrientationFromCurrentDeviceOrientation() -> AVCaptureVideoOrientation {
| `- error: 'AVCaptureVideoOrientation' is unavailable in watchOS
280 | guard let deviceOrientation = UIApplication.shared.windows.first?.windowScene?.interfaceOrientation else {
281 | return .portrait
/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:104:28: note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
102 |
103 | /// Constants indicating video orientation, for use with AVCaptureDeviceRotationCoordinator.
104 | typedef NS_ENUM(NSInteger, AVCaptureVideoOrientation) {
| `- note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
105 | /// Indicates that video should be oriented vertically, port on the bottom.
106 | AVCaptureVideoOrientationPortrait = 1,
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:90:46: error: 'UIViewController' is unavailable in watchOS
88 | }
89 |
90 | public class ScanBarcodesViewController: UIViewController {
| `- error: 'UIViewController' is unavailable in watchOS
91 | var delegate: ScanBarcodesCoordinator?
92 | var captureSession = AVCaptureSession()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:8:33: error: cannot find type 'UIViewControllerRepresentable' in scope
6 | }
7 |
8 | public struct ScanBarcodesView: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewControllerRepresentable' in scope
9 | @Binding var zoomLevel: Int
10 | @Binding var flashlightOn: Bool
/Users/admin/builder/spi-builder-workspace/Sources/ScanBarcodes/ScanBarcodesView.swift:41:23: error: 'AVCaptureDevice' is unavailable in watchOS
39 | public func updateUIViewController(_ uiViewController: ScanBarcodesViewController, context: Context) {
40 | // update flashlight and zoom level
41 | guard let _ = AVCaptureDevice.default(for: .video) else {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
42 | return
43 | }
/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/ScanBarcodes/ScanBarcodesView.swift (in target 'ScanBarcodes' from project 'ScanBarcodes')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ScanBarcodesView.swift
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
2026-09-19 01:58:15.131 xcodebuild[804:4837] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
** BUILD FAILED **
The following build commands failed:
SwiftCompile normal arm64_32 (in target 'ScanBarcodes' from project 'ScanBarcodes')
SwiftEmitModule normal arm64_32 Emitting\ module\ for\ ScanBarcodes (in target 'ScanBarcodes' from project 'ScanBarcodes')
SwiftEmitModule normal arm64 Emitting\ module\ for\ ScanBarcodes (in target 'ScanBarcodes' from project 'ScanBarcodes')
SwiftCompile normal arm64 (in target 'ScanBarcodes' from project 'ScanBarcodes')
Building workspace ScanBarcodes with scheme ScanBarcodes
(5 failures)
BUILD FAILURE 6.4 watchOS