Build Information
Failed to build ScanKit, reference 1.0.2 (0dbca3), with Swift 6.4 for watchOS using Xcode 27.0 on 19 Sep 2026 05:05:34 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 ScanKit -destination generic/platform=watchOSBuild Log
36 | {
37 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:376:115: error: 'AVCaptureConnection' is unavailable in watchOS
374 |
375 | /// A method of `AVCaptureVideoDataOutputSampleBufferDelegate` that, for the purposes of this class, processes `Vision` requests.
376 | public func captureOutput(_ output: AVCaptureOutput, didOutput sampleBuffer: CMSampleBuffer, from connection: AVCaptureConnection) {
| `- error: 'AVCaptureConnection' is unavailable in watchOS
377 | // Only process every tenth frame when scanning is true
378 | visionIterator += 1
/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/ScanKit/ScanKitCamera.swift:397:47: error: cannot find type 'VNBarcodeSymbology' in scope
395 | /// - candidate: A `CVImageBuffer` frame that may potentially contain an instance of the defined `symbology`.
396 | /// - Returns: The data encoded as the symbology, if any.
397 | private func detectSymbology(_ symbology: VNBarcodeSymbology, from candidate: CVImageBuffer) -> String? {
| `- error: cannot find type 'VNBarcodeSymbology' in scope
398 | let barcodeRequest = VNDetectBarcodesRequest()
399 | barcodeRequest.symbologies = [.qr]
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:34:57: error: 'AVCaptureVideoDataOutputSampleBufferDelegate' is unavailable in watchOS
32 | fileprivate let logger = Logger(subsystem: Bundle.main.bundleIdentifier ?? "dev.fromshawn.scankit", category: "ScanKitCamera")
33 |
34 | public class ScanKitCamera: NSObject, ObservableObject, AVCaptureVideoDataOutputSampleBufferDelegate {
| `- error: 'AVCaptureVideoDataOutputSampleBufferDelegate' is unavailable in watchOS
35 | private let captureSession = AVCaptureSession()
36 | private var isCaptureSessionConfigured: Bool = 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/AVCaptureVideoDataOutput.h:289:11: note: 'AVCaptureVideoDataOutputSampleBufferDelegate' has been explicitly marked unavailable here
287 | */
288 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
289 | @protocol AVCaptureVideoDataOutputSampleBufferDelegate <NSObject>
| `- note: 'AVCaptureVideoDataOutputSampleBufferDelegate' has been explicitly marked unavailable here
290 |
291 | @optional
Failed frontend command:
SwiftCompile normal arm64 (in target 'ScanKit' from project 'ScanKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/NSScanKitPreview.swift /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKit.swift /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/UIScanKitPreview.swift -target arm64-apple-watchos9.0 -disable-cross-import-overlay-search -swift-module-cross-import Vision /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Vision.framework/Modules/Vision.swiftcrossimport/FoundationModels.swiftoverlay -swift-module-cross-import Vision /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/Vision.framework/Modules/Vision.swiftcrossimport/FoundationModels.swiftoverlay -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/ScanKit.build/Debug-watchos/ScanKit-t.build/Objects-normal/arm64/ScanKit-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/ScanKit.build/Debug-watchos/ScanKit-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanKit.build/Debug-watchos/ScanKit-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanKit.build/Debug-watchos/ScanKit-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name ScanKit -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanKit.build/Debug-watchos/ScanKit-t.build/Objects-normal/arm64/ScanKit_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/ScanKit.build/Debug-watchos/ScanKit-t.build/Objects-normal/arm64/ScanKit.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanKit.build/Debug-watchos/ScanKit-t.build/Objects-normal/arm64/ScanKit.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanKit.build/Debug-watchos/ScanKit-t.build/Objects-normal/arm64/ScanKit-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanKit.build/Debug-watchos/ScanKit-t.build/Objects-normal/arm64/ScanKit-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanKit.build/Debug-watchos/ScanKit-t.build/Objects-normal/arm64/ScanKit-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanKit.build/Debug-watchos/ScanKit-t.build/Objects-normal/arm64/ScanKit.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanKit.build/Debug-watchos/ScanKit-t.build/Objects-normal/arm64/ScanKit.abi.json
SwiftCompile normal arm64_32 Compiling\ NSScanKitPreview.swift /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/NSScanKitPreview.swift (in target 'ScanKit' from project 'ScanKit')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/NSScanKitPreview.swift (in target 'ScanKit' from project 'ScanKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile NSScanKitPreview.swift
SwiftCompile normal arm64 Compiling\ UIScanKitPreview.swift /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/UIScanKitPreview.swift (in target 'ScanKit' from project 'ScanKit')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/UIScanKitPreview.swift (in target 'ScanKit' from project 'ScanKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile UIScanKitPreview.swift
SwiftCompile normal arm64 Compiling\ ScanKit.swift /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKit.swift (in target 'ScanKit' from project 'ScanKit')
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKit.swift:63:32: error: cannot find type 'VNBarcodeSymbology' in scope
61 | /// - completion: A completion handler that returns a `Result` of either `String` when information has been found
62 | /// and can be decoded or `ScanKitError` when an error occurs.
63 | public init(for symbology: VNBarcodeSymbology,
| `- error: cannot find type 'VNBarcodeSymbology' in scope
64 | showViewfinder: Bool = true,
65 | isScanning: Binding<Bool>,
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKit.swift:183:62: error: cannot find type 'VNBarcodeSymbology' in scope
181 | /// - symbology: The `symbology` of code to search for.
182 | /// - Returns: An array of `String` containing any decoded results.
183 | static func decodeImage(cgImage: CGImage, for symbology: VNBarcodeSymbology) async -> [String] {
| `- error: cannot find type 'VNBarcodeSymbology' in scope
184 | var results: [String] = []
185 | let handler = VNImageRequestHandler(cgImage: cgImage)
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKit.swift:79:21: error: cannot find 'ScanKitPreview' in scope
77 | // If iOS15+ we'll watch for changes in scanning with a Task.
78 | if #available(iOS 15.0, macOS 12.0, *) {
79 | ScanKitPreview(camera: camera)
| `- error: cannot find 'ScanKitPreview' in scope
80 | .task(id: scanning) {
81 | camera.isScanning = scanning
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKit.swift:94:21: error: cannot find 'ScanKitPreview' in scope
92 | // Otherwise, we have to initiate the result stream onAppear and re-evaluate it during changes to scanning.
93 | } else {
94 | ScanKitPreview(camera: camera)
| `- error: cannot find 'ScanKitPreview' in scope
95 | .onAppear {
96 | if scanning {
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKit.swift:185:23: error: cannot find 'VNImageRequestHandler' in scope
183 | static func decodeImage(cgImage: CGImage, for symbology: VNBarcodeSymbology) async -> [String] {
184 | var results: [String] = []
185 | let handler = VNImageRequestHandler(cgImage: cgImage)
| `- error: cannot find 'VNImageRequestHandler' in scope
186 | let request = VNDetectBarcodesRequest { (request,error) in
187 | if error != nil {
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKit.swift (in target 'ScanKit' from project 'ScanKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ScanKit.swift
SwiftCompile normal arm64 Compiling\ ScanKitCamera.swift /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift (in target 'ScanKit' from project 'ScanKit')
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:35:34: error: 'AVCaptureSession' is unavailable in watchOS
33 |
34 | public class ScanKitCamera: NSObject, ObservableObject, AVCaptureVideoDataOutputSampleBufferDelegate {
35 | private let captureSession = AVCaptureSession()
| `- error: 'AVCaptureSession' is unavailable in watchOS
36 | private var isCaptureSessionConfigured: Bool = false
37 | weak private var deviceInput: AVCaptureDeviceInput?
/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/ScanKit/ScanKitCamera.swift:37:35: error: 'AVCaptureDeviceInput' is unavailable in watchOS
35 | private let captureSession = AVCaptureSession()
36 | private var isCaptureSessionConfigured: Bool = false
37 | weak private var deviceInput: AVCaptureDeviceInput?
| `- error: 'AVCaptureDeviceInput' is unavailable in watchOS
38 | weak private var videoOutput: AVCaptureVideoDataOutput?
39 | private var sessionQueue: DispatchQueue = DispatchQueue(label: "ScanKitCameraQueue")
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureInput.h:182:12: note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
180 | */
181 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
182 | @interface AVCaptureDeviceInput : AVCaptureInput
| `- note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
183 | {
184 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:38:35: error: 'AVCaptureVideoDataOutput' is unavailable in watchOS
36 | private var isCaptureSessionConfigured: Bool = false
37 | weak private var deviceInput: AVCaptureDeviceInput?
38 | weak private var videoOutput: AVCaptureVideoDataOutput?
| `- error: 'AVCaptureVideoDataOutput' is unavailable in watchOS
39 | private var sessionQueue: DispatchQueue = DispatchQueue(label: "ScanKitCameraQueue")
40 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureVideoDataOutput.h:31:12: note: 'AVCaptureVideoDataOutput' has been explicitly marked unavailable here
29 | */
30 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
31 | @interface AVCaptureVideoDataOutput : AVCaptureOutput
| `- note: 'AVCaptureVideoDataOutput' has been explicitly marked unavailable here
32 | {
33 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:44:37: error: 'AVCaptureDevice' is unavailable in watchOS
42 |
43 | /// Results of a comprehensive capture device discovery session.
44 | private var allCaptureDevices: [AVCaptureDevice] {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
45 | #if os(iOS)
46 | AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInTrueDepthCamera, .builtInDualCamera, .builtInDualWideCamera, .builtInWideAngleCamera, .builtInDualWideCamera], mediaType: .video, position: .unspecified).devices
/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/ScanKit/ScanKitCamera.swift:53:39: error: 'AVCaptureDevice' is unavailable in watchOS
51 |
52 | /// The results of `allCaptureDevices` reduced to only those positioned at `.front`.
53 | private var frontCaptureDevices: [AVCaptureDevice] {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
54 | allCaptureDevices
55 | .filter { $0.position == .front }
/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/ScanKit/ScanKitCamera.swift:59:38: error: 'AVCaptureDevice' is unavailable in watchOS
57 |
58 | /// The results of `allCaptureDevices` reduced to only those positioned at `.back`.
59 | private var backCaptureDevices: [AVCaptureDevice] {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
60 | allCaptureDevices
61 | .filter { $0.position == .back }
/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/ScanKit/ScanKitCamera.swift:64:34: error: 'AVCaptureDevice' is unavailable in watchOS
62 | }
63 |
64 | private var captureDevices: [AVCaptureDevice] {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
65 | var devices = [AVCaptureDevice]()
66 | #if os(macOS) || (os(iOS) && targetEnvironment(macCatalyst))
/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/ScanKit/ScanKitCamera.swift:80:43: error: 'AVCaptureDevice' is unavailable in watchOS
78 |
79 | /// All capture devices, reduced from `captureDevices`, that are both available and not suspended.
80 | private var availableCaptureDevices: [AVCaptureDevice] {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
81 | captureDevices
82 | .filter( { $0.isConnected } )
/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/ScanKit/ScanKitCamera.swift:87:32: error: 'AVCaptureDevice' is unavailable in watchOS
85 |
86 | /// The capture device in use.
87 | private var captureDevice: AVCaptureDevice? {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
88 | didSet {
89 | guard let captureDevice = captureDevice 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/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/ScanKit/ScanKitCamera.swift:203:65: error: 'AVCaptureDevice' is unavailable in watchOS
201 | }
202 |
203 | private func updateSessionForCaptureDevice(_ captureDevice: AVCaptureDevice) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
204 | guard isCaptureSessionConfigured else { return }
205 |
/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/ScanKit/ScanKitCamera.swift:270:41: error: 'AVCaptureDevice' is unavailable in watchOS
268 | /// - Parameter device: A capture device to get the input of.
269 | /// - Returns: An associated `AVCaptureDeviceInput` if any, else `nil`.
270 | private func deviceInputFor(device: AVCaptureDevice?) -> AVCaptureDeviceInput? {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
271 | guard let validDevice = device else { return nil }
272 | do {
/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/ScanKit/ScanKitCamera.swift:270:62: error: 'AVCaptureDeviceInput' is unavailable in watchOS
268 | /// - Parameter device: A capture device to get the input of.
269 | /// - Returns: An associated `AVCaptureDeviceInput` if any, else `nil`.
270 | private func deviceInputFor(device: AVCaptureDevice?) -> AVCaptureDeviceInput? {
| `- error: 'AVCaptureDeviceInput' is unavailable in watchOS
271 | guard let validDevice = device else { return nil }
272 | do {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureInput.h:182:12: note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
180 | */
181 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
182 | @interface AVCaptureDeviceInput : AVCaptureInput
| `- note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
183 | {
184 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:350:28: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
348 |
349 | /// The preview layer with a graviety of `resizeAspectFill`.
350 | lazy var previewLayer: AVCaptureVideoPreviewLayer = {
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
351 | let preview = AVCaptureVideoPreviewLayer(session: self.captureSession)
352 | preview.videoGravity = .resizeAspectFill
/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/ScanKit/ScanKitCamera.swift:351:23: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
349 | /// The preview layer with a graviety of `resizeAspectFill`.
350 | lazy var previewLayer: AVCaptureVideoPreviewLayer = {
351 | let preview = AVCaptureVideoPreviewLayer(session: self.captureSession)
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
352 | preview.videoGravity = .resizeAspectFill
353 | return preview
/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/ScanKit/ScanKitCamera.swift:352:33: error: 'resizeAspectFill' is unavailable in watchOS
350 | lazy var previewLayer: AVCaptureVideoPreviewLayer = {
351 | let preview = AVCaptureVideoPreviewLayer(session: self.captureSession)
352 | preview.videoGravity = .resizeAspectFill
| `- error: 'resizeAspectFill' is unavailable in watchOS
353 | return preview
354 | }()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVAnimation.h:40:38: note: 'resizeAspectFill' has been explicitly marked unavailable here
38 | property of an AVPlayerLayer or AVCaptureVideoPreviewLayer instance.
39 | */
40 | AVF_EXPORT AVLayerVideoGravity const AVLayerVideoGravityResizeAspectFill API_AVAILABLE(macos(10.7), ios(4.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos);
| `- note: 'resizeAspectFill' has been explicitly marked unavailable here
41 |
42 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:361:35: error: cannot find 'VNSequenceRequestHandler' in scope
359 | // At 30fps, that would be nearly ten million millennium. <- Fun Fact!
360 | private var visionIterator: UInt64 = 0
361 | private let sequenceHandler = VNSequenceRequestHandler()
| `- error: cannot find 'VNSequenceRequestHandler' in scope
362 |
363 | /// A Boolean value indicating whether or not the camera is scanning for machine readable codes.
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:368:27: error: cannot find type 'VNBarcodeSymbology' in scope
366 | /// The current symbology being detected by the camera.
367 | /// Use the ``supportedSymbologies`` property to indicate the specific symbologies the request detects.
368 | public var symbology: VNBarcodeSymbology = .qr
| `- error: cannot find type 'VNBarcodeSymbology' in scope
369 |
370 | /// An array of symbologies supported by the scanner.
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:371:39: error: cannot find type 'VNBarcodeSymbology' in scope
369 |
370 | /// An array of symbologies supported by the scanner.
371 | public var supportedSymbologies: [VNBarcodeSymbology] {
| `- error: cannot find type 'VNBarcodeSymbology' in scope
372 | VNDetectBarcodesRequest.supportedSymbologies
373 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:376:41: error: 'AVCaptureOutput' is unavailable in watchOS
374 |
375 | /// A method of `AVCaptureVideoDataOutputSampleBufferDelegate` that, for the purposes of this class, processes `Vision` requests.
376 | public func captureOutput(_ output: AVCaptureOutput, didOutput sampleBuffer: CMSampleBuffer, from connection: AVCaptureConnection) {
| `- error: 'AVCaptureOutput' is unavailable in watchOS
377 | // Only process every tenth frame when scanning is true
378 | visionIterator += 1
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureOutputBase.h:35:12: note: 'AVCaptureOutput' has been explicitly marked unavailable here
33 | */
34 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
35 | @interface AVCaptureOutput : NSObject
| `- note: 'AVCaptureOutput' has been explicitly marked unavailable here
36 | {
37 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:376:115: error: 'AVCaptureConnection' is unavailable in watchOS
374 |
375 | /// A method of `AVCaptureVideoDataOutputSampleBufferDelegate` that, for the purposes of this class, processes `Vision` requests.
376 | public func captureOutput(_ output: AVCaptureOutput, didOutput sampleBuffer: CMSampleBuffer, from connection: AVCaptureConnection) {
| `- error: 'AVCaptureConnection' is unavailable in watchOS
377 | // Only process every tenth frame when scanning is true
378 | visionIterator += 1
/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/ScanKit/ScanKitCamera.swift:397:47: error: cannot find type 'VNBarcodeSymbology' in scope
395 | /// - candidate: A `CVImageBuffer` frame that may potentially contain an instance of the defined `symbology`.
396 | /// - Returns: The data encoded as the symbology, if any.
397 | private func detectSymbology(_ symbology: VNBarcodeSymbology, from candidate: CVImageBuffer) -> String? {
| `- error: cannot find type 'VNBarcodeSymbology' in scope
398 | let barcodeRequest = VNDetectBarcodesRequest()
399 | barcodeRequest.symbologies = [.qr]
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:34:57: error: 'AVCaptureVideoDataOutputSampleBufferDelegate' is unavailable in watchOS
32 | fileprivate let logger = Logger(subsystem: Bundle.main.bundleIdentifier ?? "dev.fromshawn.scankit", category: "ScanKitCamera")
33 |
34 | public class ScanKitCamera: NSObject, ObservableObject, AVCaptureVideoDataOutputSampleBufferDelegate {
| `- error: 'AVCaptureVideoDataOutputSampleBufferDelegate' is unavailable in watchOS
35 | private let captureSession = AVCaptureSession()
36 | private var isCaptureSessionConfigured: Bool = 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/AVCaptureVideoDataOutput.h:289:11: note: 'AVCaptureVideoDataOutputSampleBufferDelegate' has been explicitly marked unavailable here
287 | */
288 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
289 | @protocol AVCaptureVideoDataOutputSampleBufferDelegate <NSObject>
| `- note: 'AVCaptureVideoDataOutputSampleBufferDelegate' has been explicitly marked unavailable here
290 |
291 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:48:9: error: 'AVCaptureDevice' is unavailable in watchOS
46 | AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInTrueDepthCamera, .builtInDualCamera, .builtInDualWideCamera, .builtInWideAngleCamera, .builtInDualWideCamera], mediaType: .video, position: .unspecified).devices
47 | #else
48 | AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInWideAngleCamera, .externalUnknown], mediaType: .video, position: .unspecified).devices
| `- error: 'AVCaptureDevice' is unavailable in watchOS
49 | #endif
50 | }
/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/ScanKit/ScanKitCamera.swift:48:57: error: 'builtInWideAngleCamera' is unavailable in watchOS
46 | AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInTrueDepthCamera, .builtInDualCamera, .builtInDualWideCamera, .builtInWideAngleCamera, .builtInDualWideCamera], mediaType: .video, position: .unspecified).devices
47 | #else
48 | AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInWideAngleCamera, .externalUnknown], mediaType: .video, position: .unspecified).devices
| `- error: 'builtInWideAngleCamera' is unavailable in watchOS
49 | #endif
50 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:562:38: note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
560 | A built-in wide angle camera device. These devices are suitable for general purpose use.
561 | */
562 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInWideAngleCamera API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0), visionos(2.1)) API_UNAVAILABLE(watchos);
| `- note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
563 |
564 | /*!
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift (in target 'ScanKit' from project 'ScanKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ScanKitCamera.swift
SwiftCompile normal arm64_32 Compiling\ ScanKitCamera.swift /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift (in target 'ScanKit' from project 'ScanKit')
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:35:34: error: 'AVCaptureSession' is unavailable in watchOS
33 |
34 | public class ScanKitCamera: NSObject, ObservableObject, AVCaptureVideoDataOutputSampleBufferDelegate {
35 | private let captureSession = AVCaptureSession()
| `- error: 'AVCaptureSession' is unavailable in watchOS
36 | private var isCaptureSessionConfigured: Bool = false
37 | weak private var deviceInput: AVCaptureDeviceInput?
/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/ScanKit/ScanKitCamera.swift:37:35: error: 'AVCaptureDeviceInput' is unavailable in watchOS
35 | private let captureSession = AVCaptureSession()
36 | private var isCaptureSessionConfigured: Bool = false
37 | weak private var deviceInput: AVCaptureDeviceInput?
| `- error: 'AVCaptureDeviceInput' is unavailable in watchOS
38 | weak private var videoOutput: AVCaptureVideoDataOutput?
39 | private var sessionQueue: DispatchQueue = DispatchQueue(label: "ScanKitCameraQueue")
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureInput.h:182:12: note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
180 | */
181 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
182 | @interface AVCaptureDeviceInput : AVCaptureInput
| `- note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
183 | {
184 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:38:35: error: 'AVCaptureVideoDataOutput' is unavailable in watchOS
36 | private var isCaptureSessionConfigured: Bool = false
37 | weak private var deviceInput: AVCaptureDeviceInput?
38 | weak private var videoOutput: AVCaptureVideoDataOutput?
| `- error: 'AVCaptureVideoDataOutput' is unavailable in watchOS
39 | private var sessionQueue: DispatchQueue = DispatchQueue(label: "ScanKitCameraQueue")
40 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureVideoDataOutput.h:31:12: note: 'AVCaptureVideoDataOutput' has been explicitly marked unavailable here
29 | */
30 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
31 | @interface AVCaptureVideoDataOutput : AVCaptureOutput
| `- note: 'AVCaptureVideoDataOutput' has been explicitly marked unavailable here
32 | {
33 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:44:37: error: 'AVCaptureDevice' is unavailable in watchOS
42 |
43 | /// Results of a comprehensive capture device discovery session.
44 | private var allCaptureDevices: [AVCaptureDevice] {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
45 | #if os(iOS)
46 | AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInTrueDepthCamera, .builtInDualCamera, .builtInDualWideCamera, .builtInWideAngleCamera, .builtInDualWideCamera], mediaType: .video, position: .unspecified).devices
/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/ScanKit/ScanKitCamera.swift:53:39: error: 'AVCaptureDevice' is unavailable in watchOS
51 |
52 | /// The results of `allCaptureDevices` reduced to only those positioned at `.front`.
53 | private var frontCaptureDevices: [AVCaptureDevice] {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
54 | allCaptureDevices
55 | .filter { $0.position == .front }
/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/ScanKit/ScanKitCamera.swift:59:38: error: 'AVCaptureDevice' is unavailable in watchOS
57 |
58 | /// The results of `allCaptureDevices` reduced to only those positioned at `.back`.
59 | private var backCaptureDevices: [AVCaptureDevice] {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
60 | allCaptureDevices
61 | .filter { $0.position == .back }
/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/ScanKit/ScanKitCamera.swift:64:34: error: 'AVCaptureDevice' is unavailable in watchOS
62 | }
63 |
64 | private var captureDevices: [AVCaptureDevice] {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
65 | var devices = [AVCaptureDevice]()
66 | #if os(macOS) || (os(iOS) && targetEnvironment(macCatalyst))
/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/ScanKit/ScanKitCamera.swift:80:43: error: 'AVCaptureDevice' is unavailable in watchOS
78 |
79 | /// All capture devices, reduced from `captureDevices`, that are both available and not suspended.
80 | private var availableCaptureDevices: [AVCaptureDevice] {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
81 | captureDevices
82 | .filter( { $0.isConnected } )
/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/ScanKit/ScanKitCamera.swift:87:32: error: 'AVCaptureDevice' is unavailable in watchOS
85 |
86 | /// The capture device in use.
87 | private var captureDevice: AVCaptureDevice? {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
88 | didSet {
89 | guard let captureDevice = captureDevice 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/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/ScanKit/ScanKitCamera.swift:203:65: error: 'AVCaptureDevice' is unavailable in watchOS
201 | }
202 |
203 | private func updateSessionForCaptureDevice(_ captureDevice: AVCaptureDevice) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
204 | guard isCaptureSessionConfigured else { return }
205 |
/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/ScanKit/ScanKitCamera.swift:270:41: error: 'AVCaptureDevice' is unavailable in watchOS
268 | /// - Parameter device: A capture device to get the input of.
269 | /// - Returns: An associated `AVCaptureDeviceInput` if any, else `nil`.
270 | private func deviceInputFor(device: AVCaptureDevice?) -> AVCaptureDeviceInput? {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
271 | guard let validDevice = device else { return nil }
272 | do {
/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/ScanKit/ScanKitCamera.swift:270:62: error: 'AVCaptureDeviceInput' is unavailable in watchOS
268 | /// - Parameter device: A capture device to get the input of.
269 | /// - Returns: An associated `AVCaptureDeviceInput` if any, else `nil`.
270 | private func deviceInputFor(device: AVCaptureDevice?) -> AVCaptureDeviceInput? {
| `- error: 'AVCaptureDeviceInput' is unavailable in watchOS
271 | guard let validDevice = device else { return nil }
272 | do {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureInput.h:182:12: note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
180 | */
181 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
182 | @interface AVCaptureDeviceInput : AVCaptureInput
| `- note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
183 | {
184 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:350:28: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
348 |
349 | /// The preview layer with a graviety of `resizeAspectFill`.
350 | lazy var previewLayer: AVCaptureVideoPreviewLayer = {
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
351 | let preview = AVCaptureVideoPreviewLayer(session: self.captureSession)
352 | preview.videoGravity = .resizeAspectFill
/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/ScanKit/ScanKitCamera.swift:351:23: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
349 | /// The preview layer with a graviety of `resizeAspectFill`.
350 | lazy var previewLayer: AVCaptureVideoPreviewLayer = {
351 | let preview = AVCaptureVideoPreviewLayer(session: self.captureSession)
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
352 | preview.videoGravity = .resizeAspectFill
353 | return preview
/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/ScanKit/ScanKitCamera.swift:352:33: error: 'resizeAspectFill' is unavailable in watchOS
350 | lazy var previewLayer: AVCaptureVideoPreviewLayer = {
351 | let preview = AVCaptureVideoPreviewLayer(session: self.captureSession)
352 | preview.videoGravity = .resizeAspectFill
| `- error: 'resizeAspectFill' is unavailable in watchOS
353 | return preview
354 | }()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVAnimation.h:40:38: note: 'resizeAspectFill' has been explicitly marked unavailable here
38 | property of an AVPlayerLayer or AVCaptureVideoPreviewLayer instance.
39 | */
40 | AVF_EXPORT AVLayerVideoGravity const AVLayerVideoGravityResizeAspectFill API_AVAILABLE(macos(10.7), ios(4.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos);
| `- note: 'resizeAspectFill' has been explicitly marked unavailable here
41 |
42 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:361:35: error: cannot find 'VNSequenceRequestHandler' in scope
359 | // At 30fps, that would be nearly ten million millennium. <- Fun Fact!
360 | private var visionIterator: UInt64 = 0
361 | private let sequenceHandler = VNSequenceRequestHandler()
| `- error: cannot find 'VNSequenceRequestHandler' in scope
362 |
363 | /// A Boolean value indicating whether or not the camera is scanning for machine readable codes.
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:368:27: error: cannot find type 'VNBarcodeSymbology' in scope
366 | /// The current symbology being detected by the camera.
367 | /// Use the ``supportedSymbologies`` property to indicate the specific symbologies the request detects.
368 | public var symbology: VNBarcodeSymbology = .qr
| `- error: cannot find type 'VNBarcodeSymbology' in scope
369 |
370 | /// An array of symbologies supported by the scanner.
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:371:39: error: cannot find type 'VNBarcodeSymbology' in scope
369 |
370 | /// An array of symbologies supported by the scanner.
371 | public var supportedSymbologies: [VNBarcodeSymbology] {
| `- error: cannot find type 'VNBarcodeSymbology' in scope
372 | VNDetectBarcodesRequest.supportedSymbologies
373 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:376:41: error: 'AVCaptureOutput' is unavailable in watchOS
374 |
375 | /// A method of `AVCaptureVideoDataOutputSampleBufferDelegate` that, for the purposes of this class, processes `Vision` requests.
376 | public func captureOutput(_ output: AVCaptureOutput, didOutput sampleBuffer: CMSampleBuffer, from connection: AVCaptureConnection) {
| `- error: 'AVCaptureOutput' is unavailable in watchOS
377 | // Only process every tenth frame when scanning is true
378 | visionIterator += 1
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureOutputBase.h:35:12: note: 'AVCaptureOutput' has been explicitly marked unavailable here
33 | */
34 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
35 | @interface AVCaptureOutput : NSObject
| `- note: 'AVCaptureOutput' has been explicitly marked unavailable here
36 | {
37 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:376:115: error: 'AVCaptureConnection' is unavailable in watchOS
374 |
375 | /// A method of `AVCaptureVideoDataOutputSampleBufferDelegate` that, for the purposes of this class, processes `Vision` requests.
376 | public func captureOutput(_ output: AVCaptureOutput, didOutput sampleBuffer: CMSampleBuffer, from connection: AVCaptureConnection) {
| `- error: 'AVCaptureConnection' is unavailable in watchOS
377 | // Only process every tenth frame when scanning is true
378 | visionIterator += 1
/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/ScanKit/ScanKitCamera.swift:397:47: error: cannot find type 'VNBarcodeSymbology' in scope
395 | /// - candidate: A `CVImageBuffer` frame that may potentially contain an instance of the defined `symbology`.
396 | /// - Returns: The data encoded as the symbology, if any.
397 | private func detectSymbology(_ symbology: VNBarcodeSymbology, from candidate: CVImageBuffer) -> String? {
| `- error: cannot find type 'VNBarcodeSymbology' in scope
398 | let barcodeRequest = VNDetectBarcodesRequest()
399 | barcodeRequest.symbologies = [.qr]
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:34:57: error: 'AVCaptureVideoDataOutputSampleBufferDelegate' is unavailable in watchOS
32 | fileprivate let logger = Logger(subsystem: Bundle.main.bundleIdentifier ?? "dev.fromshawn.scankit", category: "ScanKitCamera")
33 |
34 | public class ScanKitCamera: NSObject, ObservableObject, AVCaptureVideoDataOutputSampleBufferDelegate {
| `- error: 'AVCaptureVideoDataOutputSampleBufferDelegate' is unavailable in watchOS
35 | private let captureSession = AVCaptureSession()
36 | private var isCaptureSessionConfigured: Bool = 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/AVCaptureVideoDataOutput.h:289:11: note: 'AVCaptureVideoDataOutputSampleBufferDelegate' has been explicitly marked unavailable here
287 | */
288 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
289 | @protocol AVCaptureVideoDataOutputSampleBufferDelegate <NSObject>
| `- note: 'AVCaptureVideoDataOutputSampleBufferDelegate' has been explicitly marked unavailable here
290 |
291 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:48:9: error: 'AVCaptureDevice' is unavailable in watchOS
46 | AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInTrueDepthCamera, .builtInDualCamera, .builtInDualWideCamera, .builtInWideAngleCamera, .builtInDualWideCamera], mediaType: .video, position: .unspecified).devices
47 | #else
48 | AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInWideAngleCamera, .externalUnknown], mediaType: .video, position: .unspecified).devices
| `- error: 'AVCaptureDevice' is unavailable in watchOS
49 | #endif
50 | }
/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/ScanKit/ScanKitCamera.swift:48:57: error: 'builtInWideAngleCamera' is unavailable in watchOS
46 | AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInTrueDepthCamera, .builtInDualCamera, .builtInDualWideCamera, .builtInWideAngleCamera, .builtInDualWideCamera], mediaType: .video, position: .unspecified).devices
47 | #else
48 | AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInWideAngleCamera, .externalUnknown], mediaType: .video, position: .unspecified).devices
| `- error: 'builtInWideAngleCamera' is unavailable in watchOS
49 | #endif
50 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:562:38: note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
560 | A built-in wide angle camera device. These devices are suitable for general purpose use.
561 | */
562 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInWideAngleCamera API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0), visionos(2.1)) API_UNAVAILABLE(watchos);
| `- note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
563 |
564 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:48:82: error: 'externalUnknown' is unavailable in watchOS
46 | AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInTrueDepthCamera, .builtInDualCamera, .builtInDualWideCamera, .builtInWideAngleCamera, .builtInDualWideCamera], mediaType: .video, position: .unspecified).devices
47 | #else
48 | AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInWideAngleCamera, .externalUnknown], mediaType: .video, position: .unspecified).devices
| `- error: 'externalUnknown' is unavailable in watchOS
49 | #endif
50 | }
/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:666:38: note: 'externalUnknown' has been explicitly marked unavailable here
664 | A deprecated synonym for AVCaptureDeviceTypeExternal. Please use AVCaptureDeviceTypeExternal instead.
665 | */
666 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeExternalUnknown API_DEPRECATED_WITH_REPLACEMENT("AVCaptureDeviceTypeExternal", macos(10.15, 14.0)) API_UNAVAILABLE(ios, macCatalyst, tvos, visionos) API_UNAVAILABLE(watchos);
| `- note: 'externalUnknown' has been explicitly marked unavailable here
667 |
668 | /*!
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift (in target 'ScanKit' from project 'ScanKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ScanKitCamera.swift
SwiftCompile normal arm64_32 Compiling\ ScanKit.swift /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKit.swift (in target 'ScanKit' from project 'ScanKit')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKit.swift (in target 'ScanKit' from project 'ScanKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ScanKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKit.swift:63:32: error: cannot find type 'VNBarcodeSymbology' in scope
61 | /// - completion: A completion handler that returns a `Result` of either `String` when information has been found
62 | /// and can be decoded or `ScanKitError` when an error occurs.
63 | public init(for symbology: VNBarcodeSymbology,
| `- error: cannot find type 'VNBarcodeSymbology' in scope
64 | showViewfinder: Bool = true,
65 | isScanning: Binding<Bool>,
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKit.swift:183:62: error: cannot find type 'VNBarcodeSymbology' in scope
181 | /// - symbology: The `symbology` of code to search for.
182 | /// - Returns: An array of `String` containing any decoded results.
183 | static func decodeImage(cgImage: CGImage, for symbology: VNBarcodeSymbology) async -> [String] {
| `- error: cannot find type 'VNBarcodeSymbology' in scope
184 | var results: [String] = []
185 | let handler = VNImageRequestHandler(cgImage: cgImage)
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKit.swift:79:21: error: cannot find 'ScanKitPreview' in scope
77 | // If iOS15+ we'll watch for changes in scanning with a Task.
78 | if #available(iOS 15.0, macOS 12.0, *) {
79 | ScanKitPreview(camera: camera)
| `- error: cannot find 'ScanKitPreview' in scope
80 | .task(id: scanning) {
81 | camera.isScanning = scanning
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKit.swift:94:21: error: cannot find 'ScanKitPreview' in scope
92 | // Otherwise, we have to initiate the result stream onAppear and re-evaluate it during changes to scanning.
93 | } else {
94 | ScanKitPreview(camera: camera)
| `- error: cannot find 'ScanKitPreview' in scope
95 | .onAppear {
96 | if scanning {
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKit.swift:185:23: error: cannot find 'VNImageRequestHandler' in scope
183 | static func decodeImage(cgImage: CGImage, for symbology: VNBarcodeSymbology) async -> [String] {
184 | var results: [String] = []
185 | let handler = VNImageRequestHandler(cgImage: cgImage)
| `- error: cannot find 'VNImageRequestHandler' in scope
186 | let request = VNDetectBarcodesRequest { (request,error) in
187 | if error != nil {
SwiftCompile normal arm64 Compiling\ NSScanKitPreview.swift /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/NSScanKitPreview.swift (in target 'ScanKit' from project 'ScanKit')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/NSScanKitPreview.swift (in target 'ScanKit' from project 'ScanKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile NSScanKitPreview.swift
SwiftCompile normal arm64_32 Compiling\ UIScanKitPreview.swift /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/UIScanKitPreview.swift (in target 'ScanKit' from project 'ScanKit')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/UIScanKitPreview.swift (in target 'ScanKit' from project 'ScanKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile UIScanKitPreview.swift
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
2026-09-19 01:05:23.074 xcodebuild[627:3901] [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 'ScanKit' from project 'ScanKit')
SwiftEmitModule normal arm64_32 Emitting\ module\ for\ ScanKit (in target 'ScanKit' from project 'ScanKit')
SwiftCompile normal arm64 (in target 'ScanKit' from project 'ScanKit')
SwiftEmitModule normal arm64 Emitting\ module\ for\ ScanKit (in target 'ScanKit' from project 'ScanKit')
Building workspace ScanKit with scheme ScanKit
(5 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:
ScanKit: /Users/admin/builder/spi-builder-workspace
resolved source packages: ScanKit
2026-09-19 01:05:30.615 xcodebuild[810:4677] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
{
"dependencies" : [
],
"manifest_display_name" : "ScanKit",
"name" : "ScanKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "maccatalyst",
"version" : "14.0"
}
],
"products" : [
{
"name" : "ScanKit",
"targets" : [
"ScanKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ScanKitTests",
"module_type" : "SwiftTarget",
"name" : "ScanKitTests",
"path" : "Tests/ScanKitTests",
"sources" : [
"ScanKitTests.swift"
],
"target_dependencies" : [
"ScanKit"
],
"type" : "test"
},
{
"c99name" : "ScanKit",
"module_type" : "SwiftTarget",
"name" : "ScanKit",
"path" : "Sources/ScanKit",
"product_memberships" : [
"ScanKit"
],
"sources" : [
"NSScanKitPreview.swift",
"ScanKit.swift",
"ScanKitCamera.swift",
"UIScanKitPreview.swift"
],
"type" : "library"
}
],
"tools_version" : "5.8"
}
{
"workspace" : {
"name" : "ScanKit",
"schemes" : [
"ScanKit"
]
}
}
2026-09-19 01:05:31.856 xcodebuild[818:4743] [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 ScanKit -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 ScanKit -destination generic/platform=watchOS
Resolve Package Graph
Resolved source packages:
ScanKit: /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 'ScanKit-product' in project 'ScanKit'
➜ Explicit dependency on target 'ScanKit' in project 'ScanKit'
Target 'ScanKit' in project 'ScanKit' (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 ScanKit normal arm64 com.apple.xcode.tools.swift.compiler (in target 'ScanKit' from project 'ScanKit')
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 ScanKit -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanKit.build/Debug-watchos/ScanKit-t.build/Objects-normal/arm64/ScanKit.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/ScanKit.build/Debug-watchos/ScanKit-t.build/Objects-normal/arm64/ScanKit-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/ScanKit.build/Debug-watchos/ScanKit-t.build/Objects-normal/arm64/ScanKit.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanKit.build/Debug-watchos/ScanKit-t.build/Objects-normal/arm64/ScanKit-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/ScanKit.build/Debug-watchos/ScanKit-t.build/Objects-normal/arm64/ScanKit_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/ScanKit.build/Debug-watchos/ScanKit-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanKit.build/Debug-watchos/ScanKit-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanKit.build/Debug-watchos/ScanKit-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/ScanKit.build/Debug-watchos/ScanKit-t.build/Objects-normal/arm64/ScanKit-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftDriver ScanKit normal arm64_32 com.apple.xcode.tools.swift.compiler (in target 'ScanKit' from project 'ScanKit')
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 ScanKit -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanKit.build/Debug-watchos/ScanKit-t.build/Objects-normal/arm64_32/ScanKit.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/ScanKit.build/Debug-watchos/ScanKit-t.build/Objects-normal/arm64_32/ScanKit-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/ScanKit.build/Debug-watchos/ScanKit-t.build/Objects-normal/arm64_32/ScanKit.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanKit.build/Debug-watchos/ScanKit-t.build/Objects-normal/arm64_32/ScanKit-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/ScanKit.build/Debug-watchos/ScanKit-t.build/Objects-normal/arm64_32/ScanKit_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/ScanKit.build/Debug-watchos/ScanKit-t.build/DerivedSources-normal/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanKit.build/Debug-watchos/ScanKit-t.build/DerivedSources/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanKit.build/Debug-watchos/ScanKit-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/ScanKit.build/Debug-watchos/ScanKit-t.build/Objects-normal/arm64_32/ScanKit-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\ ScanKit (in target 'ScanKit' from project 'ScanKit')
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKit.swift:63:32: error: cannot find type 'VNBarcodeSymbology' in scope
61 | /// - completion: A completion handler that returns a `Result` of either `String` when information has been found
62 | /// and can be decoded or `ScanKitError` when an error occurs.
63 | public init(for symbology: VNBarcodeSymbology,
| `- error: cannot find type 'VNBarcodeSymbology' in scope
64 | showViewfinder: Bool = true,
65 | isScanning: Binding<Bool>,
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKit.swift:183:62: error: cannot find type 'VNBarcodeSymbology' in scope
181 | /// - symbology: The `symbology` of code to search for.
182 | /// - Returns: An array of `String` containing any decoded results.
183 | static func decodeImage(cgImage: CGImage, for symbology: VNBarcodeSymbology) async -> [String] {
| `- error: cannot find type 'VNBarcodeSymbology' in scope
184 | var results: [String] = []
185 | let handler = VNImageRequestHandler(cgImage: cgImage)
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:35:34: error: 'AVCaptureSession' is unavailable in watchOS
33 |
34 | public class ScanKitCamera: NSObject, ObservableObject, AVCaptureVideoDataOutputSampleBufferDelegate {
35 | private let captureSession = AVCaptureSession()
| `- error: 'AVCaptureSession' is unavailable in watchOS
36 | private var isCaptureSessionConfigured: Bool = false
37 | weak private var deviceInput: AVCaptureDeviceInput?
/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/ScanKit/ScanKitCamera.swift:37:35: error: 'AVCaptureDeviceInput' is unavailable in watchOS
35 | private let captureSession = AVCaptureSession()
36 | private var isCaptureSessionConfigured: Bool = false
37 | weak private var deviceInput: AVCaptureDeviceInput?
| `- error: 'AVCaptureDeviceInput' is unavailable in watchOS
38 | weak private var videoOutput: AVCaptureVideoDataOutput?
39 | private var sessionQueue: DispatchQueue = DispatchQueue(label: "ScanKitCameraQueue")
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureInput.h:182:12: note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
180 | */
181 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
182 | @interface AVCaptureDeviceInput : AVCaptureInput
| `- note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
183 | {
184 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:38:35: error: 'AVCaptureVideoDataOutput' is unavailable in watchOS
36 | private var isCaptureSessionConfigured: Bool = false
37 | weak private var deviceInput: AVCaptureDeviceInput?
38 | weak private var videoOutput: AVCaptureVideoDataOutput?
| `- error: 'AVCaptureVideoDataOutput' is unavailable in watchOS
39 | private var sessionQueue: DispatchQueue = DispatchQueue(label: "ScanKitCameraQueue")
40 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureVideoDataOutput.h:31:12: note: 'AVCaptureVideoDataOutput' has been explicitly marked unavailable here
29 | */
30 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
31 | @interface AVCaptureVideoDataOutput : AVCaptureOutput
| `- note: 'AVCaptureVideoDataOutput' has been explicitly marked unavailable here
32 | {
33 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:44:37: error: 'AVCaptureDevice' is unavailable in watchOS
42 |
43 | /// Results of a comprehensive capture device discovery session.
44 | private var allCaptureDevices: [AVCaptureDevice] {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
45 | #if os(iOS)
46 | AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInTrueDepthCamera, .builtInDualCamera, .builtInDualWideCamera, .builtInWideAngleCamera, .builtInDualWideCamera], mediaType: .video, position: .unspecified).devices
/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/ScanKit/ScanKitCamera.swift:53:39: error: 'AVCaptureDevice' is unavailable in watchOS
51 |
52 | /// The results of `allCaptureDevices` reduced to only those positioned at `.front`.
53 | private var frontCaptureDevices: [AVCaptureDevice] {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
54 | allCaptureDevices
55 | .filter { $0.position == .front }
/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/ScanKit/ScanKitCamera.swift:59:38: error: 'AVCaptureDevice' is unavailable in watchOS
57 |
58 | /// The results of `allCaptureDevices` reduced to only those positioned at `.back`.
59 | private var backCaptureDevices: [AVCaptureDevice] {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
60 | allCaptureDevices
61 | .filter { $0.position == .back }
/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/ScanKit/ScanKitCamera.swift:64:34: error: 'AVCaptureDevice' is unavailable in watchOS
62 | }
63 |
64 | private var captureDevices: [AVCaptureDevice] {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
65 | var devices = [AVCaptureDevice]()
66 | #if os(macOS) || (os(iOS) && targetEnvironment(macCatalyst))
/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/ScanKit/ScanKitCamera.swift:80:43: error: 'AVCaptureDevice' is unavailable in watchOS
78 |
79 | /// All capture devices, reduced from `captureDevices`, that are both available and not suspended.
80 | private var availableCaptureDevices: [AVCaptureDevice] {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
81 | captureDevices
82 | .filter( { $0.isConnected } )
/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/ScanKit/ScanKitCamera.swift:87:32: error: 'AVCaptureDevice' is unavailable in watchOS
85 |
86 | /// The capture device in use.
87 | private var captureDevice: AVCaptureDevice? {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
88 | didSet {
89 | guard let captureDevice = captureDevice 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/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/ScanKit/ScanKitCamera.swift:203:65: error: 'AVCaptureDevice' is unavailable in watchOS
201 | }
202 |
203 | private func updateSessionForCaptureDevice(_ captureDevice: AVCaptureDevice) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
204 | guard isCaptureSessionConfigured else { return }
205 |
/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/ScanKit/ScanKitCamera.swift:270:41: error: 'AVCaptureDevice' is unavailable in watchOS
268 | /// - Parameter device: A capture device to get the input of.
269 | /// - Returns: An associated `AVCaptureDeviceInput` if any, else `nil`.
270 | private func deviceInputFor(device: AVCaptureDevice?) -> AVCaptureDeviceInput? {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
271 | guard let validDevice = device else { return nil }
272 | do {
/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/ScanKit/ScanKitCamera.swift:270:62: error: 'AVCaptureDeviceInput' is unavailable in watchOS
268 | /// - Parameter device: A capture device to get the input of.
269 | /// - Returns: An associated `AVCaptureDeviceInput` if any, else `nil`.
270 | private func deviceInputFor(device: AVCaptureDevice?) -> AVCaptureDeviceInput? {
| `- error: 'AVCaptureDeviceInput' is unavailable in watchOS
271 | guard let validDevice = device else { return nil }
272 | do {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureInput.h:182:12: note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
180 | */
181 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
182 | @interface AVCaptureDeviceInput : AVCaptureInput
| `- note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
183 | {
184 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:350:28: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
348 |
349 | /// The preview layer with a graviety of `resizeAspectFill`.
350 | lazy var previewLayer: AVCaptureVideoPreviewLayer = {
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
351 | let preview = AVCaptureVideoPreviewLayer(session: self.captureSession)
352 | preview.videoGravity = .resizeAspectFill
/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/ScanKit/ScanKitCamera.swift:351:23: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
349 | /// The preview layer with a graviety of `resizeAspectFill`.
350 | lazy var previewLayer: AVCaptureVideoPreviewLayer = {
351 | let preview = AVCaptureVideoPreviewLayer(session: self.captureSession)
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
352 | preview.videoGravity = .resizeAspectFill
353 | return preview
/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/ScanKit/ScanKitCamera.swift:352:33: error: 'resizeAspectFill' is unavailable in watchOS
350 | lazy var previewLayer: AVCaptureVideoPreviewLayer = {
351 | let preview = AVCaptureVideoPreviewLayer(session: self.captureSession)
352 | preview.videoGravity = .resizeAspectFill
| `- error: 'resizeAspectFill' is unavailable in watchOS
353 | return preview
354 | }()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVAnimation.h:40:38: note: 'resizeAspectFill' has been explicitly marked unavailable here
38 | property of an AVPlayerLayer or AVCaptureVideoPreviewLayer instance.
39 | */
40 | AVF_EXPORT AVLayerVideoGravity const AVLayerVideoGravityResizeAspectFill API_AVAILABLE(macos(10.7), ios(4.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos);
| `- note: 'resizeAspectFill' has been explicitly marked unavailable here
41 |
42 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:361:35: error: cannot find 'VNSequenceRequestHandler' in scope
359 | // At 30fps, that would be nearly ten million millennium. <- Fun Fact!
360 | private var visionIterator: UInt64 = 0
361 | private let sequenceHandler = VNSequenceRequestHandler()
| `- error: cannot find 'VNSequenceRequestHandler' in scope
362 |
363 | /// A Boolean value indicating whether or not the camera is scanning for machine readable codes.
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:368:27: error: cannot find type 'VNBarcodeSymbology' in scope
366 | /// The current symbology being detected by the camera.
367 | /// Use the ``supportedSymbologies`` property to indicate the specific symbologies the request detects.
368 | public var symbology: VNBarcodeSymbology = .qr
| `- error: cannot find type 'VNBarcodeSymbology' in scope
369 |
370 | /// An array of symbologies supported by the scanner.
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:371:39: error: cannot find type 'VNBarcodeSymbology' in scope
369 |
370 | /// An array of symbologies supported by the scanner.
371 | public var supportedSymbologies: [VNBarcodeSymbology] {
| `- error: cannot find type 'VNBarcodeSymbology' in scope
372 | VNDetectBarcodesRequest.supportedSymbologies
373 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:376:41: error: 'AVCaptureOutput' is unavailable in watchOS
374 |
375 | /// A method of `AVCaptureVideoDataOutputSampleBufferDelegate` that, for the purposes of this class, processes `Vision` requests.
376 | public func captureOutput(_ output: AVCaptureOutput, didOutput sampleBuffer: CMSampleBuffer, from connection: AVCaptureConnection) {
| `- error: 'AVCaptureOutput' is unavailable in watchOS
377 | // Only process every tenth frame when scanning is true
378 | visionIterator += 1
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureOutputBase.h:35:12: note: 'AVCaptureOutput' has been explicitly marked unavailable here
33 | */
34 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
35 | @interface AVCaptureOutput : NSObject
| `- note: 'AVCaptureOutput' has been explicitly marked unavailable here
36 | {
37 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:376:115: error: 'AVCaptureConnection' is unavailable in watchOS
374 |
375 | /// A method of `AVCaptureVideoDataOutputSampleBufferDelegate` that, for the purposes of this class, processes `Vision` requests.
376 | public func captureOutput(_ output: AVCaptureOutput, didOutput sampleBuffer: CMSampleBuffer, from connection: AVCaptureConnection) {
| `- error: 'AVCaptureConnection' is unavailable in watchOS
377 | // Only process every tenth frame when scanning is true
378 | visionIterator += 1
/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/ScanKit/ScanKitCamera.swift:397:47: error: cannot find type 'VNBarcodeSymbology' in scope
395 | /// - candidate: A `CVImageBuffer` frame that may potentially contain an instance of the defined `symbology`.
396 | /// - Returns: The data encoded as the symbology, if any.
397 | private func detectSymbology(_ symbology: VNBarcodeSymbology, from candidate: CVImageBuffer) -> String? {
| `- error: cannot find type 'VNBarcodeSymbology' in scope
398 | let barcodeRequest = VNDetectBarcodesRequest()
399 | barcodeRequest.symbologies = [.qr]
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:34:57: error: 'AVCaptureVideoDataOutputSampleBufferDelegate' is unavailable in watchOS
32 | fileprivate let logger = Logger(subsystem: Bundle.main.bundleIdentifier ?? "dev.fromshawn.scankit", category: "ScanKitCamera")
33 |
34 | public class ScanKitCamera: NSObject, ObservableObject, AVCaptureVideoDataOutputSampleBufferDelegate {
| `- error: 'AVCaptureVideoDataOutputSampleBufferDelegate' is unavailable in watchOS
35 | private let captureSession = AVCaptureSession()
36 | private var isCaptureSessionConfigured: Bool = 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/AVCaptureVideoDataOutput.h:289:11: note: 'AVCaptureVideoDataOutputSampleBufferDelegate' has been explicitly marked unavailable here
287 | */
288 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
289 | @protocol AVCaptureVideoDataOutputSampleBufferDelegate <NSObject>
| `- note: 'AVCaptureVideoDataOutputSampleBufferDelegate' has been explicitly marked unavailable here
290 |
291 | @optional
Failed frontend command:
SwiftCompile normal arm64_32 (in target 'ScanKit' from project 'ScanKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/NSScanKitPreview.swift /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKit.swift /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/UIScanKitPreview.swift -target arm64_32-apple-watchos9.0 -disable-cross-import-overlay-search -swift-module-cross-import Vision /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Vision.framework/Modules/Vision.swiftcrossimport/FoundationModels.swiftoverlay -swift-module-cross-import Vision /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/Vision.framework/Modules/Vision.swiftcrossimport/FoundationModels.swiftoverlay -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/ScanKit.build/Debug-watchos/ScanKit-t.build/Objects-normal/arm64_32/ScanKit-dependencies-2.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/ScanKit.build/Debug-watchos/ScanKit-t.build/DerivedSources-normal/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanKit.build/Debug-watchos/ScanKit-t.build/DerivedSources/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanKit.build/Debug-watchos/ScanKit-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name ScanKit -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanKit.build/Debug-watchos/ScanKit-t.build/Objects-normal/arm64_32/ScanKit_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/ScanKit.build/Debug-watchos/ScanKit-t.build/Objects-normal/arm64_32/ScanKit.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanKit.build/Debug-watchos/ScanKit-t.build/Objects-normal/arm64_32/ScanKit.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanKit.build/Debug-watchos/ScanKit-t.build/Objects-normal/arm64_32/ScanKit-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanKit.build/Debug-watchos/ScanKit-t.build/Objects-normal/arm64_32/ScanKit-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanKit.build/Debug-watchos/ScanKit-t.build/Objects-normal/arm64_32/ScanKit-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanKit.build/Debug-watchos/ScanKit-t.build/Objects-normal/arm64_32/ScanKit.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScanKit.build/Debug-watchos/ScanKit-t.build/Objects-normal/arm64_32/ScanKit.abi.json
SwiftCompile normal arm64 Compiling\ NSScanKitPreview.swift /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/NSScanKitPreview.swift (in target 'ScanKit' from project 'ScanKit')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/NSScanKitPreview.swift (in target 'ScanKit' from project 'ScanKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile NSScanKitPreview.swift
SwiftCompile normal arm64_32 Compiling\ NSScanKitPreview.swift /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/NSScanKitPreview.swift (in target 'ScanKit' from project 'ScanKit')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/NSScanKitPreview.swift (in target 'ScanKit' from project 'ScanKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile NSScanKitPreview.swift
SwiftCompile normal arm64_32 Compiling\ ScanKit.swift /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKit.swift (in target 'ScanKit' from project 'ScanKit')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKit.swift (in target 'ScanKit' from project 'ScanKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ScanKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKit.swift:63:32: error: cannot find type 'VNBarcodeSymbology' in scope
61 | /// - completion: A completion handler that returns a `Result` of either `String` when information has been found
62 | /// and can be decoded or `ScanKitError` when an error occurs.
63 | public init(for symbology: VNBarcodeSymbology,
| `- error: cannot find type 'VNBarcodeSymbology' in scope
64 | showViewfinder: Bool = true,
65 | isScanning: Binding<Bool>,
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKit.swift:183:62: error: cannot find type 'VNBarcodeSymbology' in scope
181 | /// - symbology: The `symbology` of code to search for.
182 | /// - Returns: An array of `String` containing any decoded results.
183 | static func decodeImage(cgImage: CGImage, for symbology: VNBarcodeSymbology) async -> [String] {
| `- error: cannot find type 'VNBarcodeSymbology' in scope
184 | var results: [String] = []
185 | let handler = VNImageRequestHandler(cgImage: cgImage)
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKit.swift:79:21: error: cannot find 'ScanKitPreview' in scope
77 | // If iOS15+ we'll watch for changes in scanning with a Task.
78 | if #available(iOS 15.0, macOS 12.0, *) {
79 | ScanKitPreview(camera: camera)
| `- error: cannot find 'ScanKitPreview' in scope
80 | .task(id: scanning) {
81 | camera.isScanning = scanning
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKit.swift:94:21: error: cannot find 'ScanKitPreview' in scope
92 | // Otherwise, we have to initiate the result stream onAppear and re-evaluate it during changes to scanning.
93 | } else {
94 | ScanKitPreview(camera: camera)
| `- error: cannot find 'ScanKitPreview' in scope
95 | .onAppear {
96 | if scanning {
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKit.swift:185:23: error: cannot find 'VNImageRequestHandler' in scope
183 | static func decodeImage(cgImage: CGImage, for symbology: VNBarcodeSymbology) async -> [String] {
184 | var results: [String] = []
185 | let handler = VNImageRequestHandler(cgImage: cgImage)
| `- error: cannot find 'VNImageRequestHandler' in scope
186 | let request = VNDetectBarcodesRequest { (request,error) in
187 | if error != nil {
SwiftCompile normal arm64_32 Compiling\ UIScanKitPreview.swift /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/UIScanKitPreview.swift (in target 'ScanKit' from project 'ScanKit')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/UIScanKitPreview.swift (in target 'ScanKit' from project 'ScanKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile UIScanKitPreview.swift
SwiftCompile normal arm64_32 Compiling\ ScanKitCamera.swift /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift (in target 'ScanKit' from project 'ScanKit')
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:35:34: error: 'AVCaptureSession' is unavailable in watchOS
33 |
34 | public class ScanKitCamera: NSObject, ObservableObject, AVCaptureVideoDataOutputSampleBufferDelegate {
35 | private let captureSession = AVCaptureSession()
| `- error: 'AVCaptureSession' is unavailable in watchOS
36 | private var isCaptureSessionConfigured: Bool = false
37 | weak private var deviceInput: AVCaptureDeviceInput?
/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/ScanKit/ScanKitCamera.swift:37:35: error: 'AVCaptureDeviceInput' is unavailable in watchOS
35 | private let captureSession = AVCaptureSession()
36 | private var isCaptureSessionConfigured: Bool = false
37 | weak private var deviceInput: AVCaptureDeviceInput?
| `- error: 'AVCaptureDeviceInput' is unavailable in watchOS
38 | weak private var videoOutput: AVCaptureVideoDataOutput?
39 | private var sessionQueue: DispatchQueue = DispatchQueue(label: "ScanKitCameraQueue")
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureInput.h:182:12: note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
180 | */
181 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
182 | @interface AVCaptureDeviceInput : AVCaptureInput
| `- note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
183 | {
184 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:38:35: error: 'AVCaptureVideoDataOutput' is unavailable in watchOS
36 | private var isCaptureSessionConfigured: Bool = false
37 | weak private var deviceInput: AVCaptureDeviceInput?
38 | weak private var videoOutput: AVCaptureVideoDataOutput?
| `- error: 'AVCaptureVideoDataOutput' is unavailable in watchOS
39 | private var sessionQueue: DispatchQueue = DispatchQueue(label: "ScanKitCameraQueue")
40 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureVideoDataOutput.h:31:12: note: 'AVCaptureVideoDataOutput' has been explicitly marked unavailable here
29 | */
30 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
31 | @interface AVCaptureVideoDataOutput : AVCaptureOutput
| `- note: 'AVCaptureVideoDataOutput' has been explicitly marked unavailable here
32 | {
33 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:44:37: error: 'AVCaptureDevice' is unavailable in watchOS
42 |
43 | /// Results of a comprehensive capture device discovery session.
44 | private var allCaptureDevices: [AVCaptureDevice] {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
45 | #if os(iOS)
46 | AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInTrueDepthCamera, .builtInDualCamera, .builtInDualWideCamera, .builtInWideAngleCamera, .builtInDualWideCamera], mediaType: .video, position: .unspecified).devices
/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/ScanKit/ScanKitCamera.swift:53:39: error: 'AVCaptureDevice' is unavailable in watchOS
51 |
52 | /// The results of `allCaptureDevices` reduced to only those positioned at `.front`.
53 | private var frontCaptureDevices: [AVCaptureDevice] {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
54 | allCaptureDevices
55 | .filter { $0.position == .front }
/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/ScanKit/ScanKitCamera.swift:59:38: error: 'AVCaptureDevice' is unavailable in watchOS
57 |
58 | /// The results of `allCaptureDevices` reduced to only those positioned at `.back`.
59 | private var backCaptureDevices: [AVCaptureDevice] {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
60 | allCaptureDevices
61 | .filter { $0.position == .back }
/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/ScanKit/ScanKitCamera.swift:64:34: error: 'AVCaptureDevice' is unavailable in watchOS
62 | }
63 |
64 | private var captureDevices: [AVCaptureDevice] {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
65 | var devices = [AVCaptureDevice]()
66 | #if os(macOS) || (os(iOS) && targetEnvironment(macCatalyst))
/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/ScanKit/ScanKitCamera.swift:80:43: error: 'AVCaptureDevice' is unavailable in watchOS
78 |
79 | /// All capture devices, reduced from `captureDevices`, that are both available and not suspended.
80 | private var availableCaptureDevices: [AVCaptureDevice] {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
81 | captureDevices
82 | .filter( { $0.isConnected } )
/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/ScanKit/ScanKitCamera.swift:87:32: error: 'AVCaptureDevice' is unavailable in watchOS
85 |
86 | /// The capture device in use.
87 | private var captureDevice: AVCaptureDevice? {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
88 | didSet {
89 | guard let captureDevice = captureDevice 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/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/ScanKit/ScanKitCamera.swift:203:65: error: 'AVCaptureDevice' is unavailable in watchOS
201 | }
202 |
203 | private func updateSessionForCaptureDevice(_ captureDevice: AVCaptureDevice) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
204 | guard isCaptureSessionConfigured else { return }
205 |
/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/ScanKit/ScanKitCamera.swift:270:41: error: 'AVCaptureDevice' is unavailable in watchOS
268 | /// - Parameter device: A capture device to get the input of.
269 | /// - Returns: An associated `AVCaptureDeviceInput` if any, else `nil`.
270 | private func deviceInputFor(device: AVCaptureDevice?) -> AVCaptureDeviceInput? {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
271 | guard let validDevice = device else { return nil }
272 | do {
/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/ScanKit/ScanKitCamera.swift:270:62: error: 'AVCaptureDeviceInput' is unavailable in watchOS
268 | /// - Parameter device: A capture device to get the input of.
269 | /// - Returns: An associated `AVCaptureDeviceInput` if any, else `nil`.
270 | private func deviceInputFor(device: AVCaptureDevice?) -> AVCaptureDeviceInput? {
| `- error: 'AVCaptureDeviceInput' is unavailable in watchOS
271 | guard let validDevice = device else { return nil }
272 | do {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureInput.h:182:12: note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
180 | */
181 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
182 | @interface AVCaptureDeviceInput : AVCaptureInput
| `- note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
183 | {
184 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:350:28: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
348 |
349 | /// The preview layer with a graviety of `resizeAspectFill`.
350 | lazy var previewLayer: AVCaptureVideoPreviewLayer = {
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
351 | let preview = AVCaptureVideoPreviewLayer(session: self.captureSession)
352 | preview.videoGravity = .resizeAspectFill
/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/ScanKit/ScanKitCamera.swift:351:23: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
349 | /// The preview layer with a graviety of `resizeAspectFill`.
350 | lazy var previewLayer: AVCaptureVideoPreviewLayer = {
351 | let preview = AVCaptureVideoPreviewLayer(session: self.captureSession)
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
352 | preview.videoGravity = .resizeAspectFill
353 | return preview
/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/ScanKit/ScanKitCamera.swift:352:33: error: 'resizeAspectFill' is unavailable in watchOS
350 | lazy var previewLayer: AVCaptureVideoPreviewLayer = {
351 | let preview = AVCaptureVideoPreviewLayer(session: self.captureSession)
352 | preview.videoGravity = .resizeAspectFill
| `- error: 'resizeAspectFill' is unavailable in watchOS
353 | return preview
354 | }()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVAnimation.h:40:38: note: 'resizeAspectFill' has been explicitly marked unavailable here
38 | property of an AVPlayerLayer or AVCaptureVideoPreviewLayer instance.
39 | */
40 | AVF_EXPORT AVLayerVideoGravity const AVLayerVideoGravityResizeAspectFill API_AVAILABLE(macos(10.7), ios(4.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos);
| `- note: 'resizeAspectFill' has been explicitly marked unavailable here
41 |
42 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:361:35: error: cannot find 'VNSequenceRequestHandler' in scope
359 | // At 30fps, that would be nearly ten million millennium. <- Fun Fact!
360 | private var visionIterator: UInt64 = 0
361 | private let sequenceHandler = VNSequenceRequestHandler()
| `- error: cannot find 'VNSequenceRequestHandler' in scope
362 |
363 | /// A Boolean value indicating whether or not the camera is scanning for machine readable codes.
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:368:27: error: cannot find type 'VNBarcodeSymbology' in scope
366 | /// The current symbology being detected by the camera.
367 | /// Use the ``supportedSymbologies`` property to indicate the specific symbologies the request detects.
368 | public var symbology: VNBarcodeSymbology = .qr
| `- error: cannot find type 'VNBarcodeSymbology' in scope
369 |
370 | /// An array of symbologies supported by the scanner.
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:371:39: error: cannot find type 'VNBarcodeSymbology' in scope
369 |
370 | /// An array of symbologies supported by the scanner.
371 | public var supportedSymbologies: [VNBarcodeSymbology] {
| `- error: cannot find type 'VNBarcodeSymbology' in scope
372 | VNDetectBarcodesRequest.supportedSymbologies
373 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:376:41: error: 'AVCaptureOutput' is unavailable in watchOS
374 |
375 | /// A method of `AVCaptureVideoDataOutputSampleBufferDelegate` that, for the purposes of this class, processes `Vision` requests.
376 | public func captureOutput(_ output: AVCaptureOutput, didOutput sampleBuffer: CMSampleBuffer, from connection: AVCaptureConnection) {
| `- error: 'AVCaptureOutput' is unavailable in watchOS
377 | // Only process every tenth frame when scanning is true
378 | visionIterator += 1
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureOutputBase.h:35:12: note: 'AVCaptureOutput' has been explicitly marked unavailable here
33 | */
34 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
35 | @interface AVCaptureOutput : NSObject
| `- note: 'AVCaptureOutput' has been explicitly marked unavailable here
36 | {
37 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:376:115: error: 'AVCaptureConnection' is unavailable in watchOS
374 |
375 | /// A method of `AVCaptureVideoDataOutputSampleBufferDelegate` that, for the purposes of this class, processes `Vision` requests.
376 | public func captureOutput(_ output: AVCaptureOutput, didOutput sampleBuffer: CMSampleBuffer, from connection: AVCaptureConnection) {
| `- error: 'AVCaptureConnection' is unavailable in watchOS
377 | // Only process every tenth frame when scanning is true
378 | visionIterator += 1
/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/ScanKit/ScanKitCamera.swift:397:47: error: cannot find type 'VNBarcodeSymbology' in scope
395 | /// - candidate: A `CVImageBuffer` frame that may potentially contain an instance of the defined `symbology`.
396 | /// - Returns: The data encoded as the symbology, if any.
397 | private func detectSymbology(_ symbology: VNBarcodeSymbology, from candidate: CVImageBuffer) -> String? {
| `- error: cannot find type 'VNBarcodeSymbology' in scope
398 | let barcodeRequest = VNDetectBarcodesRequest()
399 | barcodeRequest.symbologies = [.qr]
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:34:57: error: 'AVCaptureVideoDataOutputSampleBufferDelegate' is unavailable in watchOS
32 | fileprivate let logger = Logger(subsystem: Bundle.main.bundleIdentifier ?? "dev.fromshawn.scankit", category: "ScanKitCamera")
33 |
34 | public class ScanKitCamera: NSObject, ObservableObject, AVCaptureVideoDataOutputSampleBufferDelegate {
| `- error: 'AVCaptureVideoDataOutputSampleBufferDelegate' is unavailable in watchOS
35 | private let captureSession = AVCaptureSession()
36 | private var isCaptureSessionConfigured: Bool = 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/AVCaptureVideoDataOutput.h:289:11: note: 'AVCaptureVideoDataOutputSampleBufferDelegate' has been explicitly marked unavailable here
287 | */
288 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
289 | @protocol AVCaptureVideoDataOutputSampleBufferDelegate <NSObject>
| `- note: 'AVCaptureVideoDataOutputSampleBufferDelegate' has been explicitly marked unavailable here
290 |
291 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:48:9: error: 'AVCaptureDevice' is unavailable in watchOS
46 | AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInTrueDepthCamera, .builtInDualCamera, .builtInDualWideCamera, .builtInWideAngleCamera, .builtInDualWideCamera], mediaType: .video, position: .unspecified).devices
47 | #else
48 | AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInWideAngleCamera, .externalUnknown], mediaType: .video, position: .unspecified).devices
| `- error: 'AVCaptureDevice' is unavailable in watchOS
49 | #endif
50 | }
/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/ScanKit/ScanKitCamera.swift:48:57: error: 'builtInWideAngleCamera' is unavailable in watchOS
46 | AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInTrueDepthCamera, .builtInDualCamera, .builtInDualWideCamera, .builtInWideAngleCamera, .builtInDualWideCamera], mediaType: .video, position: .unspecified).devices
47 | #else
48 | AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInWideAngleCamera, .externalUnknown], mediaType: .video, position: .unspecified).devices
| `- error: 'builtInWideAngleCamera' is unavailable in watchOS
49 | #endif
50 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:562:38: note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
560 | A built-in wide angle camera device. These devices are suitable for general purpose use.
561 | */
562 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInWideAngleCamera API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0), visionos(2.1)) API_UNAVAILABLE(watchos);
| `- note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
563 |
564 | /*!
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift (in target 'ScanKit' from project 'ScanKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ScanKitCamera.swift
SwiftCompile normal arm64 Compiling\ UIScanKitPreview.swift /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/UIScanKitPreview.swift (in target 'ScanKit' from project 'ScanKit')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/UIScanKitPreview.swift (in target 'ScanKit' from project 'ScanKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile UIScanKitPreview.swift
SwiftCompile normal arm64 Compiling\ ScanKitCamera.swift /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift (in target 'ScanKit' from project 'ScanKit')
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:35:34: error: 'AVCaptureSession' is unavailable in watchOS
33 |
34 | public class ScanKitCamera: NSObject, ObservableObject, AVCaptureVideoDataOutputSampleBufferDelegate {
35 | private let captureSession = AVCaptureSession()
| `- error: 'AVCaptureSession' is unavailable in watchOS
36 | private var isCaptureSessionConfigured: Bool = false
37 | weak private var deviceInput: AVCaptureDeviceInput?
/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/ScanKit/ScanKitCamera.swift:37:35: error: 'AVCaptureDeviceInput' is unavailable in watchOS
35 | private let captureSession = AVCaptureSession()
36 | private var isCaptureSessionConfigured: Bool = false
37 | weak private var deviceInput: AVCaptureDeviceInput?
| `- error: 'AVCaptureDeviceInput' is unavailable in watchOS
38 | weak private var videoOutput: AVCaptureVideoDataOutput?
39 | private var sessionQueue: DispatchQueue = DispatchQueue(label: "ScanKitCameraQueue")
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureInput.h:182:12: note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
180 | */
181 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
182 | @interface AVCaptureDeviceInput : AVCaptureInput
| `- note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
183 | {
184 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:38:35: error: 'AVCaptureVideoDataOutput' is unavailable in watchOS
36 | private var isCaptureSessionConfigured: Bool = false
37 | weak private var deviceInput: AVCaptureDeviceInput?
38 | weak private var videoOutput: AVCaptureVideoDataOutput?
| `- error: 'AVCaptureVideoDataOutput' is unavailable in watchOS
39 | private var sessionQueue: DispatchQueue = DispatchQueue(label: "ScanKitCameraQueue")
40 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureVideoDataOutput.h:31:12: note: 'AVCaptureVideoDataOutput' has been explicitly marked unavailable here
29 | */
30 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
31 | @interface AVCaptureVideoDataOutput : AVCaptureOutput
| `- note: 'AVCaptureVideoDataOutput' has been explicitly marked unavailable here
32 | {
33 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:44:37: error: 'AVCaptureDevice' is unavailable in watchOS
42 |
43 | /// Results of a comprehensive capture device discovery session.
44 | private var allCaptureDevices: [AVCaptureDevice] {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
45 | #if os(iOS)
46 | AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInTrueDepthCamera, .builtInDualCamera, .builtInDualWideCamera, .builtInWideAngleCamera, .builtInDualWideCamera], mediaType: .video, position: .unspecified).devices
/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/ScanKit/ScanKitCamera.swift:53:39: error: 'AVCaptureDevice' is unavailable in watchOS
51 |
52 | /// The results of `allCaptureDevices` reduced to only those positioned at `.front`.
53 | private var frontCaptureDevices: [AVCaptureDevice] {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
54 | allCaptureDevices
55 | .filter { $0.position == .front }
/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/ScanKit/ScanKitCamera.swift:59:38: error: 'AVCaptureDevice' is unavailable in watchOS
57 |
58 | /// The results of `allCaptureDevices` reduced to only those positioned at `.back`.
59 | private var backCaptureDevices: [AVCaptureDevice] {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
60 | allCaptureDevices
61 | .filter { $0.position == .back }
/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/ScanKit/ScanKitCamera.swift:64:34: error: 'AVCaptureDevice' is unavailable in watchOS
62 | }
63 |
64 | private var captureDevices: [AVCaptureDevice] {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
65 | var devices = [AVCaptureDevice]()
66 | #if os(macOS) || (os(iOS) && targetEnvironment(macCatalyst))
/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/ScanKit/ScanKitCamera.swift:80:43: error: 'AVCaptureDevice' is unavailable in watchOS
78 |
79 | /// All capture devices, reduced from `captureDevices`, that are both available and not suspended.
80 | private var availableCaptureDevices: [AVCaptureDevice] {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
81 | captureDevices
82 | .filter( { $0.isConnected } )
/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/ScanKit/ScanKitCamera.swift:87:32: error: 'AVCaptureDevice' is unavailable in watchOS
85 |
86 | /// The capture device in use.
87 | private var captureDevice: AVCaptureDevice? {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
88 | didSet {
89 | guard let captureDevice = captureDevice 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/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/ScanKit/ScanKitCamera.swift:203:65: error: 'AVCaptureDevice' is unavailable in watchOS
201 | }
202 |
203 | private func updateSessionForCaptureDevice(_ captureDevice: AVCaptureDevice) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
204 | guard isCaptureSessionConfigured else { return }
205 |
/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/ScanKit/ScanKitCamera.swift:270:41: error: 'AVCaptureDevice' is unavailable in watchOS
268 | /// - Parameter device: A capture device to get the input of.
269 | /// - Returns: An associated `AVCaptureDeviceInput` if any, else `nil`.
270 | private func deviceInputFor(device: AVCaptureDevice?) -> AVCaptureDeviceInput? {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
271 | guard let validDevice = device else { return nil }
272 | do {
/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/ScanKit/ScanKitCamera.swift:270:62: error: 'AVCaptureDeviceInput' is unavailable in watchOS
268 | /// - Parameter device: A capture device to get the input of.
269 | /// - Returns: An associated `AVCaptureDeviceInput` if any, else `nil`.
270 | private func deviceInputFor(device: AVCaptureDevice?) -> AVCaptureDeviceInput? {
| `- error: 'AVCaptureDeviceInput' is unavailable in watchOS
271 | guard let validDevice = device else { return nil }
272 | do {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureInput.h:182:12: note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
180 | */
181 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
182 | @interface AVCaptureDeviceInput : AVCaptureInput
| `- note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
183 | {
184 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:350:28: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
348 |
349 | /// The preview layer with a graviety of `resizeAspectFill`.
350 | lazy var previewLayer: AVCaptureVideoPreviewLayer = {
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
351 | let preview = AVCaptureVideoPreviewLayer(session: self.captureSession)
352 | preview.videoGravity = .resizeAspectFill
/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/ScanKit/ScanKitCamera.swift:351:23: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
349 | /// The preview layer with a graviety of `resizeAspectFill`.
350 | lazy var previewLayer: AVCaptureVideoPreviewLayer = {
351 | let preview = AVCaptureVideoPreviewLayer(session: self.captureSession)
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
352 | preview.videoGravity = .resizeAspectFill
353 | return preview
/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/ScanKit/ScanKitCamera.swift:352:33: error: 'resizeAspectFill' is unavailable in watchOS
350 | lazy var previewLayer: AVCaptureVideoPreviewLayer = {
351 | let preview = AVCaptureVideoPreviewLayer(session: self.captureSession)
352 | preview.videoGravity = .resizeAspectFill
| `- error: 'resizeAspectFill' is unavailable in watchOS
353 | return preview
354 | }()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVAnimation.h:40:38: note: 'resizeAspectFill' has been explicitly marked unavailable here
38 | property of an AVPlayerLayer or AVCaptureVideoPreviewLayer instance.
39 | */
40 | AVF_EXPORT AVLayerVideoGravity const AVLayerVideoGravityResizeAspectFill API_AVAILABLE(macos(10.7), ios(4.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos);
| `- note: 'resizeAspectFill' has been explicitly marked unavailable here
41 |
42 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:361:35: error: cannot find 'VNSequenceRequestHandler' in scope
359 | // At 30fps, that would be nearly ten million millennium. <- Fun Fact!
360 | private var visionIterator: UInt64 = 0
361 | private let sequenceHandler = VNSequenceRequestHandler()
| `- error: cannot find 'VNSequenceRequestHandler' in scope
362 |
363 | /// A Boolean value indicating whether or not the camera is scanning for machine readable codes.
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:368:27: error: cannot find type 'VNBarcodeSymbology' in scope
366 | /// The current symbology being detected by the camera.
367 | /// Use the ``supportedSymbologies`` property to indicate the specific symbologies the request detects.
368 | public var symbology: VNBarcodeSymbology = .qr
| `- error: cannot find type 'VNBarcodeSymbology' in scope
369 |
370 | /// An array of symbologies supported by the scanner.
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:371:39: error: cannot find type 'VNBarcodeSymbology' in scope
369 |
370 | /// An array of symbologies supported by the scanner.
371 | public var supportedSymbologies: [VNBarcodeSymbology] {
| `- error: cannot find type 'VNBarcodeSymbology' in scope
372 | VNDetectBarcodesRequest.supportedSymbologies
373 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:376:41: error: 'AVCaptureOutput' is unavailable in watchOS
374 |
375 | /// A method of `AVCaptureVideoDataOutputSampleBufferDelegate` that, for the purposes of this class, processes `Vision` requests.
376 | public func captureOutput(_ output: AVCaptureOutput, didOutput sampleBuffer: CMSampleBuffer, from connection: AVCaptureConnection) {
| `- error: 'AVCaptureOutput' is unavailable in watchOS
377 | // Only process every tenth frame when scanning is true
378 | visionIterator += 1
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureOutputBase.h:35:12: note: 'AVCaptureOutput' has been explicitly marked unavailable here
33 | */
34 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
35 | @interface AVCaptureOutput : NSObject
| `- note: 'AVCaptureOutput' has been explicitly marked unavailable here
36 | {
37 | @private
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift (in target 'ScanKit' from project 'ScanKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ScanKitCamera.swift
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:376:115: error: 'AVCaptureConnection' is unavailable in watchOS
374 |
375 | /// A method of `AVCaptureVideoDataOutputSampleBufferDelegate` that, for the purposes of this class, processes `Vision` requests.
376 | public func captureOutput(_ output: AVCaptureOutput, didOutput sampleBuffer: CMSampleBuffer, from connection: AVCaptureConnection) {
| `- error: 'AVCaptureConnection' is unavailable in watchOS
377 | // Only process every tenth frame when scanning is true
378 | visionIterator += 1
/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/ScanKit/ScanKitCamera.swift:397:47: error: cannot find type 'VNBarcodeSymbology' in scope
395 | /// - candidate: A `CVImageBuffer` frame that may potentially contain an instance of the defined `symbology`.
396 | /// - Returns: The data encoded as the symbology, if any.
397 | private func detectSymbology(_ symbology: VNBarcodeSymbology, from candidate: CVImageBuffer) -> String? {
| `- error: cannot find type 'VNBarcodeSymbology' in scope
398 | let barcodeRequest = VNDetectBarcodesRequest()
399 | barcodeRequest.symbologies = [.qr]
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:34:57: error: 'AVCaptureVideoDataOutputSampleBufferDelegate' is unavailable in watchOS
32 | fileprivate let logger = Logger(subsystem: Bundle.main.bundleIdentifier ?? "dev.fromshawn.scankit", category: "ScanKitCamera")
33 |
34 | public class ScanKitCamera: NSObject, ObservableObject, AVCaptureVideoDataOutputSampleBufferDelegate {
| `- error: 'AVCaptureVideoDataOutputSampleBufferDelegate' is unavailable in watchOS
35 | private let captureSession = AVCaptureSession()
36 | private var isCaptureSessionConfigured: Bool = 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/AVCaptureVideoDataOutput.h:289:11: note: 'AVCaptureVideoDataOutputSampleBufferDelegate' has been explicitly marked unavailable here
287 | */
288 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
289 | @protocol AVCaptureVideoDataOutputSampleBufferDelegate <NSObject>
| `- note: 'AVCaptureVideoDataOutputSampleBufferDelegate' has been explicitly marked unavailable here
290 |
291 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:48:9: error: 'AVCaptureDevice' is unavailable in watchOS
46 | AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInTrueDepthCamera, .builtInDualCamera, .builtInDualWideCamera, .builtInWideAngleCamera, .builtInDualWideCamera], mediaType: .video, position: .unspecified).devices
47 | #else
48 | AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInWideAngleCamera, .externalUnknown], mediaType: .video, position: .unspecified).devices
| `- error: 'AVCaptureDevice' is unavailable in watchOS
49 | #endif
50 | }
/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/ScanKit/ScanKitCamera.swift:48:57: error: 'builtInWideAngleCamera' is unavailable in watchOS
46 | AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInTrueDepthCamera, .builtInDualCamera, .builtInDualWideCamera, .builtInWideAngleCamera, .builtInDualWideCamera], mediaType: .video, position: .unspecified).devices
47 | #else
48 | AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInWideAngleCamera, .externalUnknown], mediaType: .video, position: .unspecified).devices
| `- error: 'builtInWideAngleCamera' is unavailable in watchOS
49 | #endif
50 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:562:38: note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
560 | A built-in wide angle camera device. These devices are suitable for general purpose use.
561 | */
562 | AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInWideAngleCamera API_AVAILABLE(macos(10.15), ios(10.0), macCatalyst(14.0), tvos(17.0), visionos(2.1)) API_UNAVAILABLE(watchos);
| `- note: 'builtInWideAngleCamera' has been explicitly marked unavailable here
563 |
564 | /*!
SwiftCompile normal arm64 Compiling\ ScanKit.swift /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKit.swift (in target 'ScanKit' from project 'ScanKit')
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKit.swift:63:32: error: cannot find type 'VNBarcodeSymbology' in scope
61 | /// - completion: A completion handler that returns a `Result` of either `String` when information has been found
62 | /// and can be decoded or `ScanKitError` when an error occurs.
63 | public init(for symbology: VNBarcodeSymbology,
| `- error: cannot find type 'VNBarcodeSymbology' in scope
64 | showViewfinder: Bool = true,
65 | isScanning: Binding<Bool>,
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKit.swift:183:62: error: cannot find type 'VNBarcodeSymbology' in scope
181 | /// - symbology: The `symbology` of code to search for.
182 | /// - Returns: An array of `String` containing any decoded results.
183 | static func decodeImage(cgImage: CGImage, for symbology: VNBarcodeSymbology) async -> [String] {
| `- error: cannot find type 'VNBarcodeSymbology' in scope
184 | var results: [String] = []
185 | let handler = VNImageRequestHandler(cgImage: cgImage)
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKit.swift:79:21: error: cannot find 'ScanKitPreview' in scope
77 | // If iOS15+ we'll watch for changes in scanning with a Task.
78 | if #available(iOS 15.0, macOS 12.0, *) {
79 | ScanKitPreview(camera: camera)
| `- error: cannot find 'ScanKitPreview' in scope
80 | .task(id: scanning) {
81 | camera.isScanning = scanning
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKit.swift:94:21: error: cannot find 'ScanKitPreview' in scope
92 | // Otherwise, we have to initiate the result stream onAppear and re-evaluate it during changes to scanning.
93 | } else {
94 | ScanKitPreview(camera: camera)
| `- error: cannot find 'ScanKitPreview' in scope
95 | .onAppear {
96 | if scanning {
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKit.swift:185:23: error: cannot find 'VNImageRequestHandler' in scope
183 | static func decodeImage(cgImage: CGImage, for symbology: VNBarcodeSymbology) async -> [String] {
184 | var results: [String] = []
185 | let handler = VNImageRequestHandler(cgImage: cgImage)
| `- error: cannot find 'VNImageRequestHandler' in scope
186 | let request = VNDetectBarcodesRequest { (request,error) in
187 | if error != nil {
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKit.swift (in target 'ScanKit' from project 'ScanKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ScanKit.swift
SwiftEmitModule normal arm64 Emitting\ module\ for\ ScanKit (in target 'ScanKit' from project 'ScanKit')
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKit.swift:63:32: error: cannot find type 'VNBarcodeSymbology' in scope
61 | /// - completion: A completion handler that returns a `Result` of either `String` when information has been found
62 | /// and can be decoded or `ScanKitError` when an error occurs.
63 | public init(for symbology: VNBarcodeSymbology,
| `- error: cannot find type 'VNBarcodeSymbology' in scope
64 | showViewfinder: Bool = true,
65 | isScanning: Binding<Bool>,
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKit.swift:183:62: error: cannot find type 'VNBarcodeSymbology' in scope
181 | /// - symbology: The `symbology` of code to search for.
182 | /// - Returns: An array of `String` containing any decoded results.
183 | static func decodeImage(cgImage: CGImage, for symbology: VNBarcodeSymbology) async -> [String] {
| `- error: cannot find type 'VNBarcodeSymbology' in scope
184 | var results: [String] = []
185 | let handler = VNImageRequestHandler(cgImage: cgImage)
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:35:34: error: 'AVCaptureSession' is unavailable in watchOS
33 |
34 | public class ScanKitCamera: NSObject, ObservableObject, AVCaptureVideoDataOutputSampleBufferDelegate {
35 | private let captureSession = AVCaptureSession()
| `- error: 'AVCaptureSession' is unavailable in watchOS
36 | private var isCaptureSessionConfigured: Bool = false
37 | weak private var deviceInput: AVCaptureDeviceInput?
/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/ScanKit/ScanKitCamera.swift:37:35: error: 'AVCaptureDeviceInput' is unavailable in watchOS
35 | private let captureSession = AVCaptureSession()
36 | private var isCaptureSessionConfigured: Bool = false
37 | weak private var deviceInput: AVCaptureDeviceInput?
| `- error: 'AVCaptureDeviceInput' is unavailable in watchOS
38 | weak private var videoOutput: AVCaptureVideoDataOutput?
39 | private var sessionQueue: DispatchQueue = DispatchQueue(label: "ScanKitCameraQueue")
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureInput.h:182:12: note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
180 | */
181 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
182 | @interface AVCaptureDeviceInput : AVCaptureInput
| `- note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
183 | {
184 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:38:35: error: 'AVCaptureVideoDataOutput' is unavailable in watchOS
36 | private var isCaptureSessionConfigured: Bool = false
37 | weak private var deviceInput: AVCaptureDeviceInput?
38 | weak private var videoOutput: AVCaptureVideoDataOutput?
| `- error: 'AVCaptureVideoDataOutput' is unavailable in watchOS
39 | private var sessionQueue: DispatchQueue = DispatchQueue(label: "ScanKitCameraQueue")
40 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureVideoDataOutput.h:31:12: note: 'AVCaptureVideoDataOutput' has been explicitly marked unavailable here
29 | */
30 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
31 | @interface AVCaptureVideoDataOutput : AVCaptureOutput
| `- note: 'AVCaptureVideoDataOutput' has been explicitly marked unavailable here
32 | {
33 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:44:37: error: 'AVCaptureDevice' is unavailable in watchOS
42 |
43 | /// Results of a comprehensive capture device discovery session.
44 | private var allCaptureDevices: [AVCaptureDevice] {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
45 | #if os(iOS)
46 | AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInTrueDepthCamera, .builtInDualCamera, .builtInDualWideCamera, .builtInWideAngleCamera, .builtInDualWideCamera], mediaType: .video, position: .unspecified).devices
/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/ScanKit/ScanKitCamera.swift:53:39: error: 'AVCaptureDevice' is unavailable in watchOS
51 |
52 | /// The results of `allCaptureDevices` reduced to only those positioned at `.front`.
53 | private var frontCaptureDevices: [AVCaptureDevice] {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
54 | allCaptureDevices
55 | .filter { $0.position == .front }
/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/ScanKit/ScanKitCamera.swift:59:38: error: 'AVCaptureDevice' is unavailable in watchOS
57 |
58 | /// The results of `allCaptureDevices` reduced to only those positioned at `.back`.
59 | private var backCaptureDevices: [AVCaptureDevice] {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
60 | allCaptureDevices
61 | .filter { $0.position == .back }
/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/ScanKit/ScanKitCamera.swift:64:34: error: 'AVCaptureDevice' is unavailable in watchOS
62 | }
63 |
64 | private var captureDevices: [AVCaptureDevice] {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
65 | var devices = [AVCaptureDevice]()
66 | #if os(macOS) || (os(iOS) && targetEnvironment(macCatalyst))
/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/ScanKit/ScanKitCamera.swift:80:43: error: 'AVCaptureDevice' is unavailable in watchOS
78 |
79 | /// All capture devices, reduced from `captureDevices`, that are both available and not suspended.
80 | private var availableCaptureDevices: [AVCaptureDevice] {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
81 | captureDevices
82 | .filter( { $0.isConnected } )
/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/ScanKit/ScanKitCamera.swift:87:32: error: 'AVCaptureDevice' is unavailable in watchOS
85 |
86 | /// The capture device in use.
87 | private var captureDevice: AVCaptureDevice? {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
88 | didSet {
89 | guard let captureDevice = captureDevice 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/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/ScanKit/ScanKitCamera.swift:203:65: error: 'AVCaptureDevice' is unavailable in watchOS
201 | }
202 |
203 | private func updateSessionForCaptureDevice(_ captureDevice: AVCaptureDevice) {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
204 | guard isCaptureSessionConfigured else { return }
205 |
/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/ScanKit/ScanKitCamera.swift:270:41: error: 'AVCaptureDevice' is unavailable in watchOS
268 | /// - Parameter device: A capture device to get the input of.
269 | /// - Returns: An associated `AVCaptureDeviceInput` if any, else `nil`.
270 | private func deviceInputFor(device: AVCaptureDevice?) -> AVCaptureDeviceInput? {
| `- error: 'AVCaptureDevice' is unavailable in watchOS
271 | guard let validDevice = device else { return nil }
272 | do {
/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/ScanKit/ScanKitCamera.swift:270:62: error: 'AVCaptureDeviceInput' is unavailable in watchOS
268 | /// - Parameter device: A capture device to get the input of.
269 | /// - Returns: An associated `AVCaptureDeviceInput` if any, else `nil`.
270 | private func deviceInputFor(device: AVCaptureDevice?) -> AVCaptureDeviceInput? {
| `- error: 'AVCaptureDeviceInput' is unavailable in watchOS
271 | guard let validDevice = device else { return nil }
272 | do {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureInput.h:182:12: note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
180 | */
181 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
182 | @interface AVCaptureDeviceInput : AVCaptureInput
| `- note: 'AVCaptureDeviceInput' has been explicitly marked unavailable here
183 | {
184 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:350:28: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
348 |
349 | /// The preview layer with a graviety of `resizeAspectFill`.
350 | lazy var previewLayer: AVCaptureVideoPreviewLayer = {
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
351 | let preview = AVCaptureVideoPreviewLayer(session: self.captureSession)
352 | preview.videoGravity = .resizeAspectFill
/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/ScanKit/ScanKitCamera.swift:351:23: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
349 | /// The preview layer with a graviety of `resizeAspectFill`.
350 | lazy var previewLayer: AVCaptureVideoPreviewLayer = {
351 | let preview = AVCaptureVideoPreviewLayer(session: self.captureSession)
| `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
352 | preview.videoGravity = .resizeAspectFill
353 | return preview
/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/ScanKit/ScanKitCamera.swift:352:33: error: 'resizeAspectFill' is unavailable in watchOS
350 | lazy var previewLayer: AVCaptureVideoPreviewLayer = {
351 | let preview = AVCaptureVideoPreviewLayer(session: self.captureSession)
352 | preview.videoGravity = .resizeAspectFill
| `- error: 'resizeAspectFill' is unavailable in watchOS
353 | return preview
354 | }()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVAnimation.h:40:38: note: 'resizeAspectFill' has been explicitly marked unavailable here
38 | property of an AVPlayerLayer or AVCaptureVideoPreviewLayer instance.
39 | */
40 | AVF_EXPORT AVLayerVideoGravity const AVLayerVideoGravityResizeAspectFill API_AVAILABLE(macos(10.7), ios(4.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos);
| `- note: 'resizeAspectFill' has been explicitly marked unavailable here
41 |
42 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:361:35: error: cannot find 'VNSequenceRequestHandler' in scope
359 | // At 30fps, that would be nearly ten million millennium. <- Fun Fact!
360 | private var visionIterator: UInt64 = 0
361 | private let sequenceHandler = VNSequenceRequestHandler()
| `- error: cannot find 'VNSequenceRequestHandler' in scope
362 |
363 | /// A Boolean value indicating whether or not the camera is scanning for machine readable codes.
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:368:27: error: cannot find type 'VNBarcodeSymbology' in scope
366 | /// The current symbology being detected by the camera.
367 | /// Use the ``supportedSymbologies`` property to indicate the specific symbologies the request detects.
368 | public var symbology: VNBarcodeSymbology = .qr
| `- error: cannot find type 'VNBarcodeSymbology' in scope
369 |
370 | /// An array of symbologies supported by the scanner.
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:371:39: error: cannot find type 'VNBarcodeSymbology' in scope
369 |
370 | /// An array of symbologies supported by the scanner.
371 | public var supportedSymbologies: [VNBarcodeSymbology] {
| `- error: cannot find type 'VNBarcodeSymbology' in scope
372 | VNDetectBarcodesRequest.supportedSymbologies
373 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:376:41: error: 'AVCaptureOutput' is unavailable in watchOS
374 |
375 | /// A method of `AVCaptureVideoDataOutputSampleBufferDelegate` that, for the purposes of this class, processes `Vision` requests.
376 | public func captureOutput(_ output: AVCaptureOutput, didOutput sampleBuffer: CMSampleBuffer, from connection: AVCaptureConnection) {
| `- error: 'AVCaptureOutput' is unavailable in watchOS
377 | // Only process every tenth frame when scanning is true
378 | visionIterator += 1
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureOutputBase.h:35:12: note: 'AVCaptureOutput' has been explicitly marked unavailable here
33 | */
34 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
35 | @interface AVCaptureOutput : NSObject
| `- note: 'AVCaptureOutput' has been explicitly marked unavailable here
36 | {
37 | @private
/Users/admin/builder/spi-builder-workspace/Sources/ScanKit/ScanKitCamera.swift:376:115: error: 'AVCaptureConnection' is unavailable in watchOS
374 |
375 | /// A method of `AVCaptureVideoDataOutputSampleBufferDelegate` that, for the purposes of this class, processes `Vision` requests.
376 | public func captureOutput(_ output: AVCaptureOutput, didOutput sampleBuffer: CMSampleBuffer, from connection: AVCaptureConnection) {
| `- error: 'AVCaptureConnection' is unavailable in watchOS
377 | // Only process every tenth frame when scanning is true
378 | visionIterator += 1
/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
SwiftCompile normal arm64 (in target 'ScanKit' from project 'ScanKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
2026-09-19 01:05:32.848 xcodebuild[819:4774] [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 'ScanKit' from project 'ScanKit')
SwiftEmitModule normal arm64_32 Emitting\ module\ for\ ScanKit (in target 'ScanKit' from project 'ScanKit')
Building workspace ScanKit with scheme ScanKit
(3 failures)
BUILD FAILURE 6.4 watchOS