Build Information
Failed to build ClaudeAgentSDK, reference 0.1.1 (a2bc00), with Swift 6.4 for iOS using Xcode 27.0 on 26 Sep 2026 04:45:00 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 ClaudeAgentSDK -destination generic/platform=iOSBuild Log
========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kiliczsh/claude-agents-sdk-swift.git
Reference: 0.1.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kiliczsh/claude-agents-sdk-swift
* tag 0.1.1 -> FETCH_HEAD
HEAD is now at a2bc000 Remove internal roadmap jargon from README
Cloned https://github.com/kiliczsh/claude-agents-sdk-swift.git
Revision (git rev-parse @):
a2bc0007438ea468e4034c694376ff082dc31ae9
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/kiliczsh/claude-agents-sdk-swift.git at 0.1.1
========================================
Build
========================================
Selected platform: iOS
Swift version: 6.4
Building package at path: $PWD
https://github.com/kiliczsh/claude-agents-sdk-swift.git
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
Resolve Package Graph
Resolved source packages:
ClaudeAgentSDK: /Users/admin/builder/spi-builder-workspace
resolved source packages: ClaudeAgentSDK
2026-09-26 00:44:24.174 xcodebuild[563:3068] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
{
"dependencies" : [
],
"manifest_display_name" : "ClaudeAgentSDK",
"name" : "ClaudeAgentSDK",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "14.0"
}
],
"products" : [
{
"name" : "ClaudeAgentSDK",
"targets" : [
"ClaudeAgentSDK"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ClaudeAgentSDKTests",
"module_type" : "SwiftTarget",
"name" : "ClaudeAgentSDKTests",
"path" : "Tests/ClaudeAgentSDKTests",
"sources" : [
"ClaudeAgentSDKTests.swift",
"Core/ClaudeAgentErrorTests.swift",
"Core/ClaudeRedactorTests.swift",
"Core/JSONValueTests.swift",
"Session/ClaudeAgentSessionTests.swift",
"Support/AsyncAssertions.swift",
"Transport/ClaudeCLIProviderTests.swift",
"Transport/ClaudeCLIVersionCheckerTests.swift",
"Transport/ClaudeCLIVersionTests.swift",
"Transport/ClaudeCommandRunnerTests.swift",
"Transport/ClaudeProcessConfigurationTests.swift",
"Transport/ClaudeProcessTransportTests.swift",
"Transport/NDJSONFramerTests.swift"
],
"target_dependencies" : [
"ClaudeAgentSDK"
],
"type" : "test"
},
{
"c99name" : "ClaudeAgentSDK",
"module_type" : "SwiftTarget",
"name" : "ClaudeAgentSDK",
"path" : "Sources/ClaudeAgentSDK",
"product_memberships" : [
"ClaudeAgentSDK"
],
"sources" : [
"ClaudeAgentSDK.swift",
"Core/ClaudeAgentDiagnostic.swift",
"Core/ClaudeAgentError.swift",
"Core/ClaudeRedactor.swift",
"Core/JSONValue+Accessors.swift",
"Core/JSONValue.swift",
"Messages/ClaudeContentBlock.swift",
"Messages/ClaudeMessage.swift",
"Session/ClaudeAgentOptions.swift",
"Session/ClaudeAgentSession.swift",
"Session/ClaudeSdkTool.swift",
"Transport/ClaudeCLIProvider.swift",
"Transport/ClaudeCLIVersion.swift",
"Transport/ClaudeCommandRunner.swift",
"Transport/ClaudeProcessConfiguration.swift",
"Transport/ClaudeProcessTransport.swift",
"Transport/ClaudeTransport.swift",
"Transport/NDJSONFramer.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
{
"workspace" : {
"name" : "ClaudeAgentSDK",
"schemes" : [
"ClaudeAgentSDK"
]
}
}
2026-09-26 00:44:50.975 xcodebuild[660:3869] [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 ClaudeAgentSDK -destination generic/platform=iOS
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 ClaudeAgentSDK -destination generic/platform=iOS
Resolve Package Graph
Resolved source packages:
ClaudeAgentSDK: /Users/admin/builder/spi-builder-workspace
ComputePackagePrebuildTargetDependencyGraph
Prepare packages
CreateBuildRequest
SendProjectDescription
CreateBuildOperation
ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (2 targets)
Target 'ClaudeAgentSDK-product' in project 'ClaudeAgentSDK'
➜ Explicit dependency on target 'ClaudeAgentSDK' in project 'ClaudeAgentSDK'
Target 'ClaudeAgentSDK' in project 'ClaudeAgentSDK' (no dependencies)
GatherProvisioningInputs
CreateBuildDescription
ExecuteExternalTool /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -isysroot /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS27.0.sdk -x c -c /dev/null
ExecuteExternalTool /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc --version
ExecuteExternalTool /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld -version_details
Build description signature: 466d904ea9661b44b2cffc9825504818
Build description path: /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/XCBuildData/466d904ea9661b44b2cffc9825504818.xcbuilddata
CreateBuildDirectory /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-create-build-directory /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
CreateBuildDirectory /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-create-build-directory /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex
CreateBuildDirectory /Users/admin/builder/spi-builder-workspace/.derivedData/CompilationCache.noindex
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-create-build-directory /Users/admin/builder/spi-builder-workspace/.derivedData/CompilationCache.noindex
CreateBuildDirectory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-create-build-directory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products
CreateBuildDirectory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-create-build-directory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex
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/iPhoneOS.platform/Developer/SDKs/iPhoneOS27.0.sdk /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/iphoneos27.0-24A430-e829b21a6f8c9b70876ba0858053c04440ceaa042ed91876912b2eeea4e3aa14.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/iPhoneOS.platform/Developer/SDKs/iPhoneOS27.0.sdk -o /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/iphoneos27.0-24A430-e829b21a6f8c9b70876ba0858053c04440ceaa042ed91876912b2eeea4e3aa14.sdkstatcache
CreateBuildDirectory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-create-build-directory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
CreateBuildDirectory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-create-build-directory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
CreateBuildDirectory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PrecompiledHeaders
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-create-build-directory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PrecompiledHeaders
CreateBuildDirectory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-create-build-directory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos
CreateBuildDirectory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/EagerLinkingTBDs/Debug-iphoneos
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-create-build-directory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/EagerLinkingTBDs/Debug-iphoneos
CreateBuildDirectory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos/PackageFrameworks
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-create-build-directory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos/PackageFrameworks
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/ClaudeAgentSDK.modulemap (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/ClaudeAgentSDK.modulemap
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/ClaudeAgentSDK.DependencyMetadataFileList (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/ClaudeAgentSDK.DependencyMetadataFileList
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/ClaudeAgentSDK.DependencyStaticMetadataFileList (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/ClaudeAgentSDK.DependencyStaticMetadataFileList
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK-OutputFileMap.json (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK-OutputFileMap.json
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK.SwiftFileList (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK.SwiftFileList
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK.LinkFileList (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK.LinkFileList
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK_const_extract_protocols.json (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK_const_extract_protocols.json
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK.SwiftConstValuesFileList (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK.SwiftConstValuesFileList
Copy /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/GeneratedModuleMaps-iphoneos/ClaudeAgentSDK.modulemap /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/ClaudeAgentSDK.modulemap (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/ClaudeAgentSDK.modulemap /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/GeneratedModuleMaps-iphoneos
SwiftDriver ClaudeAgentSDK normal arm64 com.apple.xcode.tools.swift.compiler (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
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 ClaudeAgentSDK -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK.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/iPhoneOS.platform/Developer/SDKs/iPhoneOS27.0.sdk -target arm64-apple-ios15.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -profile-coverage-mapping -profile-generate -enable-testing -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -swift-version 5 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS27.0.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/iphoneos27.0-24A430-e829b21a6f8c9b70876ba0858053c04440ceaa042ed91876912b2eeea4e3aa14.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK-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/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK-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/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-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/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/SwiftShims-9ZM475TB9FF7V697OJNYX6RO9.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/ptrcheck-BEJ25RSXHVJMS8GY54A7TIDQC.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_AvailabilityInternal-A68EWFTK1KMCWXEVQVUVX32IF.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_stdbool-DS3M26O02MEUZY8PORVO63UN8.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_float-A3OTZIBNLUK4KRPK79SR9VALR.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/ptrauth-ELWSSDP0MKO9UN7OCGHYENU4N.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_SwiftConcurrencyShims-46VMPHZN3071T5WUKTVKV81O6.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_stddef-9M60LQ19IG7KF2I6MAZT1EE2L.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_stdarg-353X4HCQ4QM1XN1RGUYE5DJXQ.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_DarwinFoundation1-6AS4X33TU1806YATN4YELVHNM.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_limits-BR17857KX1560DFAJ8X0RLP2X.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_DarwinFoundation2-DBOBRBKI8YXN3X7HCIRAXFELN.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/string_h-4SPNE64SFJA0QV142KR6FB8H.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_stdint-3VRVITBSRYCNS1X3HOZPXQS3E.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/sys_types-4H7GQGME5X7WUG5O55QKSXPG0.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_DarwinFoundation3-BWQ9HHUEF00PLTWBF6Y3RFT1Q.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_inttypes-F02YQXAV70SBQYNR1TCILSZQC.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/Darwin-BI81F3DSM7GNALREB2L4UAO3K.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/ObjectiveC-B11KXH0CHRPAR6DL0V15OUWX.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/os_object-39R6K1ZW4M0CXKJ1WMJZK8M2C.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/os_workgroup-24KM5066VOM199SLPK0FMLPYP.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/Dispatch-ATYRC6ZTNZOFUFVI4AZT0N36L.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/CoreFoundation-6RZ7WG7C70RNLQ7W9TEHN64U.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/XPC-2B8LCRX5U2HGX5DUXAJMAUYF5.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/Security-38LZ2U8T2TAJNP8SDQ1CJJE3F.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/CFNetwork-CKHY0HEWI1S67QSGB5QKT2KK1.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/Foundation-1A84M7V1QOXIBMN0W05H3CVWO.pcm
SwiftEmitModule normal arm64 Emitting\ module\ for\ ClaudeAgentSDK (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Session/ClaudeAgentSession.swift:16:33: error: 'Duration' is only available in iOS 16.0 or newer
11 | /// and in-process SDK tool dispatch — the Swift counterpart of the Python
12 | /// SDK's `ClaudeSDKClient` + `Query` pair.
13 | public actor ClaudeAgentSession {
| `- note: add '@available' attribute to enclosing actor
14 | private let transport: any ClaudeTransport
15 | private let options: ClaudeAgentOptions
16 | private let controlTimeout: Duration
| `- error: 'Duration' is only available in iOS 16.0 or newer
17 |
18 | public nonisolated let messages: AsyncThrowingStream<ClaudeMessage, Error>
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Session/ClaudeAgentSession.swift:31:25: error: 'Duration' is only available in iOS 16.0 or newer
11 | /// and in-process SDK tool dispatch — the Swift counterpart of the Python
12 | /// SDK's `ClaudeSDKClient` + `Query` pair.
13 | public actor ClaudeAgentSession {
| `- note: add '@available' attribute to enclosing actor
14 | private let transport: any ClaudeTransport
15 | private let options: ClaudeAgentOptions
:
26 | private(set) var initializationResult: JSONValue?
27 |
28 | public init(
| `- note: add '@available' attribute to enclosing initializer
29 | transport: any ClaudeTransport,
30 | options: ClaudeAgentOptions = ClaudeAgentOptions(),
31 | controlTimeout: Duration = .seconds(60)
| `- error: 'Duration' is only available in iOS 16.0 or newer
32 | ) {
33 | self.transport = transport
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Session/ClaudeAgentSession.swift:31:37: error: 'seconds' is only available in iOS 16.0 or newer
11 | /// and in-process SDK tool dispatch — the Swift counterpart of the Python
12 | /// SDK's `ClaudeSDKClient` + `Query` pair.
13 | public actor ClaudeAgentSession {
| `- note: add '@available' attribute to enclosing actor
14 | private let transport: any ClaudeTransport
15 | private let options: ClaudeAgentOptions
:
26 | private(set) var initializationResult: JSONValue?
27 |
28 | public init(
| `- note: add '@available' attribute to enclosing initializer
29 | transport: any ClaudeTransport,
30 | options: ClaudeAgentOptions = ClaudeAgentOptions(),
31 | controlTimeout: Duration = .seconds(60)
| `- error: 'seconds' is only available in iOS 16.0 or newer
32 | ) {
33 | self.transport = transport
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:15:18: error: 'Duration' is only available in iOS 16.0 or newer
8 | }
9 |
10 | protocol ClaudeCommandRunning: Sendable {
| `- note: add '@available' attribute to enclosing protocol
11 | func run(
| `- note: add '@available' attribute to enclosing instance method
12 | executableURL: URL,
13 | arguments: [String],
14 | environment: [String: String],
15 | timeout: Duration
| `- error: 'Duration' is only available in iOS 16.0 or newer
16 | ) async throws -> CommandResult
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:64:18: error: 'Duration' is only available in iOS 16.0 or newer
57 | }
58 |
59 | struct FoundationClaudeCommandRunner: ClaudeCommandRunning {
| `- note: add '@available' attribute to enclosing struct
60 | func run(
| `- note: add '@available' attribute to enclosing instance method
61 | executableURL: URL,
62 | arguments: [String],
63 | environment: [String: String],
64 | timeout: Duration
| `- error: 'Duration' is only available in iOS 16.0 or newer
65 | ) async throws -> CommandResult {
66 | let process = Process()
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:109:26: error: cannot find type 'Process' in scope
107 |
108 | private final class CommandCancellationHandle: @unchecked Sendable {
109 | private let process: Process
| `- error: cannot find type 'Process' in scope
110 | private let lock = NSLock()
111 |
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:112:19: error: cannot find type 'Process' in scope
110 | private let lock = NSLock()
111 |
112 | init(process: Process) {
| `- error: cannot find type 'Process' in scope
113 | self.process = process
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:169:40: error: cannot find type 'Process' in scope
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- error: cannot find type 'Process' in scope
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:169:58: error: 'Duration' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| | `- error: 'Duration' is only available in iOS 16.0 or newer
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessConfiguration.swift:35:41: error: 'Duration' is only available in iOS 16.0 or newer
27 | }
28 |
29 | public struct ClaudeProcessConfiguration: Sendable, Equatable {
| `- note: add '@available' attribute to enclosing struct
30 | public let executableURL: URL
31 | public let arguments: [String]
:
33 | public let currentDirectoryURL: URL?
34 | public let maxFrameBytes: Int
35 | public let gracefulShutdownTimeout: Duration
| `- error: 'Duration' is only available in iOS 16.0 or newer
36 | public let terminateTimeout: Duration
37 |
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessConfiguration.swift:36:34: error: 'Duration' is only available in iOS 16.0 or newer
27 | }
28 |
29 | public struct ClaudeProcessConfiguration: Sendable, Equatable {
| `- note: add '@available' attribute to enclosing struct
30 | public let executableURL: URL
31 | public let arguments: [String]
:
34 | public let maxFrameBytes: Int
35 | public let gracefulShutdownTimeout: Duration
36 | public let terminateTimeout: Duration
| `- error: 'Duration' is only available in iOS 16.0 or newer
37 |
38 | public var redactedCommand: [String] {
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessConfiguration.swift:48:34: error: 'Duration' is only available in iOS 16.0 or newer
27 | }
28 |
29 | public struct ClaudeProcessConfiguration: Sendable, Equatable {
| `- note: add '@available' attribute to enclosing struct
30 | public let executableURL: URL
31 | public let arguments: [String]
:
40 | }
41 |
42 | public init(
| `- note: add '@available' attribute to enclosing initializer
43 | executableURL: URL,
44 | extraArguments: [String] = [],
:
46 | currentDirectoryURL: URL? = nil,
47 | maxFrameBytes: Int = 1_048_576,
48 | gracefulShutdownTimeout: Duration = .seconds(5),
| `- error: 'Duration' is only available in iOS 16.0 or newer
49 | terminateTimeout: Duration = .seconds(5)
50 | ) throws {
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessConfiguration.swift:49:27: error: 'Duration' is only available in iOS 16.0 or newer
27 | }
28 |
29 | public struct ClaudeProcessConfiguration: Sendable, Equatable {
| `- note: add '@available' attribute to enclosing struct
30 | public let executableURL: URL
31 | public let arguments: [String]
:
40 | }
41 |
42 | public init(
| `- note: add '@available' attribute to enclosing initializer
43 | executableURL: URL,
44 | extraArguments: [String] = [],
:
47 | maxFrameBytes: Int = 1_048_576,
48 | gracefulShutdownTimeout: Duration = .seconds(5),
49 | terminateTimeout: Duration = .seconds(5)
| `- error: 'Duration' is only available in iOS 16.0 or newer
50 | ) throws {
51 | let reservedArguments: Set<String> = [
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessConfiguration.swift:48:46: error: 'seconds' is only available in iOS 16.0 or newer
27 | }
28 |
29 | public struct ClaudeProcessConfiguration: Sendable, Equatable {
| `- note: add '@available' attribute to enclosing struct
30 | public let executableURL: URL
31 | public let arguments: [String]
:
40 | }
41 |
42 | public init(
| `- note: add '@available' attribute to enclosing initializer
43 | executableURL: URL,
44 | extraArguments: [String] = [],
:
46 | currentDirectoryURL: URL? = nil,
47 | maxFrameBytes: Int = 1_048_576,
48 | gracefulShutdownTimeout: Duration = .seconds(5),
| `- error: 'seconds' is only available in iOS 16.0 or newer
49 | terminateTimeout: Duration = .seconds(5)
50 | ) throws {
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessConfiguration.swift:49:39: error: 'seconds' is only available in iOS 16.0 or newer
27 | }
28 |
29 | public struct ClaudeProcessConfiguration: Sendable, Equatable {
| `- note: add '@available' attribute to enclosing struct
30 | public let executableURL: URL
31 | public let arguments: [String]
:
40 | }
41 |
42 | public init(
| `- note: add '@available' attribute to enclosing initializer
43 | executableURL: URL,
44 | extraArguments: [String] = [],
:
47 | maxFrameBytes: Int = 1_048_576,
48 | gracefulShutdownTimeout: Duration = .seconds(5),
49 | terminateTimeout: Duration = .seconds(5)
| `- error: 'seconds' is only available in iOS 16.0 or newer
50 | ) throws {
51 | let reservedArguments: Set<String> = [
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessTransport.swift:16:26: error: cannot find type 'Process' in scope
14 | private let versionChecker: ClaudeCLIVersionChecker
15 | private var state: State = .idle
16 | private var process: Process?
| `- error: cannot find type 'Process' in scope
17 | private var stdinHandle: FileHandle?
18 | private var stdoutTask: Task<Void, Never>?
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessTransport.swift:289:41: error: cannot find type 'Process' in scope
287 | }
288 |
289 | private func waitForExit(_ process: Process, timeout: Duration) async -> Bool {
| `- error: cannot find type 'Process' in scope
290 | let clock = ContinuousClock()
291 | let deadline = clock.now.advanced(by: timeout)
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessTransport.swift:289:59: error: 'Duration' is only available in iOS 16.0 or newer
2 | import Foundation
3 |
4 | public actor ClaudeProcessTransport: ClaudeTransport {
| `- note: add '@available' attribute to enclosing actor
5 | enum State: Sendable, Equatable {
6 | case idle
:
287 | }
288 |
289 | private func waitForExit(_ process: Process, timeout: Duration) async -> Bool {
| | `- error: 'Duration' is only available in iOS 16.0 or newer
| `- note: add '@available' attribute to enclosing instance method
290 | let clock = ContinuousClock()
291 | let deadline = clock.now.advanced(by: timeout)
Failed frontend command:
SwiftCompile normal arm64 (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/ClaudeAgentSDK.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Core/ClaudeAgentDiagnostic.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Core/ClaudeAgentError.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Core/ClaudeRedactor.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Core/JSONValue+Accessors.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Core/JSONValue.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Messages/ClaudeContentBlock.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Messages/ClaudeMessage.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Session/ClaudeAgentOptions.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Session/ClaudeAgentSession.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Session/ClaudeSdkTool.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCLIProvider.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCLIVersion.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessConfiguration.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessTransport.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeTransport.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/NDJSONFramer.swift -target arm64-apple-ios15.0 -disable-cross-import-overlay-search -swift-module-cross-import Darwin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/Darwin.swiftcrossimport/xlocale.swiftoverlay -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/iPhoneOS.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/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK-dependencies-1.json -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS27.0.sdk -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS27.0.sdk/Developer/Library/Frameworks -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -no-color-diagnostics -Xcc -fno-color-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -profile-generate -profile-coverage-mapping -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/iphoneos27.0-24A430-e829b21a6f8c9b70876ba0858053c04440ceaa042ed91876912b2eeea4e3aa14.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name ClaudeAgentSDK -package-name spi_builder_workspace -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK_const_extract_protocols.json -disable-clang-spi -clang-target arm64-apple-ios27.0 -target-sdk-version 27.0 -target-sdk-name iphoneos27.0 -in-process-plugin-server-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -emit-module-doc-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK.abi.json
SwiftCompile normal arm64 Compiling\ ClaudeTransport.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeTransport.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeTransport.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ClaudeTransport.swift
SwiftCompile normal arm64 Compiling\ ClaudeProcessConfiguration.swift,\ ClaudeProcessTransport.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessConfiguration.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessTransport.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessConfiguration.swift:35:41: error: 'Duration' is only available in iOS 16.0 or newer
27 | }
28 |
29 | public struct ClaudeProcessConfiguration: Sendable, Equatable {
| `- note: add '@available' attribute to enclosing struct
30 | public let executableURL: URL
31 | public let arguments: [String]
:
33 | public let currentDirectoryURL: URL?
34 | public let maxFrameBytes: Int
35 | public let gracefulShutdownTimeout: Duration
| `- error: 'Duration' is only available in iOS 16.0 or newer
36 | public let terminateTimeout: Duration
37 |
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessConfiguration.swift:36:34: error: 'Duration' is only available in iOS 16.0 or newer
27 | }
28 |
29 | public struct ClaudeProcessConfiguration: Sendable, Equatable {
| `- note: add '@available' attribute to enclosing struct
30 | public let executableURL: URL
31 | public let arguments: [String]
:
34 | public let maxFrameBytes: Int
35 | public let gracefulShutdownTimeout: Duration
36 | public let terminateTimeout: Duration
| `- error: 'Duration' is only available in iOS 16.0 or newer
37 |
38 | public var redactedCommand: [String] {
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessConfiguration.swift:48:34: error: 'Duration' is only available in iOS 16.0 or newer
27 | }
28 |
29 | public struct ClaudeProcessConfiguration: Sendable, Equatable {
| `- note: add '@available' attribute to enclosing struct
30 | public let executableURL: URL
31 | public let arguments: [String]
:
40 | }
41 |
42 | public init(
| `- note: add '@available' attribute to enclosing initializer
43 | executableURL: URL,
44 | extraArguments: [String] = [],
:
46 | currentDirectoryURL: URL? = nil,
47 | maxFrameBytes: Int = 1_048_576,
48 | gracefulShutdownTimeout: Duration = .seconds(5),
| `- error: 'Duration' is only available in iOS 16.0 or newer
49 | terminateTimeout: Duration = .seconds(5)
50 | ) throws {
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessConfiguration.swift:49:27: error: 'Duration' is only available in iOS 16.0 or newer
27 | }
28 |
29 | public struct ClaudeProcessConfiguration: Sendable, Equatable {
| `- note: add '@available' attribute to enclosing struct
30 | public let executableURL: URL
31 | public let arguments: [String]
:
40 | }
41 |
42 | public init(
| `- note: add '@available' attribute to enclosing initializer
43 | executableURL: URL,
44 | extraArguments: [String] = [],
:
47 | maxFrameBytes: Int = 1_048_576,
48 | gracefulShutdownTimeout: Duration = .seconds(5),
49 | terminateTimeout: Duration = .seconds(5)
| `- error: 'Duration' is only available in iOS 16.0 or newer
50 | ) throws {
51 | let reservedArguments: Set<String> = [
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessConfiguration.swift:48:46: error: 'seconds' is only available in iOS 16.0 or newer
27 | }
28 |
29 | public struct ClaudeProcessConfiguration: Sendable, Equatable {
| `- note: add '@available' attribute to enclosing struct
30 | public let executableURL: URL
31 | public let arguments: [String]
:
40 | }
41 |
42 | public init(
| `- note: add '@available' attribute to enclosing initializer
43 | executableURL: URL,
44 | extraArguments: [String] = [],
:
46 | currentDirectoryURL: URL? = nil,
47 | maxFrameBytes: Int = 1_048_576,
48 | gracefulShutdownTimeout: Duration = .seconds(5),
| `- error: 'seconds' is only available in iOS 16.0 or newer
49 | terminateTimeout: Duration = .seconds(5)
50 | ) throws {
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessConfiguration.swift:49:39: error: 'seconds' is only available in iOS 16.0 or newer
27 | }
28 |
29 | public struct ClaudeProcessConfiguration: Sendable, Equatable {
| `- note: add '@available' attribute to enclosing struct
30 | public let executableURL: URL
31 | public let arguments: [String]
:
40 | }
41 |
42 | public init(
| `- note: add '@available' attribute to enclosing initializer
43 | executableURL: URL,
44 | extraArguments: [String] = [],
:
47 | maxFrameBytes: Int = 1_048_576,
48 | gracefulShutdownTimeout: Duration = .seconds(5),
49 | terminateTimeout: Duration = .seconds(5)
| `- error: 'seconds' is only available in iOS 16.0 or newer
50 | ) throws {
51 | let reservedArguments: Set<String> = [
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessTransport.swift:16:26: error: cannot find type 'Process' in scope
14 | private let versionChecker: ClaudeCLIVersionChecker
15 | private var state: State = .idle
16 | private var process: Process?
| `- error: cannot find type 'Process' in scope
17 | private var stdinHandle: FileHandle?
18 | private var stdoutTask: Task<Void, Never>?
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessTransport.swift:289:41: error: cannot find type 'Process' in scope
287 | }
288 |
289 | private func waitForExit(_ process: Process, timeout: Duration) async -> Bool {
| `- error: cannot find type 'Process' in scope
290 | let clock = ContinuousClock()
291 | let deadline = clock.now.advanced(by: timeout)
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessTransport.swift:289:59: error: 'Duration' is only available in iOS 16.0 or newer
2 | import Foundation
3 |
4 | public actor ClaudeProcessTransport: ClaudeTransport {
| `- note: add '@available' attribute to enclosing actor
5 | enum State: Sendable, Equatable {
6 | case idle
:
287 | }
288 |
289 | private func waitForExit(_ process: Process, timeout: Duration) async -> Bool {
| | `- error: 'Duration' is only available in iOS 16.0 or newer
| `- note: add '@available' attribute to enclosing instance method
290 | let clock = ContinuousClock()
291 | let deadline = clock.now.advanced(by: timeout)
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessConfiguration.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ClaudeProcessConfiguration.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessTransport.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ClaudeProcessTransport.swift
SwiftCompile normal arm64 Compiling\ ClaudeSdkTool.swift,\ ClaudeCLIProvider.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Session/ClaudeSdkTool.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCLIProvider.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Session/ClaudeSdkTool.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ClaudeSdkTool.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCLIProvider.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ClaudeCLIProvider.swift
SwiftCompile normal arm64 Compiling\ ClaudeContentBlock.swift,\ ClaudeMessage.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Messages/ClaudeContentBlock.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Messages/ClaudeMessage.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Messages/ClaudeContentBlock.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ClaudeContentBlock.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Messages/ClaudeMessage.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ClaudeMessage.swift
SwiftCompile normal arm64 Compiling\ NDJSONFramer.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/NDJSONFramer.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/NDJSONFramer.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile NDJSONFramer.swift
SwiftCompile normal arm64 Compiling\ ClaudeAgentOptions.swift,\ ClaudeAgentSession.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Session/ClaudeAgentOptions.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Session/ClaudeAgentSession.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Session/ClaudeAgentSession.swift:16:33: error: 'Duration' is only available in iOS 16.0 or newer
11 | /// and in-process SDK tool dispatch — the Swift counterpart of the Python
12 | /// SDK's `ClaudeSDKClient` + `Query` pair.
13 | public actor ClaudeAgentSession {
| `- note: add '@available' attribute to enclosing actor
14 | private let transport: any ClaudeTransport
15 | private let options: ClaudeAgentOptions
16 | private let controlTimeout: Duration
| `- error: 'Duration' is only available in iOS 16.0 or newer
17 |
18 | public nonisolated let messages: AsyncThrowingStream<ClaudeMessage, Error>
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Session/ClaudeAgentSession.swift:31:25: error: 'Duration' is only available in iOS 16.0 or newer
11 | /// and in-process SDK tool dispatch — the Swift counterpart of the Python
12 | /// SDK's `ClaudeSDKClient` + `Query` pair.
13 | public actor ClaudeAgentSession {
| `- note: add '@available' attribute to enclosing actor
14 | private let transport: any ClaudeTransport
15 | private let options: ClaudeAgentOptions
:
26 | private(set) var initializationResult: JSONValue?
27 |
28 | public init(
| `- note: add '@available' attribute to enclosing initializer
29 | transport: any ClaudeTransport,
30 | options: ClaudeAgentOptions = ClaudeAgentOptions(),
31 | controlTimeout: Duration = .seconds(60)
| `- error: 'Duration' is only available in iOS 16.0 or newer
32 | ) {
33 | self.transport = transport
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Session/ClaudeAgentSession.swift:31:37: error: 'seconds' is only available in iOS 16.0 or newer
11 | /// and in-process SDK tool dispatch — the Swift counterpart of the Python
12 | /// SDK's `ClaudeSDKClient` + `Query` pair.
13 | public actor ClaudeAgentSession {
| `- note: add '@available' attribute to enclosing actor
14 | private let transport: any ClaudeTransport
15 | private let options: ClaudeAgentOptions
:
26 | private(set) var initializationResult: JSONValue?
27 |
28 | public init(
| `- note: add '@available' attribute to enclosing initializer
29 | transport: any ClaudeTransport,
30 | options: ClaudeAgentOptions = ClaudeAgentOptions(),
31 | controlTimeout: Duration = .seconds(60)
| `- error: 'seconds' is only available in iOS 16.0 or newer
32 | ) {
33 | self.transport = transport
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Session/ClaudeAgentSession.swift:146:33: error: 'sleep(for:tolerance:clock:)' is only available in iOS 16.0 or newer
11 | /// and in-process SDK tool dispatch — the Swift counterpart of the Python
12 | /// SDK's `ClaudeSDKClient` + `Query` pair.
13 | public actor ClaudeAgentSession {
| `- note: add '@available' attribute to enclosing actor
14 | private let transport: any ClaudeTransport
15 | private let options: ClaudeAgentOptions
:
122 | // MARK: - Control requests (SDK → CLI)
123 |
124 | private func sendControlRequest(_ request: [String: JSONValue]) async throws -> JSONValue {
| `- note: add '@available' attribute to enclosing instance method
125 | let subtype = request["subtype"]?.stringValue ?? "?"
126 | requestCounter += 1
:
144 | // Timeout watchdog: a no-op if the response (or session
145 | // close) already resolved the continuation.
146 | try? await Task.sleep(for: controlTimeout)
| |- error: 'sleep(for:tolerance:clock:)' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
147 | self.failPendingRequest(
148 | requestId,
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessConfiguration.swift:48:46: error: 'seconds' is only available in iOS 16.0 or newer
27 | }
28 |
29 | public struct ClaudeProcessConfiguration: Sendable, Equatable {
| `- note: add '@available' attribute to enclosing struct
30 | public let executableURL: URL
31 | public let arguments: [String]
:
40 | }
41 |
42 | public init(
| `- note: add '@available' attribute to enclosing initializer
43 | executableURL: URL,
44 | extraArguments: [String] = [],
:
46 | currentDirectoryURL: URL? = nil,
47 | maxFrameBytes: Int = 1_048_576,
48 | gracefulShutdownTimeout: Duration = .seconds(5),
| `- error: 'seconds' is only available in iOS 16.0 or newer
49 | terminateTimeout: Duration = .seconds(5)
50 | ) throws {
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Session/ClaudeAgentOptions.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ClaudeAgentOptions.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Session/ClaudeAgentSession.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ClaudeAgentSession.swift
SwiftCompile normal arm64 Compiling\ ClaudeCLIVersion.swift,\ ClaudeCommandRunner.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCLIVersion.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:15:18: error: 'Duration' is only available in iOS 16.0 or newer
8 | }
9 |
10 | protocol ClaudeCommandRunning: Sendable {
| `- note: add '@available' attribute to enclosing protocol
11 | func run(
| `- note: add '@available' attribute to enclosing instance method
12 | executableURL: URL,
13 | arguments: [String],
14 | environment: [String: String],
15 | timeout: Duration
| `- error: 'Duration' is only available in iOS 16.0 or newer
16 | ) async throws -> CommandResult
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:64:18: error: 'Duration' is only available in iOS 16.0 or newer
57 | }
58 |
59 | struct FoundationClaudeCommandRunner: ClaudeCommandRunning {
| `- note: add '@available' attribute to enclosing struct
60 | func run(
| `- note: add '@available' attribute to enclosing instance method
61 | executableURL: URL,
62 | arguments: [String],
63 | environment: [String: String],
64 | timeout: Duration
| `- error: 'Duration' is only available in iOS 16.0 or newer
65 | ) async throws -> CommandResult {
66 | let process = Process()
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:109:26: error: cannot find type 'Process' in scope
107 |
108 | private final class CommandCancellationHandle: @unchecked Sendable {
109 | private let process: Process
| `- error: cannot find type 'Process' in scope
110 | private let lock = NSLock()
111 |
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:112:19: error: cannot find type 'Process' in scope
110 | private let lock = NSLock()
111 |
112 | init(process: Process) {
| `- error: cannot find type 'Process' in scope
113 | self.process = process
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:169:40: error: cannot find type 'Process' in scope
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- error: cannot find type 'Process' in scope
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:169:58: error: 'Duration' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| | `- error: 'Duration' is only available in iOS 16.0 or newer
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:36:23: error: 'seconds' is only available in iOS 16.0 or newer
17 | }
18 |
19 | public struct ClaudeCLIVersionChecker: Sendable {
| `- note: add '@available' attribute to enclosing struct
20 | private let runner: any ClaudeCommandRunning
21 |
:
26 | public static let live = ClaudeCLIVersionChecker(runner: FoundationClaudeCommandRunner())
27 |
28 | public func check(
| `- note: add '@available' attribute to enclosing instance method
29 | executableURL: URL,
30 | environment: [String: String]
:
34 | arguments: ["--version"],
35 | environment: environment,
36 | timeout: .seconds(5)
| |- error: 'seconds' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
37 | )
38 | guard result.exitCode == 0 else {
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:66:23: error: cannot find 'Process' in scope
64 | timeout: Duration
65 | ) async throws -> CommandResult {
66 | let process = Process()
| `- error: cannot find 'Process' in scope
67 | let stdout = Pipe()
68 | let stderr = Pipe()
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:170:17: error: 'ContinuousClock' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
| |- error: 'ContinuousClock' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
171 | let deadline = clock.now.advanced(by: timeout)
172 | while process.isRunning, clock.now < deadline {
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:171:26: error: 'now' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
| |- error: 'now' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
172 | while process.isRunning, clock.now < deadline {
173 | try await Task.sleep(for: .milliseconds(25))
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:171:30: error: 'advanced(by:)' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
| |- error: 'advanced(by:)' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
172 | while process.isRunning, clock.now < deadline {
173 | try await Task.sleep(for: .milliseconds(25))
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:172:40: error: '<' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
172 | while process.isRunning, clock.now < deadline {
| |- error: '<' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
173 | try await Task.sleep(for: .milliseconds(25))
174 | }
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:172:36: error: 'now' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
172 | while process.isRunning, clock.now < deadline {
| |- error: 'now' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
173 | try await Task.sleep(for: .milliseconds(25))
174 | }
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:173:24: error: 'sleep(for:tolerance:clock:)' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
172 | while process.isRunning, clock.now < deadline {
173 | try await Task.sleep(for: .milliseconds(25))
| |- error: 'sleep(for:tolerance:clock:)' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
174 | }
175 | guard process.isRunning else {
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:173:36: error: 'milliseconds' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
172 | while process.isRunning, clock.now < deadline {
173 | try await Task.sleep(for: .milliseconds(25))
| |- error: 'milliseconds' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
174 | }
175 | guard process.isRunning else {
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:181:35: error: 'now' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
:
179 |
180 | process.terminate()
181 | let terminateDeadline = clock.now.advanced(by: .seconds(2))
| |- error: 'now' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
182 | while process.isRunning, clock.now < terminateDeadline {
183 | try await Task.sleep(for: .milliseconds(25))
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:181:39: error: 'advanced(by:)' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
:
179 |
180 | process.terminate()
181 | let terminateDeadline = clock.now.advanced(by: .seconds(2))
| |- error: 'advanced(by:)' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
182 | while process.isRunning, clock.now < terminateDeadline {
183 | try await Task.sleep(for: .milliseconds(25))
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:181:53: error: 'seconds' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
:
179 |
180 | process.terminate()
181 | let terminateDeadline = clock.now.advanced(by: .seconds(2))
| |- error: 'seconds' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
182 | while process.isRunning, clock.now < terminateDeadline {
183 | try await Task.sleep(for: .milliseconds(25))
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:182:40: error: '<' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
:
180 | process.terminate()
181 | let terminateDeadline = clock.now.advanced(by: .seconds(2))
182 | while process.isRunning, clock.now < terminateDeadline {
| |- error: '<' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
183 | try await Task.sleep(for: .milliseconds(25))
184 | }
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:182:36: error: 'now' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
:
180 | process.terminate()
181 | let terminateDeadline = clock.now.advanced(by: .seconds(2))
182 | while process.isRunning, clock.now < terminateDeadline {
| |- error: 'now' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
183 | try await Task.sleep(for: .milliseconds(25))
184 | }
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:183:24: error: 'sleep(for:tolerance:clock:)' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
:
181 | let terminateDeadline = clock.now.advanced(by: .seconds(2))
182 | while process.isRunning, clock.now < terminateDeadline {
183 | try await Task.sleep(for: .milliseconds(25))
| |- error: 'sleep(for:tolerance:clock:)' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
184 | }
185 |
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:183:36: error: 'milliseconds' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
:
181 | let terminateDeadline = clock.now.advanced(by: .seconds(2))
182 | while process.isRunning, clock.now < terminateDeadline {
183 | try await Task.sleep(for: .milliseconds(25))
| |- error: 'milliseconds' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
184 | }
185 |
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:188:34: error: 'now' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
:
186 | if process.isRunning {
187 | _ = Darwin.kill(process.processIdentifier, SIGKILL)
188 | let killDeadline = clock.now.advanced(by: .seconds(5))
| |- error: 'now' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
189 | while process.isRunning, clock.now < killDeadline {
190 | try await Task.sleep(for: .milliseconds(25))
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:188:38: error: 'advanced(by:)' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
:
186 | if process.isRunning {
187 | _ = Darwin.kill(process.processIdentifier, SIGKILL)
188 | let killDeadline = clock.now.advanced(by: .seconds(5))
| |- error: 'advanced(by:)' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
189 | while process.isRunning, clock.now < killDeadline {
190 | try await Task.sleep(for: .milliseconds(25))
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:188:52: error: 'seconds' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
:
186 | if process.isRunning {
187 | _ = Darwin.kill(process.processIdentifier, SIGKILL)
188 | let killDeadline = clock.now.advanced(by: .seconds(5))
| |- error: 'seconds' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
189 | while process.isRunning, clock.now < killDeadline {
190 | try await Task.sleep(for: .milliseconds(25))
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:189:44: error: '<' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
:
187 | _ = Darwin.kill(process.processIdentifier, SIGKILL)
188 | let killDeadline = clock.now.advanced(by: .seconds(5))
189 | while process.isRunning, clock.now < killDeadline {
| |- error: '<' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
190 | try await Task.sleep(for: .milliseconds(25))
191 | }
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:189:40: error: 'now' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
:
187 | _ = Darwin.kill(process.processIdentifier, SIGKILL)
188 | let killDeadline = clock.now.advanced(by: .seconds(5))
189 | while process.isRunning, clock.now < killDeadline {
| |- error: 'now' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
190 | try await Task.sleep(for: .milliseconds(25))
191 | }
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:190:28: error: 'sleep(for:tolerance:clock:)' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
:
188 | let killDeadline = clock.now.advanced(by: .seconds(5))
189 | while process.isRunning, clock.now < killDeadline {
190 | try await Task.sleep(for: .milliseconds(25))
| |- error: 'sleep(for:tolerance:clock:)' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
191 | }
192 | guard !process.isRunning else {
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCLIVersion.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ClaudeCLIVersion.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ClaudeCommandRunner.swift
SwiftCompile normal arm64 Compiling\ ClaudeAgentError.swift,\ ClaudeRedactor.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Core/ClaudeAgentError.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Core/ClaudeRedactor.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Core/ClaudeAgentError.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ClaudeAgentError.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Core/ClaudeRedactor.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ClaudeRedactor.swift
SwiftCompile normal arm64 Compiling\ ClaudeAgentSDK.swift,\ ClaudeAgentDiagnostic.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/ClaudeAgentSDK.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Core/ClaudeAgentDiagnostic.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/ClaudeAgentSDK.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ClaudeAgentSDK.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Core/ClaudeAgentDiagnostic.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ClaudeAgentDiagnostic.swift
SwiftCompile normal arm64 Compiling\ JSONValue+Accessors.swift,\ JSONValue.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Core/JSONValue+Accessors.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Core/JSONValue.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Core/JSONValue+Accessors.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile JSONValue+Accessors.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Core/JSONValue.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile JSONValue.swift
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 00:44:52.313 xcodebuild[661:3912] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
** BUILD FAILED **
The following build commands failed:
SwiftCompile normal arm64 (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
SwiftEmitModule normal arm64 Emitting\ module\ for\ ClaudeAgentSDK (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
Building workspace ClaudeAgentSDK with scheme ClaudeAgentSDK
(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:
ClaudeAgentSDK: /Users/admin/builder/spi-builder-workspace
resolved source packages: ClaudeAgentSDK
2026-09-26 00:44:56.812 xcodebuild[713:4153] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
{
"dependencies" : [
],
"manifest_display_name" : "ClaudeAgentSDK",
"name" : "ClaudeAgentSDK",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "14.0"
}
],
"products" : [
{
"name" : "ClaudeAgentSDK",
"targets" : [
"ClaudeAgentSDK"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ClaudeAgentSDKTests",
"module_type" : "SwiftTarget",
"name" : "ClaudeAgentSDKTests",
"path" : "Tests/ClaudeAgentSDKTests",
"sources" : [
"ClaudeAgentSDKTests.swift",
"Core/ClaudeAgentErrorTests.swift",
"Core/ClaudeRedactorTests.swift",
"Core/JSONValueTests.swift",
"Session/ClaudeAgentSessionTests.swift",
"Support/AsyncAssertions.swift",
"Transport/ClaudeCLIProviderTests.swift",
"Transport/ClaudeCLIVersionCheckerTests.swift",
"Transport/ClaudeCLIVersionTests.swift",
"Transport/ClaudeCommandRunnerTests.swift",
"Transport/ClaudeProcessConfigurationTests.swift",
"Transport/ClaudeProcessTransportTests.swift",
"Transport/NDJSONFramerTests.swift"
],
"target_dependencies" : [
"ClaudeAgentSDK"
],
"type" : "test"
},
{
"c99name" : "ClaudeAgentSDK",
"module_type" : "SwiftTarget",
"name" : "ClaudeAgentSDK",
"path" : "Sources/ClaudeAgentSDK",
"product_memberships" : [
"ClaudeAgentSDK"
],
"sources" : [
"ClaudeAgentSDK.swift",
"Core/ClaudeAgentDiagnostic.swift",
"Core/ClaudeAgentError.swift",
"Core/ClaudeRedactor.swift",
"Core/JSONValue+Accessors.swift",
"Core/JSONValue.swift",
"Messages/ClaudeContentBlock.swift",
"Messages/ClaudeMessage.swift",
"Session/ClaudeAgentOptions.swift",
"Session/ClaudeAgentSession.swift",
"Session/ClaudeSdkTool.swift",
"Transport/ClaudeCLIProvider.swift",
"Transport/ClaudeCLIVersion.swift",
"Transport/ClaudeCommandRunner.swift",
"Transport/ClaudeProcessConfiguration.swift",
"Transport/ClaudeProcessTransport.swift",
"Transport/ClaudeTransport.swift",
"Transport/NDJSONFramer.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
{
"workspace" : {
"name" : "ClaudeAgentSDK",
"schemes" : [
"ClaudeAgentSDK"
]
}
}
2026-09-26 00:44:58.027 xcodebuild[721:4218] [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 ClaudeAgentSDK -destination generic/platform=iOS
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 ClaudeAgentSDK -destination generic/platform=iOS
Resolve Package Graph
Resolved source packages:
ClaudeAgentSDK: /Users/admin/builder/spi-builder-workspace
ComputePackagePrebuildTargetDependencyGraph
Prepare packages
CreateBuildRequest
SendProjectDescription
CreateBuildOperation
ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (2 targets)
Target 'ClaudeAgentSDK-product' in project 'ClaudeAgentSDK'
➜ Explicit dependency on target 'ClaudeAgentSDK' in project 'ClaudeAgentSDK'
Target 'ClaudeAgentSDK' in project 'ClaudeAgentSDK' (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/iPhoneOS.platform/Developer/SDKs/iPhoneOS27.0.sdk /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/iphoneos27.0-24A430-e829b21a6f8c9b70876ba0858053c04440ceaa042ed91876912b2eeea4e3aa14.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/iPhoneOS.platform/Developer/SDKs/iPhoneOS27.0.sdk -o /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/iphoneos27.0-24A430-e829b21a6f8c9b70876ba0858053c04440ceaa042ed91876912b2eeea4e3aa14.sdkstatcache
SwiftDriver ClaudeAgentSDK normal arm64 com.apple.xcode.tools.swift.compiler (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
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 ClaudeAgentSDK -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK.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/iPhoneOS.platform/Developer/SDKs/iPhoneOS27.0.sdk -target arm64-apple-ios15.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -profile-coverage-mapping -profile-generate -enable-testing -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -swift-version 5 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS27.0.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/iphoneos27.0-24A430-e829b21a6f8c9b70876ba0858053c04440ceaa042ed91876912b2eeea4e3aa14.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK-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/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK-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/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-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/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftCompile normal arm64 Compiling\ ClaudeAgentSDK.swift,\ ClaudeAgentDiagnostic.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/ClaudeAgentSDK.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Core/ClaudeAgentDiagnostic.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/ClaudeAgentSDK.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ClaudeAgentSDK.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Core/ClaudeAgentDiagnostic.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ClaudeAgentDiagnostic.swift
SwiftCompile normal arm64 Compiling\ ClaudeAgentError.swift,\ ClaudeRedactor.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Core/ClaudeAgentError.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Core/ClaudeRedactor.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Core/ClaudeAgentError.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ClaudeAgentError.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Core/ClaudeRedactor.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ClaudeRedactor.swift
SwiftCompile normal arm64 Compiling\ ClaudeSdkTool.swift,\ ClaudeCLIProvider.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Session/ClaudeSdkTool.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCLIProvider.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Session/ClaudeSdkTool.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ClaudeSdkTool.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCLIProvider.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ClaudeCLIProvider.swift
SwiftCompile normal arm64 Compiling\ JSONValue+Accessors.swift,\ JSONValue.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Core/JSONValue+Accessors.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Core/JSONValue.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Core/JSONValue+Accessors.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile JSONValue+Accessors.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Core/JSONValue.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile JSONValue.swift
SwiftCompile normal arm64 Compiling\ ClaudeContentBlock.swift,\ ClaudeMessage.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Messages/ClaudeContentBlock.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Messages/ClaudeMessage.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Messages/ClaudeContentBlock.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ClaudeContentBlock.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Messages/ClaudeMessage.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ClaudeMessage.swift
SwiftCompile normal arm64 Compiling\ ClaudeCLIVersion.swift,\ ClaudeCommandRunner.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCLIVersion.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:15:18: error: 'Duration' is only available in iOS 16.0 or newer
8 | }
9 |
10 | protocol ClaudeCommandRunning: Sendable {
| `- note: add '@available' attribute to enclosing protocol
11 | func run(
| `- note: add '@available' attribute to enclosing instance method
12 | executableURL: URL,
13 | arguments: [String],
14 | environment: [String: String],
15 | timeout: Duration
| `- error: 'Duration' is only available in iOS 16.0 or newer
16 | ) async throws -> CommandResult
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:64:18: error: 'Duration' is only available in iOS 16.0 or newer
57 | }
58 |
59 | struct FoundationClaudeCommandRunner: ClaudeCommandRunning {
| `- note: add '@available' attribute to enclosing struct
60 | func run(
| `- note: add '@available' attribute to enclosing instance method
61 | executableURL: URL,
62 | arguments: [String],
63 | environment: [String: String],
64 | timeout: Duration
| `- error: 'Duration' is only available in iOS 16.0 or newer
65 | ) async throws -> CommandResult {
66 | let process = Process()
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:109:26: error: cannot find type 'Process' in scope
107 |
108 | private final class CommandCancellationHandle: @unchecked Sendable {
109 | private let process: Process
| `- error: cannot find type 'Process' in scope
110 | private let lock = NSLock()
111 |
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:112:19: error: cannot find type 'Process' in scope
110 | private let lock = NSLock()
111 |
112 | init(process: Process) {
| `- error: cannot find type 'Process' in scope
113 | self.process = process
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:169:40: error: cannot find type 'Process' in scope
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- error: cannot find type 'Process' in scope
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:169:58: error: 'Duration' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| | `- error: 'Duration' is only available in iOS 16.0 or newer
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:36:23: error: 'seconds' is only available in iOS 16.0 or newer
17 | }
18 |
19 | public struct ClaudeCLIVersionChecker: Sendable {
| `- note: add '@available' attribute to enclosing struct
20 | private let runner: any ClaudeCommandRunning
21 |
:
26 | public static let live = ClaudeCLIVersionChecker(runner: FoundationClaudeCommandRunner())
27 |
28 | public func check(
| `- note: add '@available' attribute to enclosing instance method
29 | executableURL: URL,
30 | environment: [String: String]
:
34 | arguments: ["--version"],
35 | environment: environment,
36 | timeout: .seconds(5)
| |- error: 'seconds' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
37 | )
38 | guard result.exitCode == 0 else {
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:66:23: error: cannot find 'Process' in scope
64 | timeout: Duration
65 | ) async throws -> CommandResult {
66 | let process = Process()
| `- error: cannot find 'Process' in scope
67 | let stdout = Pipe()
68 | let stderr = Pipe()
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:170:17: error: 'ContinuousClock' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
| |- error: 'ContinuousClock' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
171 | let deadline = clock.now.advanced(by: timeout)
172 | while process.isRunning, clock.now < deadline {
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:171:26: error: 'now' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
| |- error: 'now' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
172 | while process.isRunning, clock.now < deadline {
173 | try await Task.sleep(for: .milliseconds(25))
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:171:30: error: 'advanced(by:)' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
| |- error: 'advanced(by:)' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
172 | while process.isRunning, clock.now < deadline {
173 | try await Task.sleep(for: .milliseconds(25))
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:172:40: error: '<' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
172 | while process.isRunning, clock.now < deadline {
| |- error: '<' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
173 | try await Task.sleep(for: .milliseconds(25))
174 | }
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:172:36: error: 'now' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
172 | while process.isRunning, clock.now < deadline {
| |- error: 'now' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
173 | try await Task.sleep(for: .milliseconds(25))
174 | }
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:173:24: error: 'sleep(for:tolerance:clock:)' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
172 | while process.isRunning, clock.now < deadline {
173 | try await Task.sleep(for: .milliseconds(25))
| |- error: 'sleep(for:tolerance:clock:)' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
174 | }
175 | guard process.isRunning else {
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:173:36: error: 'milliseconds' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
172 | while process.isRunning, clock.now < deadline {
173 | try await Task.sleep(for: .milliseconds(25))
| |- error: 'milliseconds' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
174 | }
175 | guard process.isRunning else {
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:181:35: error: 'now' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
:
179 |
180 | process.terminate()
181 | let terminateDeadline = clock.now.advanced(by: .seconds(2))
| |- error: 'now' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
182 | while process.isRunning, clock.now < terminateDeadline {
183 | try await Task.sleep(for: .milliseconds(25))
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:181:39: error: 'advanced(by:)' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
:
179 |
180 | process.terminate()
181 | let terminateDeadline = clock.now.advanced(by: .seconds(2))
| |- error: 'advanced(by:)' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
182 | while process.isRunning, clock.now < terminateDeadline {
183 | try await Task.sleep(for: .milliseconds(25))
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:181:53: error: 'seconds' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
:
179 |
180 | process.terminate()
181 | let terminateDeadline = clock.now.advanced(by: .seconds(2))
| |- error: 'seconds' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
182 | while process.isRunning, clock.now < terminateDeadline {
183 | try await Task.sleep(for: .milliseconds(25))
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:182:40: error: '<' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
:
180 | process.terminate()
181 | let terminateDeadline = clock.now.advanced(by: .seconds(2))
182 | while process.isRunning, clock.now < terminateDeadline {
| |- error: '<' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
183 | try await Task.sleep(for: .milliseconds(25))
184 | }
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:182:36: error: 'now' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
:
180 | process.terminate()
181 | let terminateDeadline = clock.now.advanced(by: .seconds(2))
182 | while process.isRunning, clock.now < terminateDeadline {
| |- error: 'now' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
183 | try await Task.sleep(for: .milliseconds(25))
184 | }
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:183:24: error: 'sleep(for:tolerance:clock:)' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
:
181 | let terminateDeadline = clock.now.advanced(by: .seconds(2))
182 | while process.isRunning, clock.now < terminateDeadline {
183 | try await Task.sleep(for: .milliseconds(25))
| |- error: 'sleep(for:tolerance:clock:)' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
184 | }
185 |
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:183:36: error: 'milliseconds' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
:
181 | let terminateDeadline = clock.now.advanced(by: .seconds(2))
182 | while process.isRunning, clock.now < terminateDeadline {
183 | try await Task.sleep(for: .milliseconds(25))
| |- error: 'milliseconds' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
184 | }
185 |
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:188:34: error: 'now' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
:
186 | if process.isRunning {
187 | _ = Darwin.kill(process.processIdentifier, SIGKILL)
188 | let killDeadline = clock.now.advanced(by: .seconds(5))
| |- error: 'now' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
189 | while process.isRunning, clock.now < killDeadline {
190 | try await Task.sleep(for: .milliseconds(25))
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:188:38: error: 'advanced(by:)' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
:
186 | if process.isRunning {
187 | _ = Darwin.kill(process.processIdentifier, SIGKILL)
188 | let killDeadline = clock.now.advanced(by: .seconds(5))
| |- error: 'advanced(by:)' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
189 | while process.isRunning, clock.now < killDeadline {
190 | try await Task.sleep(for: .milliseconds(25))
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:188:52: error: 'seconds' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
:
186 | if process.isRunning {
187 | _ = Darwin.kill(process.processIdentifier, SIGKILL)
188 | let killDeadline = clock.now.advanced(by: .seconds(5))
| |- error: 'seconds' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
189 | while process.isRunning, clock.now < killDeadline {
190 | try await Task.sleep(for: .milliseconds(25))
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:189:44: error: '<' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
:
187 | _ = Darwin.kill(process.processIdentifier, SIGKILL)
188 | let killDeadline = clock.now.advanced(by: .seconds(5))
189 | while process.isRunning, clock.now < killDeadline {
| |- error: '<' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
190 | try await Task.sleep(for: .milliseconds(25))
191 | }
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:189:40: error: 'now' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
:
187 | _ = Darwin.kill(process.processIdentifier, SIGKILL)
188 | let killDeadline = clock.now.advanced(by: .seconds(5))
189 | while process.isRunning, clock.now < killDeadline {
| |- error: 'now' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
190 | try await Task.sleep(for: .milliseconds(25))
191 | }
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:190:28: error: 'sleep(for:tolerance:clock:)' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
:
188 | let killDeadline = clock.now.advanced(by: .seconds(5))
189 | while process.isRunning, clock.now < killDeadline {
190 | try await Task.sleep(for: .milliseconds(25))
| |- error: 'sleep(for:tolerance:clock:)' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
191 | }
192 | guard !process.isRunning else {
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCLIVersion.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ClaudeCLIVersion.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ClaudeCommandRunner.swift
SwiftCompile normal arm64 Compiling\ NDJSONFramer.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/NDJSONFramer.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/NDJSONFramer.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile NDJSONFramer.swift
SwiftCompile normal arm64 Compiling\ ClaudeAgentOptions.swift,\ ClaudeAgentSession.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Session/ClaudeAgentOptions.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Session/ClaudeAgentSession.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Session/ClaudeAgentSession.swift:16:33: error: 'Duration' is only available in iOS 16.0 or newer
11 | /// and in-process SDK tool dispatch — the Swift counterpart of the Python
12 | /// SDK's `ClaudeSDKClient` + `Query` pair.
13 | public actor ClaudeAgentSession {
| `- note: add '@available' attribute to enclosing actor
14 | private let transport: any ClaudeTransport
15 | private let options: ClaudeAgentOptions
16 | private let controlTimeout: Duration
| `- error: 'Duration' is only available in iOS 16.0 or newer
17 |
18 | public nonisolated let messages: AsyncThrowingStream<ClaudeMessage, Error>
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Session/ClaudeAgentSession.swift:31:25: error: 'Duration' is only available in iOS 16.0 or newer
11 | /// and in-process SDK tool dispatch — the Swift counterpart of the Python
12 | /// SDK's `ClaudeSDKClient` + `Query` pair.
13 | public actor ClaudeAgentSession {
| `- note: add '@available' attribute to enclosing actor
14 | private let transport: any ClaudeTransport
15 | private let options: ClaudeAgentOptions
:
26 | private(set) var initializationResult: JSONValue?
27 |
28 | public init(
| `- note: add '@available' attribute to enclosing initializer
29 | transport: any ClaudeTransport,
30 | options: ClaudeAgentOptions = ClaudeAgentOptions(),
31 | controlTimeout: Duration = .seconds(60)
| `- error: 'Duration' is only available in iOS 16.0 or newer
32 | ) {
33 | self.transport = transport
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Session/ClaudeAgentSession.swift:31:37: error: 'seconds' is only available in iOS 16.0 or newer
11 | /// and in-process SDK tool dispatch — the Swift counterpart of the Python
12 | /// SDK's `ClaudeSDKClient` + `Query` pair.
13 | public actor ClaudeAgentSession {
| `- note: add '@available' attribute to enclosing actor
14 | private let transport: any ClaudeTransport
15 | private let options: ClaudeAgentOptions
:
26 | private(set) var initializationResult: JSONValue?
27 |
28 | public init(
| `- note: add '@available' attribute to enclosing initializer
29 | transport: any ClaudeTransport,
30 | options: ClaudeAgentOptions = ClaudeAgentOptions(),
31 | controlTimeout: Duration = .seconds(60)
| `- error: 'seconds' is only available in iOS 16.0 or newer
32 | ) {
33 | self.transport = transport
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Session/ClaudeAgentSession.swift:146:33: error: 'sleep(for:tolerance:clock:)' is only available in iOS 16.0 or newer
11 | /// and in-process SDK tool dispatch — the Swift counterpart of the Python
12 | /// SDK's `ClaudeSDKClient` + `Query` pair.
13 | public actor ClaudeAgentSession {
| `- note: add '@available' attribute to enclosing actor
14 | private let transport: any ClaudeTransport
15 | private let options: ClaudeAgentOptions
:
122 | // MARK: - Control requests (SDK → CLI)
123 |
124 | private func sendControlRequest(_ request: [String: JSONValue]) async throws -> JSONValue {
| `- note: add '@available' attribute to enclosing instance method
125 | let subtype = request["subtype"]?.stringValue ?? "?"
126 | requestCounter += 1
:
144 | // Timeout watchdog: a no-op if the response (or session
145 | // close) already resolved the continuation.
146 | try? await Task.sleep(for: controlTimeout)
| |- error: 'sleep(for:tolerance:clock:)' is only available in iOS 16.0 or newer
| `- note: add 'if #available' version check
147 | self.failPendingRequest(
148 | requestId,
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessConfiguration.swift:48:46: error: 'seconds' is only available in iOS 16.0 or newer
27 | }
28 |
29 | public struct ClaudeProcessConfiguration: Sendable, Equatable {
| `- note: add '@available' attribute to enclosing struct
30 | public let executableURL: URL
31 | public let arguments: [String]
:
40 | }
41 |
42 | public init(
| `- note: add '@available' attribute to enclosing initializer
43 | executableURL: URL,
44 | extraArguments: [String] = [],
:
46 | currentDirectoryURL: URL? = nil,
47 | maxFrameBytes: Int = 1_048_576,
48 | gracefulShutdownTimeout: Duration = .seconds(5),
| `- error: 'seconds' is only available in iOS 16.0 or newer
49 | terminateTimeout: Duration = .seconds(5)
50 | ) throws {
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Session/ClaudeAgentOptions.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ClaudeAgentOptions.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Session/ClaudeAgentSession.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ClaudeAgentSession.swift
SwiftCompile normal arm64 Compiling\ ClaudeTransport.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeTransport.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeTransport.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ClaudeTransport.swift
SwiftEmitModule normal arm64 Emitting\ module\ for\ ClaudeAgentSDK (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Session/ClaudeAgentSession.swift:16:33: error: 'Duration' is only available in iOS 16.0 or newer
11 | /// and in-process SDK tool dispatch — the Swift counterpart of the Python
12 | /// SDK's `ClaudeSDKClient` + `Query` pair.
13 | public actor ClaudeAgentSession {
| `- note: add '@available' attribute to enclosing actor
14 | private let transport: any ClaudeTransport
15 | private let options: ClaudeAgentOptions
16 | private let controlTimeout: Duration
| `- error: 'Duration' is only available in iOS 16.0 or newer
17 |
18 | public nonisolated let messages: AsyncThrowingStream<ClaudeMessage, Error>
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Session/ClaudeAgentSession.swift:31:25: error: 'Duration' is only available in iOS 16.0 or newer
11 | /// and in-process SDK tool dispatch — the Swift counterpart of the Python
12 | /// SDK's `ClaudeSDKClient` + `Query` pair.
13 | public actor ClaudeAgentSession {
| `- note: add '@available' attribute to enclosing actor
14 | private let transport: any ClaudeTransport
15 | private let options: ClaudeAgentOptions
:
26 | private(set) var initializationResult: JSONValue?
27 |
28 | public init(
| `- note: add '@available' attribute to enclosing initializer
29 | transport: any ClaudeTransport,
30 | options: ClaudeAgentOptions = ClaudeAgentOptions(),
31 | controlTimeout: Duration = .seconds(60)
| `- error: 'Duration' is only available in iOS 16.0 or newer
32 | ) {
33 | self.transport = transport
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Session/ClaudeAgentSession.swift:31:37: error: 'seconds' is only available in iOS 16.0 or newer
11 | /// and in-process SDK tool dispatch — the Swift counterpart of the Python
12 | /// SDK's `ClaudeSDKClient` + `Query` pair.
13 | public actor ClaudeAgentSession {
| `- note: add '@available' attribute to enclosing actor
14 | private let transport: any ClaudeTransport
15 | private let options: ClaudeAgentOptions
:
26 | private(set) var initializationResult: JSONValue?
27 |
28 | public init(
| `- note: add '@available' attribute to enclosing initializer
29 | transport: any ClaudeTransport,
30 | options: ClaudeAgentOptions = ClaudeAgentOptions(),
31 | controlTimeout: Duration = .seconds(60)
| `- error: 'seconds' is only available in iOS 16.0 or newer
32 | ) {
33 | self.transport = transport
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:15:18: error: 'Duration' is only available in iOS 16.0 or newer
8 | }
9 |
10 | protocol ClaudeCommandRunning: Sendable {
| `- note: add '@available' attribute to enclosing protocol
11 | func run(
| `- note: add '@available' attribute to enclosing instance method
12 | executableURL: URL,
13 | arguments: [String],
14 | environment: [String: String],
15 | timeout: Duration
| `- error: 'Duration' is only available in iOS 16.0 or newer
16 | ) async throws -> CommandResult
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:64:18: error: 'Duration' is only available in iOS 16.0 or newer
57 | }
58 |
59 | struct FoundationClaudeCommandRunner: ClaudeCommandRunning {
| `- note: add '@available' attribute to enclosing struct
60 | func run(
| `- note: add '@available' attribute to enclosing instance method
61 | executableURL: URL,
62 | arguments: [String],
63 | environment: [String: String],
64 | timeout: Duration
| `- error: 'Duration' is only available in iOS 16.0 or newer
65 | ) async throws -> CommandResult {
66 | let process = Process()
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:109:26: error: cannot find type 'Process' in scope
107 |
108 | private final class CommandCancellationHandle: @unchecked Sendable {
109 | private let process: Process
| `- error: cannot find type 'Process' in scope
110 | private let lock = NSLock()
111 |
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:112:19: error: cannot find type 'Process' in scope
110 | private let lock = NSLock()
111 |
112 | init(process: Process) {
| `- error: cannot find type 'Process' in scope
113 | self.process = process
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:169:40: error: cannot find type 'Process' in scope
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| `- error: cannot find type 'Process' in scope
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift:169:58: error: 'Duration' is only available in iOS 16.0 or newer
167 | }
168 |
169 | private func waitForProcess(_ process: Process, timeout: Duration) async throws {
| | `- error: 'Duration' is only available in iOS 16.0 or newer
| `- note: add '@available' attribute to enclosing global function
170 | let clock = ContinuousClock()
171 | let deadline = clock.now.advanced(by: timeout)
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessConfiguration.swift:35:41: error: 'Duration' is only available in iOS 16.0 or newer
27 | }
28 |
29 | public struct ClaudeProcessConfiguration: Sendable, Equatable {
| `- note: add '@available' attribute to enclosing struct
30 | public let executableURL: URL
31 | public let arguments: [String]
:
33 | public let currentDirectoryURL: URL?
34 | public let maxFrameBytes: Int
35 | public let gracefulShutdownTimeout: Duration
| `- error: 'Duration' is only available in iOS 16.0 or newer
36 | public let terminateTimeout: Duration
37 |
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessConfiguration.swift:36:34: error: 'Duration' is only available in iOS 16.0 or newer
27 | }
28 |
29 | public struct ClaudeProcessConfiguration: Sendable, Equatable {
| `- note: add '@available' attribute to enclosing struct
30 | public let executableURL: URL
31 | public let arguments: [String]
:
34 | public let maxFrameBytes: Int
35 | public let gracefulShutdownTimeout: Duration
36 | public let terminateTimeout: Duration
| `- error: 'Duration' is only available in iOS 16.0 or newer
37 |
38 | public var redactedCommand: [String] {
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessConfiguration.swift:48:34: error: 'Duration' is only available in iOS 16.0 or newer
27 | }
28 |
29 | public struct ClaudeProcessConfiguration: Sendable, Equatable {
| `- note: add '@available' attribute to enclosing struct
30 | public let executableURL: URL
31 | public let arguments: [String]
:
40 | }
41 |
42 | public init(
| `- note: add '@available' attribute to enclosing initializer
43 | executableURL: URL,
44 | extraArguments: [String] = [],
:
46 | currentDirectoryURL: URL? = nil,
47 | maxFrameBytes: Int = 1_048_576,
48 | gracefulShutdownTimeout: Duration = .seconds(5),
| `- error: 'Duration' is only available in iOS 16.0 or newer
49 | terminateTimeout: Duration = .seconds(5)
50 | ) throws {
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessConfiguration.swift:49:27: error: 'Duration' is only available in iOS 16.0 or newer
27 | }
28 |
29 | public struct ClaudeProcessConfiguration: Sendable, Equatable {
| `- note: add '@available' attribute to enclosing struct
30 | public let executableURL: URL
31 | public let arguments: [String]
:
40 | }
41 |
42 | public init(
| `- note: add '@available' attribute to enclosing initializer
43 | executableURL: URL,
44 | extraArguments: [String] = [],
:
47 | maxFrameBytes: Int = 1_048_576,
48 | gracefulShutdownTimeout: Duration = .seconds(5),
49 | terminateTimeout: Duration = .seconds(5)
| `- error: 'Duration' is only available in iOS 16.0 or newer
50 | ) throws {
51 | let reservedArguments: Set<String> = [
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessConfiguration.swift:48:46: error: 'seconds' is only available in iOS 16.0 or newer
27 | }
28 |
29 | public struct ClaudeProcessConfiguration: Sendable, Equatable {
| `- note: add '@available' attribute to enclosing struct
30 | public let executableURL: URL
31 | public let arguments: [String]
:
40 | }
41 |
42 | public init(
| `- note: add '@available' attribute to enclosing initializer
43 | executableURL: URL,
44 | extraArguments: [String] = [],
:
46 | currentDirectoryURL: URL? = nil,
47 | maxFrameBytes: Int = 1_048_576,
48 | gracefulShutdownTimeout: Duration = .seconds(5),
| `- error: 'seconds' is only available in iOS 16.0 or newer
49 | terminateTimeout: Duration = .seconds(5)
50 | ) throws {
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessConfiguration.swift:49:39: error: 'seconds' is only available in iOS 16.0 or newer
27 | }
28 |
29 | public struct ClaudeProcessConfiguration: Sendable, Equatable {
| `- note: add '@available' attribute to enclosing struct
30 | public let executableURL: URL
31 | public let arguments: [String]
:
40 | }
41 |
42 | public init(
| `- note: add '@available' attribute to enclosing initializer
43 | executableURL: URL,
44 | extraArguments: [String] = [],
:
47 | maxFrameBytes: Int = 1_048_576,
48 | gracefulShutdownTimeout: Duration = .seconds(5),
49 | terminateTimeout: Duration = .seconds(5)
| `- error: 'seconds' is only available in iOS 16.0 or newer
50 | ) throws {
51 | let reservedArguments: Set<String> = [
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessTransport.swift:16:26: error: cannot find type 'Process' in scope
14 | private let versionChecker: ClaudeCLIVersionChecker
15 | private var state: State = .idle
16 | private var process: Process?
| `- error: cannot find type 'Process' in scope
17 | private var stdinHandle: FileHandle?
18 | private var stdoutTask: Task<Void, Never>?
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessTransport.swift:289:41: error: cannot find type 'Process' in scope
287 | }
288 |
289 | private func waitForExit(_ process: Process, timeout: Duration) async -> Bool {
| `- error: cannot find type 'Process' in scope
290 | let clock = ContinuousClock()
291 | let deadline = clock.now.advanced(by: timeout)
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessTransport.swift:289:59: error: 'Duration' is only available in iOS 16.0 or newer
2 | import Foundation
3 |
4 | public actor ClaudeProcessTransport: ClaudeTransport {
| `- note: add '@available' attribute to enclosing actor
5 | enum State: Sendable, Equatable {
6 | case idle
:
287 | }
288 |
289 | private func waitForExit(_ process: Process, timeout: Duration) async -> Bool {
| | `- error: 'Duration' is only available in iOS 16.0 or newer
| `- note: add '@available' attribute to enclosing instance method
290 | let clock = ContinuousClock()
291 | let deadline = clock.now.advanced(by: timeout)
Failed frontend command:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/ClaudeAgentSDK.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Core/ClaudeAgentDiagnostic.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Core/ClaudeAgentError.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Core/ClaudeRedactor.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Core/JSONValue+Accessors.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Core/JSONValue.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Messages/ClaudeContentBlock.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Messages/ClaudeMessage.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Session/ClaudeAgentOptions.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Session/ClaudeAgentSession.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Session/ClaudeSdkTool.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCLIProvider.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCLIVersion.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeCommandRunner.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessConfiguration.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessTransport.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeTransport.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/NDJSONFramer.swift -target arm64-apple-ios15.0 -disable-cross-import-overlay-search -swift-module-cross-import Darwin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/Darwin.swiftcrossimport/xlocale.swiftoverlay -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/iPhoneOS.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/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK-dependencies-1.json -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS27.0.sdk -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS27.0.sdk/Developer/Library/Frameworks -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -no-color-diagnostics -Xcc -fno-color-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -profile-generate -profile-coverage-mapping -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/iphoneos27.0-24A430-e829b21a6f8c9b70876ba0858053c04440ceaa042ed91876912b2eeea4e3aa14.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name ClaudeAgentSDK -package-name spi_builder_workspace -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK_const_extract_protocols.json -disable-clang-spi -clang-target arm64-apple-ios27.0 -target-sdk-version 27.0 -target-sdk-name iphoneos27.0 -in-process-plugin-server-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -emit-module-doc-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ClaudeAgentSDK.build/Debug-iphoneos/ClaudeAgentSDK-t.build/Objects-normal/arm64/ClaudeAgentSDK.abi.json
SwiftCompile normal arm64 (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftCompile normal arm64 Compiling\ ClaudeProcessConfiguration.swift,\ ClaudeProcessTransport.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessConfiguration.swift /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessTransport.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessConfiguration.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ClaudeProcessConfiguration.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ClaudeAgentSDK/Transport/ClaudeProcessTransport.swift (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ClaudeProcessTransport.swift
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
2026-09-26 00:44:59.025 xcodebuild[722:4243] [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\ ClaudeAgentSDK (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
SwiftCompile normal arm64 (in target 'ClaudeAgentSDK' from project 'ClaudeAgentSDK')
Building workspace ClaudeAgentSDK with scheme ClaudeAgentSDK
(3 failures)
BUILD FAILURE 6.4 iOS