The Swift Package Index logo.Swift Package Index

Build Information

Failed to build WWScanViewController, reference 1.0.1 (163921), with Swift 6.4 for watchOS using Xcode 27.0 on 20 Sep 2026 10:14:22 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 WWScanViewController -destination generic/platform=watchOS

Build Log

 16 |
 17 | /// [掃瞄條碼的ViewController](https://ecshweb.pchome.com.tw/search/v3.3/?q=條碼掃描器)
 18 | open class WWScanViewController: UIViewController {
    |                                  `- error: 'UIViewController' is unavailable in watchOS
 19 |
 20 |     /// 自訂錯誤
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
    |            `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:57:42: error: 'AVCaptureMetadataOutput' is unavailable in watchOS
 55 | extension WWScanViewController: AVCaptureMetadataOutputObjectsDelegate {
 56 |
 57 |     public func metadataOutput(_ output: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from connection: AVCaptureConnection) {
    |                                          `- error: 'AVCaptureMetadataOutput' is unavailable in watchOS
 58 |
 59 |         guard let metadataObject = metadataObjects.first,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h:29:12: note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
 27 |  */
 28 | API_AVAILABLE(macos(13.0), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
 29 | @interface AVCaptureMetadataOutput : AVCaptureOutput
    |            `- note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
 30 | {
 31 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:57:95: error: 'AVMetadataObject' is unavailable in watchOS
 55 | extension WWScanViewController: AVCaptureMetadataOutputObjectsDelegate {
 56 |
 57 |     public func metadataOutput(_ output: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from connection: AVCaptureConnection) {
    |                                                                                               `- error: 'AVMetadataObject' is unavailable in watchOS
 58 |
 59 |         guard let metadataObject = metadataObjects.first,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:44:12: note: 'AVMetadataObject' has been explicitly marked unavailable here
 42 |  */
 43 | API_AVAILABLE(macos(10.10), ios(6.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
 44 | @interface AVMetadataObject : NSObject
    |            `- note: 'AVMetadataObject' has been explicitly marked unavailable here
 45 | {
 46 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:57:131: error: 'AVCaptureConnection' is unavailable in watchOS
 55 | extension WWScanViewController: AVCaptureMetadataOutputObjectsDelegate {
 56 |
 57 |     public func metadataOutput(_ output: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from connection: AVCaptureConnection) {
    |                                                                                                                                   `- error: 'AVCaptureConnection' is unavailable in watchOS
 58 |
 59 |         guard let metadataObject = metadataObjects.first,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/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/WWScanViewController/WWScanViewController.swift:55:33: error: 'AVCaptureMetadataOutputObjectsDelegate' is unavailable in watchOS
 53 |
 54 | // MARK: - AVCaptureMetadataOutputObjectsDelegate
 55 | extension WWScanViewController: AVCaptureMetadataOutputObjectsDelegate {
    |                                 `- error: 'AVCaptureMetadataOutputObjectsDelegate' is unavailable in watchOS
 56 |
 57 |     public func metadataOutput(_ output: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from connection: AVCaptureConnection) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h:126:11: note: 'AVCaptureMetadataOutputObjectsDelegate' has been explicitly marked unavailable here
124 |  */
125 | API_AVAILABLE(macos(13.0), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
126 | @protocol AVCaptureMetadataOutputObjectsDelegate <NSObject>
    |           `- note: 'AVCaptureMetadataOutputObjectsDelegate' has been explicitly marked unavailable here
127 |
128 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:77:28: error: 'AVMetadataObject' is unavailable in watchOS
 75 |     ///   - delegate: ScanDelegate
 76 |     ///   - queue: DispatchQueue?
 77 |     func configure(types: [AVMetadataObject.ObjectType], delegate: WWScanDelegate, queue: DispatchQueue? = .main) {
    |                            `- error: 'AVMetadataObject' is unavailable in watchOS
 78 |         scanTypes = types
 79 |         myDelegate = delegate
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:44:12: note: 'AVMetadataObject' has been explicitly marked unavailable here
 42 |  */
 43 | API_AVAILABLE(macos(10.10), ios(6.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
 44 | @interface AVMetadataObject : NSObject
    |            `- note: 'AVMetadataObject' has been explicitly marked unavailable here
 45 | {
 46 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:112:39: error: 'AVMetadataObject' is unavailable in watchOS
110 |
111 |     /// [AVCaptureMetadataOutputObjectsDelegate](https://developer.apple.com/documentation/avfoundation/avcapturemetadataoutputobjectsdelegate/1389481-metadataoutput)
112 |     func qrcodeOutputSetting(types : [AVMetadataObject.ObjectType]) {
    |                                       `- error: 'AVMetadataObject' is unavailable in watchOS
113 |         captureMetadataOutput.setMetadataObjectsDelegate(self, queue: callbackQueue)
114 |         captureMetadataOutput.metadataObjectTypes = types
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:44:12: note: 'AVMetadataObject' has been explicitly marked unavailable here
 42 |  */
 43 | API_AVAILABLE(macos(10.10), ios(6.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
 44 | @interface AVMetadataObject : NSObject
    |            `- note: 'AVMetadataObject' has been explicitly marked unavailable here
 45 | {
 46 | @private
Failed frontend command:
SwiftCompile normal arm64_32 (in target 'WWScanViewController' from project 'WWScanViewController')
    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/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/DerivedSources/resource_bundle_accessor.swift /Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/Extension+.swift /Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift -target arm64_32-apple-watchos9.0 -disable-cross-import-overlay-search -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/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/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64_32/WWScanViewController-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 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_AVAILABLE -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/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/DerivedSources-normal/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/DerivedSources/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name WWScanViewController -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64_32/WWScanViewController_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/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64_32/WWScanViewController.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64_32/WWScanViewController.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64_32/WWScanViewController-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64_32/WWScanViewController-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64_32/WWScanViewController-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64_32/WWScanViewController.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64_32/WWScanViewController.abi.json
SwiftCompile normal arm64_32 Compiling\ WWScanViewController.swift /Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift (in target 'WWScanViewController' from project 'WWScanViewController')
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:14:42: error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
 12 |
 13 |     /// [取得掃瞄到的結果](https://ithelp.ithome.com.tw/articles/10197599)
 14 |     func metadataOutput(_ result: Result<AVMetadataMachineReadableCodeObject, Error>)
    |                                          `- error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
 15 | }
 16 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:649:12: note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
647 |  */
648 | API_AVAILABLE(macos(10.15), ios(7.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
649 | @interface AVMetadataMachineReadableCodeObject : AVMetadataObject
    |            `- note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
650 | {
651 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:39:34: error: 'AVCaptureSession' is unavailable in watchOS
 37 |     }
 38 |
 39 |     private let captureSession = AVCaptureSession()
    |                                  `- error: 'AVCaptureSession' is unavailable in watchOS
 40 |     private let captureMetadataOutput = AVCaptureMetadataOutput()
 41 |
/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/WWScanViewController/WWScanViewController.swift:40:41: error: 'AVCaptureMetadataOutput' is unavailable in watchOS
 38 |
 39 |     private let captureSession = AVCaptureSession()
 40 |     private let captureMetadataOutput = AVCaptureMetadataOutput()
    |                                         `- error: 'AVCaptureMetadataOutput' is unavailable in watchOS
 41 |
 42 |     private var scanTypes: [AVMetadataObject.ObjectType] = [.qr]
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h:29:12: note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
 27 |  */
 28 | API_AVAILABLE(macos(13.0), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
 29 | @interface AVCaptureMetadataOutput : AVCaptureOutput
    |            `- note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
 30 | {
 31 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:42:29: error: 'AVMetadataObject' is unavailable in watchOS
 40 |     private let captureMetadataOutput = AVCaptureMetadataOutput()
 41 |
 42 |     private var scanTypes: [AVMetadataObject.ObjectType] = [.qr]
    |                             `- error: 'AVMetadataObject' is unavailable in watchOS
 43 |     private var previewLayer: AVCaptureVideoPreviewLayer?
 44 |     private var callbackQueue: DispatchQueue? = .main
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:44:12: note: 'AVMetadataObject' has been explicitly marked unavailable here
 42 |  */
 43 | API_AVAILABLE(macos(10.10), ios(6.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
 44 | @interface AVMetadataObject : NSObject
    |            `- note: 'AVMetadataObject' has been explicitly marked unavailable here
 45 | {
 46 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:42:62: error: 'qr' is unavailable in watchOS
 40 |     private let captureMetadataOutput = AVCaptureMetadataOutput()
 41 |
 42 |     private var scanTypes: [AVMetadataObject.ObjectType] = [.qr]
    |                                                              `- error: 'qr' is unavailable in watchOS
 43 |     private var previewLayer: AVCaptureVideoPreviewLayer?
 44 |     private var callbackQueue: DispatchQueue? = .main
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:531:39: note: 'qr' has been explicitly marked unavailable here
529 |     AVMetadataMachineReadableCodeObject objects generated from QR codes return this constant as their type.
530 |  */
531 | AVF_EXPORT AVMetadataObjectType const AVMetadataObjectTypeQRCode API_AVAILABLE(macos(10.15), ios(7.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos);
    |                                       `- note: 'qr' has been explicitly marked unavailable here
532 |
533 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:43:31: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
 41 |
 42 |     private var scanTypes: [AVMetadataObject.ObjectType] = [.qr]
 43 |     private var previewLayer: AVCaptureVideoPreviewLayer?
    |                               `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
 44 |     private var callbackQueue: DispatchQueue? = .main
 45 |
/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/WWScanViewController/WWScanViewController.swift:18:34: error: 'UIViewController' is unavailable in watchOS
 16 |
 17 | /// [掃瞄條碼的ViewController](https://ecshweb.pchome.com.tw/search/v3.3/?q=條碼掃描器)
 18 | open class WWScanViewController: UIViewController {
    |                                  `- error: 'UIViewController' is unavailable in watchOS
 19 |
 20 |     /// 自訂錯誤
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
    |            `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:57:42: error: 'AVCaptureMetadataOutput' is unavailable in watchOS
 55 | extension WWScanViewController: AVCaptureMetadataOutputObjectsDelegate {
 56 |
 57 |     public func metadataOutput(_ output: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from connection: AVCaptureConnection) {
    |                                          `- error: 'AVCaptureMetadataOutput' is unavailable in watchOS
 58 |
 59 |         guard let metadataObject = metadataObjects.first,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h:29:12: note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
 27 |  */
 28 | API_AVAILABLE(macos(13.0), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
 29 | @interface AVCaptureMetadataOutput : AVCaptureOutput
    |            `- note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
 30 | {
 31 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:57:95: error: 'AVMetadataObject' is unavailable in watchOS
 55 | extension WWScanViewController: AVCaptureMetadataOutputObjectsDelegate {
 56 |
 57 |     public func metadataOutput(_ output: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from connection: AVCaptureConnection) {
    |                                                                                               `- error: 'AVMetadataObject' is unavailable in watchOS
 58 |
 59 |         guard let metadataObject = metadataObjects.first,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:44:12: note: 'AVMetadataObject' has been explicitly marked unavailable here
 42 |  */
 43 | API_AVAILABLE(macos(10.10), ios(6.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
 44 | @interface AVMetadataObject : NSObject
    |            `- note: 'AVMetadataObject' has been explicitly marked unavailable here
 45 | {
 46 | @private
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift (in target 'WWScanViewController' from project 'WWScanViewController')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile WWScanViewController.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:57:131: error: 'AVCaptureConnection' is unavailable in watchOS
 55 | extension WWScanViewController: AVCaptureMetadataOutputObjectsDelegate {
 56 |
 57 |     public func metadataOutput(_ output: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from connection: AVCaptureConnection) {
    |                                                                                                                                   `- error: 'AVCaptureConnection' is unavailable in watchOS
 58 |
 59 |         guard let metadataObject = metadataObjects.first,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/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/WWScanViewController/WWScanViewController.swift:55:33: error: 'AVCaptureMetadataOutputObjectsDelegate' is unavailable in watchOS
 53 |
 54 | // MARK: - AVCaptureMetadataOutputObjectsDelegate
 55 | extension WWScanViewController: AVCaptureMetadataOutputObjectsDelegate {
    |                                 `- error: 'AVCaptureMetadataOutputObjectsDelegate' is unavailable in watchOS
 56 |
 57 |     public func metadataOutput(_ output: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from connection: AVCaptureConnection) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h:126:11: note: 'AVCaptureMetadataOutputObjectsDelegate' has been explicitly marked unavailable here
124 |  */
125 | API_AVAILABLE(macos(13.0), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
126 | @protocol AVCaptureMetadataOutputObjectsDelegate <NSObject>
    |           `- note: 'AVCaptureMetadataOutputObjectsDelegate' has been explicitly marked unavailable here
127 |
128 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:77:28: error: 'AVMetadataObject' is unavailable in watchOS
 75 |     ///   - delegate: ScanDelegate
 76 |     ///   - queue: DispatchQueue?
 77 |     func configure(types: [AVMetadataObject.ObjectType], delegate: WWScanDelegate, queue: DispatchQueue? = .main) {
    |                            `- error: 'AVMetadataObject' is unavailable in watchOS
 78 |         scanTypes = types
 79 |         myDelegate = delegate
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:44:12: note: 'AVMetadataObject' has been explicitly marked unavailable here
 42 |  */
 43 | API_AVAILABLE(macos(10.10), ios(6.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
 44 | @interface AVMetadataObject : NSObject
    |            `- note: 'AVMetadataObject' has been explicitly marked unavailable here
 45 | {
 46 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:112:39: error: 'AVMetadataObject' is unavailable in watchOS
110 |
111 |     /// [AVCaptureMetadataOutputObjectsDelegate](https://developer.apple.com/documentation/avfoundation/avcapturemetadataoutputobjectsdelegate/1389481-metadataoutput)
112 |     func qrcodeOutputSetting(types : [AVMetadataObject.ObjectType]) {
    |                                       `- error: 'AVMetadataObject' is unavailable in watchOS
113 |         captureMetadataOutput.setMetadataObjectsDelegate(self, queue: callbackQueue)
114 |         captureMetadataOutput.metadataObjectTypes = types
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:44:12: note: 'AVMetadataObject' has been explicitly marked unavailable here
 42 |  */
 43 | API_AVAILABLE(macos(10.10), ios(6.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
 44 | @interface AVMetadataObject : NSObject
    |            `- note: 'AVMetadataObject' has been explicitly marked unavailable here
 45 | {
 46 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:60:112: error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
 58 |
 59 |         guard let metadataObject = metadataObjects.first,
 60 |               let transformedMetadataObject = previewLayer?.transformedMetadataObject(for: metadataObject) as? AVMetadataMachineReadableCodeObject
    |                                                                                                                `- error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
 61 |         else {
 62 |             myDelegate?.metadataOutput(.failure(MyError.notSupports)); 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/AVMetadataObject.h:649:12: note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
647 |  */
648 | API_AVAILABLE(macos(10.15), ios(7.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
649 | @interface AVMetadataMachineReadableCodeObject : AVMetadataObject
    |            `- note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
650 | {
651 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:96:28: error: 'AVCaptureDevice' is unavailable in watchOS
 94 |     func initSetting() {
 95 |
 96 |         guard let device = AVCaptureDevice._default(for: .video),
    |                            `- error: 'AVCaptureDevice' is unavailable in watchOS
 97 |               let input = try? device._captureInput().get(),
 98 |               let previewLayer = Optional.some(captureSession._previewLayer(with: view.bounds, 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/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
 132 |  */
 133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
 134 | @interface AVCaptureDevice : NSObject
     |            `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
 135 | {
 136 | @private
SwiftCompile normal arm64_32 Compiling\ Extension+.swift /Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/Extension+.swift (in target 'WWScanViewController' from project 'WWScanViewController')
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/Extension+.swift:15:52: error: 'AVCaptureDevice' is unavailable in watchOS
13 |
14 |     /// 取得預設影音裝置 (NSCameraUsageDescription / NSMicrophoneUsageDescription)
15 |     static func _default(for type: AVMediaType) -> AVCaptureDevice? { return AVCaptureDevice.default(for: type) }
   |                                                    `- error: 'AVCaptureDevice' is unavailable in watchOS
16 | }
17 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
 132 |  */
 133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
 134 | @interface AVCaptureDevice : NSObject
     |            `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
 135 | {
 136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/Extension+.swift:12:11: error: 'AVCaptureDevice' is unavailable in watchOS
10 |
11 | // MARK: - AVCaptureDevice (static function)
12 | extension AVCaptureDevice {
   |           `- error: 'AVCaptureDevice' is unavailable in watchOS
13 |
14 |     /// 取得預設影音裝置 (NSCameraUsageDescription / NSMicrophoneUsageDescription)
/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/WWScanViewController/Extension+.swift:22:30: error: 'AVCaptureDevice' is unavailable in watchOS
20 |
21 |     /// 判斷鏡頭的位置 (前後) => .front / .back
22 |     func _videoPosition() -> AVCaptureDevice.Position { return self.position }
   |                              `- error: 'AVCaptureDevice' is unavailable in watchOS
23 |
24 |     /// 取得裝置的Input => NSCameraUsageDescription / NSMicrophoneUsageDescription
/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/WWScanViewController/Extension+.swift:25:36: error: 'AVCaptureDeviceInput' is unavailable in watchOS
23 |
24 |     /// 取得裝置的Input => NSCameraUsageDescription / NSMicrophoneUsageDescription
25 |     func _captureInput() -> Result<AVCaptureDeviceInput, Error> {
   |                                    `- error: 'AVCaptureDeviceInput' is unavailable in watchOS
26 |
27 |         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/WWScanViewController/Extension+.swift:19:11: error: 'AVCaptureDevice' is unavailable in watchOS
17 |
18 | // MARK: - AVCaptureDevice (class function)
19 | extension AVCaptureDevice {
   |           `- error: 'AVCaptureDevice' is unavailable in watchOS
20 |
21 |     /// 判斷鏡頭的位置 (前後) => .front / .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/WWScanViewController/Extension+.swift:44:102: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
42 |     ///   - videoGravity: AVLayerVideoGravity => .resizeAspectFill
43 |     /// - Returns: AVCaptureVideoPreviewLayer
44 |     func _previewLayer(with frame: CGRect, videoGravity: AVLayerVideoGravity = .resizeAspectFill) -> AVCaptureVideoPreviewLayer {
   |                                                                                                      `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
45 |
46 |         let previewLayer = AVCaptureVideoPreviewLayer(session: self)
/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/WWScanViewController/Extension+.swift:44:81: error: 'resizeAspectFill' is unavailable in watchOS
42 |     ///   - videoGravity: AVLayerVideoGravity => .resizeAspectFill
43 |     /// - Returns: AVCaptureVideoPreviewLayer
44 |     func _previewLayer(with frame: CGRect, videoGravity: AVLayerVideoGravity = .resizeAspectFill) -> AVCaptureVideoPreviewLayer {
   |                                                                                 `- error: 'resizeAspectFill' is unavailable in watchOS
45 |
46 |         let previewLayer = AVCaptureVideoPreviewLayer(session: self)
/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/WWScanViewController/Extension+.swift:57:32: error: 'AVCaptureInput' is unavailable in watchOS
55 |     /// - Parameter input: AVCaptureInput
56 |     /// - Returns: Bool
57 |     func _canAddInput(_ input: AVCaptureInput) -> Bool {
   |                                `- error: 'AVCaptureInput' is unavailable in watchOS
58 |         guard self.canAddInput(input) else { return false }
59 |         self.addInput(input); return true
/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:38:12: note: 'AVCaptureInput' has been explicitly marked unavailable here
 36 |  */
 37 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
 38 | @interface AVCaptureInput : NSObject
    |            `- note: 'AVCaptureInput' has been explicitly marked unavailable here
 39 | {
 40 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/Extension+.swift:65:34: error: 'AVCaptureOutput' is unavailable in watchOS
63 |     /// - Parameter input: AVCaptureOutput
64 |     /// - Returns: Bool
65 |     func _canAddOutput(_ output: AVCaptureOutput) -> Bool {
   |                                  `- error: 'AVCaptureOutput' is unavailable in watchOS
66 |         guard self.canAddOutput(output) else { return false }
67 |         self.addOutput(output); return true
/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/WWScanViewController/Extension+.swift:37:11: error: 'AVCaptureSession' is unavailable in watchOS
35 |
36 | // MARK: - AVCaptureSession (class function)
37 | extension AVCaptureSession {
   |           `- error: 'AVCaptureSession' is unavailable in watchOS
38 |
39 |     /// 產生、設定AVCaptureVideoPreviewLayer
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/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/WWScanViewController/Extension+.swift:15:78: error: 'AVCaptureDevice' is unavailable in watchOS
13 |
14 |     /// 取得預設影音裝置 (NSCameraUsageDescription / NSMicrophoneUsageDescription)
15 |     static func _default(for type: AVMediaType) -> AVCaptureDevice? { return AVCaptureDevice.default(for: type) }
   |                                                                              `- error: 'AVCaptureDevice' is unavailable in watchOS
16 | }
17 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
 132 |  */
 133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
 134 | @interface AVCaptureDevice : NSObject
     |            `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
 135 | {
 136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/Extension+.swift:28:35: error: 'AVCaptureDeviceInput' is unavailable in watchOS
26 |
27 |         do {
28 |             let deviceInput = try AVCaptureDeviceInput(device: self)
   |                                   `- error: 'AVCaptureDeviceInput' is unavailable in watchOS
29 |             return .success(deviceInput)
30 |         } catch {
/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
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/Extension+.swift (in target 'WWScanViewController' from project 'WWScanViewController')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Extension+.swift
SwiftCompile normal arm64_32 Compiling\ resource_bundle_accessor.swift /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/DerivedSources/resource_bundle_accessor.swift (in target 'WWScanViewController' from project 'WWScanViewController')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/DerivedSources/resource_bundle_accessor.swift (in target 'WWScanViewController' from project 'WWScanViewController')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile resource_bundle_accessor.swift
SwiftEmitModule normal arm64 Emitting\ module\ for\ WWScanViewController (in target 'WWScanViewController' from project 'WWScanViewController')
SwiftCompile normal arm64 (in target 'WWScanViewController' from project 'WWScanViewController')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode

SwiftCompile normal arm64 Compiling\ Extension+.swift /Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/Extension+.swift (in target 'WWScanViewController' from project 'WWScanViewController')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/Extension+.swift (in target 'WWScanViewController' from project 'WWScanViewController')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Extension+.swift
SwiftCompile normal arm64 Compiling\ WWScanViewController.swift /Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift (in target 'WWScanViewController' from project 'WWScanViewController')
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:14:42: error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
 12 |
 13 |     /// [取得掃瞄到的結果](https://ithelp.ithome.com.tw/articles/10197599)
 14 |     func metadataOutput(_ result: Result<AVMetadataMachineReadableCodeObject, Error>)
    |                                          `- error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
 15 | }
 16 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:649:12: note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
647 |  */
648 | API_AVAILABLE(macos(10.15), ios(7.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
649 | @interface AVMetadataMachineReadableCodeObject : AVMetadataObject
    |            `- note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
650 | {
651 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:39:34: error: 'AVCaptureSession' is unavailable in watchOS
 37 |     }
 38 |
 39 |     private let captureSession = AVCaptureSession()
    |                                  `- error: 'AVCaptureSession' is unavailable in watchOS
 40 |     private let captureMetadataOutput = AVCaptureMetadataOutput()
 41 |
/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/WWScanViewController/WWScanViewController.swift:40:41: error: 'AVCaptureMetadataOutput' is unavailable in watchOS
 38 |
 39 |     private let captureSession = AVCaptureSession()
 40 |     private let captureMetadataOutput = AVCaptureMetadataOutput()
    |                                         `- error: 'AVCaptureMetadataOutput' is unavailable in watchOS
 41 |
 42 |     private var scanTypes: [AVMetadataObject.ObjectType] = [.qr]
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h:29:12: note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
 27 |  */
 28 | API_AVAILABLE(macos(13.0), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
 29 | @interface AVCaptureMetadataOutput : AVCaptureOutput
    |            `- note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
 30 | {
 31 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:42:29: error: 'AVMetadataObject' is unavailable in watchOS
 40 |     private let captureMetadataOutput = AVCaptureMetadataOutput()
 41 |
 42 |     private var scanTypes: [AVMetadataObject.ObjectType] = [.qr]
    |                             `- error: 'AVMetadataObject' is unavailable in watchOS
 43 |     private var previewLayer: AVCaptureVideoPreviewLayer?
 44 |     private var callbackQueue: DispatchQueue? = .main
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:44:12: note: 'AVMetadataObject' has been explicitly marked unavailable here
 42 |  */
 43 | API_AVAILABLE(macos(10.10), ios(6.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
 44 | @interface AVMetadataObject : NSObject
    |            `- note: 'AVMetadataObject' has been explicitly marked unavailable here
 45 | {
 46 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:42:62: error: 'qr' is unavailable in watchOS
 40 |     private let captureMetadataOutput = AVCaptureMetadataOutput()
 41 |
 42 |     private var scanTypes: [AVMetadataObject.ObjectType] = [.qr]
    |                                                              `- error: 'qr' is unavailable in watchOS
 43 |     private var previewLayer: AVCaptureVideoPreviewLayer?
 44 |     private var callbackQueue: DispatchQueue? = .main
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:531:39: note: 'qr' has been explicitly marked unavailable here
529 |     AVMetadataMachineReadableCodeObject objects generated from QR codes return this constant as their type.
530 |  */
531 | AVF_EXPORT AVMetadataObjectType const AVMetadataObjectTypeQRCode API_AVAILABLE(macos(10.15), ios(7.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos);
    |                                       `- note: 'qr' has been explicitly marked unavailable here
532 |
533 | /*!
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift (in target 'WWScanViewController' from project 'WWScanViewController')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile WWScanViewController.swift
SwiftCompile normal arm64 Compiling\ resource_bundle_accessor.swift /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/DerivedSources/resource_bundle_accessor.swift (in target 'WWScanViewController' from project 'WWScanViewController')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/DerivedSources/resource_bundle_accessor.swift (in target 'WWScanViewController' from project 'WWScanViewController')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile resource_bundle_accessor.swift
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
2026-09-20 06:14:12.991 xcodebuild[658:4269] [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 'WWScanViewController' from project 'WWScanViewController')
	SwiftEmitModule normal arm64_32 Emitting\ module\ for\ WWScanViewController (in target 'WWScanViewController' from project 'WWScanViewController')
	Building workspace WWScanViewController with scheme WWScanViewController
(3 failures)
Command line invocation:
    /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -resolvePackageDependencies
Resolve Package Graph
Resolved source packages:
  WWScanViewController: /Users/admin/builder/spi-builder-workspace
resolved source packages: WWScanViewController
2026-09-20 06:14:19.197 xcodebuild[798:4790] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "WWScanViewController",
  "name" : "WWScanViewController",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "WWScanViewController",
      "targets" : [
        "WWScanViewController"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "WWScanViewController",
      "module_type" : "SwiftTarget",
      "name" : "WWScanViewController",
      "path" : "Sources/WWScanViewController",
      "product_memberships" : [
        "WWScanViewController"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/Privacy",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "Extension+.swift",
        "WWScanViewController.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.6"
}
{
  "workspace" : {
    "name" : "WWScanViewController",
    "schemes" : [
      "WWScanViewController"
    ]
  }
}
2026-09-20 06:14:20.438 xcodebuild[806:4855] [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 WWScanViewController -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 WWScanViewController -destination generic/platform=watchOS
Resolve Package Graph
Resolved source packages:
  WWScanViewController: /Users/admin/builder/spi-builder-workspace
ComputePackagePrebuildTargetDependencyGraph
Prepare packages
CreateBuildRequest
SendProjectDescription
CreateBuildOperation
ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (3 targets)
    Target 'WWScanViewController-product' in project 'WWScanViewController'
        ➜ Explicit dependency on target 'WWScanViewController' in project 'WWScanViewController'
        ➜ Explicit dependency on target 'WWScanViewController_WWScanViewController' in project 'WWScanViewController'
    Target 'WWScanViewController' in project 'WWScanViewController'
        ➜ Explicit dependency on target 'WWScanViewController_WWScanViewController' in project 'WWScanViewController'
    Target 'WWScanViewController_WWScanViewController' in project 'WWScanViewController' (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 WWScanViewController normal arm64_32 com.apple.xcode.tools.swift.compiler (in target 'WWScanViewController' from project 'WWScanViewController')
    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 WWScanViewController -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64_32/WWScanViewController.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_AVAILABLE -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 -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/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64_32/WWScanViewController-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/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64_32/WWScanViewController.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64_32/WWScanViewController-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/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64_32/WWScanViewController_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/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/DerivedSources-normal/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/DerivedSources/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-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/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64_32/WWScanViewController-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftDriver WWScanViewController normal arm64 com.apple.xcode.tools.swift.compiler (in target 'WWScanViewController' from project 'WWScanViewController')
    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 WWScanViewController -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64/WWScanViewController.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_AVAILABLE -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 -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/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64/WWScanViewController-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/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64/WWScanViewController.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64/WWScanViewController-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/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64/WWScanViewController_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/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-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/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64/WWScanViewController-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\ WWScanViewController (in target 'WWScanViewController' from project 'WWScanViewController')
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/Extension+.swift:15:52: error: 'AVCaptureDevice' is unavailable in watchOS
13 |
14 |     /// 取得預設影音裝置 (NSCameraUsageDescription / NSMicrophoneUsageDescription)
15 |     static func _default(for type: AVMediaType) -> AVCaptureDevice? { return AVCaptureDevice.default(for: type) }
   |                                                    `- error: 'AVCaptureDevice' is unavailable in watchOS
16 | }
17 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
 132 |  */
 133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
 134 | @interface AVCaptureDevice : NSObject
     |            `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
 135 | {
 136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/Extension+.swift:12:11: error: 'AVCaptureDevice' is unavailable in watchOS
10 |
11 | // MARK: - AVCaptureDevice (static function)
12 | extension AVCaptureDevice {
   |           `- error: 'AVCaptureDevice' is unavailable in watchOS
13 |
14 |     /// 取得預設影音裝置 (NSCameraUsageDescription / NSMicrophoneUsageDescription)
/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/WWScanViewController/Extension+.swift:22:30: error: 'AVCaptureDevice' is unavailable in watchOS
20 |
21 |     /// 判斷鏡頭的位置 (前後) => .front / .back
22 |     func _videoPosition() -> AVCaptureDevice.Position { return self.position }
   |                              `- error: 'AVCaptureDevice' is unavailable in watchOS
23 |
24 |     /// 取得裝置的Input => NSCameraUsageDescription / NSMicrophoneUsageDescription
/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/WWScanViewController/Extension+.swift:25:36: error: 'AVCaptureDeviceInput' is unavailable in watchOS
23 |
24 |     /// 取得裝置的Input => NSCameraUsageDescription / NSMicrophoneUsageDescription
25 |     func _captureInput() -> Result<AVCaptureDeviceInput, Error> {
   |                                    `- error: 'AVCaptureDeviceInput' is unavailable in watchOS
26 |
27 |         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/WWScanViewController/Extension+.swift:19:11: error: 'AVCaptureDevice' is unavailable in watchOS
17 |
18 | // MARK: - AVCaptureDevice (class function)
19 | extension AVCaptureDevice {
   |           `- error: 'AVCaptureDevice' is unavailable in watchOS
20 |
21 |     /// 判斷鏡頭的位置 (前後) => .front / .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/WWScanViewController/Extension+.swift:44:102: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
42 |     ///   - videoGravity: AVLayerVideoGravity => .resizeAspectFill
43 |     /// - Returns: AVCaptureVideoPreviewLayer
44 |     func _previewLayer(with frame: CGRect, videoGravity: AVLayerVideoGravity = .resizeAspectFill) -> AVCaptureVideoPreviewLayer {
   |                                                                                                      `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
45 |
46 |         let previewLayer = AVCaptureVideoPreviewLayer(session: self)
/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/WWScanViewController/Extension+.swift:44:81: error: 'resizeAspectFill' is unavailable in watchOS
42 |     ///   - videoGravity: AVLayerVideoGravity => .resizeAspectFill
43 |     /// - Returns: AVCaptureVideoPreviewLayer
44 |     func _previewLayer(with frame: CGRect, videoGravity: AVLayerVideoGravity = .resizeAspectFill) -> AVCaptureVideoPreviewLayer {
   |                                                                                 `- error: 'resizeAspectFill' is unavailable in watchOS
45 |
46 |         let previewLayer = AVCaptureVideoPreviewLayer(session: self)
/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/WWScanViewController/Extension+.swift:57:32: error: 'AVCaptureInput' is unavailable in watchOS
55 |     /// - Parameter input: AVCaptureInput
56 |     /// - Returns: Bool
57 |     func _canAddInput(_ input: AVCaptureInput) -> Bool {
   |                                `- error: 'AVCaptureInput' is unavailable in watchOS
58 |         guard self.canAddInput(input) else { return false }
59 |         self.addInput(input); return true
/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:38:12: note: 'AVCaptureInput' has been explicitly marked unavailable here
 36 |  */
 37 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
 38 | @interface AVCaptureInput : NSObject
    |            `- note: 'AVCaptureInput' has been explicitly marked unavailable here
 39 | {
 40 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/Extension+.swift:65:34: error: 'AVCaptureOutput' is unavailable in watchOS
63 |     /// - Parameter input: AVCaptureOutput
64 |     /// - Returns: Bool
65 |     func _canAddOutput(_ output: AVCaptureOutput) -> Bool {
   |                                  `- error: 'AVCaptureOutput' is unavailable in watchOS
66 |         guard self.canAddOutput(output) else { return false }
67 |         self.addOutput(output); return true
/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/WWScanViewController/Extension+.swift:37:11: error: 'AVCaptureSession' is unavailable in watchOS
35 |
36 | // MARK: - AVCaptureSession (class function)
37 | extension AVCaptureSession {
   |           `- error: 'AVCaptureSession' is unavailable in watchOS
38 |
39 |     /// 產生、設定AVCaptureVideoPreviewLayer
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/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/WWScanViewController/WWScanViewController.swift:14:42: error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
 12 |
 13 |     /// [取得掃瞄到的結果](https://ithelp.ithome.com.tw/articles/10197599)
 14 |     func metadataOutput(_ result: Result<AVMetadataMachineReadableCodeObject, Error>)
    |                                          `- error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
 15 | }
 16 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:649:12: note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
647 |  */
648 | API_AVAILABLE(macos(10.15), ios(7.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
649 | @interface AVMetadataMachineReadableCodeObject : AVMetadataObject
    |            `- note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
650 | {
651 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:39:34: error: 'AVCaptureSession' is unavailable in watchOS
 37 |     }
 38 |
 39 |     private let captureSession = AVCaptureSession()
    |                                  `- error: 'AVCaptureSession' is unavailable in watchOS
 40 |     private let captureMetadataOutput = AVCaptureMetadataOutput()
 41 |
/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/WWScanViewController/WWScanViewController.swift:40:41: error: 'AVCaptureMetadataOutput' is unavailable in watchOS
 38 |
 39 |     private let captureSession = AVCaptureSession()
 40 |     private let captureMetadataOutput = AVCaptureMetadataOutput()
    |                                         `- error: 'AVCaptureMetadataOutput' is unavailable in watchOS
 41 |
 42 |     private var scanTypes: [AVMetadataObject.ObjectType] = [.qr]
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h:29:12: note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
 27 |  */
 28 | API_AVAILABLE(macos(13.0), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
 29 | @interface AVCaptureMetadataOutput : AVCaptureOutput
    |            `- note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
 30 | {
 31 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:42:29: error: 'AVMetadataObject' is unavailable in watchOS
 40 |     private let captureMetadataOutput = AVCaptureMetadataOutput()
 41 |
 42 |     private var scanTypes: [AVMetadataObject.ObjectType] = [.qr]
    |                             `- error: 'AVMetadataObject' is unavailable in watchOS
 43 |     private var previewLayer: AVCaptureVideoPreviewLayer?
 44 |     private var callbackQueue: DispatchQueue? = .main
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:44:12: note: 'AVMetadataObject' has been explicitly marked unavailable here
 42 |  */
 43 | API_AVAILABLE(macos(10.10), ios(6.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
 44 | @interface AVMetadataObject : NSObject
    |            `- note: 'AVMetadataObject' has been explicitly marked unavailable here
 45 | {
 46 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:42:62: error: 'qr' is unavailable in watchOS
 40 |     private let captureMetadataOutput = AVCaptureMetadataOutput()
 41 |
 42 |     private var scanTypes: [AVMetadataObject.ObjectType] = [.qr]
    |                                                              `- error: 'qr' is unavailable in watchOS
 43 |     private var previewLayer: AVCaptureVideoPreviewLayer?
 44 |     private var callbackQueue: DispatchQueue? = .main
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:531:39: note: 'qr' has been explicitly marked unavailable here
529 |     AVMetadataMachineReadableCodeObject objects generated from QR codes return this constant as their type.
530 |  */
531 | AVF_EXPORT AVMetadataObjectType const AVMetadataObjectTypeQRCode API_AVAILABLE(macos(10.15), ios(7.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos);
    |                                       `- note: 'qr' has been explicitly marked unavailable here
532 |
533 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:43:31: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
 41 |
 42 |     private var scanTypes: [AVMetadataObject.ObjectType] = [.qr]
 43 |     private var previewLayer: AVCaptureVideoPreviewLayer?
    |                               `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
 44 |     private var callbackQueue: DispatchQueue? = .main
 45 |
/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/WWScanViewController/WWScanViewController.swift:18:34: error: 'UIViewController' is unavailable in watchOS
 16 |
 17 | /// [掃瞄條碼的ViewController](https://ecshweb.pchome.com.tw/search/v3.3/?q=條碼掃描器)
 18 | open class WWScanViewController: UIViewController {
    |                                  `- error: 'UIViewController' is unavailable in watchOS
 19 |
 20 |     /// 自訂錯誤
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
    |            `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:57:42: error: 'AVCaptureMetadataOutput' is unavailable in watchOS
 55 | extension WWScanViewController: AVCaptureMetadataOutputObjectsDelegate {
 56 |
 57 |     public func metadataOutput(_ output: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from connection: AVCaptureConnection) {
    |                                          `- error: 'AVCaptureMetadataOutput' is unavailable in watchOS
 58 |
 59 |         guard let metadataObject = metadataObjects.first,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h:29:12: note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
 27 |  */
 28 | API_AVAILABLE(macos(13.0), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
 29 | @interface AVCaptureMetadataOutput : AVCaptureOutput
    |            `- note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
 30 | {
 31 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:57:95: error: 'AVMetadataObject' is unavailable in watchOS
 55 | extension WWScanViewController: AVCaptureMetadataOutputObjectsDelegate {
 56 |
 57 |     public func metadataOutput(_ output: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from connection: AVCaptureConnection) {
    |                                                                                               `- error: 'AVMetadataObject' is unavailable in watchOS
 58 |
 59 |         guard let metadataObject = metadataObjects.first,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:44:12: note: 'AVMetadataObject' has been explicitly marked unavailable here
 42 |  */
 43 | API_AVAILABLE(macos(10.10), ios(6.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
 44 | @interface AVMetadataObject : NSObject
    |            `- note: 'AVMetadataObject' has been explicitly marked unavailable here
 45 | {
 46 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:57:131: error: 'AVCaptureConnection' is unavailable in watchOS
 55 | extension WWScanViewController: AVCaptureMetadataOutputObjectsDelegate {
 56 |
 57 |     public func metadataOutput(_ output: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from connection: AVCaptureConnection) {
    |                                                                                                                                   `- error: 'AVCaptureConnection' is unavailable in watchOS
 58 |
 59 |         guard let metadataObject = metadataObjects.first,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/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/WWScanViewController/WWScanViewController.swift:55:33: error: 'AVCaptureMetadataOutputObjectsDelegate' is unavailable in watchOS
 53 |
 54 | // MARK: - AVCaptureMetadataOutputObjectsDelegate
 55 | extension WWScanViewController: AVCaptureMetadataOutputObjectsDelegate {
    |                                 `- error: 'AVCaptureMetadataOutputObjectsDelegate' is unavailable in watchOS
 56 |
 57 |     public func metadataOutput(_ output: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from connection: AVCaptureConnection) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h:126:11: note: 'AVCaptureMetadataOutputObjectsDelegate' has been explicitly marked unavailable here
124 |  */
125 | API_AVAILABLE(macos(13.0), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
126 | @protocol AVCaptureMetadataOutputObjectsDelegate <NSObject>
    |           `- note: 'AVCaptureMetadataOutputObjectsDelegate' has been explicitly marked unavailable here
127 |
128 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:77:28: error: 'AVMetadataObject' is unavailable in watchOS
 75 |     ///   - delegate: ScanDelegate
 76 |     ///   - queue: DispatchQueue?
 77 |     func configure(types: [AVMetadataObject.ObjectType], delegate: WWScanDelegate, queue: DispatchQueue? = .main) {
    |                            `- error: 'AVMetadataObject' is unavailable in watchOS
 78 |         scanTypes = types
 79 |         myDelegate = delegate
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:44:12: note: 'AVMetadataObject' has been explicitly marked unavailable here
 42 |  */
 43 | API_AVAILABLE(macos(10.10), ios(6.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
 44 | @interface AVMetadataObject : NSObject
    |            `- note: 'AVMetadataObject' has been explicitly marked unavailable here
 45 | {
 46 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:112:39: error: 'AVMetadataObject' is unavailable in watchOS
110 |
111 |     /// [AVCaptureMetadataOutputObjectsDelegate](https://developer.apple.com/documentation/avfoundation/avcapturemetadataoutputobjectsdelegate/1389481-metadataoutput)
112 |     func qrcodeOutputSetting(types : [AVMetadataObject.ObjectType]) {
    |                                       `- error: 'AVMetadataObject' is unavailable in watchOS
113 |         captureMetadataOutput.setMetadataObjectsDelegate(self, queue: callbackQueue)
114 |         captureMetadataOutput.metadataObjectTypes = types
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:44:12: note: 'AVMetadataObject' has been explicitly marked unavailable here
 42 |  */
 43 | API_AVAILABLE(macos(10.10), ios(6.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
 44 | @interface AVMetadataObject : NSObject
    |            `- note: 'AVMetadataObject' has been explicitly marked unavailable here
 45 | {
 46 | @private
Failed frontend command:
SwiftCompile normal arm64_32 (in target 'WWScanViewController' from project 'WWScanViewController')
    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/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/DerivedSources/resource_bundle_accessor.swift /Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/Extension+.swift /Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift -target arm64_32-apple-watchos9.0 -disable-cross-import-overlay-search -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/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/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64_32/WWScanViewController-dependencies-1.json -enable-objc-interop -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/Developer/Library/Frameworks -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -no-color-diagnostics -Xcc -fno-color-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_AVAILABLE -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/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/DerivedSources-normal/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/DerivedSources/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name WWScanViewController -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64_32/WWScanViewController_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/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64_32/WWScanViewController.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64_32/WWScanViewController.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64_32/WWScanViewController-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64_32/WWScanViewController-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64_32/WWScanViewController-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64_32/WWScanViewController.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64_32/WWScanViewController.abi.json
SwiftCompile normal arm64_32 Compiling\ Extension+.swift /Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/Extension+.swift (in target 'WWScanViewController' from project 'WWScanViewController')
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/Extension+.swift:15:52: error: 'AVCaptureDevice' is unavailable in watchOS
13 |
14 |     /// 取得預設影音裝置 (NSCameraUsageDescription / NSMicrophoneUsageDescription)
15 |     static func _default(for type: AVMediaType) -> AVCaptureDevice? { return AVCaptureDevice.default(for: type) }
   |                                                    `- error: 'AVCaptureDevice' is unavailable in watchOS
16 | }
17 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
 132 |  */
 133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
 134 | @interface AVCaptureDevice : NSObject
     |            `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
 135 | {
 136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/Extension+.swift:12:11: error: 'AVCaptureDevice' is unavailable in watchOS
10 |
11 | // MARK: - AVCaptureDevice (static function)
12 | extension AVCaptureDevice {
   |           `- error: 'AVCaptureDevice' is unavailable in watchOS
13 |
14 |     /// 取得預設影音裝置 (NSCameraUsageDescription / NSMicrophoneUsageDescription)
/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/WWScanViewController/Extension+.swift:22:30: error: 'AVCaptureDevice' is unavailable in watchOS
20 |
21 |     /// 判斷鏡頭的位置 (前後) => .front / .back
22 |     func _videoPosition() -> AVCaptureDevice.Position { return self.position }
   |                              `- error: 'AVCaptureDevice' is unavailable in watchOS
23 |
24 |     /// 取得裝置的Input => NSCameraUsageDescription / NSMicrophoneUsageDescription
/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/WWScanViewController/Extension+.swift:25:36: error: 'AVCaptureDeviceInput' is unavailable in watchOS
23 |
24 |     /// 取得裝置的Input => NSCameraUsageDescription / NSMicrophoneUsageDescription
25 |     func _captureInput() -> Result<AVCaptureDeviceInput, Error> {
   |                                    `- error: 'AVCaptureDeviceInput' is unavailable in watchOS
26 |
27 |         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/WWScanViewController/Extension+.swift:19:11: error: 'AVCaptureDevice' is unavailable in watchOS
17 |
18 | // MARK: - AVCaptureDevice (class function)
19 | extension AVCaptureDevice {
   |           `- error: 'AVCaptureDevice' is unavailable in watchOS
20 |
21 |     /// 判斷鏡頭的位置 (前後) => .front / .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/WWScanViewController/Extension+.swift:44:102: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
42 |     ///   - videoGravity: AVLayerVideoGravity => .resizeAspectFill
43 |     /// - Returns: AVCaptureVideoPreviewLayer
44 |     func _previewLayer(with frame: CGRect, videoGravity: AVLayerVideoGravity = .resizeAspectFill) -> AVCaptureVideoPreviewLayer {
   |                                                                                                      `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
45 |
46 |         let previewLayer = AVCaptureVideoPreviewLayer(session: self)
/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/WWScanViewController/Extension+.swift:44:81: error: 'resizeAspectFill' is unavailable in watchOS
42 |     ///   - videoGravity: AVLayerVideoGravity => .resizeAspectFill
43 |     /// - Returns: AVCaptureVideoPreviewLayer
44 |     func _previewLayer(with frame: CGRect, videoGravity: AVLayerVideoGravity = .resizeAspectFill) -> AVCaptureVideoPreviewLayer {
   |                                                                                 `- error: 'resizeAspectFill' is unavailable in watchOS
45 |
46 |         let previewLayer = AVCaptureVideoPreviewLayer(session: self)
/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/WWScanViewController/Extension+.swift:57:32: error: 'AVCaptureInput' is unavailable in watchOS
55 |     /// - Parameter input: AVCaptureInput
56 |     /// - Returns: Bool
57 |     func _canAddInput(_ input: AVCaptureInput) -> Bool {
   |                                `- error: 'AVCaptureInput' is unavailable in watchOS
58 |         guard self.canAddInput(input) else { return false }
59 |         self.addInput(input); return true
/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:38:12: note: 'AVCaptureInput' has been explicitly marked unavailable here
 36 |  */
 37 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
 38 | @interface AVCaptureInput : NSObject
    |            `- note: 'AVCaptureInput' has been explicitly marked unavailable here
 39 | {
 40 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/Extension+.swift:65:34: error: 'AVCaptureOutput' is unavailable in watchOS
63 |     /// - Parameter input: AVCaptureOutput
64 |     /// - Returns: Bool
65 |     func _canAddOutput(_ output: AVCaptureOutput) -> Bool {
   |                                  `- error: 'AVCaptureOutput' is unavailable in watchOS
66 |         guard self.canAddOutput(output) else { return false }
67 |         self.addOutput(output); return true
/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_32 /Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/Extension+.swift (in target 'WWScanViewController' from project 'WWScanViewController')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Extension+.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/Extension+.swift:37:11: error: 'AVCaptureSession' is unavailable in watchOS
35 |
36 | // MARK: - AVCaptureSession (class function)
37 | extension AVCaptureSession {
   |           `- error: 'AVCaptureSession' is unavailable in watchOS
38 |
39 |     /// 產生、設定AVCaptureVideoPreviewLayer
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/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/WWScanViewController/Extension+.swift:15:78: error: 'AVCaptureDevice' is unavailable in watchOS
13 |
14 |     /// 取得預設影音裝置 (NSCameraUsageDescription / NSMicrophoneUsageDescription)
15 |     static func _default(for type: AVMediaType) -> AVCaptureDevice? { return AVCaptureDevice.default(for: type) }
   |                                                                              `- error: 'AVCaptureDevice' is unavailable in watchOS
16 | }
17 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
 132 |  */
 133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
 134 | @interface AVCaptureDevice : NSObject
     |            `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
 135 | {
 136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/Extension+.swift:28:35: error: 'AVCaptureDeviceInput' is unavailable in watchOS
26 |
27 |         do {
28 |             let deviceInput = try AVCaptureDeviceInput(device: self)
   |                                   `- error: 'AVCaptureDeviceInput' is unavailable in watchOS
29 |             return .success(deviceInput)
30 |         } catch {
/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
SwiftCompile normal arm64_32 Compiling\ WWScanViewController.swift /Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift (in target 'WWScanViewController' from project 'WWScanViewController')
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:14:42: error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
 12 |
 13 |     /// [取得掃瞄到的結果](https://ithelp.ithome.com.tw/articles/10197599)
 14 |     func metadataOutput(_ result: Result<AVMetadataMachineReadableCodeObject, Error>)
    |                                          `- error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
 15 | }
 16 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:649:12: note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
647 |  */
648 | API_AVAILABLE(macos(10.15), ios(7.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
649 | @interface AVMetadataMachineReadableCodeObject : AVMetadataObject
    |            `- note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
650 | {
651 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:39:34: error: 'AVCaptureSession' is unavailable in watchOS
 37 |     }
 38 |
 39 |     private let captureSession = AVCaptureSession()
    |                                  `- error: 'AVCaptureSession' is unavailable in watchOS
 40 |     private let captureMetadataOutput = AVCaptureMetadataOutput()
 41 |
/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/WWScanViewController/WWScanViewController.swift:40:41: error: 'AVCaptureMetadataOutput' is unavailable in watchOS
 38 |
 39 |     private let captureSession = AVCaptureSession()
 40 |     private let captureMetadataOutput = AVCaptureMetadataOutput()
    |                                         `- error: 'AVCaptureMetadataOutput' is unavailable in watchOS
 41 |
 42 |     private var scanTypes: [AVMetadataObject.ObjectType] = [.qr]
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h:29:12: note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
 27 |  */
 28 | API_AVAILABLE(macos(13.0), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
 29 | @interface AVCaptureMetadataOutput : AVCaptureOutput
    |            `- note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
 30 | {
 31 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:42:29: error: 'AVMetadataObject' is unavailable in watchOS
 40 |     private let captureMetadataOutput = AVCaptureMetadataOutput()
 41 |
 42 |     private var scanTypes: [AVMetadataObject.ObjectType] = [.qr]
    |                             `- error: 'AVMetadataObject' is unavailable in watchOS
 43 |     private var previewLayer: AVCaptureVideoPreviewLayer?
 44 |     private var callbackQueue: DispatchQueue? = .main
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:44:12: note: 'AVMetadataObject' has been explicitly marked unavailable here
 42 |  */
 43 | API_AVAILABLE(macos(10.10), ios(6.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
 44 | @interface AVMetadataObject : NSObject
    |            `- note: 'AVMetadataObject' has been explicitly marked unavailable here
 45 | {
 46 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:42:62: error: 'qr' is unavailable in watchOS
 40 |     private let captureMetadataOutput = AVCaptureMetadataOutput()
 41 |
 42 |     private var scanTypes: [AVMetadataObject.ObjectType] = [.qr]
    |                                                              `- error: 'qr' is unavailable in watchOS
 43 |     private var previewLayer: AVCaptureVideoPreviewLayer?
 44 |     private var callbackQueue: DispatchQueue? = .main
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:531:39: note: 'qr' has been explicitly marked unavailable here
529 |     AVMetadataMachineReadableCodeObject objects generated from QR codes return this constant as their type.
530 |  */
531 | AVF_EXPORT AVMetadataObjectType const AVMetadataObjectTypeQRCode API_AVAILABLE(macos(10.15), ios(7.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos);
    |                                       `- note: 'qr' has been explicitly marked unavailable here
532 |
533 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:43:31: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
 41 |
 42 |     private var scanTypes: [AVMetadataObject.ObjectType] = [.qr]
 43 |     private var previewLayer: AVCaptureVideoPreviewLayer?
    |                               `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
 44 |     private var callbackQueue: DispatchQueue? = .main
 45 |
/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/WWScanViewController/WWScanViewController.swift:18:34: error: 'UIViewController' is unavailable in watchOS
 16 |
 17 | /// [掃瞄條碼的ViewController](https://ecshweb.pchome.com.tw/search/v3.3/?q=條碼掃描器)
 18 | open class WWScanViewController: UIViewController {
    |                                  `- error: 'UIViewController' is unavailable in watchOS
 19 |
 20 |     /// 自訂錯誤
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
    |            `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:57:42: error: 'AVCaptureMetadataOutput' is unavailable in watchOS
 55 | extension WWScanViewController: AVCaptureMetadataOutputObjectsDelegate {
 56 |
 57 |     public func metadataOutput(_ output: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from connection: AVCaptureConnection) {
    |                                          `- error: 'AVCaptureMetadataOutput' is unavailable in watchOS
 58 |
 59 |         guard let metadataObject = metadataObjects.first,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h:29:12: note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
 27 |  */
 28 | API_AVAILABLE(macos(13.0), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
 29 | @interface AVCaptureMetadataOutput : AVCaptureOutput
    |            `- note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
 30 | {
 31 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:57:95: error: 'AVMetadataObject' is unavailable in watchOS
 55 | extension WWScanViewController: AVCaptureMetadataOutputObjectsDelegate {
 56 |
 57 |     public func metadataOutput(_ output: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from connection: AVCaptureConnection) {
    |                                                                                               `- error: 'AVMetadataObject' is unavailable in watchOS
 58 |
 59 |         guard let metadataObject = metadataObjects.first,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:44:12: note: 'AVMetadataObject' has been explicitly marked unavailable here
 42 |  */
 43 | API_AVAILABLE(macos(10.10), ios(6.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
 44 | @interface AVMetadataObject : NSObject
    |            `- note: 'AVMetadataObject' has been explicitly marked unavailable here
 45 | {
 46 | @private
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift (in target 'WWScanViewController' from project 'WWScanViewController')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile WWScanViewController.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:57:131: error: 'AVCaptureConnection' is unavailable in watchOS
 55 | extension WWScanViewController: AVCaptureMetadataOutputObjectsDelegate {
 56 |
 57 |     public func metadataOutput(_ output: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from connection: AVCaptureConnection) {
    |                                                                                                                                   `- error: 'AVCaptureConnection' is unavailable in watchOS
 58 |
 59 |         guard let metadataObject = metadataObjects.first,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/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/WWScanViewController/WWScanViewController.swift:55:33: error: 'AVCaptureMetadataOutputObjectsDelegate' is unavailable in watchOS
 53 |
 54 | // MARK: - AVCaptureMetadataOutputObjectsDelegate
 55 | extension WWScanViewController: AVCaptureMetadataOutputObjectsDelegate {
    |                                 `- error: 'AVCaptureMetadataOutputObjectsDelegate' is unavailable in watchOS
 56 |
 57 |     public func metadataOutput(_ output: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from connection: AVCaptureConnection) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h:126:11: note: 'AVCaptureMetadataOutputObjectsDelegate' has been explicitly marked unavailable here
124 |  */
125 | API_AVAILABLE(macos(13.0), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
126 | @protocol AVCaptureMetadataOutputObjectsDelegate <NSObject>
    |           `- note: 'AVCaptureMetadataOutputObjectsDelegate' has been explicitly marked unavailable here
127 |
128 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:77:28: error: 'AVMetadataObject' is unavailable in watchOS
 75 |     ///   - delegate: ScanDelegate
 76 |     ///   - queue: DispatchQueue?
 77 |     func configure(types: [AVMetadataObject.ObjectType], delegate: WWScanDelegate, queue: DispatchQueue? = .main) {
    |                            `- error: 'AVMetadataObject' is unavailable in watchOS
 78 |         scanTypes = types
 79 |         myDelegate = delegate
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:44:12: note: 'AVMetadataObject' has been explicitly marked unavailable here
 42 |  */
 43 | API_AVAILABLE(macos(10.10), ios(6.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
 44 | @interface AVMetadataObject : NSObject
    |            `- note: 'AVMetadataObject' has been explicitly marked unavailable here
 45 | {
 46 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:112:39: error: 'AVMetadataObject' is unavailable in watchOS
110 |
111 |     /// [AVCaptureMetadataOutputObjectsDelegate](https://developer.apple.com/documentation/avfoundation/avcapturemetadataoutputobjectsdelegate/1389481-metadataoutput)
112 |     func qrcodeOutputSetting(types : [AVMetadataObject.ObjectType]) {
    |                                       `- error: 'AVMetadataObject' is unavailable in watchOS
113 |         captureMetadataOutput.setMetadataObjectsDelegate(self, queue: callbackQueue)
114 |         captureMetadataOutput.metadataObjectTypes = types
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:44:12: note: 'AVMetadataObject' has been explicitly marked unavailable here
 42 |  */
 43 | API_AVAILABLE(macos(10.10), ios(6.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
 44 | @interface AVMetadataObject : NSObject
    |            `- note: 'AVMetadataObject' has been explicitly marked unavailable here
 45 | {
 46 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:60:112: error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
 58 |
 59 |         guard let metadataObject = metadataObjects.first,
 60 |               let transformedMetadataObject = previewLayer?.transformedMetadataObject(for: metadataObject) as? AVMetadataMachineReadableCodeObject
    |                                                                                                                `- error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
 61 |         else {
 62 |             myDelegate?.metadataOutput(.failure(MyError.notSupports)); 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/AVMetadataObject.h:649:12: note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
647 |  */
648 | API_AVAILABLE(macos(10.15), ios(7.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
649 | @interface AVMetadataMachineReadableCodeObject : AVMetadataObject
    |            `- note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
650 | {
651 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:96:28: error: 'AVCaptureDevice' is unavailable in watchOS
 94 |     func initSetting() {
 95 |
 96 |         guard let device = AVCaptureDevice._default(for: .video),
    |                            `- error: 'AVCaptureDevice' is unavailable in watchOS
 97 |               let input = try? device._captureInput().get(),
 98 |               let previewLayer = Optional.some(captureSession._previewLayer(with: view.bounds, 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/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
 132 |  */
 133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
 134 | @interface AVCaptureDevice : NSObject
     |            `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
 135 | {
 136 | @private
SwiftCompile normal arm64_32 Compiling\ resource_bundle_accessor.swift /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/DerivedSources/resource_bundle_accessor.swift (in target 'WWScanViewController' from project 'WWScanViewController')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/DerivedSources/resource_bundle_accessor.swift (in target 'WWScanViewController' from project 'WWScanViewController')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile resource_bundle_accessor.swift
SwiftCompile normal arm64 Compiling\ WWScanViewController.swift /Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift (in target 'WWScanViewController' from project 'WWScanViewController')
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:14:42: error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
 12 |
 13 |     /// [取得掃瞄到的結果](https://ithelp.ithome.com.tw/articles/10197599)
 14 |     func metadataOutput(_ result: Result<AVMetadataMachineReadableCodeObject, Error>)
    |                                          `- error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
 15 | }
 16 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:649:12: note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
647 |  */
648 | API_AVAILABLE(macos(10.15), ios(7.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
649 | @interface AVMetadataMachineReadableCodeObject : AVMetadataObject
    |            `- note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
650 | {
651 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:39:34: error: 'AVCaptureSession' is unavailable in watchOS
 37 |     }
 38 |
 39 |     private let captureSession = AVCaptureSession()
    |                                  `- error: 'AVCaptureSession' is unavailable in watchOS
 40 |     private let captureMetadataOutput = AVCaptureMetadataOutput()
 41 |
/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/WWScanViewController/WWScanViewController.swift:40:41: error: 'AVCaptureMetadataOutput' is unavailable in watchOS
 38 |
 39 |     private let captureSession = AVCaptureSession()
 40 |     private let captureMetadataOutput = AVCaptureMetadataOutput()
    |                                         `- error: 'AVCaptureMetadataOutput' is unavailable in watchOS
 41 |
 42 |     private var scanTypes: [AVMetadataObject.ObjectType] = [.qr]
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h:29:12: note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
 27 |  */
 28 | API_AVAILABLE(macos(13.0), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
 29 | @interface AVCaptureMetadataOutput : AVCaptureOutput
    |            `- note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
 30 | {
 31 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:42:29: error: 'AVMetadataObject' is unavailable in watchOS
 40 |     private let captureMetadataOutput = AVCaptureMetadataOutput()
 41 |
 42 |     private var scanTypes: [AVMetadataObject.ObjectType] = [.qr]
    |                             `- error: 'AVMetadataObject' is unavailable in watchOS
 43 |     private var previewLayer: AVCaptureVideoPreviewLayer?
 44 |     private var callbackQueue: DispatchQueue? = .main
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:44:12: note: 'AVMetadataObject' has been explicitly marked unavailable here
 42 |  */
 43 | API_AVAILABLE(macos(10.10), ios(6.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
 44 | @interface AVMetadataObject : NSObject
    |            `- note: 'AVMetadataObject' has been explicitly marked unavailable here
 45 | {
 46 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:42:62: error: 'qr' is unavailable in watchOS
 40 |     private let captureMetadataOutput = AVCaptureMetadataOutput()
 41 |
 42 |     private var scanTypes: [AVMetadataObject.ObjectType] = [.qr]
    |                                                              `- error: 'qr' is unavailable in watchOS
 43 |     private var previewLayer: AVCaptureVideoPreviewLayer?
 44 |     private var callbackQueue: DispatchQueue? = .main
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:531:39: note: 'qr' has been explicitly marked unavailable here
529 |     AVMetadataMachineReadableCodeObject objects generated from QR codes return this constant as their type.
530 |  */
531 | AVF_EXPORT AVMetadataObjectType const AVMetadataObjectTypeQRCode API_AVAILABLE(macos(10.15), ios(7.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos);
    |                                       `- note: 'qr' has been explicitly marked unavailable here
532 |
533 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:43:31: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
 41 |
 42 |     private var scanTypes: [AVMetadataObject.ObjectType] = [.qr]
 43 |     private var previewLayer: AVCaptureVideoPreviewLayer?
    |                               `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
 44 |     private var callbackQueue: DispatchQueue? = .main
 45 |
/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/WWScanViewController/WWScanViewController.swift:18:34: error: 'UIViewController' is unavailable in watchOS
 16 |
 17 | /// [掃瞄條碼的ViewController](https://ecshweb.pchome.com.tw/search/v3.3/?q=條碼掃描器)
 18 | open class WWScanViewController: UIViewController {
    |                                  `- error: 'UIViewController' is unavailable in watchOS
 19 |
 20 |     /// 自訂錯誤
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
    |            `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:57:42: error: 'AVCaptureMetadataOutput' is unavailable in watchOS
 55 | extension WWScanViewController: AVCaptureMetadataOutputObjectsDelegate {
 56 |
 57 |     public func metadataOutput(_ output: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from connection: AVCaptureConnection) {
    |                                          `- error: 'AVCaptureMetadataOutput' is unavailable in watchOS
 58 |
 59 |         guard let metadataObject = metadataObjects.first,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h:29:12: note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
 27 |  */
 28 | API_AVAILABLE(macos(13.0), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
 29 | @interface AVCaptureMetadataOutput : AVCaptureOutput
    |            `- note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
 30 | {
 31 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:57:95: error: 'AVMetadataObject' is unavailable in watchOS
 55 | extension WWScanViewController: AVCaptureMetadataOutputObjectsDelegate {
 56 |
 57 |     public func metadataOutput(_ output: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from connection: AVCaptureConnection) {
    |                                                                                               `- error: 'AVMetadataObject' is unavailable in watchOS
 58 |
 59 |         guard let metadataObject = metadataObjects.first,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:44:12: note: 'AVMetadataObject' has been explicitly marked unavailable here
 42 |  */
 43 | API_AVAILABLE(macos(10.10), ios(6.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
 44 | @interface AVMetadataObject : NSObject
    |            `- note: 'AVMetadataObject' has been explicitly marked unavailable here
 45 | {
 46 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:57:131: error: 'AVCaptureConnection' is unavailable in watchOS
 55 | extension WWScanViewController: AVCaptureMetadataOutputObjectsDelegate {
 56 |
 57 |     public func metadataOutput(_ output: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from connection: AVCaptureConnection) {
    |                                                                                                                                   `- error: 'AVCaptureConnection' is unavailable in watchOS
 58 |
 59 |         guard let metadataObject = metadataObjects.first,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/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/WWScanViewController/WWScanViewController.swift:55:33: error: 'AVCaptureMetadataOutputObjectsDelegate' is unavailable in watchOS
 53 |
 54 | // MARK: - AVCaptureMetadataOutputObjectsDelegate
 55 | extension WWScanViewController: AVCaptureMetadataOutputObjectsDelegate {
    |                                 `- error: 'AVCaptureMetadataOutputObjectsDelegate' is unavailable in watchOS
 56 |
 57 |     public func metadataOutput(_ output: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from connection: AVCaptureConnection) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h:126:11: note: 'AVCaptureMetadataOutputObjectsDelegate' has been explicitly marked unavailable here
124 |  */
125 | API_AVAILABLE(macos(13.0), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
126 | @protocol AVCaptureMetadataOutputObjectsDelegate <NSObject>
    |           `- note: 'AVCaptureMetadataOutputObjectsDelegate' has been explicitly marked unavailable here
127 |
128 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:77:28: error: 'AVMetadataObject' is unavailable in watchOS
 75 |     ///   - delegate: ScanDelegate
 76 |     ///   - queue: DispatchQueue?
 77 |     func configure(types: [AVMetadataObject.ObjectType], delegate: WWScanDelegate, queue: DispatchQueue? = .main) {
    |                            `- error: 'AVMetadataObject' is unavailable in watchOS
 78 |         scanTypes = types
 79 |         myDelegate = delegate
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:44:12: note: 'AVMetadataObject' has been explicitly marked unavailable here
 42 |  */
 43 | API_AVAILABLE(macos(10.10), ios(6.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
 44 | @interface AVMetadataObject : NSObject
    |            `- note: 'AVMetadataObject' has been explicitly marked unavailable here
 45 | {
 46 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:112:39: error: 'AVMetadataObject' is unavailable in watchOS
110 |
111 |     /// [AVCaptureMetadataOutputObjectsDelegate](https://developer.apple.com/documentation/avfoundation/avcapturemetadataoutputobjectsdelegate/1389481-metadataoutput)
112 |     func qrcodeOutputSetting(types : [AVMetadataObject.ObjectType]) {
    |                                       `- error: 'AVMetadataObject' is unavailable in watchOS
113 |         captureMetadataOutput.setMetadataObjectsDelegate(self, queue: callbackQueue)
114 |         captureMetadataOutput.metadataObjectTypes = types
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:44:12: note: 'AVMetadataObject' has been explicitly marked unavailable here
 42 |  */
 43 | API_AVAILABLE(macos(10.10), ios(6.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
 44 | @interface AVMetadataObject : NSObject
    |            `- note: 'AVMetadataObject' has been explicitly marked unavailable here
 45 | {
 46 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:60:112: error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
 58 |
 59 |         guard let metadataObject = metadataObjects.first,
 60 |               let transformedMetadataObject = previewLayer?.transformedMetadataObject(for: metadataObject) as? AVMetadataMachineReadableCodeObject
    |                                                                                                                `- error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
 61 |         else {
 62 |             myDelegate?.metadataOutput(.failure(MyError.notSupports)); 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/AVMetadataObject.h:649:12: note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
647 |  */
648 | API_AVAILABLE(macos(10.15), ios(7.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
649 | @interface AVMetadataMachineReadableCodeObject : AVMetadataObject
    |            `- note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
650 | {
651 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:96:28: error: 'AVCaptureDevice' is unavailable in watchOS
 94 |     func initSetting() {
 95 |
 96 |         guard let device = AVCaptureDevice._default(for: .video),
    |                            `- error: 'AVCaptureDevice' is unavailable in watchOS
 97 |               let input = try? device._captureInput().get(),
 98 |               let previewLayer = Optional.some(captureSession._previewLayer(with: view.bounds, 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/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
 132 |  */
 133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
 134 | @interface AVCaptureDevice : NSObject
     |            `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
 135 | {
 136 | @private
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift (in target 'WWScanViewController' from project 'WWScanViewController')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile WWScanViewController.swift
SwiftCompile normal arm64 Compiling\ resource_bundle_accessor.swift /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/DerivedSources/resource_bundle_accessor.swift (in target 'WWScanViewController' from project 'WWScanViewController')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/DerivedSources/resource_bundle_accessor.swift (in target 'WWScanViewController' from project 'WWScanViewController')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile resource_bundle_accessor.swift
SwiftCompile normal arm64 Compiling\ Extension+.swift /Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/Extension+.swift (in target 'WWScanViewController' from project 'WWScanViewController')
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/Extension+.swift:15:52: error: 'AVCaptureDevice' is unavailable in watchOS
13 |
14 |     /// 取得預設影音裝置 (NSCameraUsageDescription / NSMicrophoneUsageDescription)
15 |     static func _default(for type: AVMediaType) -> AVCaptureDevice? { return AVCaptureDevice.default(for: type) }
   |                                                    `- error: 'AVCaptureDevice' is unavailable in watchOS
16 | }
17 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
 132 |  */
 133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
 134 | @interface AVCaptureDevice : NSObject
     |            `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
 135 | {
 136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/Extension+.swift:12:11: error: 'AVCaptureDevice' is unavailable in watchOS
10 |
11 | // MARK: - AVCaptureDevice (static function)
12 | extension AVCaptureDevice {
   |           `- error: 'AVCaptureDevice' is unavailable in watchOS
13 |
14 |     /// 取得預設影音裝置 (NSCameraUsageDescription / NSMicrophoneUsageDescription)
/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/WWScanViewController/Extension+.swift:22:30: error: 'AVCaptureDevice' is unavailable in watchOS
20 |
21 |     /// 判斷鏡頭的位置 (前後) => .front / .back
22 |     func _videoPosition() -> AVCaptureDevice.Position { return self.position }
   |                              `- error: 'AVCaptureDevice' is unavailable in watchOS
23 |
24 |     /// 取得裝置的Input => NSCameraUsageDescription / NSMicrophoneUsageDescription
/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/WWScanViewController/Extension+.swift:25:36: error: 'AVCaptureDeviceInput' is unavailable in watchOS
23 |
24 |     /// 取得裝置的Input => NSCameraUsageDescription / NSMicrophoneUsageDescription
25 |     func _captureInput() -> Result<AVCaptureDeviceInput, Error> {
   |                                    `- error: 'AVCaptureDeviceInput' is unavailable in watchOS
26 |
27 |         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/WWScanViewController/Extension+.swift:19:11: error: 'AVCaptureDevice' is unavailable in watchOS
17 |
18 | // MARK: - AVCaptureDevice (class function)
19 | extension AVCaptureDevice {
   |           `- error: 'AVCaptureDevice' is unavailable in watchOS
20 |
21 |     /// 判斷鏡頭的位置 (前後) => .front / .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/WWScanViewController/Extension+.swift:44:102: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
42 |     ///   - videoGravity: AVLayerVideoGravity => .resizeAspectFill
43 |     /// - Returns: AVCaptureVideoPreviewLayer
44 |     func _previewLayer(with frame: CGRect, videoGravity: AVLayerVideoGravity = .resizeAspectFill) -> AVCaptureVideoPreviewLayer {
   |                                                                                                      `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
45 |
46 |         let previewLayer = AVCaptureVideoPreviewLayer(session: self)
/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/WWScanViewController/Extension+.swift:44:81: error: 'resizeAspectFill' is unavailable in watchOS
42 |     ///   - videoGravity: AVLayerVideoGravity => .resizeAspectFill
43 |     /// - Returns: AVCaptureVideoPreviewLayer
44 |     func _previewLayer(with frame: CGRect, videoGravity: AVLayerVideoGravity = .resizeAspectFill) -> AVCaptureVideoPreviewLayer {
   |                                                                                 `- error: 'resizeAspectFill' is unavailable in watchOS
45 |
46 |         let previewLayer = AVCaptureVideoPreviewLayer(session: self)
/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/WWScanViewController/Extension+.swift:57:32: error: 'AVCaptureInput' is unavailable in watchOS
55 |     /// - Parameter input: AVCaptureInput
56 |     /// - Returns: Bool
57 |     func _canAddInput(_ input: AVCaptureInput) -> Bool {
   |                                `- error: 'AVCaptureInput' is unavailable in watchOS
58 |         guard self.canAddInput(input) else { return false }
59 |         self.addInput(input); return true
/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:38:12: note: 'AVCaptureInput' has been explicitly marked unavailable here
 36 |  */
 37 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
 38 | @interface AVCaptureInput : NSObject
    |            `- note: 'AVCaptureInput' has been explicitly marked unavailable here
 39 | {
 40 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/Extension+.swift:65:34: error: 'AVCaptureOutput' is unavailable in watchOS
63 |     /// - Parameter input: AVCaptureOutput
64 |     /// - Returns: Bool
65 |     func _canAddOutput(_ output: AVCaptureOutput) -> Bool {
   |                                  `- error: 'AVCaptureOutput' is unavailable in watchOS
66 |         guard self.canAddOutput(output) else { return false }
67 |         self.addOutput(output); return true
/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/WWScanViewController/Extension+.swift:37:11: error: 'AVCaptureSession' is unavailable in watchOS
35 |
36 | // MARK: - AVCaptureSession (class function)
37 | extension AVCaptureSession {
   |           `- error: 'AVCaptureSession' is unavailable in watchOS
38 |
39 |     /// 產生、設定AVCaptureVideoPreviewLayer
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/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/WWScanViewController/Extension+.swift:15:78: error: 'AVCaptureDevice' is unavailable in watchOS
13 |
14 |     /// 取得預設影音裝置 (NSCameraUsageDescription / NSMicrophoneUsageDescription)
15 |     static func _default(for type: AVMediaType) -> AVCaptureDevice? { return AVCaptureDevice.default(for: type) }
   |                                                                              `- error: 'AVCaptureDevice' is unavailable in watchOS
16 | }
17 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
 132 |  */
 133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
 134 | @interface AVCaptureDevice : NSObject
     |            `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
 135 | {
 136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/Extension+.swift:28:35: error: 'AVCaptureDeviceInput' is unavailable in watchOS
26 |
27 |         do {
28 |             let deviceInput = try AVCaptureDeviceInput(device: self)
   |                                   `- error: 'AVCaptureDeviceInput' is unavailable in watchOS
29 |             return .success(deviceInput)
30 |         } catch {
/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
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/Extension+.swift (in target 'WWScanViewController' from project 'WWScanViewController')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Extension+.swift
SwiftEmitModule normal arm64 Emitting\ module\ for\ WWScanViewController (in target 'WWScanViewController' from project 'WWScanViewController')
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/Extension+.swift:15:52: error: 'AVCaptureDevice' is unavailable in watchOS
13 |
14 |     /// 取得預設影音裝置 (NSCameraUsageDescription / NSMicrophoneUsageDescription)
15 |     static func _default(for type: AVMediaType) -> AVCaptureDevice? { return AVCaptureDevice.default(for: type) }
   |                                                    `- error: 'AVCaptureDevice' is unavailable in watchOS
16 | }
17 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:134:12: note: 'AVCaptureDevice' has been explicitly marked unavailable here
 132 |  */
 133 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
 134 | @interface AVCaptureDevice : NSObject
     |            `- note: 'AVCaptureDevice' has been explicitly marked unavailable here
 135 | {
 136 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/Extension+.swift:12:11: error: 'AVCaptureDevice' is unavailable in watchOS
10 |
11 | // MARK: - AVCaptureDevice (static function)
12 | extension AVCaptureDevice {
   |           `- error: 'AVCaptureDevice' is unavailable in watchOS
13 |
14 |     /// 取得預設影音裝置 (NSCameraUsageDescription / NSMicrophoneUsageDescription)
/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/WWScanViewController/Extension+.swift:22:30: error: 'AVCaptureDevice' is unavailable in watchOS
20 |
21 |     /// 判斷鏡頭的位置 (前後) => .front / .back
22 |     func _videoPosition() -> AVCaptureDevice.Position { return self.position }
   |                              `- error: 'AVCaptureDevice' is unavailable in watchOS
23 |
24 |     /// 取得裝置的Input => NSCameraUsageDescription / NSMicrophoneUsageDescription
/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/WWScanViewController/Extension+.swift:25:36: error: 'AVCaptureDeviceInput' is unavailable in watchOS
23 |
24 |     /// 取得裝置的Input => NSCameraUsageDescription / NSMicrophoneUsageDescription
25 |     func _captureInput() -> Result<AVCaptureDeviceInput, Error> {
   |                                    `- error: 'AVCaptureDeviceInput' is unavailable in watchOS
26 |
27 |         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/WWScanViewController/Extension+.swift:19:11: error: 'AVCaptureDevice' is unavailable in watchOS
17 |
18 | // MARK: - AVCaptureDevice (class function)
19 | extension AVCaptureDevice {
   |           `- error: 'AVCaptureDevice' is unavailable in watchOS
20 |
21 |     /// 判斷鏡頭的位置 (前後) => .front / .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/WWScanViewController/Extension+.swift:44:102: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
42 |     ///   - videoGravity: AVLayerVideoGravity => .resizeAspectFill
43 |     /// - Returns: AVCaptureVideoPreviewLayer
44 |     func _previewLayer(with frame: CGRect, videoGravity: AVLayerVideoGravity = .resizeAspectFill) -> AVCaptureVideoPreviewLayer {
   |                                                                                                      `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
45 |
46 |         let previewLayer = AVCaptureVideoPreviewLayer(session: self)
/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/WWScanViewController/Extension+.swift:44:81: error: 'resizeAspectFill' is unavailable in watchOS
42 |     ///   - videoGravity: AVLayerVideoGravity => .resizeAspectFill
43 |     /// - Returns: AVCaptureVideoPreviewLayer
44 |     func _previewLayer(with frame: CGRect, videoGravity: AVLayerVideoGravity = .resizeAspectFill) -> AVCaptureVideoPreviewLayer {
   |                                                                                 `- error: 'resizeAspectFill' is unavailable in watchOS
45 |
46 |         let previewLayer = AVCaptureVideoPreviewLayer(session: self)
/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/WWScanViewController/Extension+.swift:57:32: error: 'AVCaptureInput' is unavailable in watchOS
55 |     /// - Parameter input: AVCaptureInput
56 |     /// - Returns: Bool
57 |     func _canAddInput(_ input: AVCaptureInput) -> Bool {
   |                                `- error: 'AVCaptureInput' is unavailable in watchOS
58 |         guard self.canAddInput(input) else { return false }
59 |         self.addInput(input); return true
/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:38:12: note: 'AVCaptureInput' has been explicitly marked unavailable here
 36 |  */
 37 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
 38 | @interface AVCaptureInput : NSObject
    |            `- note: 'AVCaptureInput' has been explicitly marked unavailable here
 39 | {
 40 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/Extension+.swift:65:34: error: 'AVCaptureOutput' is unavailable in watchOS
63 |     /// - Parameter input: AVCaptureOutput
64 |     /// - Returns: Bool
65 |     func _canAddOutput(_ output: AVCaptureOutput) -> Bool {
   |                                  `- error: 'AVCaptureOutput' is unavailable in watchOS
66 |         guard self.canAddOutput(output) else { return false }
67 |         self.addOutput(output); return true
/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/WWScanViewController/Extension+.swift:37:11: error: 'AVCaptureSession' is unavailable in watchOS
35 |
36 | // MARK: - AVCaptureSession (class function)
37 | extension AVCaptureSession {
   |           `- error: 'AVCaptureSession' is unavailable in watchOS
38 |
39 |     /// 產生、設定AVCaptureVideoPreviewLayer
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/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/WWScanViewController/WWScanViewController.swift:14:42: error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
 12 |
 13 |     /// [取得掃瞄到的結果](https://ithelp.ithome.com.tw/articles/10197599)
 14 |     func metadataOutput(_ result: Result<AVMetadataMachineReadableCodeObject, Error>)
    |                                          `- error: 'AVMetadataMachineReadableCodeObject' is unavailable in watchOS
 15 | }
 16 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:649:12: note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
647 |  */
648 | API_AVAILABLE(macos(10.15), ios(7.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
649 | @interface AVMetadataMachineReadableCodeObject : AVMetadataObject
    |            `- note: 'AVMetadataMachineReadableCodeObject' has been explicitly marked unavailable here
650 | {
651 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:39:34: error: 'AVCaptureSession' is unavailable in watchOS
 37 |     }
 38 |
 39 |     private let captureSession = AVCaptureSession()
    |                                  `- error: 'AVCaptureSession' is unavailable in watchOS
 40 |     private let captureMetadataOutput = AVCaptureMetadataOutput()
 41 |
/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/WWScanViewController/WWScanViewController.swift:40:41: error: 'AVCaptureMetadataOutput' is unavailable in watchOS
 38 |
 39 |     private let captureSession = AVCaptureSession()
 40 |     private let captureMetadataOutput = AVCaptureMetadataOutput()
    |                                         `- error: 'AVCaptureMetadataOutput' is unavailable in watchOS
 41 |
 42 |     private var scanTypes: [AVMetadataObject.ObjectType] = [.qr]
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h:29:12: note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
 27 |  */
 28 | API_AVAILABLE(macos(13.0), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
 29 | @interface AVCaptureMetadataOutput : AVCaptureOutput
    |            `- note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
 30 | {
 31 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:42:29: error: 'AVMetadataObject' is unavailable in watchOS
 40 |     private let captureMetadataOutput = AVCaptureMetadataOutput()
 41 |
 42 |     private var scanTypes: [AVMetadataObject.ObjectType] = [.qr]
    |                             `- error: 'AVMetadataObject' is unavailable in watchOS
 43 |     private var previewLayer: AVCaptureVideoPreviewLayer?
 44 |     private var callbackQueue: DispatchQueue? = .main
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:44:12: note: 'AVMetadataObject' has been explicitly marked unavailable here
 42 |  */
 43 | API_AVAILABLE(macos(10.10), ios(6.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
 44 | @interface AVMetadataObject : NSObject
    |            `- note: 'AVMetadataObject' has been explicitly marked unavailable here
 45 | {
 46 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:42:62: error: 'qr' is unavailable in watchOS
 40 |     private let captureMetadataOutput = AVCaptureMetadataOutput()
 41 |
 42 |     private var scanTypes: [AVMetadataObject.ObjectType] = [.qr]
    |                                                              `- error: 'qr' is unavailable in watchOS
 43 |     private var previewLayer: AVCaptureVideoPreviewLayer?
 44 |     private var callbackQueue: DispatchQueue? = .main
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:531:39: note: 'qr' has been explicitly marked unavailable here
529 |     AVMetadataMachineReadableCodeObject objects generated from QR codes return this constant as their type.
530 |  */
531 | AVF_EXPORT AVMetadataObjectType const AVMetadataObjectTypeQRCode API_AVAILABLE(macos(10.15), ios(7.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos);
    |                                       `- note: 'qr' has been explicitly marked unavailable here
532 |
533 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:43:31: error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
 41 |
 42 |     private var scanTypes: [AVMetadataObject.ObjectType] = [.qr]
 43 |     private var previewLayer: AVCaptureVideoPreviewLayer?
    |                               `- error: 'AVCaptureVideoPreviewLayer' is unavailable in watchOS
 44 |     private var callbackQueue: DispatchQueue? = .main
 45 |
/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/WWScanViewController/WWScanViewController.swift:18:34: error: 'UIViewController' is unavailable in watchOS
 16 |
 17 | /// [掃瞄條碼的ViewController](https://ecshweb.pchome.com.tw/search/v3.3/?q=條碼掃描器)
 18 | open class WWScanViewController: UIViewController {
    |                                  `- error: 'UIViewController' is unavailable in watchOS
 19 |
 20 |     /// 自訂錯誤
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
    |            `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:57:42: error: 'AVCaptureMetadataOutput' is unavailable in watchOS
 55 | extension WWScanViewController: AVCaptureMetadataOutputObjectsDelegate {
 56 |
 57 |     public func metadataOutput(_ output: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from connection: AVCaptureConnection) {
    |                                          `- error: 'AVCaptureMetadataOutput' is unavailable in watchOS
 58 |
 59 |         guard let metadataObject = metadataObjects.first,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h:29:12: note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
 27 |  */
 28 | API_AVAILABLE(macos(13.0), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
 29 | @interface AVCaptureMetadataOutput : AVCaptureOutput
    |            `- note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
 30 | {
 31 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:57:95: error: 'AVMetadataObject' is unavailable in watchOS
 55 | extension WWScanViewController: AVCaptureMetadataOutputObjectsDelegate {
 56 |
 57 |     public func metadataOutput(_ output: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from connection: AVCaptureConnection) {
    |                                                                                               `- error: 'AVMetadataObject' is unavailable in watchOS
 58 |
 59 |         guard let metadataObject = metadataObjects.first,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:44:12: note: 'AVMetadataObject' has been explicitly marked unavailable here
 42 |  */
 43 | API_AVAILABLE(macos(10.10), ios(6.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
 44 | @interface AVMetadataObject : NSObject
    |            `- note: 'AVMetadataObject' has been explicitly marked unavailable here
 45 | {
 46 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:57:131: error: 'AVCaptureConnection' is unavailable in watchOS
 55 | extension WWScanViewController: AVCaptureMetadataOutputObjectsDelegate {
 56 |
 57 |     public func metadataOutput(_ output: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from connection: AVCaptureConnection) {
    |                                                                                                                                   `- error: 'AVCaptureConnection' is unavailable in watchOS
 58 |
 59 |         guard let metadataObject = metadataObjects.first,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/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/WWScanViewController/WWScanViewController.swift:55:33: error: 'AVCaptureMetadataOutputObjectsDelegate' is unavailable in watchOS
 53 |
 54 | // MARK: - AVCaptureMetadataOutputObjectsDelegate
 55 | extension WWScanViewController: AVCaptureMetadataOutputObjectsDelegate {
    |                                 `- error: 'AVCaptureMetadataOutputObjectsDelegate' is unavailable in watchOS
 56 |
 57 |     public func metadataOutput(_ output: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from connection: AVCaptureConnection) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h:126:11: note: 'AVCaptureMetadataOutputObjectsDelegate' has been explicitly marked unavailable here
124 |  */
125 | API_AVAILABLE(macos(13.0), ios(6.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos)
126 | @protocol AVCaptureMetadataOutputObjectsDelegate <NSObject>
    |           `- note: 'AVCaptureMetadataOutputObjectsDelegate' has been explicitly marked unavailable here
127 |
128 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:77:28: error: 'AVMetadataObject' is unavailable in watchOS
 75 |     ///   - delegate: ScanDelegate
 76 |     ///   - queue: DispatchQueue?
 77 |     func configure(types: [AVMetadataObject.ObjectType], delegate: WWScanDelegate, queue: DispatchQueue? = .main) {
    |                            `- error: 'AVMetadataObject' is unavailable in watchOS
 78 |         scanTypes = types
 79 |         myDelegate = delegate
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:44:12: note: 'AVMetadataObject' has been explicitly marked unavailable here
 42 |  */
 43 | API_AVAILABLE(macos(10.10), ios(6.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
 44 | @interface AVMetadataObject : NSObject
    |            `- note: 'AVMetadataObject' has been explicitly marked unavailable here
 45 | {
 46 | @private
/Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift:112:39: error: 'AVMetadataObject' is unavailable in watchOS
110 |
111 |     /// [AVCaptureMetadataOutputObjectsDelegate](https://developer.apple.com/documentation/avfoundation/avcapturemetadataoutputobjectsdelegate/1389481-metadataoutput)
112 |     func qrcodeOutputSetting(types : [AVMetadataObject.ObjectType]) {
    |                                       `- error: 'AVMetadataObject' is unavailable in watchOS
113 |         captureMetadataOutput.setMetadataObjectsDelegate(self, queue: callbackQueue)
114 |         captureMetadataOutput.metadataObjectTypes = types
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:44:12: note: 'AVMetadataObject' has been explicitly marked unavailable here
 42 |  */
 43 | API_AVAILABLE(macos(10.10), ios(6.0), macCatalyst(14.0), tvos(9.0)) API_UNAVAILABLE(watchos, visionos)
 44 | @interface AVMetadataObject : NSObject
    |            `- note: 'AVMetadataObject' has been explicitly marked unavailable here
 45 | {
 46 | @private
Failed frontend command:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/DerivedSources/resource_bundle_accessor.swift /Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/Extension+.swift /Users/admin/builder/spi-builder-workspace/Sources/WWScanViewController/WWScanViewController.swift -target arm64-apple-watchos9.0 -disable-cross-import-overlay-search -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/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/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64/WWScanViewController-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 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_AVAILABLE -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/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name WWScanViewController -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64/WWScanViewController_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/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64/WWScanViewController.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64/WWScanViewController.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64/WWScanViewController-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64/WWScanViewController-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64/WWScanViewController-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64/WWScanViewController.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWScanViewController.build/Debug-watchos/WWScanViewController-t.build/Objects-normal/arm64/WWScanViewController.abi.json
SwiftCompile normal arm64 (in target 'WWScanViewController' from project 'WWScanViewController')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode

PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
2026-09-20 06:14:21.407 xcodebuild[807:4878] [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 'WWScanViewController' from project 'WWScanViewController')
	SwiftEmitModule normal arm64_32 Emitting\ module\ for\ WWScanViewController (in target 'WWScanViewController' from project 'WWScanViewController')
	SwiftEmitModule normal arm64 Emitting\ module\ for\ WWScanViewController (in target 'WWScanViewController' from project 'WWScanViewController')
	SwiftCompile normal arm64 (in target 'WWScanViewController' from project 'WWScanViewController')
	Building workspace WWScanViewController with scheme WWScanViewController
(5 failures)
BUILD FAILURE 6.4 watchOS