Build Information
Failed to build FoundationModelsKit, reference 2.0.0 (691a96), with Swift 6.4 for watchOS using Xcode 27.0 on 12 Oct 2026 09:44:35 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 FoundationModelsKit -destination generic/platform=watchOSBuild Log
========================================
RunAll
========================================
Builder version: 5.1.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/divyaravitech/FoundationModelsKit.git
Reference: 2.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/divyaravitech/FoundationModelsKit
* tag 2.0.0 -> FETCH_HEAD
HEAD is now at 691a965 Rename sendMessage/streamMessage to respond(to:)/streamResponse(to:)
Cloned https://github.com/divyaravitech/FoundationModelsKit.git
Revision (git rev-parse @):
691a965deafc558fde738f2175766ac7eaea62f9
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/divyaravitech/FoundationModelsKit.git at 2.0.0
========================================
Build
========================================
Selected platform: watchOS
Swift version: 6.4
Building package at path: $PWD
https://github.com/divyaravitech/FoundationModelsKit.git
Command line invocation:
/Applications/Xcode-27.0.0.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -resolvePackageDependencies
Resolve Package Graph
Resolve Package Graph
Resolved source packages:
FoundationModelsKit: /Users/admin/builder/spi-builder-workspace
resolved source packages: FoundationModelsKit
2026-10-12 05:43:53.319 xcodebuild[529:3042] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
{
"dependencies" : [
],
"manifest_display_name" : "FoundationModelsKit",
"name" : "FoundationModelsKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "15.0"
},
{
"name" : "ios",
"version" : "18.0"
},
{
"name" : "watchos",
"version" : "11.0"
},
{
"name" : "tvos",
"version" : "18.0"
},
{
"name" : "visionos",
"version" : "2.0"
}
],
"products" : [
{
"name" : "FoundationModelsKit",
"targets" : [
"FoundationModelsKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"6"
],
"targets" : [
{
"c99name" : "FoundationModelsKitTests",
"module_type" : "SwiftTarget",
"name" : "FoundationModelsKitTests",
"path" : "Tests/FoundationModelsKitTests",
"sources" : [
"FoundationModelsKitTests.swift"
],
"target_dependencies" : [
"FoundationModelsKit"
],
"type" : "test"
},
{
"c99name" : "FoundationModelsKit",
"module_type" : "SwiftTarget",
"name" : "FoundationModelsKit",
"path" : "Sources/FoundationModelsKit",
"product_memberships" : [
"FoundationModelsKit"
],
"sources" : [
"AnthropicLanguageModel.swift",
"ConversationStore.swift",
"DynamicProfileBuilder.swift",
"EvaluationSuite.swift",
"GeminiLanguageModel.swift",
"LanguageModelProviding.swift",
"MockLanguageModel.swift",
"ModelRouter.swift",
"OnDeviceLanguageModel.swift",
"OnDeviceToolBridge.swift",
"OpenAILanguageModel.swift",
"RegionalAvailability.swift",
"RetryPolicy.swift",
"SDKIntegration.swift",
"TokenEstimator.swift",
"Tool.swift"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
{
"workspace" : {
"name" : "FoundationModelsKit",
"schemes" : [
"FoundationModelsKit"
]
}
}
2026-10-12 05:44:25.419 xcodebuild[626:3860] [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 FoundationModelsKit -destination generic/platform=watchOS
Command line invocation:
/Applications/Xcode-27.0.0.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath /Users/admin/builder/spi-builder-workspace/.derivedData build -scheme FoundationModelsKit -destination generic/platform=watchOS
Resolve Package Graph
Resolved source packages:
FoundationModelsKit: /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 'FoundationModelsKit-product' in project 'FoundationModelsKit'
➜ Explicit dependency on target 'FoundationModelsKit' in project 'FoundationModelsKit'
Target 'FoundationModelsKit' in project 'FoundationModelsKit' (no dependencies)
GatherProvisioningInputs
CreateBuildDescription
ExecuteExternalTool /Applications/Xcode-27.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -isysroot /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -x c -c /dev/null
ExecuteExternalTool /Applications/Xcode-27.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc --version
ExecuteExternalTool /Applications/Xcode-27.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld -version_details
ReadFileContents /Applications/Xcode-27.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/share/docc/features.json
Build description signature: 57b39cb41ca218e04a11d040c89fc958
Build description path: /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/XCBuildData/57b39cb41ca218e04a11d040c89fc958.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.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c044b9db9bc9c079ee3c7b5f3373b13d10bc.sdkstatcache
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Applications/Xcode-27.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -o /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c044b9db9bc9c079ee3c7b5f3373b13d10bc.sdkstatcache
CreateBuildDirectory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-create-build-directory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos
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/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/EagerLinkingTBDs/Debug-watchos
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-watchos
CreateBuildDirectory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/PackageFrameworks
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-create-build-directory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/PackageFrameworks
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/FoundationModelsKit.modulemap (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/FoundationModelsKit.modulemap
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64/FoundationModelsKit.SwiftFileList (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64/FoundationModelsKit.SwiftFileList
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64/FoundationModelsKit.SwiftConstValuesFileList (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64/FoundationModelsKit.SwiftConstValuesFileList
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64_32/FoundationModelsKit-OutputFileMap.json (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64_32/FoundationModelsKit-OutputFileMap.json
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64_32/FoundationModelsKit.SwiftFileList (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64_32/FoundationModelsKit.SwiftFileList
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64_32/FoundationModelsKit_const_extract_protocols.json (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64_32/FoundationModelsKit_const_extract_protocols.json
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64/FoundationModelsKit_const_extract_protocols.json (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64/FoundationModelsKit_const_extract_protocols.json
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64_32/FoundationModelsKit.LinkFileList (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64_32/FoundationModelsKit.LinkFileList
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64_32/FoundationModelsKit.SwiftConstValuesFileList (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64_32/FoundationModelsKit.SwiftConstValuesFileList
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64/FoundationModelsKit.LinkFileList (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64/FoundationModelsKit.LinkFileList
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64/FoundationModelsKit-OutputFileMap.json (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64/FoundationModelsKit-OutputFileMap.json
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/FoundationModelsKit.DependencyStaticMetadataFileList (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/FoundationModelsKit.DependencyStaticMetadataFileList
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/FoundationModelsKit.DependencyMetadataFileList (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/FoundationModelsKit.DependencyMetadataFileList
Copy /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/GeneratedModuleMaps-watchos/FoundationModelsKit.modulemap /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/FoundationModelsKit.modulemap (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
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/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/FoundationModelsKit.modulemap /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/GeneratedModuleMaps-watchos
SwiftDriver FoundationModelsKit normal arm64_32 com.apple.xcode.tools.swift.compiler (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftDriver -- /Applications/Xcode-27.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -parse-as-library -module-name FoundationModelsKit -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64_32/FoundationModelsKit.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -DXcode -enable-upcoming-feature ApproachableConcurrency -plugin-path /Applications/Xcode-27.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -target arm64_32-apple-watchos11.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -profile-coverage-mapping -profile-generate -enable-testing -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -swift-version 6 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c044b9db9bc9c079ee3c7b5f3373b13d10bc.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64_32/FoundationModelsKit-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/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64_32/FoundationModelsKit.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64_32/FoundationModelsKit-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/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64_32/FoundationModelsKit_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/DerivedSources-normal/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/DerivedSources/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-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/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64_32/FoundationModelsKit-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftDriver FoundationModelsKit normal arm64 com.apple.xcode.tools.swift.compiler (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftDriver -- /Applications/Xcode-27.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -parse-as-library -module-name FoundationModelsKit -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64/FoundationModelsKit.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -DXcode -enable-upcoming-feature ApproachableConcurrency -plugin-path /Applications/Xcode-27.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -target arm64-apple-watchos11.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -profile-coverage-mapping -profile-generate -enable-testing -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -swift-version 6 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c044b9db9bc9c079ee3c7b5f3373b13d10bc.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64/FoundationModelsKit-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/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64/FoundationModelsKit.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64/FoundationModelsKit-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/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64/FoundationModelsKit_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-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/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64/FoundationModelsKit-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/_Builtin_stddef-8XIMPUPOCEKW43OJT6UFVW8YW.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/ptrauth-75D2Q69SEU6TW661FC9T39G5T.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_float-5MBXF8DKVHQBRUJNM16KVMIQC.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_AvailabilityInternal-F1LNUT9MK1HRUMT1GHZHQ1RLU.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_stdbool-EIIY79CJBKY0CNDO2RQTENME.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_stdarg-ES3WE6BADGYLJ1IBGV298L0ED.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/ptrcheck-2FDVY6UR0H40GBA6U2HDPB8SM.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_SwiftConcurrencyShims-2Q4BGBV41YFU7T8ZZ1LYOHHM8.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/SwiftShims-D5RMRWG63RILSKWQ5872PCQT2.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_stdbool-DHPYJAMN6KTVWD1S31Z90I6C9.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_float-BJZXUCJSIX9PRVEKM14BGMJVY.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_stddef-8VT85WZQKGACA68JZ07TP0Y0J.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_AvailabilityInternal-BQQUK8V8SWJHTHJSVFJK2AKWW.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/ptrcheck-D11ZNSDYZRFEJJA53KWXZ702P.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/SwiftShims-4MNCVKZ1HKINJ0ZSNUCRO6CZ8.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_stdarg-102WX5NAUESOXIXJSPGYHVM9S.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_SwiftConcurrencyShims-AOFF2AEQJRI8DA66TEQ347NE7.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/ptrauth-88RK1G9DAGJXQFP1AN1WL17RR.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_DarwinFoundation1-C5AXMEYDFVMWI0AXBXZS13K0J.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_DarwinFoundation1-88RVECTIWIA3ZONBBWQIW1DJZ.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_limits-D5KOXTTAIGWXE3DL0Q1NI089X.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_DarwinFoundation2-NYVMEQYGHBE0ZIL3ZJZSOEY1.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_limits-C136SD3CEQ3KB0CFUK32YJB19.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_DarwinFoundation2-44ZJFO85HR0BJ749M999B8LPA.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/sys_types-ASTFSZ1DRYRY331XT4Z9KV73D.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_stdint-74NMYF5YUKK9X44SQHE76VBIQ.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/string_h-4CSQOUX7AGTYYYGKC8M276OI9.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/string_h-5JIQF7F6QR5PADS6CIIQIXRFW.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/sys_types-C3M5EX2O95KRM34PBYN44HPBI.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_stdint-2Z10U0EB6591SMUSD1HCK6PI.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_DarwinFoundation3-ANTW1ITQ0J9JQTH8BRFBZWI1Q.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_DarwinFoundation3-F4AQTMWJJP4FVAZ08SHRNZXAM.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_inttypes-6I92U55H5N26FLV9VYV8R3I6O.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_inttypes-BMQHYJQS69SCBJY3RFS64DBTV.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/Darwin-98ESD9QN5COC9NNCABFONVFP8.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/Darwin-7UEVD02CQP1PVIKBVFQ49O3SD.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/ObjectiveC-DV0JE3OUNWO3O3UE1N347RY55.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/ObjectiveC-AJI1K6ZMESMAXDSQ8OKHJ72H7.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/os_object-1JFESJBLQUD4RS3VL4N1KYEDU.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/os_object-5TY9JM8WCIDWZD1H148JEBV2F.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/os_workgroup-65XNBX18CBCXC0KTSN0M6UNVT.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/os_workgroup-LKX7LZYC1IUZO27QQLWUANJE.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/Dispatch-6D65D6EIW4AHX08JGF4J74MV9.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/Dispatch-7K60THHWK3C851QMSWUUEEC2Q.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/CoreFoundation-8MLEPC68IRDBIK6YTJL7DNZH.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/XPC-46U120GB61ZMOBIJJ669AYIXF.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/CoreFoundation-89G5WX03B78NXYKER48PGSMVI.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/XPC-CZIZYD8A7DCOUWGZRQ4DKZKSL.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/CoreGraphics-5PBZKZGKBP8I3OSEUDR963CHA.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/Security-B8EWSEMP4Z3IE155A3ILBKM2V.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/Security-C9W0029I4749M0FMG9UVPZUKU.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/CoreGraphics-46XFDT15OA1UMAVA4P068AUXB.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/Foundation-93OAIR4R5IDN1SU1A5KNY63PA.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/CoreVideo-44ANF38Y9COF9WNQ4Z4TVH3HT.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/ImageIO-6G5FIB3S3GGGAFTGDFSO62V0X.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/Foundation-63KC4JQT5I8XAZ72WSG0A8C35.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/ImageIO-EURB1OIS39T0DELCDL4LJ4QH8.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/CoreVideo-982R0MIIT4QZ7CNNYJRWDCVJZ.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/UniformTypeIdentifiers-3ROI8ZFKQNP9FEJCLTAB3G3S6.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/UniformTypeIdentifiers-7HPV1K0BFGWF49HRB05L12Y0G.pcm
SwiftCompile normal arm64 Compiling\ RetryPolicy.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/RetryPolicy.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/RetryPolicy.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile RetryPolicy.swift
SwiftEmitModule normal arm64 Emitting\ module\ for\ FoundationModelsKit (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift:100:42: error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
20 | /// )
21 | /// ```
22 | public struct OnDeviceLanguageModel: LanguageModelProviding, Sendable {
| `- note: add '@available' attribute to enclosing struct
23 |
24 | private let tools: [any ModelTool]
:
98 | #if canImport(FoundationModels)
99 | @available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, visionOS 26.0, *)
100 | private func makeSession() throws -> LanguageModelSession {
| `- error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
101 | guard !tools.isEmpty else { return LanguageModelSession() }
102 | return LanguageModelSession(tools: try tools.map(OnDeviceToolAdapter.init))
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:14:76: error: 'GenerationSchema' is only available in watchOS 27.0 or newer
12 | enum DynamicSchemaBuilder {
13 |
14 | static func schema(named name: String, from json: JSONValue) throws -> GenerationSchema {
| | `- error: 'GenerationSchema' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing static method
15 | try GenerationSchema(root: node(named: name, from: json), dependencies: [])
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:18:67: error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| | `- error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:77:27: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
75 | @available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, visionOS 26.0, *)
76 | struct OnDeviceToolAdapter: FoundationModels.Tool {
77 | typealias Arguments = GeneratedContent
| | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing type alias
78 | typealias Output = String
79 |
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:82:21: error: 'GenerationSchema' is only available in watchOS 27.0 or newer
80 | let name: String
81 | let description: String
82 | let parameters: GenerationSchema
| `- error: 'GenerationSchema' is only available in watchOS 27.0 or newer
83 |
84 | private let underlying: any ModelTool
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:93:26: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
91 | }
92 |
93 | func call(arguments: GeneratedContent) async throws -> String {
| | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing instance method
94 | let decoded = (try? JSONValue.decode(Data(arguments.jsonString.utf8))) ?? .object([:])
95 | return try await underlying.call(arguments: decoded)
Failed frontend command:
/Applications/Xcode-27.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/AnthropicLanguageModel.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/ConversationStore.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/DynamicProfileBuilder.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/EvaluationSuite.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/GeminiLanguageModel.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/LanguageModelProviding.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/MockLanguageModel.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/ModelRouter.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OpenAILanguageModel.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/RegionalAvailability.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/RetryPolicy.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/SDKIntegration.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/TokenEstimator.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/Tool.swift -target arm64-apple-watchos11.0 -module-can-import-version FoundationModels 2.0.68.1 0 -disable-cross-import-overlay-search -load-resolved-plugin /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libFoundationModelsMacros.dylib\#/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#FoundationModelsMacros -load-resolved-plugin /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.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/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64/FoundationModelsKit-dependencies-1.json -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/Developer/Library/Frameworks -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -no-color-diagnostics -Xcc -fno-color-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=5 -profile-generate -profile-coverage-mapping -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-upcoming-feature ApproachableConcurrency -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c044b9db9bc9c079ee3c7b5f3373b13d10bc.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name FoundationModelsKit -package-name spi_builder_workspace -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64/FoundationModelsKit_const_extract_protocols.json -disable-clang-spi -clang-target arm64-apple-watchos27.0 -target-sdk-version 27.0 -target-sdk-name watchos27.0 -in-process-plugin-server-path /Applications/Xcode-27.0.0.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/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64/FoundationModelsKit.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64/FoundationModelsKit.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64/FoundationModelsKit-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64/FoundationModelsKit-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64/FoundationModelsKit-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64/FoundationModelsKit.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64/FoundationModelsKit.abi.json
SwiftCompile normal arm64 (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftCompile normal arm64 Compiling\ OpenAILanguageModel.swift,\ RegionalAvailability.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OpenAILanguageModel.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/RegionalAvailability.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OpenAILanguageModel.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile OpenAILanguageModel.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/RegionalAvailability.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile RegionalAvailability.swift
SwiftCompile normal arm64 Compiling\ MockLanguageModel.swift,\ ModelRouter.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/MockLanguageModel.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/ModelRouter.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/MockLanguageModel.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile MockLanguageModel.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/ModelRouter.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ModelRouter.swift
SwiftCompile normal arm64 Compiling\ TokenEstimator.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/TokenEstimator.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/TokenEstimator.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile TokenEstimator.swift
SwiftCompile normal arm64 Compiling\ AnthropicLanguageModel.swift,\ ConversationStore.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/AnthropicLanguageModel.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/ConversationStore.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/AnthropicLanguageModel.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile AnthropicLanguageModel.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/ConversationStore.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ConversationStore.swift
SwiftCompile normal arm64 Compiling\ GeminiLanguageModel.swift,\ LanguageModelProviding.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/GeminiLanguageModel.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/LanguageModelProviding.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/GeminiLanguageModel.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile GeminiLanguageModel.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/LanguageModelProviding.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile LanguageModelProviding.swift
SwiftCompile normal arm64 Compiling\ DynamicProfileBuilder.swift,\ EvaluationSuite.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/DynamicProfileBuilder.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/EvaluationSuite.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/DynamicProfileBuilder.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile DynamicProfileBuilder.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/EvaluationSuite.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile EvaluationSuite.swift
SwiftCompile normal arm64 Compiling\ OnDeviceLanguageModel.swift,\ OnDeviceToolBridge.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift:100:42: error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
20 | /// )
21 | /// ```
22 | public struct OnDeviceLanguageModel: LanguageModelProviding, Sendable {
| `- note: add '@available' attribute to enclosing struct
23 |
24 | private let tools: [any ModelTool]
:
98 | #if canImport(FoundationModels)
99 | @available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, visionOS 26.0, *)
100 | private func makeSession() throws -> LanguageModelSession {
| `- error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
101 | guard !tools.isEmpty else { return LanguageModelSession() }
102 | return LanguageModelSession(tools: try tools.map(OnDeviceToolAdapter.init))
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift:45:44: error: 'respond(to:options:)' is only available in watchOS 27.0 or newer
20 | /// )
21 | /// ```
22 | public struct OnDeviceLanguageModel: LanguageModelProviding, Sendable {
| `- note: add '@available' attribute to enclosing struct
23 |
24 | private let tools: [any ModelTool]
:
36 | public var supportsTools: Bool { !tools.isEmpty }
37 |
38 | public func respond(to request: ModelRequest) async throws -> ModelResponse {
| `- note: add '@available' attribute to enclosing instance method
39 | #if canImport(FoundationModels)
40 | guard #available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, visionOS 26.0, *) else {
:
43 | do {
44 | let session = try makeSession()
45 | let result = try await session.respond(to: request.content)
| |- error: 'respond(to:options:)' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
46 | // The framework exposes no token counts, so these are estimates.
47 | return ModelResponse(
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift:45:17: error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
20 | /// )
21 | /// ```
22 | public struct OnDeviceLanguageModel: LanguageModelProviding, Sendable {
| `- note: add '@available' attribute to enclosing struct
23 |
24 | private let tools: [any ModelTool]
:
36 | public var supportsTools: Bool { !tools.isEmpty }
37 |
38 | public func respond(to request: ModelRequest) async throws -> ModelResponse {
| `- note: add '@available' attribute to enclosing instance method
39 | #if canImport(FoundationModels)
40 | guard #available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, visionOS 26.0, *) else {
:
43 | do {
44 | let session = try makeSession()
45 | let result = try await session.respond(to: request.content)
| |- error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
46 | // The framework exposes no token counts, so these are estimates.
47 | return ModelResponse(
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift:48:33: error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
20 | /// )
21 | /// ```
22 | public struct OnDeviceLanguageModel: LanguageModelProviding, Sendable {
| `- note: add '@available' attribute to enclosing struct
23 |
24 | private let tools: [any ModelTool]
:
36 | public var supportsTools: Bool { !tools.isEmpty }
37 |
38 | public func respond(to request: ModelRequest) async throws -> ModelResponse {
| `- note: add '@available' attribute to enclosing instance method
39 | #if canImport(FoundationModels)
40 | guard #available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, visionOS 26.0, *) else {
:
46 | // The framework exposes no token counts, so these are estimates.
47 | return ModelResponse(
48 | content: result.content,
| |- error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
49 | stopReason: "end_turn",
50 | usage: .estimated(
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift:52:45: error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
20 | /// )
21 | /// ```
22 | public struct OnDeviceLanguageModel: LanguageModelProviding, Sendable {
| `- note: add '@available' attribute to enclosing struct
23 |
24 | private let tools: [any ModelTool]
:
36 | public var supportsTools: Bool { !tools.isEmpty }
37 |
38 | public func respond(to request: ModelRequest) async throws -> ModelResponse {
| `- note: add '@available' attribute to enclosing instance method
39 | #if canImport(FoundationModels)
40 | guard #available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, visionOS 26.0, *) else {
:
50 | usage: .estimated(
51 | promptChars: request.content.count,
52 | completionChars: result.content.count
| |- error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
53 | )
54 | )
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift:77:29: error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
20 | /// )
21 | /// ```
22 | public struct OnDeviceLanguageModel: LanguageModelProviding, Sendable {
| `- note: add '@available' attribute to enclosing struct
23 |
24 | private let tools: [any ModelTool]
:
61 | }
62 |
63 | public func streamResponse(to request: ModelRequest) -> AsyncThrowingStream<String, Error> {
| `- note: add '@available' attribute to enclosing instance method
64 | AsyncThrowingStream { continuation in
65 | let task = Task {
:
75 | try Task.checkCancellation()
76 | // Yield only the delta since the last snapshot.
77 | let full = snapshot.content
| |- error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
78 | let delta = String(full.dropFirst(previous.count))
79 | if !delta.isEmpty { continuation.yield(delta) }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift:74:55: error: 'streamResponse(to:options:)' is only available in watchOS 27.0 or newer
20 | /// )
21 | /// ```
22 | public struct OnDeviceLanguageModel: LanguageModelProviding, Sendable {
| `- note: add '@available' attribute to enclosing struct
23 |
24 | private let tools: [any ModelTool]
:
61 | }
62 |
63 | public func streamResponse(to request: ModelRequest) -> AsyncThrowingStream<String, Error> {
| `- note: add '@available' attribute to enclosing instance method
64 | AsyncThrowingStream { continuation in
65 | let task = Task {
:
72 | let session = try makeSession()
73 | var previous = ""
74 | for try await snapshot in session.streamResponse(to: request.content) {
| |- error: 'streamResponse(to:options:)' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
75 | try Task.checkCancellation()
76 | // Yield only the delta since the last snapshot.
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift:77:45: error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
20 | /// )
21 | /// ```
22 | public struct OnDeviceLanguageModel: LanguageModelProviding, Sendable {
| `- note: add '@available' attribute to enclosing struct
23 |
24 | private let tools: [any ModelTool]
:
61 | }
62 |
63 | public func streamResponse(to request: ModelRequest) -> AsyncThrowingStream<String, Error> {
| `- note: add '@available' attribute to enclosing instance method
64 | AsyncThrowingStream { continuation in
65 | let task = Task {
:
75 | try Task.checkCancellation()
76 | // Yield only the delta since the last snapshot.
77 | let full = snapshot.content
| |- error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
78 | let delta = String(full.dropFirst(previous.count))
79 | if !delta.isEmpty { continuation.yield(delta) }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift:74:21: error: for-in loop requires 'LanguageModelSession.ResponseStream<String>' to conform to 'AsyncSequence', which is only available in watchOS 27.0 or newer
20 | /// )
21 | /// ```
22 | public struct OnDeviceLanguageModel: LanguageModelProviding, Sendable {
| `- note: add '@available' attribute to enclosing struct
23 |
24 | private let tools: [any ModelTool]
:
61 | }
62 |
63 | public func streamResponse(to request: ModelRequest) -> AsyncThrowingStream<String, Error> {
| `- note: add '@available' attribute to enclosing instance method
64 | AsyncThrowingStream { continuation in
65 | let task = Task {
:
72 | let session = try makeSession()
73 | var previous = ""
74 | for try await snapshot in session.streamResponse(to: request.content) {
| |- error: for-in loop requires 'LanguageModelSession.ResponseStream<String>' to conform to 'AsyncSequence', which is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
75 | try Task.checkCancellation()
76 | // Yield only the delta since the last snapshot.
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift:101:44: error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
20 | /// )
21 | /// ```
22 | public struct OnDeviceLanguageModel: LanguageModelProviding, Sendable {
| `- note: add '@available' attribute to enclosing struct
23 |
24 | private let tools: [any ModelTool]
:
99 | @available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, visionOS 26.0, *)
100 | private func makeSession() throws -> LanguageModelSession {
101 | guard !tools.isEmpty else { return LanguageModelSession() }
| |- error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
102 | return LanguageModelSession(tools: try tools.map(OnDeviceToolAdapter.init))
103 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift:101:44: error: 'init(model:tools:instructions:)' is unavailable in watchOS
99 | @available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, visionOS 26.0, *)
100 | private func makeSession() throws -> LanguageModelSession {
101 | guard !tools.isEmpty else { return LanguageModelSession() }
| `- error: 'init(model:tools:instructions:)' is unavailable in watchOS
102 | return LanguageModelSession(tools: try tools.map(OnDeviceToolAdapter.init))
103 | }
FoundationModels.LanguageModelSession.init:2:20: note: 'init(model:tools:instructions:)' has been explicitly marked unavailable here
1 | class LanguageModelSession {
2 | public convenience init(model: SystemLanguageModel = .default, tools: [any Tool] = [], instructions: Instructions? = nil)}
| `- note: 'init(model:tools:instructions:)' has been explicitly marked unavailable here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift:102:16: error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
20 | /// )
21 | /// ```
22 | public struct OnDeviceLanguageModel: LanguageModelProviding, Sendable {
| `- note: add '@available' attribute to enclosing struct
23 |
24 | private let tools: [any ModelTool]
:
100 | private func makeSession() throws -> LanguageModelSession {
101 | guard !tools.isEmpty else { return LanguageModelSession() }
102 | return LanguageModelSession(tools: try tools.map(OnDeviceToolAdapter.init))
| |- error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
103 | }
104 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift:102:16: error: 'init(model:tools:instructions:)' is unavailable in watchOS
100 | private func makeSession() throws -> LanguageModelSession {
101 | guard !tools.isEmpty else { return LanguageModelSession() }
102 | return LanguageModelSession(tools: try tools.map(OnDeviceToolAdapter.init))
| `- error: 'init(model:tools:instructions:)' is unavailable in watchOS
103 | }
104 | #endif
FoundationModels.LanguageModelSession.init:2:20: note: 'init(model:tools:instructions:)' has been explicitly marked unavailable here
1 | class LanguageModelSession {
2 | public convenience init(model: SystemLanguageModel = .default, tools: [any Tool] = [], instructions: Instructions? = nil)}
| `- note: 'init(model:tools:instructions:)' has been explicitly marked unavailable here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift:112:20: error: 'SystemLanguageModel' is unavailable in watchOS
110 | #if canImport(FoundationModels)
111 | if #available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, visionOS 26.0, *) {
112 | return SystemLanguageModel.default.isAvailable
| `- error: 'SystemLanguageModel' is unavailable in watchOS
113 | }
114 | return false
FoundationModels.SystemLanguageModel:4:20: note: 'SystemLanguageModel' has been explicitly marked unavailable here
2 | @available(tvOS, unavailable)
3 | @available(watchOS, unavailable)
4 | final public class SystemLanguageModel : Sendable {
| `- note: 'SystemLanguageModel' has been explicitly marked unavailable here
5 | @objc deinit
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift:112:40: error: 'default' is unavailable in watchOS
110 | #if canImport(FoundationModels)
111 | if #available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, visionOS 26.0, *) {
112 | return SystemLanguageModel.default.isAvailable
| `- error: 'default' is unavailable in watchOS
113 | }
114 | return false
FoundationModels.SystemLanguageModel.default:5:20: note: 'default' has been explicitly marked unavailable here
3 | @available(tvOS, unavailable)
4 | @available(watchOS, unavailable)
5 | public class var `default`: SystemLanguageModel { get }}
| `- note: 'default' has been explicitly marked unavailable here
6 |
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift:112:48: error: 'isAvailable' is unavailable in watchOS
110 | #if canImport(FoundationModels)
111 | if #available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, visionOS 26.0, *) {
112 | return SystemLanguageModel.default.isAvailable
| `- error: 'isAvailable' is unavailable in watchOS
113 | }
114 | return false
FoundationModels.SystemLanguageModel.isAvailable:2:18: note: 'isAvailable' has been explicitly marked unavailable here
1 | class SystemLanguageModel {
2 | final public var isAvailable: Bool { get }}
| `- note: 'isAvailable' has been explicitly marked unavailable here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:14:76: error: 'GenerationSchema' is only available in watchOS 27.0 or newer
12 | enum DynamicSchemaBuilder {
13 |
14 | static func schema(named name: String, from json: JSONValue) throws -> GenerationSchema {
| | `- error: 'GenerationSchema' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing static method
15 | try GenerationSchema(root: node(named: name, from: json), dependencies: [])
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:18:67: error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| | `- error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:77:27: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
75 | @available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, visionOS 26.0, *)
76 | struct OnDeviceToolAdapter: FoundationModels.Tool {
77 | typealias Arguments = GeneratedContent
| | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing type alias
78 | typealias Output = String
79 |
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:82:21: error: 'GenerationSchema' is only available in watchOS 27.0 or newer
80 | let name: String
81 | let description: String
82 | let parameters: GenerationSchema
| `- error: 'GenerationSchema' is only available in watchOS 27.0 or newer
83 |
84 | private let underlying: any ModelTool
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:93:26: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
91 | }
92 |
93 | func call(arguments: GeneratedContent) async throws -> String {
| | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing instance method
94 | let decoded = (try? JSONValue.decode(Data(arguments.jsonString.utf8))) ?? .object([:])
95 | return try await underlying.call(arguments: decoded)
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:15:13: error: 'GenerationSchema' is only available in watchOS 27.0 or newer
12 | enum DynamicSchemaBuilder {
13 |
14 | static func schema(named name: String, from json: JSONValue) throws -> GenerationSchema {
| `- note: add '@available' attribute to enclosing static method
15 | try GenerationSchema(root: node(named: name, from: json), dependencies: [])
| |- error: 'GenerationSchema' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:15:13: error: 'init(root:dependencies:)' is only available in watchOS 27.0 or newer
12 | enum DynamicSchemaBuilder {
13 |
14 | static func schema(named name: String, from json: JSONValue) throws -> GenerationSchema {
| `- note: add '@available' attribute to enclosing static method
15 | try GenerationSchema(root: node(named: name, from: json), dependencies: [])
| |- error: 'init(root:dependencies:)' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:24:24: error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
:
22 | let labels = cases.compactMap(\.stringValue)
23 | if !labels.isEmpty {
24 | return DynamicGenerationSchema(name: name, description: description, anyOf: labels)
| |- error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:24:24: error: 'init(name:description:anyOf:)' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
:
22 | let labels = cases.compactMap(\.stringValue)
23 | if !labels.isEmpty {
24 | return DynamicGenerationSchema(name: name, description: description, anyOf: labels)
| |- error: 'init(name:description:anyOf:)' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:30:30: error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
:
28 | switch json["type"]?.stringValue {
29 | case "object":
30 | var properties: [DynamicGenerationSchema.Property] = []
| |- error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
31 | var required: Set<String> = []
32 | if case .array(let names) = json["required"] {
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:40:25: error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
:
38 | guard let value = fields[key] else { continue }
39 | properties.append(
40 | DynamicGenerationSchema.Property(
| |- error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
41 | name: key,
42 | description: value["description"]?.stringValue,
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:40:49: error: 'init(name:description:schema:isOptional:)' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
:
38 | guard let value = fields[key] else { continue }
39 | properties.append(
40 | DynamicGenerationSchema.Property(
| |- error: 'init(name:description:schema:isOptional:)' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
41 | name: key,
42 | description: value["description"]?.stringValue,
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:49:20: error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
:
47 | }
48 | }
49 | return DynamicGenerationSchema(name: name, description: description, properties: properties)
| |- error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
50 |
51 | case "array":
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:49:20: error: 'init(name:description:properties:)' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
:
47 | }
48 | }
49 | return DynamicGenerationSchema(name: name, description: description, properties: properties)
| |- error: 'init(name:description:properties:)' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
50 |
51 | case "array":
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:53:20: error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
:
51 | case "array":
52 | let items = json["items"] ?? .object(["type": .string("string")])
53 | return DynamicGenerationSchema(
| |- error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
54 | arrayOf: node(named: "\(name)Item", from: items),
55 | minimumElements: nil,
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:53:20: error: 'init(arrayOf:minimumElements:maximumElements:)' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
:
51 | case "array":
52 | let items = json["items"] ?? .object(["type": .string("string")])
53 | return DynamicGenerationSchema(
| |- error: 'init(arrayOf:minimumElements:maximumElements:)' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
54 | arrayOf: node(named: "\(name)Item", from: items),
55 | minimumElements: nil,
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:60:20: error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
:
58 |
59 | case "integer":
60 | return DynamicGenerationSchema(type: Int.self, guides: [])
| |- error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
61 | case "number":
62 | return DynamicGenerationSchema(type: Double.self, guides: [])
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:60:20: error: 'init(type:guides:)' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
:
58 |
59 | case "integer":
60 | return DynamicGenerationSchema(type: Int.self, guides: [])
| |- error: 'init(type:guides:)' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
61 | case "number":
62 | return DynamicGenerationSchema(type: Double.self, guides: [])
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:62:20: error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
:
60 | return DynamicGenerationSchema(type: Int.self, guides: [])
61 | case "number":
62 | return DynamicGenerationSchema(type: Double.self, guides: [])
| |- error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
63 | case "boolean":
64 | return DynamicGenerationSchema(type: Bool.self, guides: [])
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:62:20: error: 'init(type:guides:)' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
:
60 | return DynamicGenerationSchema(type: Int.self, guides: [])
61 | case "number":
62 | return DynamicGenerationSchema(type: Double.self, guides: [])
| |- error: 'init(type:guides:)' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
63 | case "boolean":
64 | return DynamicGenerationSchema(type: Bool.self, guides: [])
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:64:20: error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
:
62 | return DynamicGenerationSchema(type: Double.self, guides: [])
63 | case "boolean":
64 | return DynamicGenerationSchema(type: Bool.self, guides: [])
| |- error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
65 | default:
66 | return DynamicGenerationSchema(type: String.self, guides: [])
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:64:20: error: 'init(type:guides:)' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
:
62 | return DynamicGenerationSchema(type: Double.self, guides: [])
63 | case "boolean":
64 | return DynamicGenerationSchema(type: Bool.self, guides: [])
| |- error: 'init(type:guides:)' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
65 | default:
66 | return DynamicGenerationSchema(type: String.self, guides: [])
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:66:20: error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
:
64 | return DynamicGenerationSchema(type: Bool.self, guides: [])
65 | default:
66 | return DynamicGenerationSchema(type: String.self, guides: [])
| |- error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
67 | }
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:66:20: error: 'init(type:guides:)' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
:
64 | return DynamicGenerationSchema(type: Bool.self, guides: [])
65 | default:
66 | return DynamicGenerationSchema(type: String.self, guides: [])
| |- error: 'init(type:guides:)' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
67 | }
68 | }
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile OnDeviceLanguageModel.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile OnDeviceToolBridge.swift
SwiftCompile normal arm64 Compiling\ SDKIntegration.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/SDKIntegration.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/SDKIntegration.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile SDKIntegration.swift
SwiftEmitModule normal arm64_32 Emitting\ module\ for\ FoundationModelsKit (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
SwiftCompile normal arm64_32 (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
2026-10-12 05:44:26.965 xcodebuild[627:3901] [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\ FoundationModelsKit (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
SwiftCompile normal arm64 (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
Building workspace FoundationModelsKit with scheme FoundationModelsKit
(3 failures)
Command line invocation:
/Applications/Xcode-27.0.0.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -resolvePackageDependencies
Resolve Package Graph
Resolved source packages:
FoundationModelsKit: /Users/admin/builder/spi-builder-workspace
resolved source packages: FoundationModelsKit
2026-10-12 05:44:31.968 xcodebuild[713:4257] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
{
"dependencies" : [
],
"manifest_display_name" : "FoundationModelsKit",
"name" : "FoundationModelsKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "15.0"
},
{
"name" : "ios",
"version" : "18.0"
},
{
"name" : "watchos",
"version" : "11.0"
},
{
"name" : "tvos",
"version" : "18.0"
},
{
"name" : "visionos",
"version" : "2.0"
}
],
"products" : [
{
"name" : "FoundationModelsKit",
"targets" : [
"FoundationModelsKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"6"
],
"targets" : [
{
"c99name" : "FoundationModelsKitTests",
"module_type" : "SwiftTarget",
"name" : "FoundationModelsKitTests",
"path" : "Tests/FoundationModelsKitTests",
"sources" : [
"FoundationModelsKitTests.swift"
],
"target_dependencies" : [
"FoundationModelsKit"
],
"type" : "test"
},
{
"c99name" : "FoundationModelsKit",
"module_type" : "SwiftTarget",
"name" : "FoundationModelsKit",
"path" : "Sources/FoundationModelsKit",
"product_memberships" : [
"FoundationModelsKit"
],
"sources" : [
"AnthropicLanguageModel.swift",
"ConversationStore.swift",
"DynamicProfileBuilder.swift",
"EvaluationSuite.swift",
"GeminiLanguageModel.swift",
"LanguageModelProviding.swift",
"MockLanguageModel.swift",
"ModelRouter.swift",
"OnDeviceLanguageModel.swift",
"OnDeviceToolBridge.swift",
"OpenAILanguageModel.swift",
"RegionalAvailability.swift",
"RetryPolicy.swift",
"SDKIntegration.swift",
"TokenEstimator.swift",
"Tool.swift"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
{
"workspace" : {
"name" : "FoundationModelsKit",
"schemes" : [
"FoundationModelsKit"
]
}
}
2026-10-12 05:44:33.257 xcodebuild[721:4323] [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 FoundationModelsKit -destination generic/platform=watchOS
Command line invocation:
/Applications/Xcode-27.0.0.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath /Users/admin/builder/spi-builder-workspace/.derivedData build -scheme FoundationModelsKit -destination generic/platform=watchOS
Resolve Package Graph
Resolved source packages:
FoundationModelsKit: /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 'FoundationModelsKit-product' in project 'FoundationModelsKit'
➜ Explicit dependency on target 'FoundationModelsKit' in project 'FoundationModelsKit'
Target 'FoundationModelsKit' in project 'FoundationModelsKit' (no dependencies)
GatherProvisioningInputs
CreateBuildDescription
ClangStatCache /Applications/Xcode-27.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c044b9db9bc9c079ee3c7b5f3373b13d10bc.sdkstatcache
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Applications/Xcode-27.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -o /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c044b9db9bc9c079ee3c7b5f3373b13d10bc.sdkstatcache
SwiftDriver FoundationModelsKit normal arm64 com.apple.xcode.tools.swift.compiler (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftDriver -- /Applications/Xcode-27.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -parse-as-library -module-name FoundationModelsKit -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64/FoundationModelsKit.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -DXcode -enable-upcoming-feature ApproachableConcurrency -plugin-path /Applications/Xcode-27.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -target arm64-apple-watchos11.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -profile-coverage-mapping -profile-generate -enable-testing -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -swift-version 6 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c044b9db9bc9c079ee3c7b5f3373b13d10bc.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64/FoundationModelsKit-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/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64/FoundationModelsKit.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64/FoundationModelsKit-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/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64/FoundationModelsKit_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-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/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64/FoundationModelsKit-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftDriver FoundationModelsKit normal arm64_32 com.apple.xcode.tools.swift.compiler (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftDriver -- /Applications/Xcode-27.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -parse-as-library -module-name FoundationModelsKit -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64_32/FoundationModelsKit.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -DXcode -enable-upcoming-feature ApproachableConcurrency -plugin-path /Applications/Xcode-27.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -target arm64_32-apple-watchos11.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -profile-coverage-mapping -profile-generate -enable-testing -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -swift-version 6 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c044b9db9bc9c079ee3c7b5f3373b13d10bc.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64_32/FoundationModelsKit-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/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64_32/FoundationModelsKit.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64_32/FoundationModelsKit-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/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64_32/FoundationModelsKit_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/DerivedSources-normal/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/DerivedSources/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-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/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64_32/FoundationModelsKit-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftEmitModule normal arm64_32 Emitting\ module\ for\ FoundationModelsKit (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift:100:42: error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
20 | /// )
21 | /// ```
22 | public struct OnDeviceLanguageModel: LanguageModelProviding, Sendable {
| `- note: add '@available' attribute to enclosing struct
23 |
24 | private let tools: [any ModelTool]
:
98 | #if canImport(FoundationModels)
99 | @available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, visionOS 26.0, *)
100 | private func makeSession() throws -> LanguageModelSession {
| `- error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
101 | guard !tools.isEmpty else { return LanguageModelSession() }
102 | return LanguageModelSession(tools: try tools.map(OnDeviceToolAdapter.init))
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:14:76: error: 'GenerationSchema' is only available in watchOS 27.0 or newer
12 | enum DynamicSchemaBuilder {
13 |
14 | static func schema(named name: String, from json: JSONValue) throws -> GenerationSchema {
| | `- error: 'GenerationSchema' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing static method
15 | try GenerationSchema(root: node(named: name, from: json), dependencies: [])
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:18:67: error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| | `- error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:77:27: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
75 | @available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, visionOS 26.0, *)
76 | struct OnDeviceToolAdapter: FoundationModels.Tool {
77 | typealias Arguments = GeneratedContent
| | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing type alias
78 | typealias Output = String
79 |
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:82:21: error: 'GenerationSchema' is only available in watchOS 27.0 or newer
80 | let name: String
81 | let description: String
82 | let parameters: GenerationSchema
| `- error: 'GenerationSchema' is only available in watchOS 27.0 or newer
83 |
84 | private let underlying: any ModelTool
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:93:26: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
91 | }
92 |
93 | func call(arguments: GeneratedContent) async throws -> String {
| | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing instance method
94 | let decoded = (try? JSONValue.decode(Data(arguments.jsonString.utf8))) ?? .object([:])
95 | return try await underlying.call(arguments: decoded)
Failed frontend command:
SwiftCompile normal arm64_32 (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Applications/Xcode-27.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/AnthropicLanguageModel.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/ConversationStore.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/DynamicProfileBuilder.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/EvaluationSuite.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/GeminiLanguageModel.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/LanguageModelProviding.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/MockLanguageModel.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/ModelRouter.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OpenAILanguageModel.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/RegionalAvailability.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/RetryPolicy.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/SDKIntegration.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/TokenEstimator.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/Tool.swift -target arm64_32-apple-watchos11.0 -module-can-import-version FoundationModels 2.0.68.1 0 -disable-cross-import-overlay-search -load-resolved-plugin /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libFoundationModelsMacros.dylib\#/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#FoundationModelsMacros -load-resolved-plugin /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.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/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64_32/FoundationModelsKit-dependencies-2.json -enable-objc-interop -sdk /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/Developer/Library/Frameworks -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -no-color-diagnostics -Xcc -fno-color-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=5 -profile-generate -profile-coverage-mapping -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-upcoming-feature ApproachableConcurrency -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c044b9db9bc9c079ee3c7b5f3373b13d10bc.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/DerivedSources-normal/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/DerivedSources/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name FoundationModelsKit -package-name spi_builder_workspace -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64_32/FoundationModelsKit_const_extract_protocols.json -disable-clang-spi -clang-target arm64_32-apple-watchos27.0 -target-sdk-version 27.0 -target-sdk-name watchos27.0 -in-process-plugin-server-path /Applications/Xcode-27.0.0.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/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64_32/FoundationModelsKit.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64_32/FoundationModelsKit.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64_32/FoundationModelsKit-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64_32/FoundationModelsKit-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64_32/FoundationModelsKit-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64_32/FoundationModelsKit.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/FoundationModelsKit.build/Debug-watchos/FoundationModelsKit-t.build/Objects-normal/arm64_32/FoundationModelsKit.abi.json
SwiftCompile normal arm64_32 Compiling\ OpenAILanguageModel.swift,\ RegionalAvailability.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OpenAILanguageModel.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/RegionalAvailability.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OpenAILanguageModel.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile OpenAILanguageModel.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/RegionalAvailability.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile RegionalAvailability.swift
SwiftCompile normal arm64_32 Compiling\ OnDeviceLanguageModel.swift,\ OnDeviceToolBridge.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift:100:42: error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
20 | /// )
21 | /// ```
22 | public struct OnDeviceLanguageModel: LanguageModelProviding, Sendable {
| `- note: add '@available' attribute to enclosing struct
23 |
24 | private let tools: [any ModelTool]
:
98 | #if canImport(FoundationModels)
99 | @available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, visionOS 26.0, *)
100 | private func makeSession() throws -> LanguageModelSession {
| `- error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
101 | guard !tools.isEmpty else { return LanguageModelSession() }
102 | return LanguageModelSession(tools: try tools.map(OnDeviceToolAdapter.init))
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift:45:44: error: 'respond(to:options:)' is only available in watchOS 27.0 or newer
20 | /// )
21 | /// ```
22 | public struct OnDeviceLanguageModel: LanguageModelProviding, Sendable {
| `- note: add '@available' attribute to enclosing struct
23 |
24 | private let tools: [any ModelTool]
:
36 | public var supportsTools: Bool { !tools.isEmpty }
37 |
38 | public func respond(to request: ModelRequest) async throws -> ModelResponse {
| `- note: add '@available' attribute to enclosing instance method
39 | #if canImport(FoundationModels)
40 | guard #available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, visionOS 26.0, *) else {
:
43 | do {
44 | let session = try makeSession()
45 | let result = try await session.respond(to: request.content)
| |- error: 'respond(to:options:)' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
46 | // The framework exposes no token counts, so these are estimates.
47 | return ModelResponse(
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift:45:17: error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
20 | /// )
21 | /// ```
22 | public struct OnDeviceLanguageModel: LanguageModelProviding, Sendable {
| `- note: add '@available' attribute to enclosing struct
23 |
24 | private let tools: [any ModelTool]
:
36 | public var supportsTools: Bool { !tools.isEmpty }
37 |
38 | public func respond(to request: ModelRequest) async throws -> ModelResponse {
| `- note: add '@available' attribute to enclosing instance method
39 | #if canImport(FoundationModels)
40 | guard #available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, visionOS 26.0, *) else {
:
43 | do {
44 | let session = try makeSession()
45 | let result = try await session.respond(to: request.content)
| |- error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
46 | // The framework exposes no token counts, so these are estimates.
47 | return ModelResponse(
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift:48:33: error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
20 | /// )
21 | /// ```
22 | public struct OnDeviceLanguageModel: LanguageModelProviding, Sendable {
| `- note: add '@available' attribute to enclosing struct
23 |
24 | private let tools: [any ModelTool]
:
36 | public var supportsTools: Bool { !tools.isEmpty }
37 |
38 | public func respond(to request: ModelRequest) async throws -> ModelResponse {
| `- note: add '@available' attribute to enclosing instance method
39 | #if canImport(FoundationModels)
40 | guard #available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, visionOS 26.0, *) else {
:
46 | // The framework exposes no token counts, so these are estimates.
47 | return ModelResponse(
48 | content: result.content,
| |- error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
49 | stopReason: "end_turn",
50 | usage: .estimated(
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift:52:45: error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
20 | /// )
21 | /// ```
22 | public struct OnDeviceLanguageModel: LanguageModelProviding, Sendable {
| `- note: add '@available' attribute to enclosing struct
23 |
24 | private let tools: [any ModelTool]
:
36 | public var supportsTools: Bool { !tools.isEmpty }
37 |
38 | public func respond(to request: ModelRequest) async throws -> ModelResponse {
| `- note: add '@available' attribute to enclosing instance method
39 | #if canImport(FoundationModels)
40 | guard #available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, visionOS 26.0, *) else {
:
50 | usage: .estimated(
51 | promptChars: request.content.count,
52 | completionChars: result.content.count
| |- error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
53 | )
54 | )
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift:77:29: error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
20 | /// )
21 | /// ```
22 | public struct OnDeviceLanguageModel: LanguageModelProviding, Sendable {
| `- note: add '@available' attribute to enclosing struct
23 |
24 | private let tools: [any ModelTool]
:
61 | }
62 |
63 | public func streamResponse(to request: ModelRequest) -> AsyncThrowingStream<String, Error> {
| `- note: add '@available' attribute to enclosing instance method
64 | AsyncThrowingStream { continuation in
65 | let task = Task {
:
75 | try Task.checkCancellation()
76 | // Yield only the delta since the last snapshot.
77 | let full = snapshot.content
| |- error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
78 | let delta = String(full.dropFirst(previous.count))
79 | if !delta.isEmpty { continuation.yield(delta) }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift:74:55: error: 'streamResponse(to:options:)' is only available in watchOS 27.0 or newer
20 | /// )
21 | /// ```
22 | public struct OnDeviceLanguageModel: LanguageModelProviding, Sendable {
| `- note: add '@available' attribute to enclosing struct
23 |
24 | private let tools: [any ModelTool]
:
61 | }
62 |
63 | public func streamResponse(to request: ModelRequest) -> AsyncThrowingStream<String, Error> {
| `- note: add '@available' attribute to enclosing instance method
64 | AsyncThrowingStream { continuation in
65 | let task = Task {
:
72 | let session = try makeSession()
73 | var previous = ""
74 | for try await snapshot in session.streamResponse(to: request.content) {
| |- error: 'streamResponse(to:options:)' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
75 | try Task.checkCancellation()
76 | // Yield only the delta since the last snapshot.
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift:77:45: error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
20 | /// )
21 | /// ```
22 | public struct OnDeviceLanguageModel: LanguageModelProviding, Sendable {
| `- note: add '@available' attribute to enclosing struct
23 |
24 | private let tools: [any ModelTool]
:
61 | }
62 |
63 | public func streamResponse(to request: ModelRequest) -> AsyncThrowingStream<String, Error> {
| `- note: add '@available' attribute to enclosing instance method
64 | AsyncThrowingStream { continuation in
65 | let task = Task {
:
75 | try Task.checkCancellation()
76 | // Yield only the delta since the last snapshot.
77 | let full = snapshot.content
| |- error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
78 | let delta = String(full.dropFirst(previous.count))
79 | if !delta.isEmpty { continuation.yield(delta) }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift:74:21: error: for-in loop requires 'LanguageModelSession.ResponseStream<String>' to conform to 'AsyncSequence', which is only available in watchOS 27.0 or newer
20 | /// )
21 | /// ```
22 | public struct OnDeviceLanguageModel: LanguageModelProviding, Sendable {
| `- note: add '@available' attribute to enclosing struct
23 |
24 | private let tools: [any ModelTool]
:
61 | }
62 |
63 | public func streamResponse(to request: ModelRequest) -> AsyncThrowingStream<String, Error> {
| `- note: add '@available' attribute to enclosing instance method
64 | AsyncThrowingStream { continuation in
65 | let task = Task {
:
72 | let session = try makeSession()
73 | var previous = ""
74 | for try await snapshot in session.streamResponse(to: request.content) {
| |- error: for-in loop requires 'LanguageModelSession.ResponseStream<String>' to conform to 'AsyncSequence', which is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
75 | try Task.checkCancellation()
76 | // Yield only the delta since the last snapshot.
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift:101:44: error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
20 | /// )
21 | /// ```
22 | public struct OnDeviceLanguageModel: LanguageModelProviding, Sendable {
| `- note: add '@available' attribute to enclosing struct
23 |
24 | private let tools: [any ModelTool]
:
99 | @available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, visionOS 26.0, *)
100 | private func makeSession() throws -> LanguageModelSession {
101 | guard !tools.isEmpty else { return LanguageModelSession() }
| |- error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
102 | return LanguageModelSession(tools: try tools.map(OnDeviceToolAdapter.init))
103 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift:101:44: error: 'init(model:tools:instructions:)' is unavailable in watchOS
99 | @available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, visionOS 26.0, *)
100 | private func makeSession() throws -> LanguageModelSession {
101 | guard !tools.isEmpty else { return LanguageModelSession() }
| `- error: 'init(model:tools:instructions:)' is unavailable in watchOS
102 | return LanguageModelSession(tools: try tools.map(OnDeviceToolAdapter.init))
103 | }
FoundationModels.LanguageModelSession.init:2:20: note: 'init(model:tools:instructions:)' has been explicitly marked unavailable here
1 | class LanguageModelSession {
2 | public convenience init(model: SystemLanguageModel = .default, tools: [any Tool] = [], instructions: Instructions? = nil)}
| `- note: 'init(model:tools:instructions:)' has been explicitly marked unavailable here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift:102:16: error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
20 | /// )
21 | /// ```
22 | public struct OnDeviceLanguageModel: LanguageModelProviding, Sendable {
| `- note: add '@available' attribute to enclosing struct
23 |
24 | private let tools: [any ModelTool]
:
100 | private func makeSession() throws -> LanguageModelSession {
101 | guard !tools.isEmpty else { return LanguageModelSession() }
102 | return LanguageModelSession(tools: try tools.map(OnDeviceToolAdapter.init))
| |- error: 'LanguageModelSession' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
103 | }
104 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift:102:16: error: 'init(model:tools:instructions:)' is unavailable in watchOS
100 | private func makeSession() throws -> LanguageModelSession {
101 | guard !tools.isEmpty else { return LanguageModelSession() }
102 | return LanguageModelSession(tools: try tools.map(OnDeviceToolAdapter.init))
| `- error: 'init(model:tools:instructions:)' is unavailable in watchOS
103 | }
104 | #endif
FoundationModels.LanguageModelSession.init:2:20: note: 'init(model:tools:instructions:)' has been explicitly marked unavailable here
1 | class LanguageModelSession {
2 | public convenience init(model: SystemLanguageModel = .default, tools: [any Tool] = [], instructions: Instructions? = nil)}
| `- note: 'init(model:tools:instructions:)' has been explicitly marked unavailable here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift:112:20: error: 'SystemLanguageModel' is unavailable in watchOS
110 | #if canImport(FoundationModels)
111 | if #available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, visionOS 26.0, *) {
112 | return SystemLanguageModel.default.isAvailable
| `- error: 'SystemLanguageModel' is unavailable in watchOS
113 | }
114 | return false
FoundationModels.SystemLanguageModel:4:20: note: 'SystemLanguageModel' has been explicitly marked unavailable here
2 | @available(tvOS, unavailable)
3 | @available(watchOS, unavailable)
4 | final public class SystemLanguageModel : Sendable {
| `- note: 'SystemLanguageModel' has been explicitly marked unavailable here
5 | @objc deinit
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift:112:40: error: 'default' is unavailable in watchOS
110 | #if canImport(FoundationModels)
111 | if #available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, visionOS 26.0, *) {
112 | return SystemLanguageModel.default.isAvailable
| `- error: 'default' is unavailable in watchOS
113 | }
114 | return false
FoundationModels.SystemLanguageModel.default:5:20: note: 'default' has been explicitly marked unavailable here
3 | @available(tvOS, unavailable)
4 | @available(watchOS, unavailable)
5 | public class var `default`: SystemLanguageModel { get }}
| `- note: 'default' has been explicitly marked unavailable here
6 |
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift:112:48: error: 'isAvailable' is unavailable in watchOS
110 | #if canImport(FoundationModels)
111 | if #available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, visionOS 26.0, *) {
112 | return SystemLanguageModel.default.isAvailable
| `- error: 'isAvailable' is unavailable in watchOS
113 | }
114 | return false
FoundationModels.SystemLanguageModel.isAvailable:2:18: note: 'isAvailable' has been explicitly marked unavailable here
1 | class SystemLanguageModel {
2 | final public var isAvailable: Bool { get }}
| `- note: 'isAvailable' has been explicitly marked unavailable here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:14:76: error: 'GenerationSchema' is only available in watchOS 27.0 or newer
12 | enum DynamicSchemaBuilder {
13 |
14 | static func schema(named name: String, from json: JSONValue) throws -> GenerationSchema {
| | `- error: 'GenerationSchema' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing static method
15 | try GenerationSchema(root: node(named: name, from: json), dependencies: [])
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:18:67: error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| | `- error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:77:27: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
75 | @available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, visionOS 26.0, *)
76 | struct OnDeviceToolAdapter: FoundationModels.Tool {
77 | typealias Arguments = GeneratedContent
| | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing type alias
78 | typealias Output = String
79 |
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:82:21: error: 'GenerationSchema' is only available in watchOS 27.0 or newer
80 | let name: String
81 | let description: String
82 | let parameters: GenerationSchema
| `- error: 'GenerationSchema' is only available in watchOS 27.0 or newer
83 |
84 | private let underlying: any ModelTool
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:93:26: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
91 | }
92 |
93 | func call(arguments: GeneratedContent) async throws -> String {
| | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| `- note: add '@available' attribute to enclosing instance method
94 | let decoded = (try? JSONValue.decode(Data(arguments.jsonString.utf8))) ?? .object([:])
95 | return try await underlying.call(arguments: decoded)
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:15:13: error: 'GenerationSchema' is only available in watchOS 27.0 or newer
12 | enum DynamicSchemaBuilder {
13 |
14 | static func schema(named name: String, from json: JSONValue) throws -> GenerationSchema {
| `- note: add '@available' attribute to enclosing static method
15 | try GenerationSchema(root: node(named: name, from: json), dependencies: [])
| |- error: 'GenerationSchema' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:15:13: error: 'init(root:dependencies:)' is only available in watchOS 27.0 or newer
12 | enum DynamicSchemaBuilder {
13 |
14 | static func schema(named name: String, from json: JSONValue) throws -> GenerationSchema {
| `- note: add '@available' attribute to enclosing static method
15 | try GenerationSchema(root: node(named: name, from: json), dependencies: [])
| |- error: 'init(root:dependencies:)' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:24:24: error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
:
22 | let labels = cases.compactMap(\.stringValue)
23 | if !labels.isEmpty {
24 | return DynamicGenerationSchema(name: name, description: description, anyOf: labels)
| |- error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:24:24: error: 'init(name:description:anyOf:)' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
:
22 | let labels = cases.compactMap(\.stringValue)
23 | if !labels.isEmpty {
24 | return DynamicGenerationSchema(name: name, description: description, anyOf: labels)
| |- error: 'init(name:description:anyOf:)' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:30:30: error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
:
28 | switch json["type"]?.stringValue {
29 | case "object":
30 | var properties: [DynamicGenerationSchema.Property] = []
| |- error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
31 | var required: Set<String> = []
32 | if case .array(let names) = json["required"] {
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:40:25: error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
:
38 | guard let value = fields[key] else { continue }
39 | properties.append(
40 | DynamicGenerationSchema.Property(
| |- error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
41 | name: key,
42 | description: value["description"]?.stringValue,
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:40:49: error: 'init(name:description:schema:isOptional:)' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
:
38 | guard let value = fields[key] else { continue }
39 | properties.append(
40 | DynamicGenerationSchema.Property(
| |- error: 'init(name:description:schema:isOptional:)' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
41 | name: key,
42 | description: value["description"]?.stringValue,
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:49:20: error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
:
47 | }
48 | }
49 | return DynamicGenerationSchema(name: name, description: description, properties: properties)
| |- error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
50 |
51 | case "array":
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:49:20: error: 'init(name:description:properties:)' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
:
47 | }
48 | }
49 | return DynamicGenerationSchema(name: name, description: description, properties: properties)
| |- error: 'init(name:description:properties:)' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
50 |
51 | case "array":
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:53:20: error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
:
51 | case "array":
52 | let items = json["items"] ?? .object(["type": .string("string")])
53 | return DynamicGenerationSchema(
| |- error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
54 | arrayOf: node(named: "\(name)Item", from: items),
55 | minimumElements: nil,
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:53:20: error: 'init(arrayOf:minimumElements:maximumElements:)' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
:
51 | case "array":
52 | let items = json["items"] ?? .object(["type": .string("string")])
53 | return DynamicGenerationSchema(
| |- error: 'init(arrayOf:minimumElements:maximumElements:)' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
54 | arrayOf: node(named: "\(name)Item", from: items),
55 | minimumElements: nil,
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:60:20: error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
:
58 |
59 | case "integer":
60 | return DynamicGenerationSchema(type: Int.self, guides: [])
| |- error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
61 | case "number":
62 | return DynamicGenerationSchema(type: Double.self, guides: [])
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:60:20: error: 'init(type:guides:)' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
:
58 |
59 | case "integer":
60 | return DynamicGenerationSchema(type: Int.self, guides: [])
| |- error: 'init(type:guides:)' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
61 | case "number":
62 | return DynamicGenerationSchema(type: Double.self, guides: [])
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:62:20: error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
:
60 | return DynamicGenerationSchema(type: Int.self, guides: [])
61 | case "number":
62 | return DynamicGenerationSchema(type: Double.self, guides: [])
| |- error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
63 | case "boolean":
64 | return DynamicGenerationSchema(type: Bool.self, guides: [])
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:62:20: error: 'init(type:guides:)' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
:
60 | return DynamicGenerationSchema(type: Int.self, guides: [])
61 | case "number":
62 | return DynamicGenerationSchema(type: Double.self, guides: [])
| |- error: 'init(type:guides:)' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
63 | case "boolean":
64 | return DynamicGenerationSchema(type: Bool.self, guides: [])
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:64:20: error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
:
62 | return DynamicGenerationSchema(type: Double.self, guides: [])
63 | case "boolean":
64 | return DynamicGenerationSchema(type: Bool.self, guides: [])
| |- error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
65 | default:
66 | return DynamicGenerationSchema(type: String.self, guides: [])
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:64:20: error: 'init(type:guides:)' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
:
62 | return DynamicGenerationSchema(type: Double.self, guides: [])
63 | case "boolean":
64 | return DynamicGenerationSchema(type: Bool.self, guides: [])
| |- error: 'init(type:guides:)' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
65 | default:
66 | return DynamicGenerationSchema(type: String.self, guides: [])
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:66:20: error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
:
64 | return DynamicGenerationSchema(type: Bool.self, guides: [])
65 | default:
66 | return DynamicGenerationSchema(type: String.self, guides: [])
| |- error: 'DynamicGenerationSchema' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
67 | }
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift:66:20: error: 'init(type:guides:)' is only available in watchOS 27.0 or newer
16 | }
17 |
18 | static func node(named name: String, from json: JSONValue) -> DynamicGenerationSchema {
| `- note: add '@available' attribute to enclosing static method
19 | let description = json["description"]?.stringValue
20 |
:
64 | return DynamicGenerationSchema(type: Bool.self, guides: [])
65 | default:
66 | return DynamicGenerationSchema(type: String.self, guides: [])
| |- error: 'init(type:guides:)' is only available in watchOS 27.0 or newer
| `- note: add 'if #available' version check
67 | }
68 | }
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceLanguageModel.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile OnDeviceLanguageModel.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/OnDeviceToolBridge.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile OnDeviceToolBridge.swift
SwiftCompile normal arm64_32 Compiling\ MockLanguageModel.swift,\ ModelRouter.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/MockLanguageModel.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/ModelRouter.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/MockLanguageModel.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile MockLanguageModel.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/ModelRouter.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ModelRouter.swift
SwiftCompile normal arm64_32 Compiling\ RetryPolicy.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/RetryPolicy.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/RetryPolicy.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile RetryPolicy.swift
SwiftCompile normal arm64 Compiling\ AnthropicLanguageModel.swift,\ ConversationStore.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/AnthropicLanguageModel.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/ConversationStore.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/AnthropicLanguageModel.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile AnthropicLanguageModel.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/ConversationStore.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ConversationStore.swift
SwiftCompile normal arm64_32 Compiling\ Tool.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/Tool.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/Tool.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Tool.swift
SwiftCompile normal arm64_32 Compiling\ AnthropicLanguageModel.swift,\ ConversationStore.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/AnthropicLanguageModel.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/ConversationStore.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/AnthropicLanguageModel.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile AnthropicLanguageModel.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/ConversationStore.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ConversationStore.swift
SwiftCompile normal arm64 Compiling\ DynamicProfileBuilder.swift,\ EvaluationSuite.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/DynamicProfileBuilder.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/EvaluationSuite.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/DynamicProfileBuilder.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile DynamicProfileBuilder.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/EvaluationSuite.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile EvaluationSuite.swift
SwiftCompile normal arm64_32 Compiling\ DynamicProfileBuilder.swift,\ EvaluationSuite.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/DynamicProfileBuilder.swift /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/EvaluationSuite.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/DynamicProfileBuilder.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile DynamicProfileBuilder.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/FoundationModelsKit/EvaluationSuite.swift (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile EvaluationSuite.swift
SwiftEmitModule normal arm64 Emitting\ module\ for\ FoundationModelsKit (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
SwiftCompile normal arm64 (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
2026-10-12 05:44:34.231 xcodebuild[722:4357] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
** BUILD FAILED **
The following build commands failed:
SwiftCompile normal arm64_32 (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
SwiftEmitModule normal arm64_32 Emitting\ module\ for\ FoundationModelsKit (in target 'FoundationModelsKit' from project 'FoundationModelsKit')
Building workspace FoundationModelsKit with scheme FoundationModelsKit
(3 failures)
BUILD FAILURE 6.4 watchOS