The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build CameraManager, reference 5.1.3 (30584f), with Swift 6.1 for visionOS using Xcode 16.3 on 25 Apr 2025 19:17:41 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$PWD/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath $PWD/.derivedData build -scheme CameraManager -destination generic/platform=xrOS

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/imaginary-cloud/CameraManager.git
Reference: 5.1.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/imaginary-cloud/CameraManager
 * tag               5.1.3      -> FETCH_HEAD
HEAD is now at 30584f3 5.1.3
Cloned https://github.com/imaginary-cloud/CameraManager.git
Revision (git rev-parse @):
30584f3b8fcb47ed778b172b8727b10854704927
SUCCESS checkout https://github.com/imaginary-cloud/CameraManager.git at 5.1.3
========================================
Build
========================================
Selected platform:         visionOS
Swift version:             6.1
Building package at path:  $PWD
https://github.com/imaginary-cloud/CameraManager.git
https://github.com/imaginary-cloud/CameraManager.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CameraManager",
  "name" : "CameraManager",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "10.0"
    }
  ],
  "products" : [
    {
      "name" : "CameraManager",
      "targets" : [
        "CameraManager"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "CameraManager",
      "module_type" : "SwiftTarget",
      "name" : "CameraManager",
      "path" : "Sources",
      "product_memberships" : [
        "CameraManager"
      ],
      "sources" : [
        "CameraManager.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Command line invocation:
    /Applications/Xcode-16.3.0.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -resolvePackageDependencies
resolved source packages:
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CameraManager",
  "name" : "CameraManager",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "10.0"
    }
  ],
  "products" : [
    {
      "name" : "CameraManager",
      "targets" : [
        "CameraManager"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "CameraManager",
      "module_type" : "SwiftTarget",
      "name" : "CameraManager",
      "path" : "Sources",
      "product_memberships" : [
        "CameraManager"
      ],
      "sources" : [
        "CameraManager.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
{
  "project" : {
    "configurations" : [
      "Debug",
      "Release"
    ],
    "name" : "CameraManager",
    "schemes" : [
      "camera",
      "CameraManager"
    ],
    "targets" : [
      "camera",
      "CameraManager"
    ]
  }
}
{
  "workspace" : {
    "name" : "spi-builder-workspace",
    "schemes" : [
      "CameraManager"
    ]
  }
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$PWD/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath $PWD/.derivedData build -scheme CameraManager -destination generic/platform=xrOS OTHER_SWIFT_FLAGS=-stats-output-dir .stats -strict-concurrency=complete -enable-upcoming-feature StrictConcurrency -enable-upcoming-feature DisableOutwardActorInference -enable-upcoming-feature GlobalActorIsolatedTypesUsability -enable-upcoming-feature InferSendableFromCaptures
Command line invocation:
    /Applications/Xcode-16.3.0.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 CameraManager -destination generic/platform=xrOS "OTHER_SWIFT_FLAGS=-stats-output-dir .stats -strict-concurrency=complete -enable-upcoming-feature StrictConcurrency -enable-upcoming-feature DisableOutwardActorInference -enable-upcoming-feature GlobalActorIsolatedTypesUsability -enable-upcoming-feature InferSendableFromCaptures"
Build settings from command line:
    OTHER_SWIFT_FLAGS = -stats-output-dir .stats -strict-concurrency=complete -enable-upcoming-feature StrictConcurrency -enable-upcoming-feature DisableOutwardActorInference -enable-upcoming-feature GlobalActorIsolatedTypesUsability -enable-upcoming-feature InferSendableFromCaptures
Resolve Package Graph
Resolved source packages:
  CameraManager: /Users/admin/builder/spi-builder-workspace
ComputePackagePrebuildTargetDependencyGraph
Prepare packages
CreateBuildRequest
SendProjectDescription
CreateBuildOperation
ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (2 targets)
    Target 'CameraManager' in project 'CameraManager'
        ➜ Explicit dependency on target 'CameraManager' in project 'CameraManager'
    Target 'CameraManager' in project 'CameraManager' (no dependencies)
GatherProvisioningInputs
CreateBuildDescription
ExecuteExternalTool /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -isysroot /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk -x c -c /dev/null
ExecuteExternalTool /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc --version
ExecuteExternalTool /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld -version_details
Build description signature: edf11330cab193ad64bbab8b6ef8beeb
Build description path: /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/XCBuildData/edf11330cab193ad64bbab8b6ef8beeb.xcbuilddata
CreateBuildDirectory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-create-build-directory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex
CreateBuildDirectory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-create-build-directory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products
ClangStatCache /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/xros2.4-22O233-407b76dbb837030756cbe1ab3f0b01b6.sdkstatcache
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk -o /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/xros2.4-22O233-407b76dbb837030756cbe1ab3f0b01b6.sdkstatcache
CreateBuildDirectory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/EagerLinkingTBDs/Debug-xros
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-create-build-directory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/EagerLinkingTBDs/Debug-xros
CreateBuildDirectory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-create-build-directory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros
CreateBuildDirectory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros/PackageFrameworks
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-create-build-directory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros/PackageFrameworks
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/CameraManager.DependencyStaticMetadataFileList (in target 'CameraManager' from project 'CameraManager')
    cd /Users/admin/builder/spi-builder-workspace
    write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/CameraManager.DependencyStaticMetadataFileList
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/CameraManager.DependencyMetadataFileList (in target 'CameraManager' from project 'CameraManager')
    cd /Users/admin/builder/spi-builder-workspace
    write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/CameraManager.DependencyMetadataFileList
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/CameraManager.modulemap (in target 'CameraManager' from project 'CameraManager')
    cd /Users/admin/builder/spi-builder-workspace
    write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/CameraManager.modulemap
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/Objects-normal/arm64/CameraManager.SwiftFileList (in target 'CameraManager' from project 'CameraManager')
    cd /Users/admin/builder/spi-builder-workspace
    write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/Objects-normal/arm64/CameraManager.SwiftFileList
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/Objects-normal/arm64/CameraManager.SwiftConstValuesFileList (in target 'CameraManager' from project 'CameraManager')
    cd /Users/admin/builder/spi-builder-workspace
    write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/Objects-normal/arm64/CameraManager.SwiftConstValuesFileList
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/Objects-normal/arm64/CameraManager-OutputFileMap.json (in target 'CameraManager' from project 'CameraManager')
    cd /Users/admin/builder/spi-builder-workspace
    write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/Objects-normal/arm64/CameraManager-OutputFileMap.json
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/Objects-normal/arm64/CameraManager_const_extract_protocols.json (in target 'CameraManager' from project 'CameraManager')
    cd /Users/admin/builder/spi-builder-workspace
    write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/Objects-normal/arm64/CameraManager_const_extract_protocols.json
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/Objects-normal/arm64/CameraManager.LinkFileList (in target 'CameraManager' from project 'CameraManager')
    cd /Users/admin/builder/spi-builder-workspace
    write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/Objects-normal/arm64/CameraManager.LinkFileList
Copy /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/GeneratedModuleMaps-xros/CameraManager.modulemap /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/CameraManager.modulemap (in target 'CameraManager' from project 'CameraManager')
    cd /Users/admin/builder/spi-builder-workspace
    builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/CameraManager.modulemap /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/GeneratedModuleMaps-xros
SwiftDriver CameraManager normal arm64 com.apple.xcode.tools.swift.compiler (in target 'CameraManager' from project 'CameraManager')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftDriver -- /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -module-name CameraManager -Onone -enforce-exclusivity\=checked @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/Objects-normal/arm64/CameraManager.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -stats-output-dir .stats -strict-concurrency\=complete -enable-upcoming-feature StrictConcurrency -enable-upcoming-feature DisableOutwardActorInference -enable-upcoming-feature GlobalActorIsolatedTypesUsability -enable-upcoming-feature InferSendableFromCaptures -plugin-path /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk -target arm64-apple-xros1.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 -swift-version 5 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros -I /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros -F /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/Library/Frameworks -F /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/Developer/Library/Frameworks -parse-as-library -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/xros2.4-22O233-407b76dbb837030756cbe1ab3f0b01b6.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/Objects-normal/arm64/CameraManager-OutputFileMap.json -use-frontend-parseable-output -save-temps -no-color-diagnostics -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/Objects-normal/arm64/CameraManager.swiftmodule -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/swift-overrides.hmap -emit-const-values -Xfrontend -const-gather-protocols-file -Xfrontend /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/Objects-normal/arm64/CameraManager_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.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/CameraManager.build/Debug-xros/CameraManager.build/Objects-normal/arm64/CameraManager-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftEmitModule normal arm64 Emitting\ module\ for\ CameraManager (in target 'CameraManager' from project 'CameraManager')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift (in target 'CameraManager' from project 'CameraManager')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode

/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:138:53: error: 'keyWindow' is unavailable in visionOS
        if let topController = UIApplication.shared.keyWindow?.rootViewController {
                                                    ^~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:108:51: note: 'keyWindow' has been explicitly marked unavailable here
@property(nullable, nonatomic,readonly) UIWindow *keyWindow API_DEPRECATED("Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes", ios(2.0, 13.0)) API_UNAVAILABLE(visionos, watchos);
                                                  ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:143:53: error: 'Preset' is unavailable in visionOS
    open func canSetPreset(preset: AVCaptureSession.Preset) -> Bool? {
                                                    ^~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSessionPreset.h:21:20: note: 'Preset' has been explicitly marked unavailable here
typedef NSString * AVCaptureSessionPreset NS_TYPED_ENUM API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
                   ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:279:52: error: 'Preset' is unavailable in visionOS
    open var cameraOutputQuality: AVCaptureSession.Preset = .high {
                                                   ^~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSessionPreset.h:21:20: note: 'Preset' has been explicitly marked unavailable here
typedef NSString * AVCaptureSessionPreset NS_TYPED_ENUM API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
                   ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:279:62: error: 'high' is unavailable in visionOS
    open var cameraOutputQuality: AVCaptureSession.Preset = .high {
                                                             ^~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSessionPreset.h:41:41: note: 'high' has been explicitly marked unavailable here
AVF_EXPORT AVCaptureSessionPreset const AVCaptureSessionPresetHigh API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
                                        ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:307:41: error: 'FocusMode' is unavailable in visionOS
    open var focusMode: AVCaptureDevice.FocusMode = .continuousAutoFocus
                                        ^~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:1058:28: note: 'FocusMode' has been explicitly marked unavailable here
typedef NS_ENUM(NSInteger, AVCaptureFocusMode) {
                           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:310:44: error: 'ExposureMode' is unavailable in visionOS
    open var exposureMode: AVCaptureDevice.ExposureMode = .continuousAutoExposure
                                           ^~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:1272:28: note: 'ExposureMode' has been explicitly marked unavailable here
typedef NS_ENUM(NSInteger, AVCaptureExposureMode) {
                           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:313:38: error: 'AVCaptureVideoStabilizationMode' is unavailable in visionOS
    open var videoStabilisationMode: AVCaptureVideoStabilizationMode = .auto {
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:2867:28: note: 'AVCaptureVideoStabilizationMode' has been explicitly marked unavailable here
typedef NS_ENUM(NSInteger, AVCaptureVideoStabilizationMode) {
                           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:322:44: error: 'AVCaptureVideoStabilizationMode' is unavailable in visionOS
    open var activeVideoStabilisationMode: AVCaptureVideoStabilizationMode {
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:2867:28: note: 'AVCaptureVideoStabilizationMode' has been explicitly marked unavailable here
typedef NS_ENUM(NSInteger, AVCaptureVideoStabilizationMode) {
                           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:355:25: error: 'default(for:)' is only available in visionOS 2.1 or newer
        AVCaptureDevice.default(for: AVMediaType.audio)
                        ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:355:25: note: add 'if #available' version check
        AVCaptureDevice.default(for: AVMediaType.audio)
                        ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:111:12: note: add @available attribute to enclosing class
open class CameraManager: NSObject, AVCaptureFileOutputRecordingDelegate, UIGestureRecognizerDelegate {
           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:358:39: error: 'AVCaptureStillImageOutput' is unavailable in visionOS
    fileprivate var stillImageOutput: AVCaptureStillImageOutput?
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureStillImageOutput.h:29:12: note: 'AVCaptureStillImageOutput' has been explicitly marked unavailable here
@interface AVCaptureStillImageOutput : AVCaptureOutput
           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:359:34: error: 'AVCaptureMovieFileOutput' is unavailable in visionOS
    fileprivate var movieOutput: AVCaptureMovieFileOutput?
                                 ^~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h:405:12: note: 'AVCaptureMovieFileOutput' has been explicitly marked unavailable here
@interface AVCaptureMovieFileOutput : AVCaptureFileOutput
           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:360:35: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
    fileprivate var previewLayer: AVCaptureVideoPreviewLayer?
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureVideoPreviewLayer.h:33:12: note: 'AVCaptureVideoPreviewLayer' has been explicitly marked unavailable here
@interface AVCaptureVideoPreviewLayer : CALayer
           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:881:31: error: 'AVCaptureFileOutput' is unavailable in visionOS
    public func fileOutput(_: AVCaptureFileOutput, didStartRecordingTo _: URL, from _: [AVCaptureConnection]) {
                              ^~~~~~~~~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h:36:12: note: 'AVCaptureFileOutput' has been explicitly marked unavailable here
@interface AVCaptureFileOutput : AVCaptureOutput
           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:890:29: error: 'AVCaptureFileOutput' is unavailable in visionOS
    open func fileOutput(_: AVCaptureFileOutput, didFinishRecordingTo outputFileURL: URL, from _: [AVCaptureConnection], error: Error?) {
                            ^~~~~~~~~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h:36:12: note: 'AVCaptureFileOutput' has been explicitly marked unavailable here
@interface AVCaptureFileOutput : AVCaptureOutput
           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:1172:52: error: 'ExposureMode' is unavailable in visionOS
    func _changeExposureMode(mode: AVCaptureDevice.ExposureMode) {
                                                   ^~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:1272:28: note: 'ExposureMode' has been explicitly marked unavailable here
typedef NS_ENUM(NSInteger, AVCaptureExposureMode) {
                           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:1242:43: error: 'AVCaptureMovieFileOutput' is unavailable in visionOS
    fileprivate func _getMovieOutput() -> AVCaptureMovieFileOutput {
                                          ^~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h:405:12: note: 'AVCaptureMovieFileOutput' has been explicitly marked unavailable here
@interface AVCaptureMovieFileOutput : AVCaptureFileOutput
           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:1286:48: error: 'AVCaptureStillImageOutput' is unavailable in visionOS
    fileprivate func _getStillImageOutput() -> AVCaptureStillImageOutput {
                                               ^~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureStillImageOutput.h:29:12: note: 'AVCaptureStillImageOutput' has been explicitly marked unavailable here
@interface AVCaptureStillImageOutput : AVCaptureOutput
           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:1336:59: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
    fileprivate func _currentCaptureVideoOrientation() -> AVCaptureVideoOrientation {
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:140:28: note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
typedef NS_ENUM(NSInteger, AVCaptureVideoOrientation) {
                           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:1354:59: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
    fileprivate func _currentPreviewVideoOrientation() -> AVCaptureVideoOrientation {
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:140:28: note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
typedef NS_ENUM(NSInteger, AVCaptureVideoOrientation) {
                           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:1366:104: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
    fileprivate func _videoOrientation(forDeviceOrientation deviceOrientation: UIDeviceOrientation) -> AVCaptureVideoOrientation {
                                                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:140:28: note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
typedef NS_ENUM(NSInteger, AVCaptureVideoOrientation) {
                           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:1403:69: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
    fileprivate func _videoOrientationFromStatusBarOrientation() -> AVCaptureVideoOrientation {
                                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:140:28: note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
typedef NS_ENUM(NSInteger, AVCaptureVideoOrientation) {
                           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:1714:21: error: cannot override 'locationManager' which has been marked unavailable
        public func locationManager(_: CLLocationManager, didChangeAuthorization status: CLAuthorizationStatus) {
                    ^
CoreLocation.CLLocationManagerDelegate.locationManager:3:17: note: 'locationManager(_:didChangeAuthorization:)' has been explicitly marked unavailable here
  optional func locationManager(_ manager: CLLocationManager, didChangeAuthorization status: CLAuthorizationStatus)}
                ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:1893:90: error: 'Preset' is unavailable in visionOS
    fileprivate func _updateCameraQualityMode(_ newCameraOutputQuality: AVCaptureSession.Preset) {
                                                                                         ^~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSessionPreset.h:21:20: note: 'Preset' has been explicitly marked unavailable here
typedef NSString * AVCaptureSessionPreset NS_TYPED_ENUM API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
                   ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:111:37: error: 'AVCaptureFileOutputRecordingDelegate' is unavailable in visionOS
open class CameraManager: NSObject, AVCaptureFileOutputRecordingDelegate, UIGestureRecognizerDelegate {
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h:206:11: note: 'AVCaptureFileOutputRecordingDelegate' has been explicitly marked unavailable here
@protocol AVCaptureFileOutputRecordingDelegate <NSObject>
          ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:881:17: warning: main actor-isolated instance method 'fileOutput(_:didStartRecordingTo:from:)' cannot be used to satisfy nonisolated requirement from protocol 'AVCaptureFileOutputRecordingDelegate'; this is an error in the Swift 6 language mode
    public func fileOutput(_: AVCaptureFileOutput, didStartRecordingTo _: URL, from _: [AVCaptureConnection]) {
                ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:881:17: note: add 'nonisolated' to 'fileOutput(_:didStartRecordingTo:from:)' to make this instance method not isolated to the actor
    public func fileOutput(_: AVCaptureFileOutput, didStartRecordingTo _: URL, from _: [AVCaptureConnection]) {
                ^
    nonisolated
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:111:37: note: add '@preconcurrency' to the 'AVCaptureFileOutputRecordingDelegate' conformance to defer isolation checking to run time
open class CameraManager: NSObject, AVCaptureFileOutputRecordingDelegate, UIGestureRecognizerDelegate {
                                    ^
                                    @preconcurrency
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:890:15: warning: main actor-isolated instance method 'fileOutput(_:didFinishRecordingTo:from:error:)' cannot be used to satisfy nonisolated requirement from protocol 'AVCaptureFileOutputRecordingDelegate'; this is an error in the Swift 6 language mode
    open func fileOutput(_: AVCaptureFileOutput, didFinishRecordingTo outputFileURL: URL, from _: [AVCaptureConnection], error: Error?) {
              ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:890:15: note: add 'nonisolated' to 'fileOutput(_:didFinishRecordingTo:from:error:)' to make this instance method not isolated to the actor
    open func fileOutput(_: AVCaptureFileOutput, didFinishRecordingTo outputFileURL: URL, from _: [AVCaptureConnection], error: Error?) {
              ^
    nonisolated
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:2124:35: error: 'AVCaptureMetadataOutput' is unavailable in visionOS
    public func metadataOutput(_: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from _: AVCaptureConnection) {
                                  ^~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h:29:12: note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
@interface AVCaptureMetadataOutput : AVCaptureOutput
           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:2124:88: error: 'AVMetadataObject' is unavailable in visionOS
    public func metadataOutput(_: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from _: AVCaptureConnection) {
                                                                                       ^~~~~~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:41:12: note: 'AVMetadataObject' has been explicitly marked unavailable here
@interface AVMetadataObject : NSObject
           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:2124:17: warning: main actor-isolated instance method 'metadataOutput(_:didOutput:from:)' cannot be used to satisfy nonisolated requirement from protocol 'AVCaptureMetadataOutputObjectsDelegate'; this is an error in the Swift 6 language mode
    public func metadataOutput(_: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from _: AVCaptureConnection) {
                ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:2124:17: note: add 'nonisolated' to 'metadataOutput(_:didOutput:from:)' to make this instance method not isolated to the actor
    public func metadataOutput(_: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from _: AVCaptureConnection) {
                ^
    nonisolated
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:2120:26: note: add '@preconcurrency' to the 'AVCaptureMetadataOutputObjectsDelegate' conformance to defer isolation checking to run time
extension CameraManager: AVCaptureMetadataOutputObjectsDelegate {
                         ^
                         @preconcurrency
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:2120:26: error: 'AVCaptureMetadataOutputObjectsDelegate' is unavailable in visionOS
extension CameraManager: AVCaptureMetadataOutputObjectsDelegate {
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h:119:11: note: 'AVCaptureMetadataOutputObjectsDelegate' has been explicitly marked unavailable here
@protocol AVCaptureMetadataOutputObjectsDelegate <NSObject>
          ^
Failed frontend command:
/Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift -target arm64-apple-xros1.0 -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros -I /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros -F /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/Library/Frameworks -F /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/Developer/Library/Frameworks -no-color-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -swift-version 5 -enforce-exclusivity\=checked -stats-output-dir /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode/.stats -Onone -D SWIFT_PACKAGE -D DEBUG -serialize-debugging-options -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/Objects-normal/arm64/CameraManager_const_extract_protocols.json -enable-upcoming-feature StrictConcurrency -enable-upcoming-feature DisableOutwardActorInference -enable-upcoming-feature GlobalActorIsolatedTypesUsability -enable-upcoming-feature InferSendableFromCaptures -enable-experimental-feature DebugDescriptionMacro -strict-concurrency\=complete -empty-abi-descriptor -plugin-path /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -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 -resource-dir /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/xros2.4-22O233-407b76dbb837030756cbe1ab3f0b01b6.sdkstatcache -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/swift-overrides.hmap -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -module-name CameraManager -frontend-parseable-output -disable-clang-spi -target-sdk-version 2.4 -target-sdk-name xros2.4 -external-plugin-path /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib/swift/host/plugins\#/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/local/lib/swift/host/plugins\#/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/bin/swift-plugin-server -in-process-plugin-server-path /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -plugin-path /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins -plugin-path /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/lib/swift/host/plugins -emit-module-doc-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/Objects-normal/arm64/CameraManager.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/Objects-normal/arm64/CameraManager.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/Objects-normal/arm64/CameraManager-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/Objects-normal/arm64/CameraManager-master-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/Objects-normal/arm64/CameraManager-master-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/Objects-normal/arm64/CameraManager.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/Objects-normal/arm64/CameraManager.abi.json
SwiftCompile normal arm64 Compiling\ CameraManager.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift (in target 'CameraManager' from project 'CameraManager')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift (in target 'CameraManager' from project 'CameraManager')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode

** BUILD FAILED **
The following build commands failed:
	SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift (in target 'CameraManager' from project 'CameraManager')
	SwiftEmitModule normal arm64 Emitting\ module\ for\ CameraManager (in target 'CameraManager' from project 'CameraManager')
	Building workspace spi-builder-workspace with scheme CameraManager
(3 failures)
Command line invocation:
    /Applications/Xcode-16.3.0.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -resolvePackageDependencies
Resolve Package Graph
Resolved source packages:
  CameraManager: /Users/admin/builder/spi-builder-workspace
resolved source packages: CameraManager
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CameraManager",
  "name" : "CameraManager",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "10.0"
    }
  ],
  "products" : [
    {
      "name" : "CameraManager",
      "targets" : [
        "CameraManager"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "CameraManager",
      "module_type" : "SwiftTarget",
      "name" : "CameraManager",
      "path" : "Sources",
      "product_memberships" : [
        "CameraManager"
      ],
      "sources" : [
        "CameraManager.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
{
  "workspace" : {
    "name" : "spi-builder-workspace",
    "schemes" : [
      "CameraManager"
    ]
  }
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$PWD/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath $PWD/.derivedData build -scheme CameraManager -destination generic/platform=xrOS
Command line invocation:
    /Applications/Xcode-16.3.0.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 CameraManager -destination generic/platform=xrOS
Resolve Package Graph
Resolved source packages:
  CameraManager: /Users/admin/builder/spi-builder-workspace
ComputePackagePrebuildTargetDependencyGraph
Prepare packages
CreateBuildRequest
SendProjectDescription
CreateBuildOperation
ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (2 targets)
    Target 'CameraManager' in project 'CameraManager'
        ➜ Explicit dependency on target 'CameraManager' in project 'CameraManager'
    Target 'CameraManager' in project 'CameraManager' (no dependencies)
GatherProvisioningInputs
CreateBuildDescription
ExecuteExternalTool /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -isysroot /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk -x c -c /dev/null
ExecuteExternalTool /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc --version
ExecuteExternalTool /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld -version_details
Build description signature: 63f42dc3604997f14e3b716246e59d34
Build description path: /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/XCBuildData/63f42dc3604997f14e3b716246e59d34.xcbuilddata
ClangStatCache /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/xros2.4-22O233-407b76dbb837030756cbe1ab3f0b01b6.sdkstatcache
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk -o /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/xros2.4-22O233-407b76dbb837030756cbe1ab3f0b01b6.sdkstatcache
SwiftDriver CameraManager normal arm64 com.apple.xcode.tools.swift.compiler (in target 'CameraManager' from project 'CameraManager')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftDriver -- /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -module-name CameraManager -Onone -enforce-exclusivity\=checked @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/Objects-normal/arm64/CameraManager.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DXcode -plugin-path /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk -target arm64-apple-xros1.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 -swift-version 5 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros -I /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros -F /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/Library/Frameworks -F /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/Developer/Library/Frameworks -parse-as-library -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/xros2.4-22O233-407b76dbb837030756cbe1ab3f0b01b6.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/Objects-normal/arm64/CameraManager-OutputFileMap.json -use-frontend-parseable-output -save-temps -no-color-diagnostics -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/Objects-normal/arm64/CameraManager.swiftmodule -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/swift-overrides.hmap -emit-const-values -Xfrontend -const-gather-protocols-file -Xfrontend /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/Objects-normal/arm64/CameraManager_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.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/CameraManager.build/Debug-xros/CameraManager.build/Objects-normal/arm64/CameraManager-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftEmitModule normal arm64 Emitting\ module\ for\ CameraManager (in target 'CameraManager' from project 'CameraManager')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift (in target 'CameraManager' from project 'CameraManager')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode

/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:138:53: error: 'keyWindow' is unavailable in visionOS
        if let topController = UIApplication.shared.keyWindow?.rootViewController {
                                                    ^~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:108:51: note: 'keyWindow' has been explicitly marked unavailable here
@property(nullable, nonatomic,readonly) UIWindow *keyWindow API_DEPRECATED("Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes", ios(2.0, 13.0)) API_UNAVAILABLE(visionos, watchos);
                                                  ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:143:53: error: 'Preset' is unavailable in visionOS
    open func canSetPreset(preset: AVCaptureSession.Preset) -> Bool? {
                                                    ^~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSessionPreset.h:21:20: note: 'Preset' has been explicitly marked unavailable here
typedef NSString * AVCaptureSessionPreset NS_TYPED_ENUM API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
                   ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:279:52: error: 'Preset' is unavailable in visionOS
    open var cameraOutputQuality: AVCaptureSession.Preset = .high {
                                                   ^~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSessionPreset.h:21:20: note: 'Preset' has been explicitly marked unavailable here
typedef NSString * AVCaptureSessionPreset NS_TYPED_ENUM API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
                   ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:279:62: error: 'high' is unavailable in visionOS
    open var cameraOutputQuality: AVCaptureSession.Preset = .high {
                                                             ^~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSessionPreset.h:41:41: note: 'high' has been explicitly marked unavailable here
AVF_EXPORT AVCaptureSessionPreset const AVCaptureSessionPresetHigh API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
                                        ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:307:41: error: 'FocusMode' is unavailable in visionOS
    open var focusMode: AVCaptureDevice.FocusMode = .continuousAutoFocus
                                        ^~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:1058:28: note: 'FocusMode' has been explicitly marked unavailable here
typedef NS_ENUM(NSInteger, AVCaptureFocusMode) {
                           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:310:44: error: 'ExposureMode' is unavailable in visionOS
    open var exposureMode: AVCaptureDevice.ExposureMode = .continuousAutoExposure
                                           ^~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:1272:28: note: 'ExposureMode' has been explicitly marked unavailable here
typedef NS_ENUM(NSInteger, AVCaptureExposureMode) {
                           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:313:38: error: 'AVCaptureVideoStabilizationMode' is unavailable in visionOS
    open var videoStabilisationMode: AVCaptureVideoStabilizationMode = .auto {
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:2867:28: note: 'AVCaptureVideoStabilizationMode' has been explicitly marked unavailable here
typedef NS_ENUM(NSInteger, AVCaptureVideoStabilizationMode) {
                           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:322:44: error: 'AVCaptureVideoStabilizationMode' is unavailable in visionOS
    open var activeVideoStabilisationMode: AVCaptureVideoStabilizationMode {
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:2867:28: note: 'AVCaptureVideoStabilizationMode' has been explicitly marked unavailable here
typedef NS_ENUM(NSInteger, AVCaptureVideoStabilizationMode) {
                           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:355:25: error: 'default(for:)' is only available in visionOS 2.1 or newer
        AVCaptureDevice.default(for: AVMediaType.audio)
                        ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:355:25: note: add 'if #available' version check
        AVCaptureDevice.default(for: AVMediaType.audio)
                        ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:111:12: note: add @available attribute to enclosing class
open class CameraManager: NSObject, AVCaptureFileOutputRecordingDelegate, UIGestureRecognizerDelegate {
           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:358:39: error: 'AVCaptureStillImageOutput' is unavailable in visionOS
    fileprivate var stillImageOutput: AVCaptureStillImageOutput?
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureStillImageOutput.h:29:12: note: 'AVCaptureStillImageOutput' has been explicitly marked unavailable here
@interface AVCaptureStillImageOutput : AVCaptureOutput
           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:359:34: error: 'AVCaptureMovieFileOutput' is unavailable in visionOS
    fileprivate var movieOutput: AVCaptureMovieFileOutput?
                                 ^~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h:405:12: note: 'AVCaptureMovieFileOutput' has been explicitly marked unavailable here
@interface AVCaptureMovieFileOutput : AVCaptureFileOutput
           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:360:35: error: 'AVCaptureVideoPreviewLayer' is unavailable in visionOS
    fileprivate var previewLayer: AVCaptureVideoPreviewLayer?
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureVideoPreviewLayer.h:33:12: note: 'AVCaptureVideoPreviewLayer' has been explicitly marked unavailable here
@interface AVCaptureVideoPreviewLayer : CALayer
           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:881:31: error: 'AVCaptureFileOutput' is unavailable in visionOS
    public func fileOutput(_: AVCaptureFileOutput, didStartRecordingTo _: URL, from _: [AVCaptureConnection]) {
                              ^~~~~~~~~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h:36:12: note: 'AVCaptureFileOutput' has been explicitly marked unavailable here
@interface AVCaptureFileOutput : AVCaptureOutput
           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:890:29: error: 'AVCaptureFileOutput' is unavailable in visionOS
    open func fileOutput(_: AVCaptureFileOutput, didFinishRecordingTo outputFileURL: URL, from _: [AVCaptureConnection], error: Error?) {
                            ^~~~~~~~~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h:36:12: note: 'AVCaptureFileOutput' has been explicitly marked unavailable here
@interface AVCaptureFileOutput : AVCaptureOutput
           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:1172:52: error: 'ExposureMode' is unavailable in visionOS
    func _changeExposureMode(mode: AVCaptureDevice.ExposureMode) {
                                                   ^~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:1272:28: note: 'ExposureMode' has been explicitly marked unavailable here
typedef NS_ENUM(NSInteger, AVCaptureExposureMode) {
                           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:1242:43: error: 'AVCaptureMovieFileOutput' is unavailable in visionOS
    fileprivate func _getMovieOutput() -> AVCaptureMovieFileOutput {
                                          ^~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h:405:12: note: 'AVCaptureMovieFileOutput' has been explicitly marked unavailable here
@interface AVCaptureMovieFileOutput : AVCaptureFileOutput
           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:1286:48: error: 'AVCaptureStillImageOutput' is unavailable in visionOS
    fileprivate func _getStillImageOutput() -> AVCaptureStillImageOutput {
                                               ^~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureStillImageOutput.h:29:12: note: 'AVCaptureStillImageOutput' has been explicitly marked unavailable here
@interface AVCaptureStillImageOutput : AVCaptureOutput
           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:1336:59: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
    fileprivate func _currentCaptureVideoOrientation() -> AVCaptureVideoOrientation {
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:140:28: note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
typedef NS_ENUM(NSInteger, AVCaptureVideoOrientation) {
                           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:1354:59: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
    fileprivate func _currentPreviewVideoOrientation() -> AVCaptureVideoOrientation {
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:140:28: note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
typedef NS_ENUM(NSInteger, AVCaptureVideoOrientation) {
                           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:1366:104: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
    fileprivate func _videoOrientation(forDeviceOrientation deviceOrientation: UIDeviceOrientation) -> AVCaptureVideoOrientation {
                                                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:140:28: note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
typedef NS_ENUM(NSInteger, AVCaptureVideoOrientation) {
                           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:1403:69: error: 'AVCaptureVideoOrientation' is unavailable in visionOS
    fileprivate func _videoOrientationFromStatusBarOrientation() -> AVCaptureVideoOrientation {
                                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:140:28: note: 'AVCaptureVideoOrientation' has been explicitly marked unavailable here
typedef NS_ENUM(NSInteger, AVCaptureVideoOrientation) {
                           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:1714:21: error: cannot override 'locationManager' which has been marked unavailable
        public func locationManager(_: CLLocationManager, didChangeAuthorization status: CLAuthorizationStatus) {
                    ^
CoreLocation.CLLocationManagerDelegate.locationManager:3:17: note: 'locationManager(_:didChangeAuthorization:)' has been explicitly marked unavailable here
  optional func locationManager(_ manager: CLLocationManager, didChangeAuthorization status: CLAuthorizationStatus)}
                ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:1893:90: error: 'Preset' is unavailable in visionOS
    fileprivate func _updateCameraQualityMode(_ newCameraOutputQuality: AVCaptureSession.Preset) {
                                                                                         ^~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSessionPreset.h:21:20: note: 'Preset' has been explicitly marked unavailable here
typedef NSString * AVCaptureSessionPreset NS_TYPED_ENUM API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
                   ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:111:37: error: 'AVCaptureFileOutputRecordingDelegate' is unavailable in visionOS
open class CameraManager: NSObject, AVCaptureFileOutputRecordingDelegate, UIGestureRecognizerDelegate {
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h:206:11: note: 'AVCaptureFileOutputRecordingDelegate' has been explicitly marked unavailable here
@protocol AVCaptureFileOutputRecordingDelegate <NSObject>
          ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:2124:35: error: 'AVCaptureMetadataOutput' is unavailable in visionOS
    public func metadataOutput(_: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from _: AVCaptureConnection) {
                                  ^~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h:29:12: note: 'AVCaptureMetadataOutput' has been explicitly marked unavailable here
@interface AVCaptureMetadataOutput : AVCaptureOutput
           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:2124:88: error: 'AVMetadataObject' is unavailable in visionOS
    public func metadataOutput(_: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from _: AVCaptureConnection) {
                                                                                       ^~~~~~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h:41:12: note: 'AVMetadataObject' has been explicitly marked unavailable here
@interface AVMetadataObject : NSObject
           ^
/Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift:2120:26: error: 'AVCaptureMetadataOutputObjectsDelegate' is unavailable in visionOS
extension CameraManager: AVCaptureMetadataOutputObjectsDelegate {
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h:119:11: note: 'AVCaptureMetadataOutputObjectsDelegate' has been explicitly marked unavailable here
@protocol AVCaptureMetadataOutputObjectsDelegate <NSObject>
          ^
Failed frontend command:
/Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift -target arm64-apple-xros1.0 -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros -I /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros -F /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/Library/Frameworks -F /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/Developer/Library/Frameworks -no-color-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -swift-version 5 -enforce-exclusivity\=checked -Onone -D SWIFT_PACKAGE -D DEBUG -D Xcode -serialize-debugging-options -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/Objects-normal/arm64/CameraManager_const_extract_protocols.json -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -plugin-path /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -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 -resource-dir /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/xros2.4-22O233-407b76dbb837030756cbe1ab3f0b01b6.sdkstatcache -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/swift-overrides.hmap -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -module-name CameraManager -frontend-parseable-output -disable-clang-spi -target-sdk-version 2.4 -target-sdk-name xros2.4 -external-plugin-path /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib/swift/host/plugins\#/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/local/lib/swift/host/plugins\#/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/bin/swift-plugin-server -in-process-plugin-server-path /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -plugin-path /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins -plugin-path /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/lib/swift/host/plugins -emit-module-doc-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/Objects-normal/arm64/CameraManager.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/Objects-normal/arm64/CameraManager.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/Objects-normal/arm64/CameraManager-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/Objects-normal/arm64/CameraManager-master-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/Objects-normal/arm64/CameraManager-master-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/Objects-normal/arm64/CameraManager.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CameraManager.build/Debug-xros/CameraManager.build/Objects-normal/arm64/CameraManager.abi.json
SwiftCompile normal arm64 Compiling\ CameraManager.swift /Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift (in target 'CameraManager' from project 'CameraManager')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift (in target 'CameraManager' from project 'CameraManager')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode

** BUILD FAILED **
The following build commands failed:
	SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CameraManager.swift (in target 'CameraManager' from project 'CameraManager')
	SwiftEmitModule normal arm64 Emitting\ module\ for\ CameraManager (in target 'CameraManager' from project 'CameraManager')
	Building workspace spi-builder-workspace with scheme CameraManager
(3 failures)
BUILD FAILURE 6.1 visionOS