The Swift Package Index logo.Swift Package Index

Build Information

Failed to build CodexKit, reference main (f7fa39), with Swift 6.4 for tvOS using Xcode 27.0 on 26 Sep 2026 22:50:02 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 CodexKit-Package -destination generic/platform=tvOS

Build Log

    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile AppServerNotificationDecoder.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerProcessTransport.swift (in target 'CodexAppServerKit' from project 'CodexKit')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile AppServerProcessTransport.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerRequests.swift (in target 'CodexAppServerKit' from project 'CodexKit')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile AppServerRequests.swift
SwiftDriverJobDiscovery normal arm64 Emitting module for DequeModule (in target 'DequeModule' from project 'swift-collections')
SwiftDriver\ Compilation\ Requirements DequeModule normal arm64 com.apple.xcode.tools.swift.compiler (in target 'DequeModule' from project 'swift-collections')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-Swift-Compilation-Requirements -- /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -parse-as-library -module-name DequeModule -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -DCOLLECTIONS_RANDOMIZED_TESTING -DXcode -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 5.0:\ macOS\ 10.14.4,\ iOS\ 12.2,\ watchOS\ 5.2,\ tvOS\ 12.2 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 5.1:\ macOS\ 10.15,\ iOS\ 13.0,\ watchOS\ 6.0,\ tvOS\ 13.0 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 5.6:\ macOS\ 12.3,\ iOS\ 15.4,\ watchOS\ 8.5,\ tvOS\ 15.4 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 5.7:\ macOS\ 13.0,\ iOS\ 16.0,\ watchOS\ 9.0,\ tvOS\ 16.0 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 5.8:\ macOS\ 13.3,\ iOS\ 16.4,\ watchOS\ 9.4,\ tvOS\ 16.4 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 5.9:\ macOS\ 14.0,\ iOS\ 17.0,\ watchOS\ 10.0,\ tvOS\ 17.0 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 5.10:\ macOS\ 14.4,\ iOS\ 17.4,\ watchOS\ 10.4,\ tvOS\ 17.4,\ visionOS\ 1.1 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 6.0:\ macOS\ 15.0,\ iOS\ 18.0,\ watchOS\ 11.0,\ tvOS\ 18.0,\ visionOS\ 2.0 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 6.1:\ macOS\ 15.4,\ iOS\ 18.4,\ watchOS\ 11.4,\ tvOS\ 18.4,\ visionOS\ 2.4 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 6.2:\ macOS\ 26.0,\ iOS\ 26.0,\ watchOS\ 26.0,\ tvOS\ 26.0,\ visionOS\ 26.0 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 6.3:\ macOS\ 26.4,\ iOS\ 26.4,\ watchOS\ 26.4,\ tvOS\ 26.4,\ visionOS\ 26.4 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 6.4:\ macOS\ 27.0,\ iOS\ 27.0,\ watchOS\ 27.0,\ tvOS\ 27.0,\ visionOS\ 27.0 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 6.5:\ macOS\ 9999,\ iOS\ 9999,\ watchOS\ 9999,\ tvOS\ 9999,\ visionOS\ 9999 -enable-upcoming-feature MemberImportVisibility -enable-experimental-feature BuiltinModule -enable-experimental-feature Lifetimes -enable-experimental-feature InoutLifetimeDependence -enable-experimental-feature AddressableParameters -enable-experimental-feature AddressableTypes -enable-experimental-feature SuppressedAssociatedTypesWithDefaults -enable-experimental-feature BorrowingSequence -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/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk -target arm64-apple-tvos15.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -profile-coverage-mapping -profile-generate -enable-testing -suppress-warnings -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -swift-version 6 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/PackageFrameworks -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos27.0-24J360-e829b21a6f8c9b70876ba0858053c044b32bfd8d43560033f8d89884cdb90028.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule-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/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule-dependency-scan.dia -user-module-version 1.7.1 -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 -package-name swift_collections -emit-const-values -const-gather-protocols-list /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-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/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
2026-09-26 18:49:49.727 xcodebuild[718:4357] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
** BUILD FAILED **
The following build commands failed:
	SwiftEmitModule normal arm64 Emitting\ module\ for\ CodexAppServerKit (in target 'CodexAppServerKit' from project 'CodexKit')
	SwiftCompile normal arm64 (in target 'CodexAppServerKit' from project 'CodexKit')
	Building workspace CodexKit with scheme CodexKit-Package
(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:
  CodexKit: /Users/admin/builder/spi-builder-workspace
  swift-async-algorithms: https://github.com/apple/swift-async-algorithms @ 1.1.6
  swift-collections: https://github.com/apple/swift-collections.git @ 1.7.1
resolved source packages: CodexKit, swift-async-algorithms, swift-collections
2026-09-26 18:49:57.700 xcodebuild[840:5018] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
{
  "dependencies" : [
    {
      "identity" : "swift-async-algorithms",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-async-algorithms"
    }
  ],
  "manifest_display_name" : "CodexKit",
  "name" : "CodexKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "15.4"
    }
  ],
  "products" : [
    {
      "name" : "CodexAppServerKit",
      "targets" : [
        "CodexAppServerKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "CodexAppServerKitTesting",
      "targets" : [
        "CodexAppServerKitTesting"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "CodexDataKit",
      "targets" : [
        "CodexDataKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CodexDataKitTests",
      "module_type" : "SwiftTarget",
      "name" : "CodexDataKitTests",
      "path" : "Tests/CodexDataKitTests",
      "sources" : [
        "CodexChatObservationChannelTests.swift",
        "CodexChatObservationMulticastTests.swift",
        "CodexDataKitTests.swift",
        "CodexItemIdentityTests.swift"
      ],
      "target_dependencies" : [
        "CodexDataKit",
        "CodexAppServerKitTesting"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CodexDataKit",
      "module_type" : "SwiftTarget",
      "name" : "CodexDataKit",
      "path" : "Sources/CodexDataKit",
      "product_dependencies" : [
        "AsyncAlgorithms"
      ],
      "product_memberships" : [
        "CodexDataKit"
      ],
      "sources" : [
        "CodexAsyncStreamRelay.swift",
        "CodexChatObservation.swift",
        "CodexChatUpdate.swift",
        "CodexDataPhase.swift",
        "CodexFetchRequest.swift",
        "CodexFetchedResultsController.swift",
        "CodexModel.swift",
        "CodexModelActor.swift",
        "CodexModelContext.swift",
        "CodexQuery.swift",
        "CodexThreadQueryPlan.swift",
        "FetchedResultsLoadCoordinator.swift"
      ],
      "target_dependencies" : [
        "CodexAppServerKit"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CodexAppServerKitTests",
      "module_type" : "SwiftTarget",
      "name" : "CodexAppServerKitTests",
      "path" : "Tests/CodexAppServerKitTests",
      "sources" : [
        "AppServerNotificationDecoderTests.swift",
        "CodexAppServerKitTests.swift",
        "CodexAppServerRequestCodecTests.swift",
        "CodexAppServerTestNotificationEmitterTests.swift",
        "CodexAppServerTestStoredThreadTests.swift",
        "CodexItemReducerTests.swift",
        "CodexTurnSnapshotReducerTests.swift",
        "ConnectionEventHubTests.swift",
        "ConnectionLifecycleTests.swift",
        "InterruptRaceResolverTests.swift",
        "JSONRPCEnvelopeCodecTests.swift",
        "ServerRequestRegistryTests.swift",
        "TerminalLifecycleProofTests.swift",
        "ThreadEventHubTests.swift",
        "TurnReplayCoreTests.swift",
        "TurnReplayRouterTests.swift",
        "TurnReplayStoreTests.swift"
      ],
      "target_dependencies" : [
        "CodexAppServerKit",
        "CodexAppServerKitTesting"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CodexAppServerKitTesting",
      "module_type" : "SwiftTarget",
      "name" : "CodexAppServerKitTesting",
      "path" : "Sources/CodexAppServerKitTesting",
      "product_memberships" : [
        "CodexAppServerKitTesting"
      ],
      "sources" : [
        "CodexAppServerTestConnectionHarness.swift",
        "CodexAppServerTestNotificationEmitter.swift",
        "CodexAppServerTestResponseFixtures.swift",
        "CodexAppServerTestRuntime.swift",
        "CodexAppServerTestServerRequestInjector.swift",
        "CodexAppServerTestStoredThread.swift",
        "CodexAppServerTestTurn.swift"
      ],
      "target_dependencies" : [
        "CodexAppServerKit"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CodexAppServerKit",
      "module_type" : "SwiftTarget",
      "name" : "CodexAppServerKit",
      "path" : "Sources/CodexAppServerKit",
      "product_memberships" : [
        "CodexAppServerKit",
        "CodexAppServerKitTesting",
        "CodexDataKit"
      ],
      "sources" : [
        "AccountEventHub.swift",
        "AppServerClient.swift",
        "AppServerConnection.swift",
        "AppServerNotificationDecoder.swift",
        "AppServerProcessTransport.swift",
        "AppServerRequests.swift",
        "CodexAppServer.swift",
        "CodexAppServerNotificationRouter.swift",
        "CodexAppServerRequest.swift",
        "CodexAppServerRequestCodec.swift",
        "CodexDomainTypes.swift",
        "CodexItemReducer.swift",
        "CodexThreadOperations.swift",
        "CodexTurnSequences.swift",
        "CodexTurnSnapshotReducer.swift",
        "ConnectionEventHub.swift",
        "ConnectionSupervisor.swift",
        "ConnectionTerminationArbiter.swift",
        "InterruptRaceResolver.swift",
        "JSONRPC.swift",
        "JSONRPCEnvelopeCodec.swift",
        "JSONRPCInboundFrameMailbox.swift",
        "LoginRegistry.swift",
        "RequestSerializer.swift",
        "ReviewRestartCoordinator.swift",
        "ServerRequestRegistry.swift",
        "ThreadEventHub.swift",
        "TurnReplayCore.swift",
        "TurnReplayStore.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.3"
}
{
  "workspace" : {
    "name" : "CodexKit",
    "schemes" : [
      "CodexAppServerKit",
      "CodexAppServerKitTesting",
      "CodexDataKit",
      "CodexKit-Package"
    ]
  }
}
2026-09-26 18:49:59.294 xcodebuild[848:5086] [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 CodexKit-Package -destination generic/platform=tvOS
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 CodexKit-Package -destination generic/platform=tvOS
Resolve Package Graph
Resolved source packages:
  swift-collections: https://github.com/apple/swift-collections.git @ 1.7.1
  CodexKit: /Users/admin/builder/spi-builder-workspace
  swift-async-algorithms: https://github.com/apple/swift-async-algorithms @ 1.1.6
ComputePackagePrebuildTargetDependencyGraph
Prepare packages
CreateBuildRequest
SendProjectDescription
CreateBuildOperation
ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (14 targets)
    Target 'CodexDataKit-product' in project 'CodexKit'
        ➜ Explicit dependency on target 'CodexDataKit' in project 'CodexKit'
        ➜ Explicit dependency on target 'CodexAppServerKit' in project 'CodexKit'
        ➜ Explicit dependency on target 'AsyncAlgorithms-product' in project 'swift-async-algorithms'
    Target 'CodexDataKit' in project 'CodexKit'
        ➜ Explicit dependency on target 'CodexAppServerKit' in project 'CodexKit'
        ➜ Explicit dependency on target 'AsyncAlgorithms-product' in project 'swift-async-algorithms'
    Target 'AsyncAlgorithms-product' in project 'swift-async-algorithms'
        ➜ Explicit dependency on target 'AsyncAlgorithms' in project 'swift-async-algorithms'
        ➜ Explicit dependency on target 'OrderedCollections-product' in project 'swift-collections'
        ➜ Explicit dependency on target 'DequeModule-product' in project 'swift-collections'
    Target 'AsyncAlgorithms' in project 'swift-async-algorithms'
        ➜ Explicit dependency on target 'OrderedCollections-product' in project 'swift-collections'
        ➜ Explicit dependency on target 'DequeModule-product' in project 'swift-collections'
    Target 'DequeModule-product' in project 'swift-collections'
        ➜ Explicit dependency on target 'DequeModule' in project 'swift-collections'
        ➜ Explicit dependency on target 'InternalCollectionsUtilities' in project 'swift-collections'
        ➜ Explicit dependency on target 'SpanPreview' in project 'swift-collections'
    Target 'DequeModule' in project 'swift-collections'
        ➜ Explicit dependency on target 'InternalCollectionsUtilities' in project 'swift-collections'
        ➜ Explicit dependency on target 'SpanPreview' in project 'swift-collections'
    Target 'SpanPreview' in project 'swift-collections'
        ➜ Explicit dependency on target 'InternalCollectionsUtilities' in project 'swift-collections'
    Target 'OrderedCollections-product' in project 'swift-collections'
        ➜ Explicit dependency on target 'OrderedCollections' in project 'swift-collections'
        ➜ Explicit dependency on target 'InternalCollectionsUtilities' in project 'swift-collections'
    Target 'OrderedCollections' in project 'swift-collections'
        ➜ Explicit dependency on target 'InternalCollectionsUtilities' in project 'swift-collections'
    Target 'InternalCollectionsUtilities' in project 'swift-collections' (no dependencies)
    Target 'CodexAppServerKitTesting-product' in project 'CodexKit'
        ➜ Explicit dependency on target 'CodexAppServerKitTesting' in project 'CodexKit'
        ➜ Explicit dependency on target 'CodexAppServerKit' in project 'CodexKit'
    Target 'CodexAppServerKitTesting' in project 'CodexKit'
        ➜ Explicit dependency on target 'CodexAppServerKit' in project 'CodexKit'
    Target 'CodexAppServerKit-product' in project 'CodexKit'
        ➜ Explicit dependency on target 'CodexAppServerKit' in project 'CodexKit'
    Target 'CodexAppServerKit' in project 'CodexKit' (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/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos27.0-24J360-e829b21a6f8c9b70876ba0858053c044b32bfd8d43560033f8d89884cdb90028.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/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk -o /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos27.0-24J360-e829b21a6f8c9b70876ba0858053c044b32bfd8d43560033f8d89884cdb90028.sdkstatcache
SwiftDriver DequeModule normal arm64 com.apple.xcode.tools.swift.compiler (in target 'DequeModule' from project 'swift-collections')
    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 DequeModule -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -DCOLLECTIONS_RANDOMIZED_TESTING -DXcode -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 5.0:\ macOS\ 10.14.4,\ iOS\ 12.2,\ watchOS\ 5.2,\ tvOS\ 12.2 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 5.1:\ macOS\ 10.15,\ iOS\ 13.0,\ watchOS\ 6.0,\ tvOS\ 13.0 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 5.6:\ macOS\ 12.3,\ iOS\ 15.4,\ watchOS\ 8.5,\ tvOS\ 15.4 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 5.7:\ macOS\ 13.0,\ iOS\ 16.0,\ watchOS\ 9.0,\ tvOS\ 16.0 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 5.8:\ macOS\ 13.3,\ iOS\ 16.4,\ watchOS\ 9.4,\ tvOS\ 16.4 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 5.9:\ macOS\ 14.0,\ iOS\ 17.0,\ watchOS\ 10.0,\ tvOS\ 17.0 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 5.10:\ macOS\ 14.4,\ iOS\ 17.4,\ watchOS\ 10.4,\ tvOS\ 17.4,\ visionOS\ 1.1 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 6.0:\ macOS\ 15.0,\ iOS\ 18.0,\ watchOS\ 11.0,\ tvOS\ 18.0,\ visionOS\ 2.0 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 6.1:\ macOS\ 15.4,\ iOS\ 18.4,\ watchOS\ 11.4,\ tvOS\ 18.4,\ visionOS\ 2.4 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 6.2:\ macOS\ 26.0,\ iOS\ 26.0,\ watchOS\ 26.0,\ tvOS\ 26.0,\ visionOS\ 26.0 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 6.3:\ macOS\ 26.4,\ iOS\ 26.4,\ watchOS\ 26.4,\ tvOS\ 26.4,\ visionOS\ 26.4 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 6.4:\ macOS\ 27.0,\ iOS\ 27.0,\ watchOS\ 27.0,\ tvOS\ 27.0,\ visionOS\ 27.0 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 6.5:\ macOS\ 9999,\ iOS\ 9999,\ watchOS\ 9999,\ tvOS\ 9999,\ visionOS\ 9999 -enable-upcoming-feature MemberImportVisibility -enable-experimental-feature BuiltinModule -enable-experimental-feature Lifetimes -enable-experimental-feature InoutLifetimeDependence -enable-experimental-feature AddressableParameters -enable-experimental-feature AddressableTypes -enable-experimental-feature SuppressedAssociatedTypesWithDefaults -enable-experimental-feature BorrowingSequence -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/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk -target arm64-apple-tvos15.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -profile-coverage-mapping -profile-generate -enable-testing -suppress-warnings -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -swift-version 6 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/PackageFrameworks -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos27.0-24J360-e829b21a6f8c9b70876ba0858053c044b32bfd8d43560033f8d89884cdb90028.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule-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/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule-dependency-scan.dia -user-module-version 1.7.1 -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 -package-name swift_collections -emit-const-values -const-gather-protocols-list /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-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/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftDriver CodexAppServerKit normal arm64 com.apple.xcode.tools.swift.compiler (in target 'CodexAppServerKit' from project 'CodexKit')
    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 CodexAppServerKit -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CodexKit.build/Debug-appletvos/CodexAppServerKit-t.build/Objects-normal/arm64/CodexAppServerKit.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -DXcode -plugin-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk -target arm64-apple-tvos15.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -profile-coverage-mapping -profile-generate -enable-testing -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -swift-version 6 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos27.0-24J360-e829b21a6f8c9b70876ba0858053c044b32bfd8d43560033f8d89884cdb90028.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CodexKit.build/Debug-appletvos/CodexAppServerKit-t.build/Objects-normal/arm64/CodexAppServerKit-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/CodexKit.build/Debug-appletvos/CodexAppServerKit-t.build/Objects-normal/arm64/CodexAppServerKit.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CodexKit.build/Debug-appletvos/CodexAppServerKit-t.build/Objects-normal/arm64/CodexAppServerKit-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 -package-name spi_builder_workspace -emit-const-values -const-gather-protocols-list /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CodexKit.build/Debug-appletvos/CodexAppServerKit-t.build/Objects-normal/arm64/CodexAppServerKit_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CodexKit.build/Debug-appletvos/CodexAppServerKit-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CodexKit.build/Debug-appletvos/CodexAppServerKit-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CodexKit.build/Debug-appletvos/CodexAppServerKit-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/CodexKit.build/Debug-appletvos/CodexAppServerKit-t.build/Objects-normal/arm64/CodexAppServerKit-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftDriver\ Compilation\ Requirements DequeModule normal arm64 com.apple.xcode.tools.swift.compiler (in target 'DequeModule' from project 'swift-collections')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-Swift-Compilation-Requirements -- /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -parse-as-library -module-name DequeModule -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -DCOLLECTIONS_RANDOMIZED_TESTING -DXcode -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 5.0:\ macOS\ 10.14.4,\ iOS\ 12.2,\ watchOS\ 5.2,\ tvOS\ 12.2 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 5.1:\ macOS\ 10.15,\ iOS\ 13.0,\ watchOS\ 6.0,\ tvOS\ 13.0 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 5.6:\ macOS\ 12.3,\ iOS\ 15.4,\ watchOS\ 8.5,\ tvOS\ 15.4 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 5.7:\ macOS\ 13.0,\ iOS\ 16.0,\ watchOS\ 9.0,\ tvOS\ 16.0 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 5.8:\ macOS\ 13.3,\ iOS\ 16.4,\ watchOS\ 9.4,\ tvOS\ 16.4 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 5.9:\ macOS\ 14.0,\ iOS\ 17.0,\ watchOS\ 10.0,\ tvOS\ 17.0 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 5.10:\ macOS\ 14.4,\ iOS\ 17.4,\ watchOS\ 10.4,\ tvOS\ 17.4,\ visionOS\ 1.1 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 6.0:\ macOS\ 15.0,\ iOS\ 18.0,\ watchOS\ 11.0,\ tvOS\ 18.0,\ visionOS\ 2.0 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 6.1:\ macOS\ 15.4,\ iOS\ 18.4,\ watchOS\ 11.4,\ tvOS\ 18.4,\ visionOS\ 2.4 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 6.2:\ macOS\ 26.0,\ iOS\ 26.0,\ watchOS\ 26.0,\ tvOS\ 26.0,\ visionOS\ 26.0 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 6.3:\ macOS\ 26.4,\ iOS\ 26.4,\ watchOS\ 26.4,\ tvOS\ 26.4,\ visionOS\ 26.4 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 6.4:\ macOS\ 27.0,\ iOS\ 27.0,\ watchOS\ 27.0,\ tvOS\ 27.0,\ visionOS\ 27.0 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 6.5:\ macOS\ 9999,\ iOS\ 9999,\ watchOS\ 9999,\ tvOS\ 9999,\ visionOS\ 9999 -enable-upcoming-feature MemberImportVisibility -enable-experimental-feature BuiltinModule -enable-experimental-feature Lifetimes -enable-experimental-feature InoutLifetimeDependence -enable-experimental-feature AddressableParameters -enable-experimental-feature AddressableTypes -enable-experimental-feature SuppressedAssociatedTypesWithDefaults -enable-experimental-feature BorrowingSequence -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/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk -target arm64-apple-tvos15.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -profile-coverage-mapping -profile-generate -enable-testing -suppress-warnings -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -swift-version 6 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/PackageFrameworks -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos27.0-24J360-e829b21a6f8c9b70876ba0858053c044b32bfd8d43560033f8d89884cdb90028.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule-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/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule-dependency-scan.dia -user-module-version 1.7.1 -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 -package-name swift_collections -emit-const-values -const-gather-protocols-list /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-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/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftDriver\ Compilation DequeModule normal arm64 com.apple.xcode.tools.swift.compiler (in target 'DequeModule' from project 'swift-collections')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-Swift-Compilation -- /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -parse-as-library -module-name DequeModule -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -DCOLLECTIONS_RANDOMIZED_TESTING -DXcode -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 5.0:\ macOS\ 10.14.4,\ iOS\ 12.2,\ watchOS\ 5.2,\ tvOS\ 12.2 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 5.1:\ macOS\ 10.15,\ iOS\ 13.0,\ watchOS\ 6.0,\ tvOS\ 13.0 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 5.6:\ macOS\ 12.3,\ iOS\ 15.4,\ watchOS\ 8.5,\ tvOS\ 15.4 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 5.7:\ macOS\ 13.0,\ iOS\ 16.0,\ watchOS\ 9.0,\ tvOS\ 16.0 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 5.8:\ macOS\ 13.3,\ iOS\ 16.4,\ watchOS\ 9.4,\ tvOS\ 16.4 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 5.9:\ macOS\ 14.0,\ iOS\ 17.0,\ watchOS\ 10.0,\ tvOS\ 17.0 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 5.10:\ macOS\ 14.4,\ iOS\ 17.4,\ watchOS\ 10.4,\ tvOS\ 17.4,\ visionOS\ 1.1 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 6.0:\ macOS\ 15.0,\ iOS\ 18.0,\ watchOS\ 11.0,\ tvOS\ 18.0,\ visionOS\ 2.0 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 6.1:\ macOS\ 15.4,\ iOS\ 18.4,\ watchOS\ 11.4,\ tvOS\ 18.4,\ visionOS\ 2.4 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 6.2:\ macOS\ 26.0,\ iOS\ 26.0,\ watchOS\ 26.0,\ tvOS\ 26.0,\ visionOS\ 26.0 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 6.3:\ macOS\ 26.4,\ iOS\ 26.4,\ watchOS\ 26.4,\ tvOS\ 26.4,\ visionOS\ 26.4 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 6.4:\ macOS\ 27.0,\ iOS\ 27.0,\ watchOS\ 27.0,\ tvOS\ 27.0,\ visionOS\ 27.0 -enable-experimental-feature AvailabilityMacro\=SwiftStdlib\ 6.5:\ macOS\ 9999,\ iOS\ 9999,\ watchOS\ 9999,\ tvOS\ 9999,\ visionOS\ 9999 -enable-upcoming-feature MemberImportVisibility -enable-experimental-feature BuiltinModule -enable-experimental-feature Lifetimes -enable-experimental-feature InoutLifetimeDependence -enable-experimental-feature AddressableParameters -enable-experimental-feature AddressableTypes -enable-experimental-feature SuppressedAssociatedTypesWithDefaults -enable-experimental-feature BorrowingSequence -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/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk -target arm64-apple-tvos15.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -profile-coverage-mapping -profile-generate -enable-testing -suppress-warnings -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -swift-version 6 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/PackageFrameworks -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos27.0-24J360-e829b21a6f8c9b70876ba0858053c044b32bfd8d43560033f8d89884cdb90028.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule-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/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule-dependency-scan.dia -user-module-version 1.7.1 -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 -package-name swift_collections -emit-const-values -const-gather-protocols-list /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-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/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftMergeGeneratedHeaders /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/GeneratedModuleMaps-appletvos/DequeModule-Swift.h /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule-Swift.h (in target 'DequeModule' from project 'swift-collections')
    cd /Users/admin/builder/spi-builder-workspace/.dependencies/checkouts/swift-collections
    builtin-swiftHeaderTool -arch arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule-Swift.h -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/GeneratedModuleMaps-appletvos/DequeModule-Swift.h
Copy /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/DequeModule.swiftmodule/arm64-apple-tvos.swiftdoc /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule.swiftdoc (in target 'DequeModule' from project 'swift-collections')
    cd /Users/admin/builder/spi-builder-workspace/.dependencies/checkouts/swift-collections
    builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks -rename /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule.swiftdoc /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/DequeModule.swiftmodule/arm64-apple-tvos.swiftdoc
Copy /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/DequeModule.swiftmodule/arm64-apple-tvos.abi.json /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule.abi.json (in target 'DequeModule' from project 'swift-collections')
    cd /Users/admin/builder/spi-builder-workspace/.dependencies/checkouts/swift-collections
    builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks -rename /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule.abi.json /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/DequeModule.swiftmodule/arm64-apple-tvos.abi.json
Copy /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/DequeModule.swiftmodule/arm64-apple-tvos.swiftmodule /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule.swiftmodule (in target 'DequeModule' from project 'swift-collections')
    cd /Users/admin/builder/spi-builder-workspace/.dependencies/checkouts/swift-collections
    builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks -rename /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule.swiftmodule /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/DequeModule.swiftmodule/arm64-apple-tvos.swiftmodule
Copy /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/DequeModule.swiftmodule/Project/arm64-apple-tvos.swiftsourceinfo /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule.swiftsourceinfo (in target 'DequeModule' from project 'swift-collections')
    cd /Users/admin/builder/spi-builder-workspace/.dependencies/checkouts/swift-collections
    builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks -rename /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule.swiftsourceinfo /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/DequeModule.swiftmodule/Project/arm64-apple-tvos.swiftsourceinfo
SwiftDriver AsyncAlgorithms normal arm64 com.apple.xcode.tools.swift.compiler (in target 'AsyncAlgorithms' from project 'swift-async-algorithms')
    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 AsyncAlgorithms -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-async-algorithms.build/Debug-appletvos/AsyncAlgorithms-t.build/Objects-normal/arm64/AsyncAlgorithms.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -DXcode -enable-experimental-feature AvailabilityMacro\=AsyncAlgorithms\ 1.0:macOS\ 10.15,\ iOS\ 13.0,\ tvOS\ 13.0,\ watchOS\ 6.0 -enable-experimental-feature AvailabilityMacro\=AsyncAlgorithms\ 1.1:macOS\ 15.0,\ iOS\ 18.0,\ tvOS\ 18.0,\ watchOS\ 11.0,\ visionOS\ 2.0 -enable-experimental-feature AvailabilityMacro\=AsyncAlgorithms\ 1.2:macOS\ 15.0,\ iOS\ 18.0,\ tvOS\ 18.0,\ watchOS\ 11.0,\ visionOS\ 2.0 -enable-experimental-feature AvailabilityMacro\=AsyncAlgorithms\ 1.3:macOS\ 15.0,\ iOS\ 18.0,\ tvOS\ 18.0,\ watchOS\ 11.0,\ visionOS\ 2.0 -enable-experimental-feature StrictConcurrency\=complete -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/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk -target arm64-apple-tvos15.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -profile-coverage-mapping -profile-generate -enable-testing -suppress-warnings -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -swift-version 6 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/PackageFrameworks -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos27.0-24J360-e829b21a6f8c9b70876ba0858053c044b32bfd8d43560033f8d89884cdb90028.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-async-algorithms.build/Debug-appletvos/AsyncAlgorithms-t.build/Objects-normal/arm64/AsyncAlgorithms-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/swift-async-algorithms.build/Debug-appletvos/AsyncAlgorithms-t.build/Objects-normal/arm64/AsyncAlgorithms.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-async-algorithms.build/Debug-appletvos/AsyncAlgorithms-t.build/Objects-normal/arm64/AsyncAlgorithms-dependency-scan.dia -user-module-version 1.1.6 -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 -package-name swift_async_algorithms -emit-const-values -const-gather-protocols-list /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-async-algorithms.build/Debug-appletvos/AsyncAlgorithms-t.build/Objects-normal/arm64/AsyncAlgorithms_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-async-algorithms.build/Debug-appletvos/AsyncAlgorithms-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-async-algorithms.build/Debug-appletvos/AsyncAlgorithms-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-async-algorithms.build/Debug-appletvos/AsyncAlgorithms-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/swift-async-algorithms.build/Debug-appletvos/AsyncAlgorithms-t.build/Objects-normal/arm64/AsyncAlgorithms-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
Ld /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/DequeModule.o normal (in target 'DequeModule' from project 'swift-collections')
    cd /Users/admin/builder/spi-builder-workspace/.dependencies/checkouts/swift-collections
    /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -Xlinker -reproducible -target arm64-apple-tvos15.0 -r -isysroot /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk -O0 -w -Xlinker -no_warn_duplicate_libraries -F/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/EagerLinkingTBDs/Debug-appletvos -F/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/PackageFrameworks -F/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -iframework /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -iframework /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk/Developer/Library/Frameworks -filelist /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule.LinkFileList -nostdlib -Xlinker -object_path_lto -Xlinker /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule_lto.o -Xlinker -no_deduplicate -Xlinker -debug_variant -Xlinker -dependency_info -Xlinker /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule_dependency_info.dat -fobjc-link-runtime -L/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/appletvos -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule.swiftmodule -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/DequeModule.o
ExtractAppIntentsMetadata (in target 'DequeModule' from project 'swift-collections')
    cd /Users/admin/builder/spi-builder-workspace/.dependencies/checkouts/swift-collections
    /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/appintentsmetadataprocessor --toolchain-dir /var/run/com.apple.security.cryptexd/mnt/com.apple.MobileAsset.MetalToolchain-v27.1.266.1.2BD4CE/Metal.xctoolchain --module-name DequeModule --sdk-root /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk --xcode-version 27A266a --platform-family tvOS --deployment-target 15.0 --bundle-identifier swift-collections.DequeModule --output /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/DequeModule.appintents --target-triple arm64-apple-tvos15.0 --binary-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/DequeModule.o --dependency-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule_dependency_info.dat --stringsdata-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/ExtractedAppShortcutsMetadata.stringsdata --source-file-list /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule.SwiftFileList --metadata-file-list /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/DequeModule.DependencyMetadataFileList --static-metadata-file-list /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/DequeModule.DependencyStaticMetadataFileList --swift-const-vals-list /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/swift-collections.build/Debug-appletvos/DequeModule-t.build/Objects-normal/arm64/DequeModule.SwiftConstValuesFileList --force --compile-time-extraction --deployment-aware-processing --no-app-shortcuts-localization
2026-09-26 18:50:02.223 appintentsmetadataprocessor[854:5185] Starting appintentsmetadataprocessor export
2026-09-26 18:50:02.302 appintentsmetadataprocessor[854:5185] Extracted no relevant App Intents symbols, skipping writing output
SwiftCompile normal arm64 Compiling\ AppServerNotificationDecoder.swift,\ AppServerProcessTransport.swift,\ AppServerRequests.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerNotificationDecoder.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerProcessTransport.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerRequests.swift (in target 'CodexAppServerKit' from project 'CodexKit')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerNotificationDecoder.swift (in target 'CodexAppServerKit' from project 'CodexKit')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile AppServerNotificationDecoder.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerProcessTransport.swift (in target 'CodexAppServerKit' from project 'CodexKit')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile AppServerProcessTransport.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerRequests.swift (in target 'CodexAppServerKit' from project 'CodexKit')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile AppServerRequests.swift
SwiftCompile normal arm64 Compiling\ ConnectionEventHub.swift,\ ConnectionSupervisor.swift,\ ConnectionTerminationArbiter.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionEventHub.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionSupervisor.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionTerminationArbiter.swift (in target 'CodexAppServerKit' from project 'CodexKit')
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionEventHub.swift:31:23: error: 'Duration' is only available in tvOS 16.0 or newer
 25 |
 26 | /// A scheduled retry after an app-server overload response.
 27 | public struct CodexRetryDiagnostic: Equatable, Sendable {
    |               `- note: add '@available' attribute to enclosing struct
 28 |     public let requestID: Int
 29 |     public let method: String
 30 |     public let attempt: Int
 31 |     public let delay: Duration
    |                       `- error: 'Duration' is only available in tvOS 16.0 or newer
 32 |     public let serverError: CodexServerError
 33 |
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionEventHub.swift:38:16: error: 'Duration' is only available in tvOS 16.0 or newer
 25 |
 26 | /// A scheduled retry after an app-server overload response.
 27 | public struct CodexRetryDiagnostic: Equatable, Sendable {
    |               `- note: add '@available' attribute to enclosing struct
 28 |     public let requestID: Int
 29 |     public let method: String
    :
 32 |     public let serverError: CodexServerError
 33 |
 34 |     package init(
    |             `- note: add '@available' attribute to enclosing initializer
 35 |         requestID: Int,
 36 |         method: String,
 37 |         attempt: Int,
 38 |         delay: Duration,
    |                `- error: 'Duration' is only available in tvOS 16.0 or newer
 39 |         serverError: CodexServerError
 40 |     ) {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionEventHub.swift:489:25: error: 'Mutex' is only available in tvOS 18.0 or newer
481 | }
482 |
483 | private final class ConnectionEventSubscriptionRegistry: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
484 |     private struct State {
485 |         var channels: [UUID: ConnectionEventSubscriberChannel] = [:]
    :
487 |     }
488 |
489 |     private let state = Mutex(State())
    |                         `- error: 'Mutex' is only available in tvOS 18.0 or newer
490 |     // `remove` and `cancelAll` must never acquire `delivery`: channel completion can wait on a
491 |     // subscriber task-status lock while that lock runs its cancellation handler back into remove.
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionEventHub.swift:489:25: error: 'init(_:)' is only available in tvOS 18.0 or newer
481 | }
482 |
483 | private final class ConnectionEventSubscriptionRegistry: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
484 |     private struct State {
485 |         var channels: [UUID: ConnectionEventSubscriberChannel] = [:]
    :
487 |     }
488 |
489 |     private let state = Mutex(State())
    |                         `- error: 'init(_:)' is only available in tvOS 18.0 or newer
490 |     // `remove` and `cancelAll` must never acquire `delivery`: channel completion can wait on a
491 |     // subscriber task-status lock while that lock runs its cancellation handler back into remove.
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionEventHub.swift:492:28: error: 'Mutex' is only available in tvOS 18.0 or newer
481 | }
482 |
483 | private final class ConnectionEventSubscriptionRegistry: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
484 |     private struct State {
485 |         var channels: [UUID: ConnectionEventSubscriberChannel] = [:]
    :
490 |     // `remove` and `cancelAll` must never acquire `delivery`: channel completion can wait on a
491 |     // subscriber task-status lock while that lock runs its cancellation handler back into remove.
492 |     private let delivery = Mutex(())
    |                            `- error: 'Mutex' is only available in tvOS 18.0 or newer
493 |
494 |     func makeEvents() -> CodexConnectionEvents {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionEventHub.swift:492:28: error: 'init(_:)' is only available in tvOS 18.0 or newer
481 | }
482 |
483 | private final class ConnectionEventSubscriptionRegistry: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
484 |     private struct State {
485 |         var channels: [UUID: ConnectionEventSubscriberChannel] = [:]
    :
490 |     // `remove` and `cancelAll` must never acquire `delivery`: channel completion can wait on a
491 |     // subscriber task-status lock while that lock runs its cancellation handler back into remove.
492 |     private let delivery = Mutex(())
    |                            `- error: 'init(_:)' is only available in tvOS 18.0 or newer
493 |
494 |     func makeEvents() -> CodexConnectionEvents {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionEventHub.swift:295:25: error: 'Mutex' is only available in tvOS 18.0 or newer
276 | }
277 |
278 | private final class ConnectionEventSubscriberChannel: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
279 |     private enum Phase {
280 |         case open
    :
293 |
294 |     private static let diagnosticCapacity = 32
295 |     private let state = Mutex(State())
    |                         `- error: 'Mutex' is only available in tvOS 18.0 or newer
296 |
297 |     func yield(_ event: CodexConnectionEvent) {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionEventHub.swift:295:25: error: 'init(_:)' is only available in tvOS 18.0 or newer
276 | }
277 |
278 | private final class ConnectionEventSubscriberChannel: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
279 |     private enum Phase {
280 |         case open
    :
293 |
294 |     private static let diagnosticCapacity = 32
295 |     private let state = Mutex(State())
    |                         `- error: 'init(_:)' is only available in tvOS 18.0 or newer
296 |
297 |     func yield(_ event: CodexConnectionEvent) {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionEventHub.swift:456:25: error: 'Mutex' is only available in tvOS 18.0 or newer
449 | }
450 |
451 | private final class ConnectionEventSubscriptionCancellation: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
452 |     private struct State {
453 |         var isCancelled = false
454 |     }
455 |
456 |     private let state = Mutex(State())
    |                         `- error: 'Mutex' is only available in tvOS 18.0 or newer
457 |     private let id: UUID
458 |     private let registry: ConnectionEventSubscriptionRegistry
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionEventHub.swift:456:25: error: 'init(_:)' is only available in tvOS 18.0 or newer
449 | }
450 |
451 | private final class ConnectionEventSubscriptionCancellation: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
452 |     private struct State {
453 |         var isCancelled = false
454 |     }
455 |
456 |     private let state = Mutex(State())
    |                         `- error: 'init(_:)' is only available in tvOS 18.0 or newer
457 |     private let id: UUID
458 |     private let registry: ConnectionEventSubscriptionRegistry
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionEventHub.swift:298:28: error: 'withLock' is only available in tvOS 18.0 or newer
276 | }
277 |
278 | private final class ConnectionEventSubscriberChannel: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
279 |     private enum Phase {
280 |         case open
    :
295 |     private let state = Mutex(State())
296 |
297 |     func yield(_ event: CodexConnectionEvent) {
    |          `- note: add '@available' attribute to enclosing instance method
298 |         let waiter = state.withLock { state -> CheckedContinuation<
    |                            |- error: 'withLock' is only available in tvOS 18.0 or newer
    |                            `- note: add 'if #available' version check
299 |             CodexConnectionEvent?, Never
300 |         >? in
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionEventHub.swift:318:32: error: 'withLock' is only available in tvOS 18.0 or newer
276 | }
277 |
278 | private final class ConnectionEventSubscriberChannel: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
279 |     private enum Phase {
280 |         case open
    :
315 |     }
316 |
317 |     func finish(with termination: CodexConnectionTermination) {
    |          `- note: add '@available' attribute to enclosing instance method
318 |         let completion = state.withLock { state -> (
    |                                |- error: 'withLock' is only available in tvOS 18.0 or newer
    |                                `- note: add 'if #available' version check
319 |             CheckedContinuation<CodexConnectionEvent?, Never>?,
320 |             [CheckedContinuation<Void, Never>]
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionEventHub.swift:348:32: error: 'withLock' is only available in tvOS 18.0 or newer
276 | }
277 |
278 | private final class ConnectionEventSubscriberChannel: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
279 |     private enum Phase {
280 |         case open
    :
345 |     }
346 |
347 |     func cancel() {
    |          `- note: add '@available' attribute to enclosing instance method
348 |         let completion = state.withLock { state -> (
    |                                |- error: 'withLock' is only available in tvOS 18.0 or newer
    |                                `- note: add 'if #available' version check
349 |             CheckedContinuation<CodexConnectionEvent?, Never>?,
350 |             [CheckedContinuation<Void, Never>]
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionEventHub.swift:382:42: error: 'withLock' is only available in tvOS 18.0 or newer
276 | }
277 |
278 | private final class ConnectionEventSubscriberChannel: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
279 |     private enum Phase {
280 |         case open
    :
370 |     }
371 |
372 |     func next(
    |          `- note: add '@available' attribute to enclosing instance method
373 |         cancellation: ConnectionEventSubscriptionCancellation
374 |     ) async -> CodexConnectionEvent? {
    :
380 |         return await withTaskCancellationHandler {
381 |             await withCheckedContinuation { continuation in
382 |                 let registration = state.withLock { state -> (
    |                                          |- error: 'withLock' is only available in tvOS 18.0 or newer
    |                                          `- note: add 'if #available' version check
383 |                     CodexConnectionEvent??,
384 |                     [CheckedContinuation<Void, Never>]
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionEventHub.swift:416:15: error: 'withLock' is only available in tvOS 18.0 or newer
276 | }
277 |
278 | private final class ConnectionEventSubscriberChannel: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
279 |     private enum Phase {
280 |         case open
    :
413 |     }
414 |
415 |     func tryBeginNext() -> Bool {
    |          `- note: add '@available' attribute to enclosing instance method
416 |         state.withLock { state in
    |               |- error: 'withLock' is only available in tvOS 18.0 or newer
    |               `- note: add 'if #available' version check
417 |             guard state.nextIsActive == false else {
418 |                 return false
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionEventHub.swift:426:15: error: 'withLock' is only available in tvOS 18.0 or newer
276 | }
277 |
278 | private final class ConnectionEventSubscriberChannel: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
279 |     private enum Phase {
280 |         case open
    :
423 |     }
424 |
425 |     func endNext() {
    |          `- note: add '@available' attribute to enclosing instance method
426 |         state.withLock { state in
    |               |- error: 'withLock' is only available in tvOS 18.0 or newer
    |               `- note: add 'if #available' version check
427 |             precondition(state.nextIsActive, "A next() call must own the channel before ending.")
428 |             state.nextIsActive = false
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionEventHub.swift:434:54: error: 'withLock' is only available in tvOS 18.0 or newer
276 | }
277 |
278 | private final class ConnectionEventSubscriberChannel: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
279 |     private enum Phase {
280 |         case open
    :
430 |     }
431 |
432 |     func waitUntilNextSuspendsForTesting() async {
    |          `- note: add '@available' attribute to enclosing instance method
433 |         await withCheckedContinuation { continuation in
434 |             let isAlreadySuspendedOrFinished = state.withLock { state in
    |                                                      |- error: 'withLock' is only available in tvOS 18.0 or newer
    |                                                      `- note: add 'if #available' version check
435 |                 if state.waiter != nil {
436 |                     return true
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionEventHub.swift:466:34: error: 'withLock' is only available in tvOS 18.0 or newer
449 | }
450 |
451 | private final class ConnectionEventSubscriptionCancellation: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
452 |     private struct State {
453 |         var isCancelled = false
    :
463 |     }
464 |
465 |     func cancel() {
    |          `- note: add '@available' attribute to enclosing instance method
466 |         let shouldRemove = state.withLock { state in
    |                                  |- error: 'withLock' is only available in tvOS 18.0 or newer
    |                                  `- note: add 'if #available' version check
467 |             guard state.isCancelled == false else {
468 |                 return false
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionEventHub.swift:498:18: error: 'withLock' is only available in tvOS 18.0 or newer
481 | }
482 |
483 | private final class ConnectionEventSubscriptionRegistry: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
484 |     private struct State {
485 |         var channels: [UUID: ConnectionEventSubscriberChannel] = [:]
    :
492 |     private let delivery = Mutex(())
493 |
494 |     func makeEvents() -> CodexConnectionEvents {
    |          `- note: add '@available' attribute to enclosing instance method
495 |         let id = UUID()
496 |         let channel = ConnectionEventSubscriberChannel()
497 |         let cancellation = ConnectionEventSubscriptionCancellation(id: id, registry: self)
498 |         delivery.withLock { _ in
    |                  |- error: 'withLock' is only available in tvOS 18.0 or newer
    |                  `- note: add 'if #available' version check
499 |             let terminal = state.withLock { state -> CodexConnectionTermination? in
500 |                 guard let terminal = state.terminal else {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionEventHub.swift:499:34: error: 'withLock' is only available in tvOS 18.0 or newer
481 | }
482 |
483 | private final class ConnectionEventSubscriptionRegistry: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
484 |     private struct State {
485 |         var channels: [UUID: ConnectionEventSubscriberChannel] = [:]
    :
492 |     private let delivery = Mutex(())
493 |
494 |     func makeEvents() -> CodexConnectionEvents {
    |          `- note: add '@available' attribute to enclosing instance method
495 |         let id = UUID()
496 |         let channel = ConnectionEventSubscriberChannel()
497 |         let cancellation = ConnectionEventSubscriptionCancellation(id: id, registry: self)
498 |         delivery.withLock { _ in
499 |             let terminal = state.withLock { state -> CodexConnectionTermination? in
    |                                  |- error: 'withLock' is only available in tvOS 18.0 or newer
    |                                  `- note: add 'if #available' version check
500 |                 guard let terminal = state.terminal else {
501 |                     state.channels[id] = channel
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionEventHub.swift:514:18: error: 'withLock' is only available in tvOS 18.0 or newer
481 | }
482 |
483 | private final class ConnectionEventSubscriptionRegistry: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
484 |     private struct State {
485 |         var channels: [UUID: ConnectionEventSubscriberChannel] = [:]
    :
511 |     }
512 |
513 |     func yield(_ event: CodexConnectionEvent) {
    |          `- note: add '@available' attribute to enclosing instance method
514 |         delivery.withLock { _ in
    |                  |- error: 'withLock' is only available in tvOS 18.0 or newer
    |                  `- note: add 'if #available' version check
515 |             let channels = state.withLock { state -> [ConnectionEventSubscriberChannel] in
516 |                 guard state.terminal == nil else {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionEventHub.swift:515:34: error: 'withLock' is only available in tvOS 18.0 or newer
481 | }
482 |
483 | private final class ConnectionEventSubscriptionRegistry: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
484 |     private struct State {
485 |         var channels: [UUID: ConnectionEventSubscriberChannel] = [:]
    :
511 |     }
512 |
513 |     func yield(_ event: CodexConnectionEvent) {
    |          `- note: add '@available' attribute to enclosing instance method
514 |         delivery.withLock { _ in
515 |             let channels = state.withLock { state -> [ConnectionEventSubscriberChannel] in
    |                                  |- error: 'withLock' is only available in tvOS 18.0 or newer
    |                                  `- note: add 'if #available' version check
516 |                 guard state.terminal == nil else {
517 |                     return []
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionEventHub.swift:528:29: error: 'withLock' is only available in tvOS 18.0 or newer
481 | }
482 |
483 | private final class ConnectionEventSubscriptionRegistry: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
484 |     private struct State {
485 |         var channels: [UUID: ConnectionEventSubscriberChannel] = [:]
    :
525 |     }
526 |
527 |     func remove(_ id: UUID) {
    |          `- note: add '@available' attribute to enclosing instance method
528 |         let channel = state.withLock { $0.channels.removeValue(forKey: id) }
    |                             |- error: 'withLock' is only available in tvOS 18.0 or newer
    |                             `- note: add 'if #available' version check
529 |         channel?.cancel()
530 |     }
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionEventHub.swift:533:18: error: 'withLock' is only available in tvOS 18.0 or newer
481 | }
482 |
483 | private final class ConnectionEventSubscriptionRegistry: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
484 |     private struct State {
485 |         var channels: [UUID: ConnectionEventSubscriberChannel] = [:]
    :
530 |     }
531 |
532 |     func finish(with termination: CodexConnectionTermination) {
    |          `- note: add '@available' attribute to enclosing instance method
533 |         delivery.withLock { _ in
    |                  |- error: 'withLock' is only available in tvOS 18.0 or newer
    |                  `- note: add 'if #available' version check
534 |             let channels = state.withLock { state -> [ConnectionEventSubscriberChannel] in
535 |                 if let existing = state.terminal {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionEventHub.swift:534:34: error: 'withLock' is only available in tvOS 18.0 or newer
481 | }
482 |
483 | private final class ConnectionEventSubscriptionRegistry: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
484 |     private struct State {
485 |         var channels: [UUID: ConnectionEventSubscriberChannel] = [:]
    :
530 |     }
531 |
532 |     func finish(with termination: CodexConnectionTermination) {
    |          `- note: add '@available' attribute to enclosing instance method
533 |         delivery.withLock { _ in
534 |             let channels = state.withLock { state -> [ConnectionEventSubscriberChannel] in
    |                                  |- error: 'withLock' is only available in tvOS 18.0 or newer
    |                                  `- note: add 'if #available' version check
535 |                 if let existing = state.terminal {
536 |                     precondition(
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionEventHub.swift:554:30: error: 'withLock' is only available in tvOS 18.0 or newer
481 | }
482 |
483 | private final class ConnectionEventSubscriptionRegistry: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
484 |     private struct State {
485 |         var channels: [UUID: ConnectionEventSubscriberChannel] = [:]
    :
551 |     }
552 |
553 |     func cancelAll() {
    |          `- note: add '@available' attribute to enclosing instance method
554 |         let channels = state.withLock { state -> [ConnectionEventSubscriberChannel] in
    |                              |- error: 'withLock' is only available in tvOS 18.0 or newer
    |                              `- note: add 'if #available' version check
555 |             let channels = Array(state.channels.values)
556 |             state.channels.removeAll(keepingCapacity: false)
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionEventHub.swift:565:15: error: 'withLock' is only available in tvOS 18.0 or newer
481 | }
482 |
483 | private final class ConnectionEventSubscriptionRegistry: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
484 |     private struct State {
485 |         var channels: [UUID: ConnectionEventSubscriberChannel] = [:]
    :
562 |     }
563 |
564 |     func snapshot() -> ConnectionEventHub.Snapshot {
    |          `- note: add '@available' attribute to enclosing instance method
565 |         state.withLock { state in
    |               |- error: 'withLock' is only available in tvOS 18.0 or newer
    |               `- note: add 'if #available' version check
566 |             .init(subscriberCount: state.channels.count, terminal: state.terminal)
567 |         }
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionSupervisor.swift:16:25: error: 'Mutex' is only available in tvOS 18.0 or newer
  8 | )
  9 |
 10 | package final class ConnectionCloseAction: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
 11 |     private enum Request: Sendable {
 12 |         case close
    :
 14 |     }
 15 |
 16 |     private let action: Mutex<(@Sendable (Request) async -> Void)?>
    |                         `- error: 'Mutex' is only available in tvOS 18.0 or newer
 17 |
 18 |     package init(action: (@Sendable () async -> Void)? = nil) {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionSupervisor.swift:300:24: error: 'Mutex' is only available in tvOS 18.0 or newer
292 | }
293 |
294 | package final class AppServerConnectionLease: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
295 |     private struct State {
296 |         var supervisor: ConnectionSupervisor
    :
298 |     }
299 |
300 |     private let state: Mutex<State>
    |                        `- error: 'Mutex' is only available in tvOS 18.0 or newer
301 |
302 |     package init(
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionSupervisor.swift:25:23: error: 'Mutex' is only available in tvOS 18.0 or newer
  8 | )
  9 |
 10 | package final class ConnectionCloseAction: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
 11 |     private enum Request: Sendable {
 12 |         case close
    :
 16 |     private let action: Mutex<(@Sendable (Request) async -> Void)?>
 17 |
 18 |     package init(action: (@Sendable () async -> Void)? = nil) {
    |             `- note: add '@available' attribute to enclosing initializer
 19 |         let wrappedAction: (@Sendable (Request) async -> Void)?
 20 |         if let action {
    :
 23 |             wrappedAction = nil
 24 |         }
 25 |         self.action = Mutex(wrappedAction)
    |                       |- error: 'Mutex' is only available in tvOS 18.0 or newer
    |                       `- note: add 'if #available' version check
 26 |     }
 27 |
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionSupervisor.swift:25:23: error: 'init(_:)' is only available in tvOS 18.0 or newer
  8 | )
  9 |
 10 | package final class ConnectionCloseAction: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
 11 |     private enum Request: Sendable {
 12 |         case close
    :
 16 |     private let action: Mutex<(@Sendable (Request) async -> Void)?>
 17 |
 18 |     package init(action: (@Sendable () async -> Void)? = nil) {
    |             `- note: add '@available' attribute to enclosing initializer
 19 |         let wrappedAction: (@Sendable (Request) async -> Void)?
 20 |         if let action {
    :
 23 |             wrappedAction = nil
 24 |         }
 25 |         self.action = Mutex(wrappedAction)
    |                       |- error: 'init(_:)' is only available in tvOS 18.0 or newer
    |                       `- note: add 'if #available' version check
 26 |     }
 27 |
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionSupervisor.swift:29:16: error: 'withLock' is only available in tvOS 18.0 or newer
  8 | )
  9 |
 10 | package final class ConnectionCloseAction: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
 11 |     private enum Request: Sendable {
 12 |         case close
    :
 26 |     }
 27 |
 28 |     package func bind(to supervisor: ConnectionSupervisor) {
    |                  `- note: add '@available' attribute to enclosing instance method
 29 |         action.withLock { action in
    |                |- error: 'withLock' is only available in tvOS 18.0 or newer
    |                `- note: add 'if #available' version check
 30 |             precondition(action == nil, "Connection close action may be bound exactly once.")
 31 |             action = { [weak supervisor] request in
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionSupervisor.swift:48:35: error: 'withLock' is only available in tvOS 18.0 or newer
  8 | )
  9 |
 10 | package final class ConnectionCloseAction: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
 11 |     private enum Request: Sendable {
 12 |         case close
    :
 45 |     }
 46 |
 47 |     package func closeConnection() async {
    |                  `- note: add '@available' attribute to enclosing instance method
 48 |         guard let action = action.withLock({ $0 }) else {
    |                                   |- error: 'withLock' is only available in tvOS 18.0 or newer
    |                                   `- note: add 'if #available' version check
 49 |             preconditionFailure("Connection close action is not bound.")
 50 |         }
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionEventHub.swift (in target 'CodexAppServerKit' from project 'CodexKit')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile ConnectionEventHub.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionSupervisor.swift (in target 'CodexAppServerKit' from project 'CodexKit')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile ConnectionSupervisor.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionTerminationArbiter.swift (in target 'CodexAppServerKit' from project 'CodexKit')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile ConnectionTerminationArbiter.swift
SwiftCompile normal arm64 Compiling\ CodexAppServer.swift,\ CodexAppServerNotificationRouter.swift,\ CodexAppServerRequest.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexAppServer.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexAppServerNotificationRouter.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexAppServerRequest.swift (in target 'CodexAppServerKit' from project 'CodexKit')
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexAppServer.swift:13:35: error: 'Duration' is only available in tvOS 16.0 or newer
  10 |     /// Options for creating a Codex app-server container.
  11 |     public struct Configuration: Sendable {
  12 |         public struct Deadlines: Equatable, Sendable {
     |                       `- note: add '@available' attribute to enclosing struct
  13 |             public var handshake: Duration?
     |                                   `- error: 'Duration' is only available in tvOS 16.0 or newer
  14 |             public var request: Duration?
  15 |
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexAppServer.swift:14:33: error: 'Duration' is only available in tvOS 16.0 or newer
  10 |     /// Options for creating a Codex app-server container.
  11 |     public struct Configuration: Sendable {
  12 |         public struct Deadlines: Equatable, Sendable {
     |                       `- note: add '@available' attribute to enclosing struct
  13 |             public var handshake: Duration?
  14 |             public var request: Duration?
     |                                 `- error: 'Duration' is only available in tvOS 16.0 or newer
  15 |
  16 |             public init(
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexAppServer.swift:17:28: error: 'Duration' is only available in tvOS 16.0 or newer
  10 |     /// Options for creating a Codex app-server container.
  11 |     public struct Configuration: Sendable {
  12 |         public struct Deadlines: Equatable, Sendable {
     |                       `- note: add '@available' attribute to enclosing struct
  13 |             public var handshake: Duration?
  14 |             public var request: Duration?
  15 |
  16 |             public init(
     |                    `- note: add '@available' attribute to enclosing initializer
  17 |                 handshake: Duration? = nil,
     |                            `- error: 'Duration' is only available in tvOS 16.0 or newer
  18 |                 request: Duration? = nil
  19 |             ) {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexAppServer.swift:18:26: error: 'Duration' is only available in tvOS 16.0 or newer
  10 |     /// Options for creating a Codex app-server container.
  11 |     public struct Configuration: Sendable {
  12 |         public struct Deadlines: Equatable, Sendable {
     |                       `- note: add '@available' attribute to enclosing struct
  13 |             public var handshake: Duration?
  14 |             public var request: Duration?
  15 |
  16 |             public init(
     |                    `- note: add '@available' attribute to enclosing initializer
  17 |                 handshake: Duration? = nil,
  18 |                 request: Duration? = nil
     |                          `- error: 'Duration' is only available in tvOS 16.0 or newer
  19 |             ) {
  20 |                 self.handshake = handshake
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexAppServer.swift:73:72: error: 'homeDirectoryForCurrentUser' is unavailable in tvOS
  71 |             public static func defaultCodexHomeURL(
  72 |                 environment: [String: String] = ProcessInfo.processInfo.environment,
  73 |                 homeDirectoryForCurrentUser: URL = FileManager.default.homeDirectoryForCurrentUser,
     |                                                                        `- error: 'homeDirectoryForCurrentUser' is unavailable in tvOS
  74 |                 applicationSupportDirectory: URL? = FileManager.default.urls(
  75 |                     for: .applicationSupportDirectory,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSFileManager.h:1004:35: note: 'homeDirectoryForCurrentUser' has been explicitly marked unavailable here
1002 |
1003 | /// The home directory for the current user.
1004 | @property (readonly, copy) NSURL *homeDirectoryForCurrentUser API_AVAILABLE(macosx(10.12)) API_UNAVAILABLE(ios, watchos, tvos);
     |                                   `- note: 'homeDirectoryForCurrentUser' has been explicitly marked unavailable here
1005 | /// The temporary directory for the current user.
1006 | @property (readonly, copy) NSURL *temporaryDirectory API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0));
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexAppServer.swift (in target 'CodexAppServerKit' from project 'CodexKit')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CodexAppServer.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexAppServerNotificationRouter.swift (in target 'CodexAppServerKit' from project 'CodexKit')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CodexAppServerNotificationRouter.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexAppServerRequest.swift (in target 'CodexAppServerKit' from project 'CodexKit')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CodexAppServerRequest.swift
SwiftCompile normal arm64 Compiling\ AccountEventHub.swift,\ AppServerClient.swift,\ AppServerConnection.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AccountEventHub.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerClient.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerConnection.swift (in target 'CodexAppServerKit' from project 'CodexKit')
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AccountEventHub.swift:295:25: error: 'Mutex' is only available in tvOS 18.0 or newer
287 | }
288 |
289 | private final class AccountEventSubscriptionRegistry: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
290 |     private struct State {
291 |         var channels: [UUID: AccountEventSubscriberChannel] = [:]
    :
293 |     }
294 |
295 |     private let state = Mutex(State())
    |                         `- error: 'Mutex' is only available in tvOS 18.0 or newer
296 |
297 |     var isFinished: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AccountEventHub.swift:295:25: error: 'init(_:)' is only available in tvOS 18.0 or newer
287 | }
288 |
289 | private final class AccountEventSubscriptionRegistry: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
290 |     private struct State {
291 |         var channels: [UUID: AccountEventSubscriberChannel] = [:]
    :
293 |     }
294 |
295 |     private let state = Mutex(State())
    |                         `- error: 'init(_:)' is only available in tvOS 18.0 or newer
296 |
297 |     var isFinished: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AccountEventHub.swift:122:25: error: 'Mutex' is only available in tvOS 18.0 or newer
 98 | }
 99 |
100 | private final class AccountEventSubscriberChannel: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
101 |     private enum Terminal {
102 |         case open
    :
120 |     }
121 |
122 |     private let state = Mutex(State())
    |                         `- error: 'Mutex' is only available in tvOS 18.0 or newer
123 |
124 |     func yield(_ event: CodexAccountEvent) {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AccountEventHub.swift:122:25: error: 'init(_:)' is only available in tvOS 18.0 or newer
 98 | }
 99 |
100 | private final class AccountEventSubscriberChannel: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
101 |     private enum Terminal {
102 |         case open
    :
120 |     }
121 |
122 |     private let state = Mutex(State())
    |                         `- error: 'init(_:)' is only available in tvOS 18.0 or newer
123 |
124 |     func yield(_ event: CodexAccountEvent) {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AccountEventHub.swift:262:25: error: 'Mutex' is only available in tvOS 18.0 or newer
255 | }
256 |
257 | private final class AccountEventSubscriptionCancellation: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
258 |     private struct State {
259 |         var isCancelled = false
260 |     }
261 |
262 |     private let state = Mutex(State())
    |                         `- error: 'Mutex' is only available in tvOS 18.0 or newer
263 |     private let id: UUID
264 |     private let registry: AccountEventSubscriptionRegistry
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AccountEventHub.swift:262:25: error: 'init(_:)' is only available in tvOS 18.0 or newer
255 | }
256 |
257 | private final class AccountEventSubscriptionCancellation: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
258 |     private struct State {
259 |         var isCancelled = false
260 |     }
261 |
262 |     private let state = Mutex(State())
    |                         `- error: 'init(_:)' is only available in tvOS 18.0 or newer
263 |     private let id: UUID
264 |     private let registry: AccountEventSubscriptionRegistry
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AccountEventHub.swift:125:28: error: 'withLock' is only available in tvOS 18.0 or newer
 98 | }
 99 |
100 | private final class AccountEventSubscriberChannel: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
101 |     private enum Terminal {
102 |         case open
    :
122 |     private let state = Mutex(State())
123 |
124 |     func yield(_ event: CodexAccountEvent) {
    |          `- note: add '@available' attribute to enclosing instance method
125 |         let waiter = state.withLock { state -> CheckedContinuation<
    |                            |- error: 'withLock' is only available in tvOS 18.0 or newer
    |                            `- note: add 'if #available' version check
126 |             Result<CodexAccountEvent?, CodexAppServerError>, Never
127 |         >? in
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AccountEventHub.swift:156:42: error: 'withLock' is only available in tvOS 18.0 or newer
 98 | }
 99 |
100 | private final class AccountEventSubscriberChannel: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
101 |     private enum Terminal {
102 |         case open
    :
149 |     }
150 |
151 |     func next(
    |          `- note: add '@available' attribute to enclosing instance method
152 |         cancellation: AccountEventSubscriptionCancellation
153 |     ) async throws -> CodexAccountEvent? {
154 |         try await withTaskCancellationHandler {
155 |             let result = await withCheckedContinuation { continuation in
156 |                 let registration = state.withLock { state -> (
    |                                          |- error: 'withLock' is only available in tvOS 18.0 or newer
    |                                          `- note: add 'if #available' version check
157 |                     Result<CodexAccountEvent?, CodexAppServerError>?,
158 |                     [CheckedContinuation<Void, Never>]
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AccountEventHub.swift:192:54: error: 'withLock' is only available in tvOS 18.0 or newer
 98 | }
 99 |
100 | private final class AccountEventSubscriberChannel: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
101 |     private enum Terminal {
102 |         case open
    :
188 |     }
189 |
190 |     func waitUntilNextSuspendsForTesting() async {
    |          `- note: add '@available' attribute to enclosing instance method
191 |         await withCheckedContinuation { continuation in
192 |             let isAlreadySuspendedOrFinished = state.withLock { state in
    |                                                      |- error: 'withLock' is only available in tvOS 18.0 or newer
    |                                                      `- note: add 'if #available' version check
193 |                 if state.waiter != nil {
194 |                     return true
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AccountEventHub.swift:209:32: error: 'withLock' is only available in tvOS 18.0 or newer
 98 | }
 99 |
100 | private final class AccountEventSubscriberChannel: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
101 |     private enum Terminal {
102 |         case open
    :
206 |     }
207 |
208 |     func finish(throwing error: CodexAppServerError?) {
    |          `- note: add '@available' attribute to enclosing instance method
209 |         let completion = state.withLock { state -> (
    |                                |- error: 'withLock' is only available in tvOS 18.0 or newer
    |                                `- note: add 'if #available' version check
210 |             CheckedContinuation<Result<CodexAccountEvent?, CodexAppServerError>, Never>?,
211 |             [CheckedContinuation<Void, Never>]
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AccountEventHub.swift:272:34: error: 'withLock' is only available in tvOS 18.0 or newer
255 | }
256 |
257 | private final class AccountEventSubscriptionCancellation: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
258 |     private struct State {
259 |         var isCancelled = false
    :
269 |     }
270 |
271 |     func cancel() {
    |          `- note: add '@available' attribute to enclosing instance method
272 |         let shouldRemove = state.withLock { state in
    |                                  |- error: 'withLock' is only available in tvOS 18.0 or newer
    |                                  `- note: add 'if #available' version check
273 |             guard state.isCancelled == false else {
274 |                 return false
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AccountEventHub.swift:298:15: error: 'withLock' is only available in tvOS 18.0 or newer
287 | }
288 |
289 | private final class AccountEventSubscriptionRegistry: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
290 |     private struct State {
291 |         var channels: [UUID: AccountEventSubscriberChannel] = [:]
    :
295 |     private let state = Mutex(State())
296 |
297 |     var isFinished: Bool {
    |         `- note: add '@available' attribute to enclosing property
298 |         state.withLock { $0.terminalError != nil }
    |               |- error: 'withLock' is only available in tvOS 18.0 or newer
    |               `- note: add 'if #available' version check
299 |     }
300 |
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AccountEventHub.swift:302:15: error: 'withLock' is only available in tvOS 18.0 or newer
287 | }
288 |
289 | private final class AccountEventSubscriptionRegistry: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
290 |     private struct State {
291 |         var channels: [UUID: AccountEventSubscriberChannel] = [:]
    :
299 |     }
300 |
301 |     var count: Int {
    |         `- note: add '@available' attribute to enclosing property
302 |         state.withLock { $0.channels.count }
    |               |- error: 'withLock' is only available in tvOS 18.0 or newer
    |               `- note: add 'if #available' version check
303 |     }
304 |
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AccountEventHub.swift:309:35: error: 'withLock' is only available in tvOS 18.0 or newer
287 | }
288 |
289 | private final class AccountEventSubscriptionRegistry: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
290 |     private struct State {
291 |         var channels: [UUID: AccountEventSubscriberChannel] = [:]
    :
303 |     }
304 |
305 |     func makeEvents() -> CodexAccountEvents {
    |          `- note: add '@available' attribute to enclosing instance method
306 |         let id = UUID()
307 |         let channel = AccountEventSubscriberChannel()
308 |         let cancellation = AccountEventSubscriptionCancellation(id: id, registry: self)
309 |         let terminalError = state.withLock { state -> CodexAppServerError? in
    |                                   |- error: 'withLock' is only available in tvOS 18.0 or newer
    |                                   `- note: add 'if #available' version check
310 |             guard let terminalError = state.terminalError else {
311 |                 state.channels[id] = channel
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AccountEventHub.swift:323:30: error: 'withLock' is only available in tvOS 18.0 or newer
287 | }
288 |
289 | private final class AccountEventSubscriptionRegistry: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
290 |     private struct State {
291 |         var channels: [UUID: AccountEventSubscriberChannel] = [:]
    :
320 |     }
321 |
322 |     func yield(_ event: CodexAccountEvent) {
    |          `- note: add '@available' attribute to enclosing instance method
323 |         let channels = state.withLock { Array($0.channels.values) }
    |                              |- error: 'withLock' is only available in tvOS 18.0 or newer
    |                              `- note: add 'if #available' version check
324 |         for channel in channels {
325 |             channel.yield(event)
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AccountEventHub.swift:330:29: error: 'withLock' is only available in tvOS 18.0 or newer
287 | }
288 |
289 | private final class AccountEventSubscriptionRegistry: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
290 |     private struct State {
291 |         var channels: [UUID: AccountEventSubscriberChannel] = [:]
    :
327 |     }
328 |
329 |     func remove(_ id: UUID) {
    |          `- note: add '@available' attribute to enclosing instance method
330 |         let channel = state.withLock { $0.channels.removeValue(forKey: id) }
    |                             |- error: 'withLock' is only available in tvOS 18.0 or newer
    |                             `- note: add 'if #available' version check
331 |         channel?.finish(throwing: nil)
332 |     }
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AccountEventHub.swift:335:30: error: 'withLock' is only available in tvOS 18.0 or newer
287 | }
288 |
289 | private final class AccountEventSubscriptionRegistry: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
290 |     private struct State {
291 |         var channels: [UUID: AccountEventSubscriberChannel] = [:]
    :
332 |     }
333 |
334 |     func finish(throwing error: CodexAppServerError) {
    |          `- note: add '@available' attribute to enclosing instance method
335 |         let channels = state.withLock { state -> [AccountEventSubscriberChannel] in
    |                              |- error: 'withLock' is only available in tvOS 18.0 or newer
    |                              `- note: add 'if #available' version check
336 |             guard state.terminalError == nil else {
337 |                 return []
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerClient.swift:22:46: error: 'Duration' is only available in tvOS 16.0 or newer
  4 | private let logger = Logger(subsystem: "CodexAppServerKit", category: "app-server-client")
  5 |
  6 | package actor AppServerClient {
    |               `- note: add '@available' attribute to enclosing actor
  7 |     private struct InitializationContract: Equatable {
  8 |         var clientName: String
    :
 20 |
 21 |     private static let appServerOverloadedErrorCode = -32001
 22 |     private static let overloadRetryDelays: [Duration] = [
    |                        |                     `- error: 'Duration' is only available in tvOS 16.0 or newer
    |                        `- note: add '@available' attribute to enclosing static property
 23 |         .milliseconds(100),
 24 |         .milliseconds(250),
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerClient.swift:23:10: error: 'milliseconds' is only available in tvOS 16.0 or newer
  4 | private let logger = Logger(subsystem: "CodexAppServerKit", category: "app-server-client")
  5 |
  6 | package actor AppServerClient {
    |               `- note: add '@available' attribute to enclosing actor
  7 |     private struct InitializationContract: Equatable {
  8 |         var clientName: String
    :
 20 |
 21 |     private static let appServerOverloadedErrorCode = -32001
 22 |     private static let overloadRetryDelays: [Duration] = [
    |                        `- note: add '@available' attribute to enclosing static property
 23 |         .milliseconds(100),
    |          `- error: 'milliseconds' is only available in tvOS 16.0 or newer
 24 |         .milliseconds(250),
 25 |         .milliseconds(500),
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerClient.swift:24:10: error: 'milliseconds' is only available in tvOS 16.0 or newer
  4 | private let logger = Logger(subsystem: "CodexAppServerKit", category: "app-server-client")
  5 |
  6 | package actor AppServerClient {
    |               `- note: add '@available' attribute to enclosing actor
  7 |     private struct InitializationContract: Equatable {
  8 |         var clientName: String
    :
 20 |
 21 |     private static let appServerOverloadedErrorCode = -32001
 22 |     private static let overloadRetryDelays: [Duration] = [
    |                        `- note: add '@available' attribute to enclosing static property
 23 |         .milliseconds(100),
 24 |         .milliseconds(250),
    |          `- error: 'milliseconds' is only available in tvOS 16.0 or newer
 25 |         .milliseconds(500),
 26 |     ]
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerClient.swift:25:10: error: 'milliseconds' is only available in tvOS 16.0 or newer
  4 | private let logger = Logger(subsystem: "CodexAppServerKit", category: "app-server-client")
  5 |
  6 | package actor AppServerClient {
    |               `- note: add '@available' attribute to enclosing actor
  7 |     private struct InitializationContract: Equatable {
  8 |         var clientName: String
    :
 20 |
 21 |     private static let appServerOverloadedErrorCode = -32001
 22 |     private static let overloadRetryDelays: [Duration] = [
    |                        `- note: add '@available' attribute to enclosing static property
 23 |         .milliseconds(100),
 24 |         .milliseconds(250),
 25 |         .milliseconds(500),
    |          `- error: 'milliseconds' is only available in tvOS 16.0 or newer
 26 |     ]
 27 |
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerClient.swift:30:56: error: 'Duration' is only available in tvOS 16.0 or newer
  4 | private let logger = Logger(subsystem: "CodexAppServerKit", category: "app-server-client")
  5 |
  6 | package actor AppServerClient {
    |               `- note: add '@available' attribute to enclosing actor
  7 |     private struct InitializationContract: Equatable {
  8 |         var clientName: String
    :
 28 |     private let transport: any JSONRPC.Transport
 29 |     package nonisolated let connectionEventHub: ConnectionEventHub
 30 |     private let overloadRetryDelay: @Sendable (Int) -> Duration?
    |                                                        `- error: 'Duration' is only available in tvOS 16.0 or newer
 31 |     private let retrySleep: @Sendable (Duration) async throws -> Void
 32 |     private let deadlines: CodexAppServer.Configuration.Deadlines
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerClient.swift:31:40: error: 'Duration' is only available in tvOS 16.0 or newer
  4 | private let logger = Logger(subsystem: "CodexAppServerKit", category: "app-server-client")
  5 |
  6 | package actor AppServerClient {
    |               `- note: add '@available' attribute to enclosing actor
  7 |     private struct InitializationContract: Equatable {
  8 |         var clientName: String
    :
 29 |     package nonisolated let connectionEventHub: ConnectionEventHub
 30 |     private let overloadRetryDelay: @Sendable (Int) -> Duration?
 31 |     private let retrySleep: @Sendable (Duration) async throws -> Void
    |                                        `- error: 'Duration' is only available in tvOS 16.0 or newer
 32 |     private let deadlines: CodexAppServer.Configuration.Deadlines
 33 |     private let deadlineClock: CodexDeadlineClock
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerClient.swift:46:58: error: 'Duration' is only available in tvOS 16.0 or newer
  4 | private let logger = Logger(subsystem: "CodexAppServerKit", category: "app-server-client")
  5 |
  6 | package actor AppServerClient {
    |               `- note: add '@available' attribute to enclosing actor
  7 |     private struct InitializationContract: Equatable {
  8 |         var clientName: String
    :
 39 |     private var initializationState = InitializationState.idle
 40 |
 41 |     package init(
    |             `- note: add '@available' attribute to enclosing initializer
 42 |         transport: any JSONRPC.Transport,
 43 |         deadlines: CodexAppServer.Configuration.Deadlines = .init(),
 44 |         deadlineClock: CodexDeadlineClock = .continuous,
 45 |         connectionCloseAction: ConnectionCloseAction,
 46 |         overloadRetryDelay: @escaping @Sendable (Int) -> Duration? = AppServerClient
    |                                                          `- error: 'Duration' is only available in tvOS 16.0 or newer
 47 |             .defaultOverloadRetryDelay,
 48 |         retrySleep: @escaping @Sendable (Duration) async throws -> Void = {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerClient.swift:48:42: error: 'Duration' is only available in tvOS 16.0 or newer
  4 | private let logger = Logger(subsystem: "CodexAppServerKit", category: "app-server-client")
  5 |
  6 | package actor AppServerClient {
    |               `- note: add '@available' attribute to enclosing actor
  7 |     private struct InitializationContract: Equatable {
  8 |         var clientName: String
    :
 39 |     private var initializationState = InitializationState.idle
 40 |
 41 |     package init(
    |             `- note: add '@available' attribute to enclosing initializer
 42 |         transport: any JSONRPC.Transport,
 43 |         deadlines: CodexAppServer.Configuration.Deadlines = .init(),
    :
 46 |         overloadRetryDelay: @escaping @Sendable (Int) -> Duration? = AppServerClient
 47 |             .defaultOverloadRetryDelay,
 48 |         retrySleep: @escaping @Sendable (Duration) async throws -> Void = {
    |                                          `- error: 'Duration' is only available in tvOS 16.0 or newer
 49 |             try await Task.sleep(for: $0)
 50 |         }
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerClient.swift:49:28: error: 'sleep(for:tolerance:clock:)' is only available in tvOS 16.0 or newer
  4 | private let logger = Logger(subsystem: "CodexAppServerKit", category: "app-server-client")
  5 |
  6 | package actor AppServerClient {
    |               `- note: add '@available' attribute to enclosing actor
  7 |     private struct InitializationContract: Equatable {
  8 |         var clientName: String
    :
 39 |     private var initializationState = InitializationState.idle
 40 |
 41 |     package init(
    |             `- note: add '@available' attribute to enclosing initializer
 42 |         transport: any JSONRPC.Transport,
 43 |         deadlines: CodexAppServer.Configuration.Deadlines = .init(),
    :
 47 |             .defaultOverloadRetryDelay,
 48 |         retrySleep: @escaping @Sendable (Duration) async throws -> Void = {
 49 |             try await Task.sleep(for: $0)
    |                            |- error: 'sleep(for:tolerance:clock:)' is only available in tvOS 16.0 or newer
    |                            `- note: add 'if #available' version check
 50 |         }
 51 |     ) {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerClient.swift:101:52: error: 'Duration' is only available in tvOS 16.0 or newer
  4 | private let logger = Logger(subsystem: "CodexAppServerKit", category: "app-server-client")
  5 |
  6 | package actor AppServerClient {
    |               `- note: add '@available' attribute to enclosing actor
  7 |     private struct InitializationContract: Equatable {
  8 |         var clientName: String
    :
 99 |     }
100 |
101 |     package func sleepForInterruptRace(_ duration: Duration) async throws {
    |                  |                                 `- error: 'Duration' is only available in tvOS 16.0 or newer
    |                  `- note: add '@available' attribute to enclosing instance method
102 |         try await deadlineClock.sleep(duration)
103 |     }
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerClient.swift:182:19: error: 'Duration' is only available in tvOS 16.0 or newer
  4 | private let logger = Logger(subsystem: "CodexAppServerKit", category: "app-server-client")
  5 |
  6 | package actor AppServerClient {
    |               `- note: add '@available' attribute to enclosing actor
  7 |     private struct InitializationContract: Equatable {
  8 |         var clientName: String
    :
177 |     }
178 |
179 |     private func send<Request: AppServerAPI.Request>(
    |                  `- note: add '@available' attribute to enclosing instance method
180 |         _ request: Request,
181 |         purpose: CodexRequestPurpose,
182 |         deadline: Duration?,
    |                   `- error: 'Duration' is only available in tvOS 16.0 or newer
183 |         afterResponse: @escaping @Sendable (Request.Response) async throws -> Void
184 |     ) async throws -> Request.Response {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerClient.swift:202:19: error: 'Duration' is only available in tvOS 16.0 or newer
  4 | private let logger = Logger(subsystem: "CodexAppServerKit", category: "app-server-client")
  5 |
  6 | package actor AppServerClient {
    |               `- note: add '@available' attribute to enclosing actor
  7 |     private struct InitializationContract: Equatable {
  8 |         var clientName: String
    :
194 |     }
195 |
196 |     package func send<Params: Encodable & Sendable, Response: Decodable & Sendable>(
    |                  `- note: add '@available' attribute to enclosing instance method
197 |         method: String,
198 |         params: Params,
    :
200 |         scope: AppServerAPI.RequestScope? = nil,
201 |         purpose: CodexRequestPurpose? = nil,
202 |         deadline: Duration? = nil,
    |                   `- error: 'Duration' is only available in tvOS 16.0 or newer
203 |         reconcileResponse: @escaping @Sendable (Response) async throws -> Void = { _ in },
204 |         afterResponse: @escaping @Sendable (Response) async throws -> Void = { _ in },
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerClient.swift:526:19: error: 'Duration' is only available in tvOS 16.0 or newer
  4 | private let logger = Logger(subsystem: "CodexAppServerKit", category: "app-server-client")
  5 |
  6 | package actor AppServerClient {
    |               `- note: add '@available' attribute to enclosing actor
  7 |     private struct InitializationContract: Equatable {
  8 |         var clientName: String
    :
522 |         )
523 |     }
524 |     package func runTurnWithDeadline<Output: Sendable>(
    |                  `- note: add '@available' attribute to enclosing instance method
525 |         turnID: CodexTurnID,
526 |         duration: Duration,
    |                   `- error: 'Duration' is only available in tvOS 16.0 or newer
527 |         operation: @escaping @Sendable () async throws -> Output
528 |     ) async throws -> Output {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerClient.swift:545:21: error: 'Duration' is only available in tvOS 16.0 or newer
  4 | private let logger = Logger(subsystem: "CodexAppServerKit", category: "app-server-client")
  5 |
  6 | package actor AppServerClient {
    |               `- note: add '@available' attribute to enclosing actor
  7 |     private struct InitializationContract: Equatable {
  8 |         var clientName: String
    :
542 |     }
543 |
544 |     private func runWithDeadline<Output: Sendable>(
    |                  `- note: add '@available' attribute to enclosing instance method
545 |         _ deadline: Duration,
    |                     `- error: 'Duration' is only available in tvOS 16.0 or newer
546 |         operation: @escaping @Sendable () async throws -> Output
547 |     ) async throws -> Output {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerClient.swift:568:21: error: 'Duration' is only available in tvOS 16.0 or newer
  4 | private let logger = Logger(subsystem: "CodexAppServerKit", category: "app-server-client")
  5 |
  6 | package actor AppServerClient {
    |               `- note: add '@available' attribute to enclosing actor
  7 |     private struct InitializationContract: Equatable {
  8 |         var clientName: String
    :
565 |     }
566 |
567 |     private func runRequestWithDeadline<Output: Sendable>(
    |                  `- note: add '@available' attribute to enclosing instance method
568 |         _ deadline: Duration,
    |                     `- error: 'Duration' is only available in tvOS 16.0 or newer
569 |         operationState: RequestOperationState,
570 |         operation: @escaping @Sendable () async throws -> Output
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerClient.swift:612:18: error: 'Duration' is only available in tvOS 16.0 or newer
  4 | private let logger = Logger(subsystem: "CodexAppServerKit", category: "app-server-client")
  5 |
  6 | package actor AppServerClient {
    |               `- note: add '@available' attribute to enclosing actor
  7 |     private struct InitializationContract: Equatable {
  8 |         var clientName: String
    :
609 |     }
610 |
611 |     private func waitForRetryDelay(
    |                  `- note: add '@available' attribute to enclosing instance method
612 |         _ delay: Duration,
    |                  `- error: 'Duration' is only available in tvOS 16.0 or newer
613 |         operationState: RequestOperationState
614 |     ) async throws {
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AccountEventHub.swift (in target 'CodexAppServerKit' from project 'CodexKit')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile AccountEventHub.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerClient.swift (in target 'CodexAppServerKit' from project 'CodexKit')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile AppServerClient.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerConnection.swift (in target 'CodexAppServerKit' from project 'CodexKit')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile AppServerConnection.swift
SwiftCompile normal arm64 Compiling\ CodexAppServerRequestCodec.swift,\ CodexDomainTypes.swift,\ CodexItemReducer.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexAppServerRequestCodec.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexDomainTypes.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexItemReducer.swift (in target 'CodexAppServerKit' from project 'CodexKit')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexAppServerRequestCodec.swift (in target 'CodexAppServerKit' from project 'CodexKit')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CodexAppServerRequestCodec.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexDomainTypes.swift (in target 'CodexAppServerKit' from project 'CodexKit')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CodexDomainTypes.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexItemReducer.swift (in target 'CodexAppServerKit' from project 'CodexKit')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CodexItemReducer.swift
SwiftCompile normal arm64 Compiling\ CodexThreadOperations.swift,\ CodexTurnSequences.swift,\ CodexTurnSnapshotReducer.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexThreadOperations.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexTurnSequences.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexTurnSnapshotReducer.swift (in target 'CodexAppServerKit' from project 'CodexKit')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexThreadOperations.swift (in target 'CodexAppServerKit' from project 'CodexKit')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CodexThreadOperations.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexTurnSequences.swift (in target 'CodexAppServerKit' from project 'CodexKit')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CodexTurnSequences.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexTurnSnapshotReducer.swift (in target 'CodexAppServerKit' from project 'CodexKit')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile CodexTurnSnapshotReducer.swift
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexThreadOperations.swift:55:18: error: 'Duration' is only available in tvOS 16.0 or newer
  2 | import Synchronization
  3 |
  4 | extension CodexThread {
    | `- note: add '@available' attribute to enclosing extension
  5 |     /// Thread-scoped events emitted by the app-server.
  6 |     ///
    :
 50 |     ///   - options: Per-turn generation options.
 51 |     /// - Returns: The completed response collected from app-server events.
 52 |     public func respond(
    |                 `- note: add '@available' attribute to enclosing instance method
 53 |         to prompt: CodexPrompt,
 54 |         options: CodexGenerationOptions = .init(),
 55 |         timeout: Duration? = nil
    |                  `- error: 'Duration' is only available in tvOS 16.0 or newer
 56 |     ) async throws -> CodexTurnOutcome {
 57 |         switch try await collectResponse(to: prompt, options: options, timeout: timeout) {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexThreadOperations.swift:68:18: error: 'Duration' is only available in tvOS 16.0 or newer
  2 | import Synchronization
  3 |
  4 | extension CodexThread {
    | `- note: add '@available' attribute to enclosing extension
  5 |     /// Thread-scoped events emitted by the app-server.
  6 |     ///
    :
 63 |     }
 64 |
 65 |     package func collectResponse(
    |                  `- note: add '@available' attribute to enclosing instance method
 66 |         to prompt: CodexPrompt,
 67 |         options: CodexGenerationOptions = .init(),
 68 |         timeout: Duration? = nil
    |                  `- error: 'Duration' is only available in tvOS 16.0 or newer
 69 |     ) async throws -> CodexResponseCollectionResult {
 70 |         let cancellationRecorder = CodexResponseCancellationRecorder()
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexThreadOperations.swift:102:18: error: 'Duration' is only available in tvOS 16.0 or newer
  2 | import Synchronization
  3 |
  4 | extension CodexThread {
    | `- note: add '@available' attribute to enclosing extension
  5 |     /// Thread-scoped events emitted by the app-server.
  6 |     ///
    :
 97 |
 98 |     /// Sends a text prompt to the thread and waits for the final response.
 99 |     public func respond(
    |                 `- note: add '@available' attribute to enclosing instance method
100 |         to prompt: String,
101 |         options: CodexGenerationOptions = .init(),
102 |         timeout: Duration? = nil
    |                  `- error: 'Duration' is only available in tvOS 16.0 or newer
103 |     ) async throws -> CodexTurnOutcome {
104 |         try await respond(to: CodexPrompt(prompt), options: options, timeout: timeout)
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexThreadOperations.swift:110:18: error: 'Duration' is only available in tvOS 16.0 or newer
  2 | import Synchronization
  3 |
  4 | extension CodexThread {
    | `- note: add '@available' attribute to enclosing extension
  5 |     /// Thread-scoped events emitted by the app-server.
  6 |     ///
    :
106 |
107 |     /// Builds a structured prompt, sends it to the thread, and waits for the final response.
108 |     public func respond(
    |                 `- note: add '@available' attribute to enclosing instance method
109 |         options: CodexGenerationOptions = .init(),
110 |         timeout: Duration? = nil,
    |                  `- error: 'Duration' is only available in tvOS 16.0 or newer
111 |         @CodexPromptBuilder prompt: () throws -> CodexPrompt
112 |     ) async throws -> CodexTurnOutcome {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexThreadOperations.swift:537:33: error: 'Mutex' is only available in tvOS 18.0 or newer
534 | }
535 |
536 | package final class CodexResponseCancellationRecorder: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
537 |     private let storedOutcome = Mutex<CodexTurnOutcome?>(nil)
    |                                 `- error: 'Mutex' is only available in tvOS 18.0 or newer
538 |
539 |     package var outcome: CodexTurnOutcome? {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexThreadOperations.swift:537:56: error: 'init(_:)' is only available in tvOS 18.0 or newer
534 | }
535 |
536 | package final class CodexResponseCancellationRecorder: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
537 |     private let storedOutcome = Mutex<CodexTurnOutcome?>(nil)
    |                                                        `- error: 'init(_:)' is only available in tvOS 18.0 or newer
538 |
539 |     package var outcome: CodexTurnOutcome? {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexThreadOperations.swift:540:23: error: 'withLock' is only available in tvOS 18.0 or newer
534 | }
535 |
536 | package final class CodexResponseCancellationRecorder: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
537 |     private let storedOutcome = Mutex<CodexTurnOutcome?>(nil)
538 |
539 |     package var outcome: CodexTurnOutcome? {
    |                 `- note: add '@available' attribute to enclosing property
540 |         storedOutcome.withLock { $0 }
    |                       |- error: 'withLock' is only available in tvOS 18.0 or newer
    |                       `- note: add 'if #available' version check
541 |     }
542 |
SwiftCompile normal arm64 Compiling\ InterruptRaceResolver.swift,\ JSONRPC.swift,\ JSONRPCEnvelopeCodec.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/InterruptRaceResolver.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/JSONRPC.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/JSONRPCEnvelopeCodec.swift (in target 'CodexAppServerKit' from project 'CodexKit')
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/InterruptRaceResolver.swift:5:27: error: 'Duration' is only available in tvOS 16.0 or newer
 2 |
 3 | package struct InterruptRaceResolver: Sendable {
 4 |     package enum Decision: Sendable {
   |                  `- note: add '@available' attribute to enclosing enum
 5 |         case retry(after: Duration)
   |                           `- error: 'Duration' is only available in tvOS 16.0 or newer
 6 |         case redirect(to: CodexTurnID)
 7 |         case fail
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/InterruptRaceResolver.swift:12:47: error: 'Duration' is only available in tvOS 16.0 or newer
 1 | import Foundation
 2 |
 3 | package struct InterruptRaceResolver: Sendable {
   |                `- note: add '@available' attribute to enclosing struct
 4 |     package enum Decision: Sendable {
 5 |         case retry(after: Duration)
   :
10 |     private static let noActiveTurnMessage = "no active turn to interrupt"
11 |     private static let activationRetryLimit = 5
12 |     private static let activationRetryDelay = Duration.milliseconds(50)
   |                        |                      `- error: 'Duration' is only available in tvOS 16.0 or newer
   |                        `- note: add '@available' attribute to enclosing static property
13 |
14 |     private let expectedTurnID: CodexTurnID?
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/InterruptRaceResolver.swift:12:56: error: 'milliseconds' is only available in tvOS 16.0 or newer
 1 | import Foundation
 2 |
 3 | package struct InterruptRaceResolver: Sendable {
   |                `- note: add '@available' attribute to enclosing struct
 4 |     package enum Decision: Sendable {
 5 |         case retry(after: Duration)
   :
10 |     private static let noActiveTurnMessage = "no active turn to interrupt"
11 |     private static let activationRetryLimit = 5
12 |     private static let activationRetryDelay = Duration.milliseconds(50)
   |                        |                               `- error: 'milliseconds' is only available in tvOS 16.0 or newer
   |                        `- note: add '@available' attribute to enclosing static property
13 |
14 |     private let expectedTurnID: CodexTurnID?
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/JSONRPCEnvelopeCodec.swift:180:25: error: 'Mutex' is only available in tvOS 18.0 or newer
172 | }
173 |
174 | package final class JSONRPCResponseWaiter: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
175 |     private enum State {
176 |         case pending(CheckedContinuation<Result<Data, JSONRPC.Error>, Never>?)
    :
178 |     }
179 |
180 |     private let state = Mutex<State>(.pending(nil))
    |                         `- error: 'Mutex' is only available in tvOS 18.0 or newer
181 |
182 |     package init() {}
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/JSONRPCEnvelopeCodec.swift:180:36: error: 'init(_:)' is only available in tvOS 18.0 or newer
172 | }
173 |
174 | package final class JSONRPCResponseWaiter: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
175 |     private enum State {
176 |         case pending(CheckedContinuation<Result<Data, JSONRPC.Error>, Never>?)
    :
178 |     }
179 |
180 |     private let state = Mutex<State>(.pending(nil))
    |                                    `- error: 'init(_:)' is only available in tvOS 18.0 or newer
181 |
182 |     package init() {}
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/JSONRPCEnvelopeCodec.swift:186:34: error: 'withLock' is only available in tvOS 18.0 or newer
172 | }
173 |
174 | package final class JSONRPCResponseWaiter: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
175 |     private enum State {
176 |         case pending(CheckedContinuation<Result<Data, JSONRPC.Error>, Never>?)
    :
182 |     package init() {}
183 |
184 |     package func wait() async throws -> Data {
    |                  `- note: add '@available' attribute to enclosing instance method
185 |         let result = await withCheckedContinuation { continuation in
186 |             let resolved = state.withLock {
    |                                  |- error: 'withLock' is only available in tvOS 18.0 or newer
    |                                  `- note: add 'if #available' version check
187 |                 state -> Result<Data, JSONRPC.Error>? in
188 |                 switch state {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/JSONRPCEnvelopeCodec.swift:207:32: error: 'withLock' is only available in tvOS 18.0 or newer
172 | }
173 |
174 | package final class JSONRPCResponseWaiter: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
175 |     private enum State {
176 |         case pending(CheckedContinuation<Result<Data, JSONRPC.Error>, Never>?)
    :
204 |
205 |     @discardableResult
206 |     package func resolve(_ result: Result<Data, JSONRPC.Error>) -> Bool {
    |                  `- note: add '@available' attribute to enclosing instance method
207 |         let resolution = state.withLock {
    |                                |- error: 'withLock' is only available in tvOS 18.0 or newer
    |                                `- note: add 'if #available' version check
208 |             state -> (Bool, CheckedContinuation<Result<Data, JSONRPC.Error>, Never>?) in
209 |             switch state {
Failed frontend command:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -c /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AccountEventHub.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerClient.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerConnection.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerNotificationDecoder.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerProcessTransport.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerRequests.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexAppServer.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexAppServerNotificationRouter.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexAppServerRequest.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexAppServerRequestCodec.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexDomainTypes.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexItemReducer.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexThreadOperations.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexTurnSequences.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/CodexTurnSnapshotReducer.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionEventHub.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionSupervisor.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ConnectionTerminationArbiter.swift -primary-file /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/InterruptRaceResolver.swift -primary-file /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/JSONRPC.swift -primary-file /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/JSONRPCEnvelopeCodec.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/JSONRPCInboundFrameMailbox.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/LoginRegistry.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/RequestSerializer.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ReviewRestartCoordinator.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ServerRequestRegistry.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ThreadEventHub.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/TurnReplayCore.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/TurnReplayStore.swift -supplementary-output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CodexKit.build/Debug-appletvos/CodexAppServerKit-t.build/Objects-normal/arm64/supplementaryOutputs-7 -target arm64-apple-tvos15.0 -disable-cross-import-overlay-search -swift-module-cross-import Darwin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/Darwin.swiftcrossimport/xlocale.swiftoverlay -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/bin/swift-plugin-server\#SwiftMacros -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/CodexKit.build/Debug-appletvos/CodexAppServerKit-t.build/Objects-normal/arm64/CodexAppServerKit-dependencies-1.json -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk/Developer/Library/Frameworks -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -no-color-diagnostics -Xcc -fno-color-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -profile-generate -profile-coverage-mapping -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos27.0-24J360-e829b21a6f8c9b70876ba0858053c044b32bfd8d43560033f8d89884cdb90028.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CodexKit.build/Debug-appletvos/CodexAppServerKit-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CodexKit.build/Debug-appletvos/CodexAppServerKit-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CodexKit.build/Debug-appletvos/CodexAppServerKit-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name CodexAppServerKit -package-name spi_builder_workspace -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CodexKit.build/Debug-appletvos/CodexAppServerKit-t.build/Objects-normal/arm64/CodexAppServerKit_const_extract_protocols.json -disable-clang-spi -clang-target arm64-apple-tvos27.0 -target-sdk-version 27.0 -target-sdk-name appletvos27.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 -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CodexKit.build/Debug-appletvos/CodexAppServerKit-t.build/Objects-normal/arm64/InterruptRaceResolver.o -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CodexKit.build/Debug-appletvos/CodexAppServerKit-t.build/Objects-normal/arm64/JSONRPC.o -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CodexKit.build/Debug-appletvos/CodexAppServerKit-t.build/Objects-normal/arm64/JSONRPCEnvelopeCodec.o -debug-module-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CodexKit.build/Debug-appletvos/CodexAppServerKit-t.build/Objects-normal/arm64/CodexAppServerKit.swiftmodule -index-unit-output-path /CodexKit.build/Debug-appletvos/CodexAppServerKit-t.build/Objects-normal/arm64/InterruptRaceResolver.o -index-unit-output-path /CodexKit.build/Debug-appletvos/CodexAppServerKit-t.build/Objects-normal/arm64/JSONRPC.o -index-unit-output-path /CodexKit.build/Debug-appletvos/CodexAppServerKit-t.build/Objects-normal/arm64/JSONRPCEnvelopeCodec.o -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -index-system-modules
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/InterruptRaceResolver.swift (in target 'CodexAppServerKit' from project 'CodexKit')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile InterruptRaceResolver.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/JSONRPC.swift (in target 'CodexAppServerKit' from project 'CodexKit')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile JSONRPC.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/JSONRPCEnvelopeCodec.swift (in target 'CodexAppServerKit' from project 'CodexKit')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile JSONRPCEnvelopeCodec.swift
SwiftEmitModule normal arm64 Emitting\ module\ for\ CodexAppServerKit (in target 'CodexAppServerKit' from project 'CodexKit')
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AccountEventHub.swift:295:25: error: 'Mutex' is only available in tvOS 18.0 or newer
287 | }
288 |
289 | private final class AccountEventSubscriptionRegistry: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
290 |     private struct State {
291 |         var channels: [UUID: AccountEventSubscriberChannel] = [:]
    :
293 |     }
294 |
295 |     private let state = Mutex(State())
    |                         `- error: 'Mutex' is only available in tvOS 18.0 or newer
296 |
297 |     var isFinished: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AccountEventHub.swift:295:25: error: 'init(_:)' is only available in tvOS 18.0 or newer
287 | }
288 |
289 | private final class AccountEventSubscriptionRegistry: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
290 |     private struct State {
291 |         var channels: [UUID: AccountEventSubscriberChannel] = [:]
    :
293 |     }
294 |
295 |     private let state = Mutex(State())
    |                         `- error: 'init(_:)' is only available in tvOS 18.0 or newer
296 |
297 |     var isFinished: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AccountEventHub.swift:122:25: error: 'Mutex' is only available in tvOS 18.0 or newer
 98 | }
 99 |
100 | private final class AccountEventSubscriberChannel: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
101 |     private enum Terminal {
102 |         case open
    :
120 |     }
121 |
122 |     private let state = Mutex(State())
    |                         `- error: 'Mutex' is only available in tvOS 18.0 or newer
123 |
124 |     func yield(_ event: CodexAccountEvent) {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AccountEventHub.swift:122:25: error: 'init(_:)' is only available in tvOS 18.0 or newer
 98 | }
 99 |
100 | private final class AccountEventSubscriberChannel: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
101 |     private enum Terminal {
102 |         case open
    :
120 |     }
121 |
122 |     private let state = Mutex(State())
    |                         `- error: 'init(_:)' is only available in tvOS 18.0 or newer
123 |
124 |     func yield(_ event: CodexAccountEvent) {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AccountEventHub.swift:262:25: error: 'Mutex' is only available in tvOS 18.0 or newer
255 | }
256 |
257 | private final class AccountEventSubscriptionCancellation: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
258 |     private struct State {
259 |         var isCancelled = false
260 |     }
261 |
262 |     private let state = Mutex(State())
    |                         `- error: 'Mutex' is only available in tvOS 18.0 or newer
263 |     private let id: UUID
264 |     private let registry: AccountEventSubscriptionRegistry
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AccountEventHub.swift:262:25: error: 'init(_:)' is only available in tvOS 18.0 or newer
255 | }
256 |
257 | private final class AccountEventSubscriptionCancellation: Sendable {
    |                     `- note: add '@available' attribute to enclosing class
258 |     private struct State {
259 |         var isCancelled = false
260 |     }
261 |
262 |     private let state = Mutex(State())
    |                         `- error: 'init(_:)' is only available in tvOS 18.0 or newer
263 |     private let id: UUID
264 |     private let registry: AccountEventSubscriptionRegistry
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerClient.swift:22:46: error: 'Duration' is only available in tvOS 16.0 or newer
  4 | private let logger = Logger(subsystem: "CodexAppServerKit", category: "app-server-client")
  5 |
  6 | package actor AppServerClient {
    |               `- note: add '@available' attribute to enclosing actor
  7 |     private struct InitializationContract: Equatable {
  8 |         var clientName: String
    :
 20 |
 21 |     private static let appServerOverloadedErrorCode = -32001
 22 |     private static let overloadRetryDelays: [Duration] = [
    |                        |                     `- error: 'Duration' is only available in tvOS 16.0 or newer
    |                        `- note: add '@available' attribute to enclosing static property
 23 |         .milliseconds(100),
 24 |         .milliseconds(250),
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerClient.swift:23:10: error: 'milliseconds' is only available in tvOS 16.0 or newer
  4 | private let logger = Logger(subsystem: "CodexAppServerKit", category: "app-server-client")
  5 |
  6 | package actor AppServerClient {
    |               `- note: add '@available' attribute to enclosing actor
  7 |     private struct InitializationContract: Equatable {
  8 |         var clientName: String
    :
 20 |
 21 |     private static let appServerOverloadedErrorCode = -32001
 22 |     private static let overloadRetryDelays: [Duration] = [
    |                        `- note: add '@available' attribute to enclosing static property
 23 |         .milliseconds(100),
    |          `- error: 'milliseconds' is only available in tvOS 16.0 or newer
 24 |         .milliseconds(250),
 25 |         .milliseconds(500),
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerClient.swift:24:10: error: 'milliseconds' is only available in tvOS 16.0 or newer
  4 | private let logger = Logger(subsystem: "CodexAppServerKit", category: "app-server-client")
  5 |
  6 | package actor AppServerClient {
    |               `- note: add '@available' attribute to enclosing actor
  7 |     private struct InitializationContract: Equatable {
  8 |         var clientName: String
    :
 20 |
 21 |     private static let appServerOverloadedErrorCode = -32001
 22 |     private static let overloadRetryDelays: [Duration] = [
    |                        `- note: add '@available' attribute to enclosing static property
 23 |         .milliseconds(100),
 24 |         .milliseconds(250),
    |          `- error: 'milliseconds' is only available in tvOS 16.0 or newer
 25 |         .milliseconds(500),
 26 |     ]
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerClient.swift:25:10: error: 'milliseconds' is only available in tvOS 16.0 or newer
  4 | private let logger = Logger(subsystem: "CodexAppServerKit", category: "app-server-client")
  5 |
  6 | package actor AppServerClient {
    |               `- note: add '@available' attribute to enclosing actor
  7 |     private struct InitializationContract: Equatable {
  8 |         var clientName: String
    :
 20 |
 21 |     private static let appServerOverloadedErrorCode = -32001
 22 |     private static let overloadRetryDelays: [Duration] = [
    |                        `- note: add '@available' attribute to enclosing static property
 23 |         .milliseconds(100),
 24 |         .milliseconds(250),
 25 |         .milliseconds(500),
    |          `- error: 'milliseconds' is only available in tvOS 16.0 or newer
 26 |     ]
 27 |
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerClient.swift:30:56: error: 'Duration' is only available in tvOS 16.0 or newer
  4 | private let logger = Logger(subsystem: "CodexAppServerKit", category: "app-server-client")
  5 |
  6 | package actor AppServerClient {
    |               `- note: add '@available' attribute to enclosing actor
  7 |     private struct InitializationContract: Equatable {
  8 |         var clientName: String
    :
 28 |     private let transport: any JSONRPC.Transport
 29 |     package nonisolated let connectionEventHub: ConnectionEventHub
 30 |     private let overloadRetryDelay: @Sendable (Int) -> Duration?
    |                                                        `- error: 'Duration' is only available in tvOS 16.0 or newer
 31 |     private let retrySleep: @Sendable (Duration) async throws -> Void
 32 |     private let deadlines: CodexAppServer.Configuration.Deadlines
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerClient.swift:31:40: error: 'Duration' is only available in tvOS 16.0 or newer
  4 | private let logger = Logger(subsystem: "CodexAppServerKit", category: "app-server-client")
  5 |
  6 | package actor AppServerClient {
    |               `- note: add '@available' attribute to enclosing actor
  7 |     private struct InitializationContract: Equatable {
  8 |         var clientName: String
    :
 29 |     package nonisolated let connectionEventHub: ConnectionEventHub
 30 |     private let overloadRetryDelay: @Sendable (Int) -> Duration?
 31 |     private let retrySleep: @Sendable (Duration) async throws -> Void
    |                                        `- error: 'Duration' is only available in tvOS 16.0 or newer
 32 |     private let deadlines: CodexAppServer.Configuration.Deadlines
 33 |     private let deadlineClock: CodexDeadlineClock
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerClient.swift:46:58: error: 'Duration' is only available in tvOS 16.0 or newer
  4 | private let logger = Logger(subsystem: "CodexAppServerKit", category: "app-server-client")
  5 |
  6 | package actor AppServerClient {
    |               `- note: add '@available' attribute to enclosing actor
  7 |     private struct InitializationContract: Equatable {
  8 |         var clientName: String
    :
 39 |     private var initializationState = InitializationState.idle
 40 |
 41 |     package init(
    |             `- note: add '@available' attribute to enclosing initializer
 42 |         transport: any JSONRPC.Transport,
 43 |         deadlines: CodexAppServer.Configuration.Deadlines = .init(),
 44 |         deadlineClock: CodexDeadlineClock = .continuous,
 45 |         connectionCloseAction: ConnectionCloseAction,
 46 |         overloadRetryDelay: @escaping @Sendable (Int) -> Duration? = AppServerClient
    |                                                          `- error: 'Duration' is only available in tvOS 16.0 or newer
 47 |             .defaultOverloadRetryDelay,
 48 |         retrySleep: @escaping @Sendable (Duration) async throws -> Void = {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerClient.swift:48:42: error: 'Duration' is only available in tvOS 16.0 or newer
  4 | private let logger = Logger(subsystem: "CodexAppServerKit", category: "app-server-client")
  5 |
  6 | package actor AppServerClient {
    |               `- note: add '@available' attribute to enclosing actor
  7 |     private struct InitializationContract: Equatable {
  8 |         var clientName: String
    :
 39 |     private var initializationState = InitializationState.idle
 40 |
 41 |     package init(
    |             `- note: add '@available' attribute to enclosing initializer
 42 |         transport: any JSONRPC.Transport,
 43 |         deadlines: CodexAppServer.Configuration.Deadlines = .init(),
    :
 46 |         overloadRetryDelay: @escaping @Sendable (Int) -> Duration? = AppServerClient
 47 |             .defaultOverloadRetryDelay,
 48 |         retrySleep: @escaping @Sendable (Duration) async throws -> Void = {
    |                                          `- error: 'Duration' is only available in tvOS 16.0 or newer
 49 |             try await Task.sleep(for: $0)
 50 |         }
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerClient.swift:49:28: error: 'sleep(for:tolerance:clock:)' is only available in tvOS 16.0 or newer
  4 | private let logger = Logger(subsystem: "CodexAppServerKit", category: "app-server-client")
  5 |
  6 | package actor AppServerClient {
    |               `- note: add '@available' attribute to enclosing actor
  7 |     private struct InitializationContract: Equatable {
  8 |         var clientName: String
    :
 39 |     private var initializationState = InitializationState.idle
 40 |
 41 |     package init(
    |             `- note: add '@available' attribute to enclosing initializer
 42 |         transport: any JSONRPC.Transport,
 43 |         deadlines: CodexAppServer.Configuration.Deadlines = .init(),
    :
 47 |             .defaultOverloadRetryDelay,
 48 |         retrySleep: @escaping @Sendable (Duration) async throws -> Void = {
 49 |             try await Task.sleep(for: $0)
    |                            |- error: 'sleep(for:tolerance:clock:)' is only available in tvOS 16.0 or newer
    |                            `- note: add 'if #available' version check
 50 |         }
 51 |     ) {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerClient.swift:101:52: error: 'Duration' is only available in tvOS 16.0 or newer
  4 | private let logger = Logger(subsystem: "CodexAppServerKit", category: "app-server-client")
  5 |
  6 | package actor AppServerClient {
    |               `- note: add '@available' attribute to enclosing actor
  7 |     private struct InitializationContract: Equatable {
  8 |         var clientName: String
    :
 99 |     }
100 |
101 |     package func sleepForInterruptRace(_ duration: Duration) async throws {
    |                  |                                 `- error: 'Duration' is only available in tvOS 16.0 or newer
    |                  `- note: add '@available' attribute to enclosing instance method
102 |         try await deadlineClock.sleep(duration)
103 |     }
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerClient.swift:182:19: error: 'Duration' is only available in tvOS 16.0 or newer
  4 | private let logger = Logger(subsystem: "CodexAppServerKit", category: "app-server-client")
  5 |
  6 | package actor AppServerClient {
    |               `- note: add '@available' attribute to enclosing actor
  7 |     private struct InitializationContract: Equatable {
  8 |         var clientName: String
    :
177 |     }
178 |
179 |     private func send<Request: AppServerAPI.Request>(
    |                  `- note: add '@available' attribute to enclosing instance method
180 |         _ request: Request,
181 |         purpose: CodexRequestPurpose,
182 |         deadline: Duration?,
    |                   `- error: 'Duration' is only available in tvOS 16.0 or newer
183 |         afterResponse: @escaping @Sendable (Request.Response) async throws -> Void
184 |     ) async throws -> Request.Response {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerClient.swift:202:19: error: 'Duration' is only available in tvOS 16.0 or newer
  4 | private let logger = Logger(subsystem: "CodexAppServerKit", category: "app-server-client")
  5 |
  6 | package actor AppServerClient {
    |               `- note: add '@available' attribute to enclosing actor
  7 |     private struct InitializationContract: Equatable {
  8 |         var clientName: String
    :
194 |     }
195 |
196 |     package func send<Params: Encodable & Sendable, Response: Decodable & Sendable>(
    |                  `- note: add '@available' attribute to enclosing instance method
197 |         method: String,
198 |         params: Params,
    :
200 |         scope: AppServerAPI.RequestScope? = nil,
201 |         purpose: CodexRequestPurpose? = nil,
202 |         deadline: Duration? = nil,
    |                   `- error: 'Duration' is only available in tvOS 16.0 or newer
203 |         reconcileResponse: @escaping @Sendable (Response) async throws -> Void = { _ in },
204 |         afterResponse: @escaping @Sendable (Response) async throws -> Void = { _ in },
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerClient.swift:526:19: error: 'Duration' is only available in tvOS 16.0 or newer
  4 | private let logger = Logger(subsystem: "CodexAppServerKit", category: "app-server-client")
  5 |
  6 | package actor AppServerClient {
    |               `- note: add '@available' attribute to enclosing actor
  7 |     private struct InitializationContract: Equatable {
  8 |         var clientName: String
    :
522 |         )
523 |     }
524 |     package func runTurnWithDeadline<Output: Sendable>(
    |                  `- note: add '@available' attribute to enclosing instance method
525 |         turnID: CodexTurnID,
526 |         duration: Duration,
    |                   `- error: 'Duration' is only available in tvOS 16.0 or newer
527 |         operation: @escaping @Sendable () async throws -> Output
528 |     ) async throws -> Output {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerClient.swift:545:21: error: 'Duration' is only available in tvOS 16.0 or newer
  4 | private let logger = Logger(subsystem: "CodexAppServerKit", category: "app-server-client")
  5 |
  6 | package actor AppServerClient {
    |               `- note: add '@available' attribute to enclosing actor
  7 |     private struct InitializationContract: Equatable {
  8 |         var clientName: String
    :
542 |     }
543 |
544 |     private func runWithDeadline<Output: Sendable>(
    |                  `- note: add '@available' attribute to enclosing instance method
545 |         _ deadline: Duration,
    |                     `- error: 'Duration' is only available in tvOS 16.0 or newer
546 |         operation: @escaping @Sendable () async throws -> Output
547 |     ) async throws -> Output {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerClient.swift:568:21: error: 'Duration' is only available in tvOS 16.0 or newer
  4 | private let logger = Logger(subsystem: "CodexAppServerKit", category: "app-server-client")
  5 |
  6 | package actor AppServerClient {
    |               `- note: add '@available' attribute to enclosing actor
  7 |     private struct InitializationContract: Equatable {
  8 |         var clientName: String
    :
565 |     }
566 |
567 |     private func runRequestWithDeadline<Output: Sendable>(
    |                  `- note: add '@available' attribute to enclosing instance method
568 |         _ deadline: Duration,
    |                     `- error: 'Duration' is only available in tvOS 16.0 or newer
569 |         operationState: RequestOperationState,
570 |         operation: @escaping @Sendable () async throws -> Output
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerClient.swift:612:18: error: 'Duration' is only available in tvOS 16.0 or newer
  4 | private let logger = Logger(subsystem: "CodexAppServerKit", category: "app-server-client")
  5 |
  6 | package actor AppServerClient {
    |               `- note: add '@available' attribute to enclosing actor
  7 |     private struct InitializationContract: Equatable {
  8 |         var clientName: String
    :
609 |     }
610 |
611 |     private func waitForRetryDelay(
    |                  `- note: add '@available' attribute to enclosing instance method
612 |         _ delay: Duration,
    |                  `- error: 'Duration' is only available in tvOS 16.0 or newer
613 |         operationState: RequestOperationState
614 |     ) async throws {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerClient.swift:655:89: error: 'Duration' is only available in tvOS 16.0 or newer
  4 | private let logger = Logger(subsystem: "CodexAppServerKit", category: "app-server-client")
  5 |
  6 | package actor AppServerClient {
    |               `- note: add '@available' attribute to enclosing actor
  7 |     private struct InitializationContract: Equatable {
  8 |         var clientName: String
    :
653 |     }
654 |
655 |     private nonisolated static func defaultOverloadRetryDelay(for retryAttempt: Int) -> Duration? {
    |                                     |                                                   `- error: 'Duration' is only available in tvOS 16.0 or newer
    |                                     `- note: add '@available' attribute to enclosing static method
656 |         guard retryAttempt < overloadRetryDelays.count else {
657 |             return nil
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerProcessTransport.swift:573:25: error: 'Mutex' is only available in tvOS 18.0 or newer
 564 | }
 565 |
 566 | private final class AppServerOneBitReadSignal: Sendable {
     |                     `- note: add '@available' attribute to enclosing class
 567 |     private struct State {
 568 |         var hasPendingReadiness = false
     :
 571 |     }
 572 |
 573 |     private let state = Mutex(State())
     |                         `- error: 'Mutex' is only available in tvOS 18.0 or newer
 574 |
 575 |     func next() async -> AppServerReadEvent {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerProcessTransport.swift:573:25: error: 'init(_:)' is only available in tvOS 18.0 or newer
 564 | }
 565 |
 566 | private final class AppServerOneBitReadSignal: Sendable {
     |                     `- note: add '@available' attribute to enclosing class
 567 |     private struct State {
 568 |         var hasPendingReadiness = false
     :
 571 |     }
 572 |
 573 |     private let state = Mutex(State())
     |                         `- error: 'init(_:)' is only available in tvOS 18.0 or newer
 574 |
 575 |     func next() async -> AppServerReadEvent {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerProcessTransport.swift:646:25: error: 'Mutex' is only available in tvOS 18.0 or newer
 637 | }
 638 |
 639 | private final class AppServerReadEventWaiter: Sendable {
     |                     `- note: add '@available' attribute to enclosing class
 640 |     private enum State {
 641 |         case pending(CheckedContinuation<AppServerReadEvent, Never>?)
     :
 644 |
 645 |     let id = UUID()
 646 |     private let state = Mutex<State>(.pending(nil))
     |                         `- error: 'Mutex' is only available in tvOS 18.0 or newer
 647 |
 648 |     func wait() async -> AppServerReadEvent {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerProcessTransport.swift:646:36: error: 'init(_:)' is only available in tvOS 18.0 or newer
 637 | }
 638 |
 639 | private final class AppServerReadEventWaiter: Sendable {
     |                     `- note: add '@available' attribute to enclosing class
 640 |     private enum State {
 641 |         case pending(CheckedContinuation<AppServerReadEvent, Never>?)
     :
 644 |
 645 |     let id = UUID()
 646 |     private let state = Mutex<State>(.pending(nil))
     |                                    `- error: 'init(_:)' is only available in tvOS 18.0 or newer
 647 |
 648 |     func wait() async -> AppServerReadEvent {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerProcessTransport.swift:864:25: error: 'Mutex' is only available in tvOS 18.0 or newer
 856 | }
 857 |
 858 | private final class AppServerCancellationCompletion: Sendable {
     |                     `- note: add '@available' attribute to enclosing class
 859 |     private enum State {
 860 |         case pending([CheckedContinuation<Void, Never>])
     :
 862 |     }
 863 |
 864 |     private let state = Mutex<State>(.pending([]))
     |                         `- error: 'Mutex' is only available in tvOS 18.0 or newer
 865 |
 866 |     func wait() async {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerProcessTransport.swift:864:36: error: 'init(_:)' is only available in tvOS 18.0 or newer
 856 | }
 857 |
 858 | private final class AppServerCancellationCompletion: Sendable {
     |                     `- note: add '@available' attribute to enclosing class
 859 |     private enum State {
 860 |         case pending([CheckedContinuation<Void, Never>])
     :
 862 |     }
 863 |
 864 |     private let state = Mutex<State>(.pending([]))
     |                                    `- error: 'init(_:)' is only available in tvOS 18.0 or newer
 865 |
 866 |     func wait() async {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerProcessTransport.swift:695:24: error: 'Mutex' is only available in tvOS 18.0 or newer
 686 | }
 687 |
 688 | private final class AppServerPipeReadEventSource: Sendable {
     |                     `- note: add '@available' attribute to enclosing class
 689 |     private struct State {
 690 |         var source: DispatchSourceRead?
     :
 693 |     private let signal = AppServerOneBitReadSignal()
 694 |     private let cancellationCompletion = AppServerCancellationCompletion()
 695 |     private let state: Mutex<State>
     |                        `- error: 'Mutex' is only available in tvOS 18.0 or newer
 696 |
 697 |     init(
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerProcessTransport.swift:761:25: error: 'Mutex' is only available in tvOS 18.0 or newer
 750 | }
 751 |
 752 | private final class AppServerStdoutReadMetrics: Sendable {
     |                     `- note: add '@available' attribute to enclosing class
 753 |     private struct State {
 754 |         var successfulReadCount = 0
     :
 759 |     }
 760 |
 761 |     private let state = Mutex(State())
     |                         `- error: 'Mutex' is only available in tvOS 18.0 or newer
 762 |
 763 |     func beginChunk(byteCount: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/AppServerProcessTransport.swift:761:25: error: 'init(_:)' is only available in tvOS 18.0 or newer
 750 | }
 751 |
 752 | private final class AppServerStdoutReadMetrics: Sendable {
     |                     `- note: add '@available' attribute to enclosing class
 753 |     private struct State {
 754 |         var successfulReadCount = 0
     :
 759 |     }
 760 |
 761 |     private let state = Mutex(State())
     |                         `- error: 'init(_:)' is only available in tvOS 18.0 or newer
 762 |
 763 |     func beginChunk(byteCount: Int) {
SwiftCompile normal arm64 (in target 'CodexAppServerKit' from project 'CodexKit')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode

SwiftCompile normal arm64 Compiling\ JSONRPCInboundFrameMailbox.swift,\ LoginRegistry.swift,\ RequestSerializer.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/JSONRPCInboundFrameMailbox.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/LoginRegistry.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/RequestSerializer.swift (in target 'CodexAppServerKit' from project 'CodexKit')
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/JSONRPCInboundFrameMailbox.swift:293:25: error: 'Mutex' is only available in tvOS 18.0 or newer
283 | }
284 |
285 | private final class MailboxWaiter<Value: Sendable>: Sendable {
    |                     `- note: add '@available' attribute to enclosing generic class
286 |     private enum State {
287 |         case pending(CheckedContinuation<Value, Never>?)
    :
291 |     let id = UUID()
292 |     private let cancellationValue: Value
293 |     private let state = Mutex<State>(.pending(nil))
    |                         `- error: 'Mutex' is only available in tvOS 18.0 or newer
294 |
295 |     init(cancellationValue: Value) {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/JSONRPCInboundFrameMailbox.swift:293:36: error: 'init(_:)' is only available in tvOS 18.0 or newer
283 | }
284 |
285 | private final class MailboxWaiter<Value: Sendable>: Sendable {
    |                     `- note: add '@available' attribute to enclosing generic class
286 |     private enum State {
287 |         case pending(CheckedContinuation<Value, Never>?)
    :
291 |     let id = UUID()
292 |     private let cancellationValue: Value
293 |     private let state = Mutex<State>(.pending(nil))
    |                                    `- error: 'init(_:)' is only available in tvOS 18.0 or newer
294 |
295 |     init(cancellationValue: Value) {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/JSONRPCInboundFrameMailbox.swift:302:38: error: 'withLock' is only available in tvOS 18.0 or newer
283 | }
284 |
285 | private final class MailboxWaiter<Value: Sendable>: Sendable {
    |                     `- note: add '@available' attribute to enclosing generic class
286 |     private enum State {
287 |         case pending(CheckedContinuation<Value, Never>?)
    :
297 |     }
298 |
299 |     func wait() async -> Value {
    |          `- note: add '@available' attribute to enclosing instance method
300 |         await withTaskCancellationHandler {
301 |             await withCheckedContinuation { continuation in
302 |                 let resolved = state.withLock { state -> Value? in
    |                                      |- error: 'withLock' is only available in tvOS 18.0 or newer
    |                                      `- note: add 'if #available' version check
303 |                     switch state {
304 |                     case .pending(nil):
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/JSONRPCInboundFrameMailbox.swift:324:32: error: 'withLock' is only available in tvOS 18.0 or newer
283 | }
284 |
285 | private final class MailboxWaiter<Value: Sendable>: Sendable {
    |                     `- note: add '@available' attribute to enclosing generic class
286 |     private enum State {
287 |         case pending(CheckedContinuation<Value, Never>?)
    :
321 |
322 |     @discardableResult
323 |     func resolve(_ value: Value) -> Bool {
    |          `- note: add '@available' attribute to enclosing instance method
324 |         let resolution = state.withLock {
    |                                |- error: 'withLock' is only available in tvOS 18.0 or newer
    |                                `- note: add 'if #available' version check
325 |             state -> (Bool, CheckedContinuation<Value, Never>?) in
326 |             switch state {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/LoginRegistry.swift:6:35: error: 'Duration' is only available in tvOS 16.0 or newer
  1 | import Foundation
  2 |
  3 | package actor LoginRegistry {
    |               `- note: add '@available' attribute to enclosing actor
  4 |     private var activeState: LoginState?
  5 |     private var pendingReservation: UUID?
  6 |     private let sleep: @Sendable (Duration) async throws -> Void
    |                                   `- error: 'Duration' is only available in tvOS 16.0 or newer
  7 |
  8 |     package init(
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/LoginRegistry.swift:9:37: error: 'Duration' is only available in tvOS 16.0 or newer
  1 | import Foundation
  2 |
  3 | package actor LoginRegistry {
    |               `- note: add '@available' attribute to enclosing actor
  4 |     private var activeState: LoginState?
  5 |     private var pendingReservation: UUID?
  6 |     private let sleep: @Sendable (Duration) async throws -> Void
  7 |
  8 |     package init(
    |             `- note: add '@available' attribute to enclosing initializer
  9 |         sleep: @escaping @Sendable (Duration) async throws -> Void = {
    |                                     `- error: 'Duration' is only available in tvOS 16.0 or newer
 10 |             try await Task.sleep(for: $0)
 11 |         }
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/LoginRegistry.swift:10:28: error: 'sleep(for:tolerance:clock:)' is only available in tvOS 16.0 or newer
  1 | import Foundation
  2 |
  3 | package actor LoginRegistry {
    |               `- note: add '@available' attribute to enclosing actor
  4 |     private var activeState: LoginState?
  5 |     private var pendingReservation: UUID?
  6 |     private let sleep: @Sendable (Duration) async throws -> Void
  7 |
  8 |     package init(
    |             `- note: add '@available' attribute to enclosing initializer
  9 |         sleep: @escaping @Sendable (Duration) async throws -> Void = {
 10 |             try await Task.sleep(for: $0)
    |                            |- error: 'sleep(for:tolerance:clock:)' is only available in tvOS 16.0 or newer
    |                            `- note: add 'if #available' version check
 11 |         }
 12 |     ) {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/LoginRegistry.swift:17:27: error: 'Duration' is only available in tvOS 16.0 or newer
  1 | import Foundation
  2 |
  3 | package actor LoginRegistry {
    |               `- note: add '@available' attribute to enclosing actor
  4 |     private var activeState: LoginState?
  5 |     private var pendingReservation: UUID?
    :
 14 |     }
 15 |
 16 |     package func reserve(
    |                  `- note: add '@available' attribute to enclosing instance method
 17 |         readinessTimeout: Duration?,
    |                           `- error: 'Duration' is only available in tvOS 16.0 or newer
 18 |         cancel:
 19 |             @escaping @Sendable (CodexLoginHandle.ID, Duration?) async throws
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/LoginRegistry.swift:19:55: error: 'Duration' is only available in tvOS 16.0 or newer
  1 | import Foundation
  2 |
  3 | package actor LoginRegistry {
    |               `- note: add '@available' attribute to enclosing actor
  4 |     private var activeState: LoginState?
  5 |     private var pendingReservation: UUID?
    :
 14 |     }
 15 |
 16 |     package func reserve(
    |                  `- note: add '@available' attribute to enclosing instance method
 17 |         readinessTimeout: Duration?,
 18 |         cancel:
 19 |             @escaping @Sendable (CodexLoginHandle.ID, Duration?) async throws
    |                                                       `- error: 'Duration' is only available in tvOS 16.0 or newer
 20 |             -> CodexLoginOutcome,
 21 |         closeConnection: @escaping @Sendable () async -> Void
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/LoginRegistry.swift:130:35: error: 'Duration' is only available in tvOS 16.0 or newer
106 | }
107 |
108 | package actor LoginState {
    |               `- note: add '@available' attribute to enclosing actor
109 |     package let reservation: UUID
110 |
    :
128 |     private var cancelTask: Task<Result<CodexLoginOutcome, Error>, Never>?
129 |     private var preBindEvents: [PreBindEvent] = []
130 |     private let readinessTimeout: Duration?
    |                                   `- error: 'Duration' is only available in tvOS 16.0 or newer
131 |     private let cancelOperation:
132 |         @Sendable (CodexLoginHandle.ID, Duration?) async throws
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/LoginRegistry.swift:132:41: error: 'Duration' is only available in tvOS 16.0 or newer
106 | }
107 |
108 | package actor LoginState {
    |               `- note: add '@available' attribute to enclosing actor
109 |     package let reservation: UUID
110 |
    :
130 |     private let readinessTimeout: Duration?
131 |     private let cancelOperation:
132 |         @Sendable (CodexLoginHandle.ID, Duration?) async throws
    |                                         `- error: 'Duration' is only available in tvOS 16.0 or newer
133 |             -> CodexLoginOutcome
134 |     private let closeConnectionOperation: @Sendable () async -> Void
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/LoginRegistry.swift:135:35: error: 'Duration' is only available in tvOS 16.0 or newer
106 | }
107 |
108 | package actor LoginState {
    |               `- note: add '@available' attribute to enclosing actor
109 |     package let reservation: UUID
110 |
    :
133 |             -> CodexLoginOutcome
134 |     private let closeConnectionOperation: @Sendable () async -> Void
135 |     private let sleep: @Sendable (Duration) async throws -> Void
    |                                   `- error: 'Duration' is only available in tvOS 16.0 or newer
136 |     private let didTerminate: @Sendable (UUID) async -> Void
137 |
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/LoginRegistry.swift:140:27: error: 'Duration' is only available in tvOS 16.0 or newer
106 | }
107 |
108 | package actor LoginState {
    |               `- note: add '@available' attribute to enclosing actor
109 |     package let reservation: UUID
110 |
    :
136 |     private let didTerminate: @Sendable (UUID) async -> Void
137 |
138 |     package init(
    |             `- note: add '@available' attribute to enclosing initializer
139 |         reservation: UUID,
140 |         readinessTimeout: Duration?,
    |                           `- error: 'Duration' is only available in tvOS 16.0 or newer
141 |         cancel:
142 |             @escaping @Sendable (CodexLoginHandle.ID, Duration?) async throws
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/LoginRegistry.swift:142:55: error: 'Duration' is only available in tvOS 16.0 or newer
106 | }
107 |
108 | package actor LoginState {
    |               `- note: add '@available' attribute to enclosing actor
109 |     package let reservation: UUID
110 |
    :
136 |     private let didTerminate: @Sendable (UUID) async -> Void
137 |
138 |     package init(
    |             `- note: add '@available' attribute to enclosing initializer
139 |         reservation: UUID,
140 |         readinessTimeout: Duration?,
141 |         cancel:
142 |             @escaping @Sendable (CodexLoginHandle.ID, Duration?) async throws
    |                                                       `- error: 'Duration' is only available in tvOS 16.0 or newer
143 |             -> CodexLoginOutcome,
144 |         closeConnection: @escaping @Sendable () async -> Void,
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/LoginRegistry.swift:145:37: error: 'Duration' is only available in tvOS 16.0 or newer
106 | }
107 |
108 | package actor LoginState {
    |               `- note: add '@available' attribute to enclosing actor
109 |     package let reservation: UUID
110 |
    :
136 |     private let didTerminate: @Sendable (UUID) async -> Void
137 |
138 |     package init(
    |             `- note: add '@available' attribute to enclosing initializer
139 |         reservation: UUID,
140 |         readinessTimeout: Duration?,
    :
143 |             -> CodexLoginOutcome,
144 |         closeConnection: @escaping @Sendable () async -> Void,
145 |         sleep: @escaping @Sendable (Duration) async throws -> Void,
    |                                     `- error: 'Duration' is only available in tvOS 16.0 or newer
146 |         didTerminate: @escaping @Sendable (UUID) async -> Void
147 |     ) {
/Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/LoginRegistry.swift:307:49: error: 'Duration' is only available in tvOS 16.0 or newer
106 | }
107 |
108 | package actor LoginState {
    |               `- note: add '@available' attribute to enclosing actor
109 |     package let reservation: UUID
110 |
    :
305 |     }
306 |
307 |     package func cancel(acknowledgementTimeout: Duration?) async throws -> CodexLoginOutcome {
    |                  |                              `- error: 'Duration' is only available in tvOS 16.0 or newer
    |                  `- note: add '@available' attribute to enclosing instance method
308 |         switch phase {
309 |         case .terminal(let result):
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/JSONRPCInboundFrameMailbox.swift (in target 'CodexAppServerKit' from project 'CodexKit')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile JSONRPCInboundFrameMailbox.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/LoginRegistry.swift (in target 'CodexAppServerKit' from project 'CodexKit')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile LoginRegistry.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/RequestSerializer.swift (in target 'CodexAppServerKit' from project 'CodexKit')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile RequestSerializer.swift
SwiftCompile normal arm64 Compiling\ ReviewRestartCoordinator.swift,\ ServerRequestRegistry.swift,\ ThreadEventHub.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ReviewRestartCoordinator.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ServerRequestRegistry.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ThreadEventHub.swift (in target 'CodexAppServerKit' from project 'CodexKit')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ReviewRestartCoordinator.swift (in target 'CodexAppServerKit' from project 'CodexKit')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile ReviewRestartCoordinator.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ServerRequestRegistry.swift (in target 'CodexAppServerKit' from project 'CodexKit')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile ServerRequestRegistry.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/ThreadEventHub.swift (in target 'CodexAppServerKit' from project 'CodexKit')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile ThreadEventHub.swift
SwiftEmitModule normal arm64 Emitting\ module\ for\ AsyncAlgorithms (in target 'AsyncAlgorithms' from project 'swift-async-algorithms')
SwiftCompile normal arm64 (in target 'AsyncAlgorithms' from project 'swift-async-algorithms')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode

PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
2026-09-26 18:50:00.659 xcodebuild[849:5110] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
** BUILD FAILED **
The following build commands failed:
	SwiftCompile normal arm64 Compiling\ InterruptRaceResolver.swift,\ JSONRPC.swift,\ JSONRPCEnvelopeCodec.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/InterruptRaceResolver.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/JSONRPC.swift /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/JSONRPCEnvelopeCodec.swift (in target 'CodexAppServerKit' from project 'CodexKit')
	SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/InterruptRaceResolver.swift (in target 'CodexAppServerKit' from project 'CodexKit')
	SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CodexAppServerKit/JSONRPCEnvelopeCodec.swift (in target 'CodexAppServerKit' from project 'CodexKit')
	Building workspace CodexKit with scheme CodexKit-Package
(4 failures)
BUILD FAILURE 6.4 tvOS