Build Information
Failed to build DataCache, reference master (bcb54d), with Swift 6.4 for watchOS using Xcode 27.0 on 19 Sep 2026 02:11:03 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 DataCache -destination generic/platform=watchOSBuild Log
========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/huynguyencong/DataCache.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/huynguyencong/DataCache
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at bcb54d3 Update Podspec tag and package iOS version
Cloned https://github.com/huynguyencong/DataCache.git
Revision (git rev-parse @):
bcb54d313a6ab16fc3f8fa5884ec0f5f331c6ae3
SUCCESS checkout https://github.com/huynguyencong/DataCache.git at master
========================================
Build
========================================
Selected platform: watchOS
Swift version: 6.4
Building package at path: $PWD
https://github.com/huynguyencong/DataCache.git
Command line invocation:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -resolvePackageDependencies
Resolve Package Graph
Resolve Package Graph
Resolved source packages:
DataCache: /Users/admin/builder/spi-builder-workspace
resolved source packages: DataCache
2026-09-18 22:10:12.958 xcodebuild[529:3047] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
{
"dependencies" : [
],
"manifest_display_name" : "DataCache",
"name" : "DataCache",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.11"
},
{
"name" : "ios",
"version" : "13.0"
}
],
"products" : [
{
"name" : "DataCache",
"targets" : [
"DataCache"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "DataCache",
"module_type" : "SwiftTarget",
"name" : "DataCache",
"path" : "Sources",
"product_memberships" : [
"DataCache"
],
"sources" : [
"DataCache.swift",
"Dictionary+Cache.swift",
"String+MD5.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
{
"workspace" : {
"name" : "DataCache",
"schemes" : [
"DataCache"
]
}
}
2026-09-18 22:10:54.069 xcodebuild[652:4194] [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 DataCache -destination generic/platform=watchOS
Command line invocation:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath /Users/admin/builder/spi-builder-workspace/.derivedData build -scheme DataCache -destination generic/platform=watchOS
Resolve Package Graph
Resolved source packages:
DataCache: /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 'DataCache-product' in project 'DataCache'
➜ Explicit dependency on target 'DataCache' in project 'DataCache'
Target 'DataCache' in project 'DataCache' (no dependencies)
GatherProvisioningInputs
CreateBuildDescription
ExecuteExternalTool /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -isysroot /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -x c -c /dev/null
ExecuteExternalTool /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc --version
ExecuteExternalTool /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld -version_details
Build description signature: e878374f602105cf7b8945ebe64289e8
Build description path: /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/XCBuildData/e878374f602105cf7b8945ebe64289e8.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
ClangStatCache /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -o /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache
CreateBuildDirectory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-create-build-directory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex
CreateBuildDirectory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-create-build-directory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products
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
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/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/DataCache.build/Debug-watchos/DataCache-t.build/DataCache.modulemap (in target 'DataCache' from project 'DataCache')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/DataCache.modulemap
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64_32/DataCache_const_extract_protocols.json (in target 'DataCache' from project 'DataCache')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64_32/DataCache_const_extract_protocols.json
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64_32/DataCache.LinkFileList (in target 'DataCache' from project 'DataCache')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64_32/DataCache.LinkFileList
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64_32/DataCache-OutputFileMap.json (in target 'DataCache' from project 'DataCache')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64_32/DataCache-OutputFileMap.json
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64_32/DataCache.SwiftFileList (in target 'DataCache' from project 'DataCache')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64_32/DataCache.SwiftFileList
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64_32/DataCache.SwiftConstValuesFileList (in target 'DataCache' from project 'DataCache')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64_32/DataCache.SwiftConstValuesFileList
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64/DataCache_const_extract_protocols.json (in target 'DataCache' from project 'DataCache')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64/DataCache_const_extract_protocols.json
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64/DataCache.SwiftFileList (in target 'DataCache' from project 'DataCache')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64/DataCache.SwiftFileList
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64/DataCache.SwiftConstValuesFileList (in target 'DataCache' from project 'DataCache')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64/DataCache.SwiftConstValuesFileList
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64/DataCache.LinkFileList (in target 'DataCache' from project 'DataCache')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64/DataCache.LinkFileList
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64/DataCache-OutputFileMap.json (in target 'DataCache' from project 'DataCache')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64/DataCache-OutputFileMap.json
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/DataCache.DependencyStaticMetadataFileList (in target 'DataCache' from project 'DataCache')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/DataCache.DependencyStaticMetadataFileList
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/DataCache.DependencyMetadataFileList (in target 'DataCache' from project 'DataCache')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/DataCache.DependencyMetadataFileList
Copy /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/GeneratedModuleMaps-watchos/DataCache.modulemap /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/DataCache.modulemap (in target 'DataCache' from project 'DataCache')
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/DataCache.build/Debug-watchos/DataCache-t.build/DataCache.modulemap /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/GeneratedModuleMaps-watchos
SwiftDriver DataCache normal arm64_32 com.apple.xcode.tools.swift.compiler (in target 'DataCache' from project 'DataCache')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftDriver -- /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -parse-as-library -module-name DataCache -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64_32/DataCache.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -DXcode -plugin-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -target arm64_32-apple-watchos9.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -enable-testing -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -swift-version 5 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64_32/DataCache-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/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64_32/DataCache.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64_32/DataCache-dependency-scan.dia -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -emit-const-values -const-gather-protocols-list /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64_32/DataCache_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/DataCache.build/Debug-watchos/DataCache-t.build/DerivedSources-normal/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/DerivedSources/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-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/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64_32/DataCache-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftDriver DataCache normal arm64 com.apple.xcode.tools.swift.compiler (in target 'DataCache' from project 'DataCache')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftDriver -- /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -parse-as-library -module-name DataCache -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64/DataCache.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -DXcode -plugin-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -target arm64-apple-watchos9.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -enable-testing -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -swift-version 5 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64/DataCache-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/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64/DataCache.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64/DataCache-dependency-scan.dia -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -emit-const-values -const-gather-protocols-list /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64/DataCache_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/DataCache.build/Debug-watchos/DataCache-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-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/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64/DataCache-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-1FU30Y8SWFB7OUUHMJQH5J6FM.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_AvailabilityInternal-BUNV3UXM65NT37THI4W1AM0SF.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/ptrcheck-AIF0NDOYZ8ORBNHQAQR5NNB8M.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_stdarg-A7UU8LE6MP85SM26YO7PBZNUQ.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/ptrauth-3TZ9WJCGLYD25HQPWH4968ONX.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_stdbool-83J96QSOFE9VX04AAS6310UAE.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/SwiftShims-4MXFZPV6FEB0XBYXCGPWAMQGL.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_float-C0CW5Q4HGBQYKE77TC42IAFB5.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_stdbool-A967K8W8YUYEC9SN52KJ7OO88.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_stdarg-D305JG44A2WPI6CJY37X3QJE8.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_float-6KO8O3PEWRCA4WC6PPLOYO6WJ.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_AvailabilityInternal-244WAN3Z1QBT7PIA64EZEFY1R.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_stddef-H44EFHQX6XSS5MZ7QP6YJZ76.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/ptrcheck-7ELIH9BTIGVKX3UBITM9N72WD.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_SwiftConcurrencyShims-6RTBPQ03V7BM9SPRK8SUE055H.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/ptrauth-BFXF358ME5AK535N5A9Z766WU.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/SwiftShims-9CQQGWTSNTN9EB5NSHDWUJICH.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_SwiftConcurrencyShims-659N52XSKR5F0QSB880BH2FJR.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_DarwinFoundation1-7SPX3MD0HMP55E4OLNCPNDQ53.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_DarwinFoundation1-2GWF9RFMPLQW4PDHS3NARVI3G.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_limits-9GWPA2B0H20DYUNYHYCWKABJG.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_DarwinFoundation2-D0XAPJU49S5E9XMKYOFGSTB1Q.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_DarwinFoundation2-9MY8GOSYRO0M9MKNXF6D3MBNK.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_limits-3VKBU2AFTD65PAJZ5CJ3LHFM2.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/string_h-E6PRXK75PHIPCZFWOFCQ3QBMK.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/sys_types-2KXQLI78OUCDP779AE68GZJ2.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_stdint-8XMILLJZEGRN2XG7XZUXZ5RLX.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/sys_types-8TLLMW08ZJWDGIIPKOYFGHHZW.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/string_h-BFVLUQUSBZWYMLCU9QI7VZALW.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_stdint-1HMXWI3V0V4TXHRWZOMZGZ80Y.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_DarwinFoundation3-B97LRG0E9GON2NUE65TVG81HU.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_DarwinFoundation3-3DUTYQDQSD9HUAAVY947NMWOI.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_inttypes-3UQSCM7WNM9EK4HZML8TY5J3D.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_inttypes-D2KPCR4PEX9AQA33NGLUT5SBR.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/Darwin-3984OXKFNSPE77NT743WK8SEX.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/Darwin-3FVT1SKLN2ZQ5RVOABMTQBB34.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/ObjectiveC-72IVD3VS2RS8Q28D9PIMY0KQP.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/ObjectiveC-6IJNELR2E80E7LUKESVCP2KET.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/os_object-3SDKD7F87FTZ26OON37DRYT6O.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/os_object-5YWTC6L4756IWSTPGXS5NM0D0.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/os_workgroup-89GG5G7YC2D0ZTK6AZXXQ20DH.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/os_workgroup-5JHTPDMNBUNHLJI8LPHKQK1JK.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/Dispatch-1NLJOVAK60XP0DUB05XA59EIM.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/Dispatch-2P62F1T4XV63S4P99TUDTOK2Q.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/XPC-40DR0X1DHKGCV4J1IOLFS8MOU.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/CoreFoundation-8T2L24YC5NU7WO6WQJWRY7W08.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/CoreFoundation-8E6Y4BA3EXYKUGJ24GT9LGV3N.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/XPC-81Y45QFY96XYYFCW2GT6FY8S4.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/Security-6RZ6YBRU8WCUHRFFRVUK5WKMM.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/Security-D7TOWF88VWF67TB9HAFP5UWB1.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/Foundation-DLBKUSGXN8QHAT8W0OARR9S8A.pcm
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/Foundation-BJ2VQGI3OGR34500MEQ1VKHPH.pcm
SwiftCompile normal arm64 Compiling\ DataCache.swift /Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift (in target 'DataCache' from project 'DataCache')
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:22:47: error: cannot find type 'TimeInterval' in scope
20 | static let cacheDirectoryPrefix = "com.nch.cache."
21 | static let ioQueuePrefix = "com.nch.queue."
22 | static let defaultMaxCachePeriodInSecond: TimeInterval = 60 * 60 * 24 * 7 // a week
| `- error: cannot find type 'TimeInterval' in scope
23 |
24 | public static let instance = DataCache(name: "default")
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:28:20: error: cannot find 'NSCache' in scope
26 | let cachePath: String
27 |
28 | let memCache = NSCache<AnyObject, AnyObject>()
| `- error: cannot find 'NSCache' in scope
29 | let ioQueue: DispatchQueue
30 | let fileManager: FileManager
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:29:18: error: cannot find type 'DispatchQueue' in scope
27 |
28 | let memCache = NSCache<AnyObject, AnyObject>()
29 | let ioQueue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
30 | let fileManager: FileManager
31 |
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:30:22: error: cannot find type 'FileManager' in scope
28 | let memCache = NSCache<AnyObject, AnyObject>()
29 | let ioQueue: DispatchQueue
30 | let fileManager: FileManager
| `- error: cannot find type 'FileManager' in scope
31 |
32 | /// Name of cache
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:69:29: error: cannot find type 'Data' in scope
67 |
68 | /// Write data for key. This is an async operation.
69 | public func write(data: Data, forKey key: String) {
| `- error: cannot find type 'Data' in scope
70 | memCache.setObject(data as AnyObject, forKey: key as AnyObject)
71 | writeDataToDisk(data: data, key: key)
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:74:40: error: cannot find type 'Data' in scope
72 | }
73 |
74 | private func writeDataToDisk(data: Data, key: String) {
| `- error: cannot find type 'Data' in scope
75 | ioQueue.async {
76 | if self.fileManager.fileExists(atPath: self.cachePath) == false {
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:89:48: error: cannot find type 'Data' in scope
87 |
88 | /// Read data for key
89 | public func readData(forKey key:String) -> Data? {
| `- error: cannot find type 'Data' in scope
90 | var data = memCache.object(forKey: key as AnyObject) as? Data
91 |
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:103:57: error: cannot find type 'Data' in scope
101 |
102 | /// Read data from disk for key
103 | public func readDataFromDisk(forKey key: String) -> Data? {
| `- error: cannot find type 'Data' in scope
104 | return self.fileManager.contents(atPath: cachePath(forKey: key))
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:124:31: error: cannot find type 'NSCoding' in scope
122 | ///
123 | /// NOTE: Can't write `UIImage` with this method. Please use `writeImage(_:forKey:)` to write an image
124 | public func write(object: NSCoding, forKey key: String) {
| `- error: cannot find type 'NSCoding' in scope
125 | let data = NSKeyedArchiver.archivedData(withRootObject: object)
126 | write(data: data, forKey: key)
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:145:51: error: cannot find type 'NSObject' in scope
143 |
144 | /// Read an object for key. This object must inherit from `NSObject` and implement NSCoding protocol. `String`, `Array`, `Dictionary` conform to this method
145 | public func readObject(forKey key: String) -> NSObject? {
| `- error: cannot find type 'NSObject' in scope
146 | let data = readData(forKey: key)
147 |
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:293:6: error: @objc attribute used without importing module 'Foundation'
291 |
292 | /// Clean expired disk cache. This is an async operation.
293 | @objc public func cleanExpiredDiskCache() {
| `- error: @objc attribute used without importing module 'Foundation'
294 | cleanExpiredDiskCache(completion: nil)
295 | }
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:303:5: warning: non-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
301 | - parameter completionHandler: Called after the operation completes.
302 | */
303 | open func cleanExpiredDiskCache(completion handler: (()->())? = nil) {
| `- warning: non-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
304 |
305 | // Do things in cocurrent io queue
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:367:83: error: cannot find type 'URL' in scope
365 |
366 | // This method is from Kingfisher
367 | fileprivate func travelCachedFiles(onlyForCacheSize: Bool) -> (urlsToDelete: [URL], diskCacheSize: UInt, cachedFiles: [URL: URLResourceValues]) {
| `- error: cannot find type 'URL' in scope
368 |
369 | let diskCacheURL = URL(fileURLWithPath: cachePath)
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:367:124: error: cannot find type 'URL' in scope
365 |
366 | // This method is from Kingfisher
367 | fileprivate func travelCachedFiles(onlyForCacheSize: Bool) -> (urlsToDelete: [URL], diskCacheSize: UInt, cachedFiles: [URL: URLResourceValues]) {
| `- error: cannot find type 'URL' in scope
368 |
369 | let diskCacheURL = URL(fileURLWithPath: cachePath)
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:45:33: error: cannot find 'NSSearchPathForDirectoriesInDomains' in scope
43 | self.name = name
44 |
45 | var cachePath = path ?? NSSearchPathForDirectoriesInDomains(.cachesDirectory, FileManager.SearchPathDomainMask.userDomainMask, true).first!
| `- error: cannot find 'NSSearchPathForDirectoriesInDomains' in scope
46 | cachePath = (cachePath as NSString).appendingPathComponent(DataCache.cacheDirectoryPrefix + name)
47 | self.cachePath = cachePath
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:45:87: error: cannot find 'FileManager' in scope
43 | self.name = name
44 |
45 | var cachePath = path ?? NSSearchPathForDirectoriesInDomains(.cachesDirectory, FileManager.SearchPathDomainMask.userDomainMask, true).first!
| `- error: cannot find 'FileManager' in scope
46 | cachePath = (cachePath as NSString).appendingPathComponent(DataCache.cacheDirectoryPrefix + name)
47 | self.cachePath = cachePath
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:46:35: error: cannot find type 'NSString' in scope
44 |
45 | var cachePath = path ?? NSSearchPathForDirectoriesInDomains(.cachesDirectory, FileManager.SearchPathDomainMask.userDomainMask, true).first!
46 | cachePath = (cachePath as NSString).appendingPathComponent(DataCache.cacheDirectoryPrefix + name)
| `- error: cannot find type 'NSString' in scope
47 | self.cachePath = cachePath
48 |
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:49:19: error: cannot find 'DispatchQueue' in scope
47 | self.cachePath = cachePath
48 |
49 | ioQueue = DispatchQueue(label: DataCache.ioQueuePrefix + name)
| `- error: cannot find 'DispatchQueue' in scope
50 |
51 | self.fileManager = FileManager()
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:51:28: error: cannot find 'FileManager' in scope
49 | ioQueue = DispatchQueue(label: DataCache.ioQueuePrefix + name)
50 |
51 | self.fileManager = FileManager()
| `- error: cannot find 'FileManager' in scope
52 |
53 | #if !os(OSX) && !os(watchOS)
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:60:9: error: cannot find 'NotificationCenter' in scope
58 |
59 | deinit {
60 | NotificationCenter.default.removeObserver(self)
| `- error: cannot find 'NotificationCenter' in scope
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:90:66: error: cannot find type 'Data' in scope
88 | /// Read data for key
89 | public func readData(forKey key:String) -> Data? {
90 | var data = memCache.object(forKey: key as AnyObject) as? Data
| `- error: cannot find type 'Data' in scope
91 |
92 | if data == nil {
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift (in target 'DataCache' from project 'DataCache')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile DataCache.swift
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:109:24: error: cannot find 'JSONEncoder' in scope
107 | // MARK: - Read & write Codable types
108 | public func write<T: Encodable>(codable: T, forKey key: String) throws {
109 | let data = try JSONEncoder().encode(codable)
| `- error: cannot find 'JSONEncoder' in scope
110 | write(data: data, forKey: key)
111 | }
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:110:9: error: no exact matches in call to instance method 'write'
108 | public func write<T: Encodable>(codable: T, forKey key: String) throws {
109 | let data = try JSONEncoder().encode(codable)
110 | write(data: data, forKey: key)
| `- error: no exact matches in call to instance method 'write'
111 | }
112 |
:
128 |
129 | /// Write a string for key
130 | public func write(string: String, forKey key: String) {
| `- note: incorrect labels for candidate (have: '(data:forKey:)', expected: '(string:forKey:)')
131 | write(object: string as NSCoding, forKey: key)
132 | }
133 |
134 | /// Write a dictionary for key
135 | public func write(dictionary: Dictionary<AnyHashable, Any>, forKey key: String) {
| `- note: incorrect labels for candidate (have: '(data:forKey:)', expected: '(dictionary:forKey:)')
136 | write(object: dictionary as NSCoding, forKey: key)
137 | }
138 |
139 | /// Write an array for key
140 | public func write(array: Array<Any>, forKey key: String) {
| `- note: incorrect labels for candidate (have: '(data:forKey:)', expected: '(array:forKey:)')
141 | write(object: array as NSCoding, forKey: key)
142 | }
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:115:20: error: cannot find 'JSONDecoder' in scope
113 | public func readCodable<T: Decodable>(forKey key: String) throws -> T? {
114 | guard let data = readData(forKey: key) else { return nil }
115 | return try JSONDecoder().decode(T.self, from: data)
| `- error: cannot find 'JSONDecoder' in scope
116 | }
117 |
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:125:20: error: cannot find 'NSKeyedArchiver' in scope
123 | /// NOTE: Can't write `UIImage` with this method. Please use `writeImage(_:forKey:)` to write an image
124 | public func write(object: NSCoding, forKey key: String) {
125 | let data = NSKeyedArchiver.archivedData(withRootObject: object)
| `- error: cannot find 'NSKeyedArchiver' in scope
126 | write(data: data, forKey: key)
127 | }
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:126:9: error: no exact matches in call to instance method 'write'
124 | public func write(object: NSCoding, forKey key: String) {
125 | let data = NSKeyedArchiver.archivedData(withRootObject: object)
126 | write(data: data, forKey: key)
| `- error: no exact matches in call to instance method 'write'
127 | }
128 |
129 | /// Write a string for key
130 | public func write(string: String, forKey key: String) {
| `- note: incorrect labels for candidate (have: '(data:forKey:)', expected: '(string:forKey:)')
131 | write(object: string as NSCoding, forKey: key)
132 | }
133 |
134 | /// Write a dictionary for key
135 | public func write(dictionary: Dictionary<AnyHashable, Any>, forKey key: String) {
| `- note: incorrect labels for candidate (have: '(data:forKey:)', expected: '(dictionary:forKey:)')
136 | write(object: dictionary as NSCoding, forKey: key)
137 | }
138 |
139 | /// Write an array for key
140 | public func write(array: Array<Any>, forKey key: String) {
| `- note: incorrect labels for candidate (have: '(data:forKey:)', expected: '(array:forKey:)')
141 | write(object: array as NSCoding, forKey: key)
142 | }
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:131:33: error: cannot find type 'NSCoding' in scope
129 | /// Write a string for key
130 | public func write(string: String, forKey key: String) {
131 | write(object: string as NSCoding, forKey: key)
| `- error: cannot find type 'NSCoding' in scope
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:131:9: error: no exact matches in call to instance method 'write'
106 |
107 | // MARK: - Read & write Codable types
108 | public func write<T: Encodable>(codable: T, forKey key: String) throws {
| `- note: incorrect labels for candidate (have: '(object:forKey:)', expected: '(codable:forKey:)')
109 | let data = try JSONEncoder().encode(codable)
110 | write(data: data, forKey: key)
:
128 |
129 | /// Write a string for key
130 | public func write(string: String, forKey key: String) {
| `- note: incorrect labels for candidate (have: '(object:forKey:)', expected: '(string:forKey:)')
131 | write(object: string as NSCoding, forKey: key)
| `- error: no exact matches in call to instance method 'write'
132 | }
133 |
134 | /// Write a dictionary for key
135 | public func write(dictionary: Dictionary<AnyHashable, Any>, forKey key: String) {
| `- note: incorrect labels for candidate (have: '(object:forKey:)', expected: '(dictionary:forKey:)')
136 | write(object: dictionary as NSCoding, forKey: key)
137 | }
138 |
139 | /// Write an array for key
140 | public func write(array: Array<Any>, forKey key: String) {
| `- note: incorrect labels for candidate (have: '(object:forKey:)', expected: '(array:forKey:)')
141 | write(object: array as NSCoding, forKey: key)
142 | }
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:136:37: error: cannot find type 'NSCoding' in scope
134 | /// Write a dictionary for key
135 | public func write(dictionary: Dictionary<AnyHashable, Any>, forKey key: String) {
136 | write(object: dictionary as NSCoding, forKey: key)
| `- error: cannot find type 'NSCoding' in scope
137 | }
138 |
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:136:9: error: no exact matches in call to instance method 'write'
106 |
107 | // MARK: - Read & write Codable types
108 | public func write<T: Encodable>(codable: T, forKey key: String) throws {
| `- note: incorrect labels for candidate (have: '(object:forKey:)', expected: '(codable:forKey:)')
109 | let data = try JSONEncoder().encode(codable)
110 | write(data: data, forKey: key)
:
128 |
129 | /// Write a string for key
130 | public func write(string: String, forKey key: String) {
| `- note: incorrect labels for candidate (have: '(object:forKey:)', expected: '(string:forKey:)')
131 | write(object: string as NSCoding, forKey: key)
132 | }
133 |
134 | /// Write a dictionary for key
135 | public func write(dictionary: Dictionary<AnyHashable, Any>, forKey key: String) {
| `- note: incorrect labels for candidate (have: '(object:forKey:)', expected: '(dictionary:forKey:)')
136 | write(object: dictionary as NSCoding, forKey: key)
| `- error: no exact matches in call to instance method 'write'
137 | }
138 |
139 | /// Write an array for key
140 | public func write(array: Array<Any>, forKey key: String) {
| `- note: incorrect labels for candidate (have: '(object:forKey:)', expected: '(array:forKey:)')
141 | write(object: array as NSCoding, forKey: key)
142 | }
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:141:32: error: cannot find type 'NSCoding' in scope
139 | /// Write an array for key
140 | public func write(array: Array<Any>, forKey key: String) {
141 | write(object: array as NSCoding, forKey: key)
| `- error: cannot find type 'NSCoding' in scope
142 | }
143 |
SwiftCompile normal arm64 Compiling\ Dictionary+Cache.swift /Users/admin/builder/spi-builder-workspace/Sources/Dictionary+Cache.swift (in target 'DataCache' from project 'DataCache')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/Dictionary+Cache.swift (in target 'DataCache' from project 'DataCache')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Dictionary+Cache.swift
SwiftEmitModule normal arm64 Emitting\ module\ for\ DataCache (in target 'DataCache' from project 'DataCache')
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:22:47: error: cannot find type 'TimeInterval' in scope
20 | static let cacheDirectoryPrefix = "com.nch.cache."
21 | static let ioQueuePrefix = "com.nch.queue."
22 | static let defaultMaxCachePeriodInSecond: TimeInterval = 60 * 60 * 24 * 7 // a week
| `- error: cannot find type 'TimeInterval' in scope
23 |
24 | public static let instance = DataCache(name: "default")
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:28:20: error: cannot find 'NSCache' in scope
26 | let cachePath: String
27 |
28 | let memCache = NSCache<AnyObject, AnyObject>()
| `- error: cannot find 'NSCache' in scope
29 | let ioQueue: DispatchQueue
30 | let fileManager: FileManager
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:29:18: error: cannot find type 'DispatchQueue' in scope
27 |
28 | let memCache = NSCache<AnyObject, AnyObject>()
29 | let ioQueue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
30 | let fileManager: FileManager
31 |
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:30:22: error: cannot find type 'FileManager' in scope
28 | let memCache = NSCache<AnyObject, AnyObject>()
29 | let ioQueue: DispatchQueue
30 | let fileManager: FileManager
| `- error: cannot find type 'FileManager' in scope
31 |
32 | /// Name of cache
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:69:29: error: cannot find type 'Data' in scope
67 |
68 | /// Write data for key. This is an async operation.
69 | public func write(data: Data, forKey key: String) {
| `- error: cannot find type 'Data' in scope
70 | memCache.setObject(data as AnyObject, forKey: key as AnyObject)
71 | writeDataToDisk(data: data, key: key)
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:74:40: error: cannot find type 'Data' in scope
72 | }
73 |
74 | private func writeDataToDisk(data: Data, key: String) {
| `- error: cannot find type 'Data' in scope
75 | ioQueue.async {
76 | if self.fileManager.fileExists(atPath: self.cachePath) == false {
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:89:48: error: cannot find type 'Data' in scope
87 |
88 | /// Read data for key
89 | public func readData(forKey key:String) -> Data? {
| `- error: cannot find type 'Data' in scope
90 | var data = memCache.object(forKey: key as AnyObject) as? Data
91 |
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:103:57: error: cannot find type 'Data' in scope
101 |
102 | /// Read data from disk for key
103 | public func readDataFromDisk(forKey key: String) -> Data? {
| `- error: cannot find type 'Data' in scope
104 | return self.fileManager.contents(atPath: cachePath(forKey: key))
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:124:31: error: cannot find type 'NSCoding' in scope
122 | ///
123 | /// NOTE: Can't write `UIImage` with this method. Please use `writeImage(_:forKey:)` to write an image
124 | public func write(object: NSCoding, forKey key: String) {
| `- error: cannot find type 'NSCoding' in scope
125 | let data = NSKeyedArchiver.archivedData(withRootObject: object)
126 | write(data: data, forKey: key)
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:145:51: error: cannot find type 'NSObject' in scope
143 |
144 | /// Read an object for key. This object must inherit from `NSObject` and implement NSCoding protocol. `String`, `Array`, `Dictionary` conform to this method
145 | public func readObject(forKey key: String) -> NSObject? {
| `- error: cannot find type 'NSObject' in scope
146 | let data = readData(forKey: key)
147 |
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:293:6: error: @objc attribute used without importing module 'Foundation'
291 |
292 | /// Clean expired disk cache. This is an async operation.
293 | @objc public func cleanExpiredDiskCache() {
| `- error: @objc attribute used without importing module 'Foundation'
294 | cleanExpiredDiskCache(completion: nil)
295 | }
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:303:5: warning: non-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
301 | - parameter completionHandler: Called after the operation completes.
302 | */
303 | open func cleanExpiredDiskCache(completion handler: (()->())? = nil) {
| `- warning: non-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
304 |
305 | // Do things in cocurrent io queue
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:367:83: error: cannot find type 'URL' in scope
365 |
366 | // This method is from Kingfisher
367 | fileprivate func travelCachedFiles(onlyForCacheSize: Bool) -> (urlsToDelete: [URL], diskCacheSize: UInt, cachedFiles: [URL: URLResourceValues]) {
| `- error: cannot find type 'URL' in scope
368 |
369 | let diskCacheURL = URL(fileURLWithPath: cachePath)
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:367:124: error: cannot find type 'URL' in scope
365 |
366 | // This method is from Kingfisher
367 | fileprivate func travelCachedFiles(onlyForCacheSize: Bool) -> (urlsToDelete: [URL], diskCacheSize: UInt, cachedFiles: [URL: URLResourceValues]) {
| `- error: cannot find type 'URL' in scope
368 |
369 | let diskCacheURL = URL(fileURLWithPath: cachePath)
Failed frontend command:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift /Users/admin/builder/spi-builder-workspace/Sources/Dictionary+Cache.swift /Users/admin/builder/spi-builder-workspace/Sources/String+MD5.swift -target arm64-apple-watchos9.0 -disable-cross-import-overlay-search -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#SwiftMacros -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/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64/DataCache-dependencies-1.json -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/Developer/Library/Frameworks -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -no-color-diagnostics -Xcc -fno-color-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name DataCache -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64/DataCache_const_extract_protocols.json -disable-clang-spi -clang-target arm64-apple-watchos27.0 -target-sdk-version 27.0 -target-sdk-name watchos27.0 -in-process-plugin-server-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -emit-module-doc-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64/DataCache.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64/DataCache.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64/DataCache-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64/DataCache-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64/DataCache-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64/DataCache.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64/DataCache.abi.json
SwiftCompile normal arm64 (in target 'DataCache' from project 'DataCache')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftCompile normal arm64 Compiling\ String+MD5.swift /Users/admin/builder/spi-builder-workspace/Sources/String+MD5.swift (in target 'DataCache' from project 'DataCache')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/String+MD5.swift (in target 'DataCache' from project 'DataCache')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile String+MD5.swift
SwiftEmitModule normal arm64_32 Emitting\ module\ for\ DataCache (in target 'DataCache' from project 'DataCache')
SwiftCompile normal arm64_32 (in target 'DataCache' from project 'DataCache')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftCompile normal arm64_32 Compiling\ Dictionary+Cache.swift /Users/admin/builder/spi-builder-workspace/Sources/Dictionary+Cache.swift (in target 'DataCache' from project 'DataCache')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/Dictionary+Cache.swift (in target 'DataCache' from project 'DataCache')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Dictionary+Cache.swift
SwiftCompile normal arm64_32 Compiling\ String+MD5.swift /Users/admin/builder/spi-builder-workspace/Sources/String+MD5.swift (in target 'DataCache' from project 'DataCache')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/String+MD5.swift (in target 'DataCache' from project 'DataCache')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile String+MD5.swift
SwiftCompile normal arm64_32 Compiling\ DataCache.swift /Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift (in target 'DataCache' from project 'DataCache')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift (in target 'DataCache' from project 'DataCache')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile DataCache.swift
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
2026-09-18 22:10:55.588 xcodebuild[653:4238] [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\ DataCache (in target 'DataCache' from project 'DataCache')
SwiftCompile normal arm64 (in target 'DataCache' from project 'DataCache')
Building workspace DataCache with scheme DataCache
(3 failures)
Command line invocation:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -resolvePackageDependencies
Resolve Package Graph
Resolved source packages:
DataCache: /Users/admin/builder/spi-builder-workspace
resolved source packages: DataCache
2026-09-18 22:10:59.984 xcodebuild[728:4556] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
{
"dependencies" : [
],
"manifest_display_name" : "DataCache",
"name" : "DataCache",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.11"
},
{
"name" : "ios",
"version" : "13.0"
}
],
"products" : [
{
"name" : "DataCache",
"targets" : [
"DataCache"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "DataCache",
"module_type" : "SwiftTarget",
"name" : "DataCache",
"path" : "Sources",
"product_memberships" : [
"DataCache"
],
"sources" : [
"DataCache.swift",
"Dictionary+Cache.swift",
"String+MD5.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
{
"workspace" : {
"name" : "DataCache",
"schemes" : [
"DataCache"
]
}
}
2026-09-18 22:11:01.274 xcodebuild[736:4624] [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 DataCache -destination generic/platform=watchOS
Command line invocation:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath /Users/admin/builder/spi-builder-workspace/.derivedData build -scheme DataCache -destination generic/platform=watchOS
Resolve Package Graph
Resolved source packages:
DataCache: /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 'DataCache-product' in project 'DataCache'
➜ Explicit dependency on target 'DataCache' in project 'DataCache'
Target 'DataCache' in project 'DataCache' (no dependencies)
GatherProvisioningInputs
CreateBuildDescription
ClangStatCache /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -o /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache
SwiftDriver DataCache normal arm64 com.apple.xcode.tools.swift.compiler (in target 'DataCache' from project 'DataCache')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftDriver -- /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -parse-as-library -module-name DataCache -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64/DataCache.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -DXcode -plugin-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -target arm64-apple-watchos9.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -enable-testing -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -swift-version 5 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64/DataCache-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/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64/DataCache.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64/DataCache-dependency-scan.dia -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -emit-const-values -const-gather-protocols-list /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64/DataCache_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/DataCache.build/Debug-watchos/DataCache-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-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/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64/DataCache-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftDriver DataCache normal arm64_32 com.apple.xcode.tools.swift.compiler (in target 'DataCache' from project 'DataCache')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftDriver -- /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -parse-as-library -module-name DataCache -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64_32/DataCache.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -DXcode -plugin-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -target arm64_32-apple-watchos9.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -enable-testing -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -swift-version 5 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64_32/DataCache-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/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64_32/DataCache.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64_32/DataCache-dependency-scan.dia -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -emit-const-values -const-gather-protocols-list /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64_32/DataCache_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/DataCache.build/Debug-watchos/DataCache-t.build/DerivedSources-normal/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/DerivedSources/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-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/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64_32/DataCache-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\ DataCache (in target 'DataCache' from project 'DataCache')
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:22:47: error: cannot find type 'TimeInterval' in scope
20 | static let cacheDirectoryPrefix = "com.nch.cache."
21 | static let ioQueuePrefix = "com.nch.queue."
22 | static let defaultMaxCachePeriodInSecond: TimeInterval = 60 * 60 * 24 * 7 // a week
| `- error: cannot find type 'TimeInterval' in scope
23 |
24 | public static let instance = DataCache(name: "default")
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:28:20: error: cannot find 'NSCache' in scope
26 | let cachePath: String
27 |
28 | let memCache = NSCache<AnyObject, AnyObject>()
| `- error: cannot find 'NSCache' in scope
29 | let ioQueue: DispatchQueue
30 | let fileManager: FileManager
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:29:18: error: cannot find type 'DispatchQueue' in scope
27 |
28 | let memCache = NSCache<AnyObject, AnyObject>()
29 | let ioQueue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
30 | let fileManager: FileManager
31 |
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:30:22: error: cannot find type 'FileManager' in scope
28 | let memCache = NSCache<AnyObject, AnyObject>()
29 | let ioQueue: DispatchQueue
30 | let fileManager: FileManager
| `- error: cannot find type 'FileManager' in scope
31 |
32 | /// Name of cache
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:69:29: error: cannot find type 'Data' in scope
67 |
68 | /// Write data for key. This is an async operation.
69 | public func write(data: Data, forKey key: String) {
| `- error: cannot find type 'Data' in scope
70 | memCache.setObject(data as AnyObject, forKey: key as AnyObject)
71 | writeDataToDisk(data: data, key: key)
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:74:40: error: cannot find type 'Data' in scope
72 | }
73 |
74 | private func writeDataToDisk(data: Data, key: String) {
| `- error: cannot find type 'Data' in scope
75 | ioQueue.async {
76 | if self.fileManager.fileExists(atPath: self.cachePath) == false {
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:89:48: error: cannot find type 'Data' in scope
87 |
88 | /// Read data for key
89 | public func readData(forKey key:String) -> Data? {
| `- error: cannot find type 'Data' in scope
90 | var data = memCache.object(forKey: key as AnyObject) as? Data
91 |
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:103:57: error: cannot find type 'Data' in scope
101 |
102 | /// Read data from disk for key
103 | public func readDataFromDisk(forKey key: String) -> Data? {
| `- error: cannot find type 'Data' in scope
104 | return self.fileManager.contents(atPath: cachePath(forKey: key))
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:124:31: error: cannot find type 'NSCoding' in scope
122 | ///
123 | /// NOTE: Can't write `UIImage` with this method. Please use `writeImage(_:forKey:)` to write an image
124 | public func write(object: NSCoding, forKey key: String) {
| `- error: cannot find type 'NSCoding' in scope
125 | let data = NSKeyedArchiver.archivedData(withRootObject: object)
126 | write(data: data, forKey: key)
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:145:51: error: cannot find type 'NSObject' in scope
143 |
144 | /// Read an object for key. This object must inherit from `NSObject` and implement NSCoding protocol. `String`, `Array`, `Dictionary` conform to this method
145 | public func readObject(forKey key: String) -> NSObject? {
| `- error: cannot find type 'NSObject' in scope
146 | let data = readData(forKey: key)
147 |
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:293:6: error: @objc attribute used without importing module 'Foundation'
291 |
292 | /// Clean expired disk cache. This is an async operation.
293 | @objc public func cleanExpiredDiskCache() {
| `- error: @objc attribute used without importing module 'Foundation'
294 | cleanExpiredDiskCache(completion: nil)
295 | }
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:303:5: warning: non-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
301 | - parameter completionHandler: Called after the operation completes.
302 | */
303 | open func cleanExpiredDiskCache(completion handler: (()->())? = nil) {
| `- warning: non-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
304 |
305 | // Do things in cocurrent io queue
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:367:83: error: cannot find type 'URL' in scope
365 |
366 | // This method is from Kingfisher
367 | fileprivate func travelCachedFiles(onlyForCacheSize: Bool) -> (urlsToDelete: [URL], diskCacheSize: UInt, cachedFiles: [URL: URLResourceValues]) {
| `- error: cannot find type 'URL' in scope
368 |
369 | let diskCacheURL = URL(fileURLWithPath: cachePath)
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:367:124: error: cannot find type 'URL' in scope
365 |
366 | // This method is from Kingfisher
367 | fileprivate func travelCachedFiles(onlyForCacheSize: Bool) -> (urlsToDelete: [URL], diskCacheSize: UInt, cachedFiles: [URL: URLResourceValues]) {
| `- error: cannot find type 'URL' in scope
368 |
369 | let diskCacheURL = URL(fileURLWithPath: cachePath)
Failed frontend command:
SwiftCompile normal arm64_32 (in target 'DataCache' from project 'DataCache')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift /Users/admin/builder/spi-builder-workspace/Sources/Dictionary+Cache.swift /Users/admin/builder/spi-builder-workspace/Sources/String+MD5.swift -target arm64_32-apple-watchos9.0 -disable-cross-import-overlay-search -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#SwiftMacros -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/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64_32/DataCache-dependencies-2.json -enable-objc-interop -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/Developer/Library/Frameworks -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -no-color-diagnostics -Xcc -fno-color-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/DerivedSources-normal/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/DerivedSources/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name DataCache -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64_32/DataCache_const_extract_protocols.json -disable-clang-spi -clang-target arm64_32-apple-watchos27.0 -target-sdk-version 27.0 -target-sdk-name watchos27.0 -in-process-plugin-server-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -emit-module-doc-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64_32/DataCache.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64_32/DataCache.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64_32/DataCache-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64_32/DataCache-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64_32/DataCache-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64_32/DataCache.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DataCache.build/Debug-watchos/DataCache-t.build/Objects-normal/arm64_32/DataCache.abi.json
SwiftCompile normal arm64_32 Compiling\ Dictionary+Cache.swift /Users/admin/builder/spi-builder-workspace/Sources/Dictionary+Cache.swift (in target 'DataCache' from project 'DataCache')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/Dictionary+Cache.swift (in target 'DataCache' from project 'DataCache')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Dictionary+Cache.swift
SwiftCompile normal arm64 Compiling\ Dictionary+Cache.swift /Users/admin/builder/spi-builder-workspace/Sources/Dictionary+Cache.swift (in target 'DataCache' from project 'DataCache')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/Dictionary+Cache.swift (in target 'DataCache' from project 'DataCache')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Dictionary+Cache.swift
SwiftCompile normal arm64_32 Compiling\ String+MD5.swift /Users/admin/builder/spi-builder-workspace/Sources/String+MD5.swift (in target 'DataCache' from project 'DataCache')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/String+MD5.swift (in target 'DataCache' from project 'DataCache')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile String+MD5.swift
SwiftEmitModule normal arm64 Emitting\ module\ for\ DataCache (in target 'DataCache' from project 'DataCache')
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:22:47: error: cannot find type 'TimeInterval' in scope
20 | static let cacheDirectoryPrefix = "com.nch.cache."
21 | static let ioQueuePrefix = "com.nch.queue."
22 | static let defaultMaxCachePeriodInSecond: TimeInterval = 60 * 60 * 24 * 7 // a week
| `- error: cannot find type 'TimeInterval' in scope
23 |
24 | public static let instance = DataCache(name: "default")
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:28:20: error: cannot find 'NSCache' in scope
26 | let cachePath: String
27 |
28 | let memCache = NSCache<AnyObject, AnyObject>()
| `- error: cannot find 'NSCache' in scope
29 | let ioQueue: DispatchQueue
30 | let fileManager: FileManager
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:29:18: error: cannot find type 'DispatchQueue' in scope
27 |
28 | let memCache = NSCache<AnyObject, AnyObject>()
29 | let ioQueue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
30 | let fileManager: FileManager
31 |
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:30:22: error: cannot find type 'FileManager' in scope
28 | let memCache = NSCache<AnyObject, AnyObject>()
29 | let ioQueue: DispatchQueue
30 | let fileManager: FileManager
| `- error: cannot find type 'FileManager' in scope
31 |
32 | /// Name of cache
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:69:29: error: cannot find type 'Data' in scope
67 |
68 | /// Write data for key. This is an async operation.
69 | public func write(data: Data, forKey key: String) {
| `- error: cannot find type 'Data' in scope
70 | memCache.setObject(data as AnyObject, forKey: key as AnyObject)
71 | writeDataToDisk(data: data, key: key)
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:74:40: error: cannot find type 'Data' in scope
72 | }
73 |
74 | private func writeDataToDisk(data: Data, key: String) {
| `- error: cannot find type 'Data' in scope
75 | ioQueue.async {
76 | if self.fileManager.fileExists(atPath: self.cachePath) == false {
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:89:48: error: cannot find type 'Data' in scope
87 |
88 | /// Read data for key
89 | public func readData(forKey key:String) -> Data? {
| `- error: cannot find type 'Data' in scope
90 | var data = memCache.object(forKey: key as AnyObject) as? Data
91 |
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:103:57: error: cannot find type 'Data' in scope
101 |
102 | /// Read data from disk for key
103 | public func readDataFromDisk(forKey key: String) -> Data? {
| `- error: cannot find type 'Data' in scope
104 | return self.fileManager.contents(atPath: cachePath(forKey: key))
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:124:31: error: cannot find type 'NSCoding' in scope
122 | ///
123 | /// NOTE: Can't write `UIImage` with this method. Please use `writeImage(_:forKey:)` to write an image
124 | public func write(object: NSCoding, forKey key: String) {
| `- error: cannot find type 'NSCoding' in scope
125 | let data = NSKeyedArchiver.archivedData(withRootObject: object)
126 | write(data: data, forKey: key)
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:145:51: error: cannot find type 'NSObject' in scope
143 |
144 | /// Read an object for key. This object must inherit from `NSObject` and implement NSCoding protocol. `String`, `Array`, `Dictionary` conform to this method
145 | public func readObject(forKey key: String) -> NSObject? {
| `- error: cannot find type 'NSObject' in scope
146 | let data = readData(forKey: key)
147 |
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:293:6: error: @objc attribute used without importing module 'Foundation'
291 |
292 | /// Clean expired disk cache. This is an async operation.
293 | @objc public func cleanExpiredDiskCache() {
| `- error: @objc attribute used without importing module 'Foundation'
294 | cleanExpiredDiskCache(completion: nil)
295 | }
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:303:5: warning: non-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
301 | - parameter completionHandler: Called after the operation completes.
302 | */
303 | open func cleanExpiredDiskCache(completion handler: (()->())? = nil) {
| `- warning: non-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
304 |
305 | // Do things in cocurrent io queue
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:367:83: error: cannot find type 'URL' in scope
365 |
366 | // This method is from Kingfisher
367 | fileprivate func travelCachedFiles(onlyForCacheSize: Bool) -> (urlsToDelete: [URL], diskCacheSize: UInt, cachedFiles: [URL: URLResourceValues]) {
| `- error: cannot find type 'URL' in scope
368 |
369 | let diskCacheURL = URL(fileURLWithPath: cachePath)
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:367:124: error: cannot find type 'URL' in scope
365 |
366 | // This method is from Kingfisher
367 | fileprivate func travelCachedFiles(onlyForCacheSize: Bool) -> (urlsToDelete: [URL], diskCacheSize: UInt, cachedFiles: [URL: URLResourceValues]) {
| `- error: cannot find type 'URL' in scope
368 |
369 | let diskCacheURL = URL(fileURLWithPath: cachePath)
SwiftCompile normal arm64 (in target 'DataCache' from project 'DataCache')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftCompile normal arm64 Compiling\ String+MD5.swift /Users/admin/builder/spi-builder-workspace/Sources/String+MD5.swift (in target 'DataCache' from project 'DataCache')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/String+MD5.swift (in target 'DataCache' from project 'DataCache')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile String+MD5.swift
SwiftCompile normal arm64 Compiling\ DataCache.swift /Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift (in target 'DataCache' from project 'DataCache')
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:22:47: error: cannot find type 'TimeInterval' in scope
20 | static let cacheDirectoryPrefix = "com.nch.cache."
21 | static let ioQueuePrefix = "com.nch.queue."
22 | static let defaultMaxCachePeriodInSecond: TimeInterval = 60 * 60 * 24 * 7 // a week
| `- error: cannot find type 'TimeInterval' in scope
23 |
24 | public static let instance = DataCache(name: "default")
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:28:20: error: cannot find 'NSCache' in scope
26 | let cachePath: String
27 |
28 | let memCache = NSCache<AnyObject, AnyObject>()
| `- error: cannot find 'NSCache' in scope
29 | let ioQueue: DispatchQueue
30 | let fileManager: FileManager
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:29:18: error: cannot find type 'DispatchQueue' in scope
27 |
28 | let memCache = NSCache<AnyObject, AnyObject>()
29 | let ioQueue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
30 | let fileManager: FileManager
31 |
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:30:22: error: cannot find type 'FileManager' in scope
28 | let memCache = NSCache<AnyObject, AnyObject>()
29 | let ioQueue: DispatchQueue
30 | let fileManager: FileManager
| `- error: cannot find type 'FileManager' in scope
31 |
32 | /// Name of cache
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:69:29: error: cannot find type 'Data' in scope
67 |
68 | /// Write data for key. This is an async operation.
69 | public func write(data: Data, forKey key: String) {
| `- error: cannot find type 'Data' in scope
70 | memCache.setObject(data as AnyObject, forKey: key as AnyObject)
71 | writeDataToDisk(data: data, key: key)
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:74:40: error: cannot find type 'Data' in scope
72 | }
73 |
74 | private func writeDataToDisk(data: Data, key: String) {
| `- error: cannot find type 'Data' in scope
75 | ioQueue.async {
76 | if self.fileManager.fileExists(atPath: self.cachePath) == false {
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:89:48: error: cannot find type 'Data' in scope
87 |
88 | /// Read data for key
89 | public func readData(forKey key:String) -> Data? {
| `- error: cannot find type 'Data' in scope
90 | var data = memCache.object(forKey: key as AnyObject) as? Data
91 |
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:103:57: error: cannot find type 'Data' in scope
101 |
102 | /// Read data from disk for key
103 | public func readDataFromDisk(forKey key: String) -> Data? {
| `- error: cannot find type 'Data' in scope
104 | return self.fileManager.contents(atPath: cachePath(forKey: key))
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:124:31: error: cannot find type 'NSCoding' in scope
122 | ///
123 | /// NOTE: Can't write `UIImage` with this method. Please use `writeImage(_:forKey:)` to write an image
124 | public func write(object: NSCoding, forKey key: String) {
| `- error: cannot find type 'NSCoding' in scope
125 | let data = NSKeyedArchiver.archivedData(withRootObject: object)
126 | write(data: data, forKey: key)
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:145:51: error: cannot find type 'NSObject' in scope
143 |
144 | /// Read an object for key. This object must inherit from `NSObject` and implement NSCoding protocol. `String`, `Array`, `Dictionary` conform to this method
145 | public func readObject(forKey key: String) -> NSObject? {
| `- error: cannot find type 'NSObject' in scope
146 | let data = readData(forKey: key)
147 |
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:293:6: error: @objc attribute used without importing module 'Foundation'
291 |
292 | /// Clean expired disk cache. This is an async operation.
293 | @objc public func cleanExpiredDiskCache() {
| `- error: @objc attribute used without importing module 'Foundation'
294 | cleanExpiredDiskCache(completion: nil)
295 | }
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:303:5: warning: non-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
301 | - parameter completionHandler: Called after the operation completes.
302 | */
303 | open func cleanExpiredDiskCache(completion handler: (()->())? = nil) {
| `- warning: non-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
304 |
305 | // Do things in cocurrent io queue
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:367:83: error: cannot find type 'URL' in scope
365 |
366 | // This method is from Kingfisher
367 | fileprivate func travelCachedFiles(onlyForCacheSize: Bool) -> (urlsToDelete: [URL], diskCacheSize: UInt, cachedFiles: [URL: URLResourceValues]) {
| `- error: cannot find type 'URL' in scope
368 |
369 | let diskCacheURL = URL(fileURLWithPath: cachePath)
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:367:124: error: cannot find type 'URL' in scope
365 |
366 | // This method is from Kingfisher
367 | fileprivate func travelCachedFiles(onlyForCacheSize: Bool) -> (urlsToDelete: [URL], diskCacheSize: UInt, cachedFiles: [URL: URLResourceValues]) {
| `- error: cannot find type 'URL' in scope
368 |
369 | let diskCacheURL = URL(fileURLWithPath: cachePath)
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:45:33: error: cannot find 'NSSearchPathForDirectoriesInDomains' in scope
43 | self.name = name
44 |
45 | var cachePath = path ?? NSSearchPathForDirectoriesInDomains(.cachesDirectory, FileManager.SearchPathDomainMask.userDomainMask, true).first!
| `- error: cannot find 'NSSearchPathForDirectoriesInDomains' in scope
46 | cachePath = (cachePath as NSString).appendingPathComponent(DataCache.cacheDirectoryPrefix + name)
47 | self.cachePath = cachePath
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:45:87: error: cannot find 'FileManager' in scope
43 | self.name = name
44 |
45 | var cachePath = path ?? NSSearchPathForDirectoriesInDomains(.cachesDirectory, FileManager.SearchPathDomainMask.userDomainMask, true).first!
| `- error: cannot find 'FileManager' in scope
46 | cachePath = (cachePath as NSString).appendingPathComponent(DataCache.cacheDirectoryPrefix + name)
47 | self.cachePath = cachePath
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:46:35: error: cannot find type 'NSString' in scope
44 |
45 | var cachePath = path ?? NSSearchPathForDirectoriesInDomains(.cachesDirectory, FileManager.SearchPathDomainMask.userDomainMask, true).first!
46 | cachePath = (cachePath as NSString).appendingPathComponent(DataCache.cacheDirectoryPrefix + name)
| `- error: cannot find type 'NSString' in scope
47 | self.cachePath = cachePath
48 |
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:49:19: error: cannot find 'DispatchQueue' in scope
47 | self.cachePath = cachePath
48 |
49 | ioQueue = DispatchQueue(label: DataCache.ioQueuePrefix + name)
| `- error: cannot find 'DispatchQueue' in scope
50 |
51 | self.fileManager = FileManager()
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:51:28: error: cannot find 'FileManager' in scope
49 | ioQueue = DispatchQueue(label: DataCache.ioQueuePrefix + name)
50 |
51 | self.fileManager = FileManager()
| `- error: cannot find 'FileManager' in scope
52 |
53 | #if !os(OSX) && !os(watchOS)
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:60:9: error: cannot find 'NotificationCenter' in scope
58 |
59 | deinit {
60 | NotificationCenter.default.removeObserver(self)
| `- error: cannot find 'NotificationCenter' in scope
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:90:66: error: cannot find type 'Data' in scope
88 | /// Read data for key
89 | public func readData(forKey key:String) -> Data? {
90 | var data = memCache.object(forKey: key as AnyObject) as? Data
| `- error: cannot find type 'Data' in scope
91 |
92 | if data == nil {
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift (in target 'DataCache' from project 'DataCache')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile DataCache.swift
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:109:24: error: cannot find 'JSONEncoder' in scope
107 | // MARK: - Read & write Codable types
108 | public func write<T: Encodable>(codable: T, forKey key: String) throws {
109 | let data = try JSONEncoder().encode(codable)
| `- error: cannot find 'JSONEncoder' in scope
110 | write(data: data, forKey: key)
111 | }
SwiftCompile normal arm64_32 Compiling\ DataCache.swift /Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift (in target 'DataCache' from project 'DataCache')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift (in target 'DataCache' from project 'DataCache')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile DataCache.swift
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:22:47: error: cannot find type 'TimeInterval' in scope
20 | static let cacheDirectoryPrefix = "com.nch.cache."
21 | static let ioQueuePrefix = "com.nch.queue."
22 | static let defaultMaxCachePeriodInSecond: TimeInterval = 60 * 60 * 24 * 7 // a week
| `- error: cannot find type 'TimeInterval' in scope
23 |
24 | public static let instance = DataCache(name: "default")
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:28:20: error: cannot find 'NSCache' in scope
26 | let cachePath: String
27 |
28 | let memCache = NSCache<AnyObject, AnyObject>()
| `- error: cannot find 'NSCache' in scope
29 | let ioQueue: DispatchQueue
30 | let fileManager: FileManager
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:29:18: error: cannot find type 'DispatchQueue' in scope
27 |
28 | let memCache = NSCache<AnyObject, AnyObject>()
29 | let ioQueue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
30 | let fileManager: FileManager
31 |
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:30:22: error: cannot find type 'FileManager' in scope
28 | let memCache = NSCache<AnyObject, AnyObject>()
29 | let ioQueue: DispatchQueue
30 | let fileManager: FileManager
| `- error: cannot find type 'FileManager' in scope
31 |
32 | /// Name of cache
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:69:29: error: cannot find type 'Data' in scope
67 |
68 | /// Write data for key. This is an async operation.
69 | public func write(data: Data, forKey key: String) {
| `- error: cannot find type 'Data' in scope
70 | memCache.setObject(data as AnyObject, forKey: key as AnyObject)
71 | writeDataToDisk(data: data, key: key)
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:74:40: error: cannot find type 'Data' in scope
72 | }
73 |
74 | private func writeDataToDisk(data: Data, key: String) {
| `- error: cannot find type 'Data' in scope
75 | ioQueue.async {
76 | if self.fileManager.fileExists(atPath: self.cachePath) == false {
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:89:48: error: cannot find type 'Data' in scope
87 |
88 | /// Read data for key
89 | public func readData(forKey key:String) -> Data? {
| `- error: cannot find type 'Data' in scope
90 | var data = memCache.object(forKey: key as AnyObject) as? Data
91 |
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:103:57: error: cannot find type 'Data' in scope
101 |
102 | /// Read data from disk for key
103 | public func readDataFromDisk(forKey key: String) -> Data? {
| `- error: cannot find type 'Data' in scope
104 | return self.fileManager.contents(atPath: cachePath(forKey: key))
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:124:31: error: cannot find type 'NSCoding' in scope
122 | ///
123 | /// NOTE: Can't write `UIImage` with this method. Please use `writeImage(_:forKey:)` to write an image
124 | public func write(object: NSCoding, forKey key: String) {
| `- error: cannot find type 'NSCoding' in scope
125 | let data = NSKeyedArchiver.archivedData(withRootObject: object)
126 | write(data: data, forKey: key)
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:145:51: error: cannot find type 'NSObject' in scope
143 |
144 | /// Read an object for key. This object must inherit from `NSObject` and implement NSCoding protocol. `String`, `Array`, `Dictionary` conform to this method
145 | public func readObject(forKey key: String) -> NSObject? {
| `- error: cannot find type 'NSObject' in scope
146 | let data = readData(forKey: key)
147 |
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:293:6: error: @objc attribute used without importing module 'Foundation'
291 |
292 | /// Clean expired disk cache. This is an async operation.
293 | @objc public func cleanExpiredDiskCache() {
| `- error: @objc attribute used without importing module 'Foundation'
294 | cleanExpiredDiskCache(completion: nil)
295 | }
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:303:5: warning: non-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
301 | - parameter completionHandler: Called after the operation completes.
302 | */
303 | open func cleanExpiredDiskCache(completion handler: (()->())? = nil) {
| `- warning: non-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
304 |
305 | // Do things in cocurrent io queue
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:367:83: error: cannot find type 'URL' in scope
365 |
366 | // This method is from Kingfisher
367 | fileprivate func travelCachedFiles(onlyForCacheSize: Bool) -> (urlsToDelete: [URL], diskCacheSize: UInt, cachedFiles: [URL: URLResourceValues]) {
| `- error: cannot find type 'URL' in scope
368 |
369 | let diskCacheURL = URL(fileURLWithPath: cachePath)
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:367:124: error: cannot find type 'URL' in scope
365 |
366 | // This method is from Kingfisher
367 | fileprivate func travelCachedFiles(onlyForCacheSize: Bool) -> (urlsToDelete: [URL], diskCacheSize: UInt, cachedFiles: [URL: URLResourceValues]) {
| `- error: cannot find type 'URL' in scope
368 |
369 | let diskCacheURL = URL(fileURLWithPath: cachePath)
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:45:33: error: cannot find 'NSSearchPathForDirectoriesInDomains' in scope
43 | self.name = name
44 |
45 | var cachePath = path ?? NSSearchPathForDirectoriesInDomains(.cachesDirectory, FileManager.SearchPathDomainMask.userDomainMask, true).first!
| `- error: cannot find 'NSSearchPathForDirectoriesInDomains' in scope
46 | cachePath = (cachePath as NSString).appendingPathComponent(DataCache.cacheDirectoryPrefix + name)
47 | self.cachePath = cachePath
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:45:87: error: cannot find 'FileManager' in scope
43 | self.name = name
44 |
45 | var cachePath = path ?? NSSearchPathForDirectoriesInDomains(.cachesDirectory, FileManager.SearchPathDomainMask.userDomainMask, true).first!
| `- error: cannot find 'FileManager' in scope
46 | cachePath = (cachePath as NSString).appendingPathComponent(DataCache.cacheDirectoryPrefix + name)
47 | self.cachePath = cachePath
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:46:35: error: cannot find type 'NSString' in scope
44 |
45 | var cachePath = path ?? NSSearchPathForDirectoriesInDomains(.cachesDirectory, FileManager.SearchPathDomainMask.userDomainMask, true).first!
46 | cachePath = (cachePath as NSString).appendingPathComponent(DataCache.cacheDirectoryPrefix + name)
| `- error: cannot find type 'NSString' in scope
47 | self.cachePath = cachePath
48 |
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:49:19: error: cannot find 'DispatchQueue' in scope
47 | self.cachePath = cachePath
48 |
49 | ioQueue = DispatchQueue(label: DataCache.ioQueuePrefix + name)
| `- error: cannot find 'DispatchQueue' in scope
50 |
51 | self.fileManager = FileManager()
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:51:28: error: cannot find 'FileManager' in scope
49 | ioQueue = DispatchQueue(label: DataCache.ioQueuePrefix + name)
50 |
51 | self.fileManager = FileManager()
| `- error: cannot find 'FileManager' in scope
52 |
53 | #if !os(OSX) && !os(watchOS)
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:60:9: error: cannot find 'NotificationCenter' in scope
58 |
59 | deinit {
60 | NotificationCenter.default.removeObserver(self)
| `- error: cannot find 'NotificationCenter' in scope
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/DataCache.swift:90:66: error: cannot find type 'Data' in scope
88 | /// Read data for key
89 | public func readData(forKey key:String) -> Data? {
90 | var data = memCache.object(forKey: key as AnyObject) as? Data
| `- error: cannot find type 'Data' in scope
91 |
92 | if data == nil {
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-09-18 22:11:02.228 xcodebuild[737:4651] [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 'DataCache' from project 'DataCache')
SwiftEmitModule normal arm64_32 Emitting\ module\ for\ DataCache (in target 'DataCache' from project 'DataCache')
Building workspace DataCache with scheme DataCache
(3 failures)
BUILD FAILURE 6.4 watchOS