Build Information
Failed to build MacPreviewUtils, reference 1.0.0 (3d5259), with Swift 6.4 for tvOS using Xcode 27.0 on 19 Sep 2026 08:22:20 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 MacPreviewUtils -destination generic/platform=tvOSBuild Log
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 MacPreviewUtils -destination generic/platform=tvOS
Resolve Package Graph
Resolved source packages:
MacPreviewUtils: /Users/admin/builder/spi-builder-workspace
ComputePackagePrebuildTargetDependencyGraph
Prepare packages
CreateBuildRequest
SendProjectDescription
CreateBuildOperation
ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (3 targets)
Target 'MacPreviewUtils-product' in project 'MacPreviewUtils'
➜ Explicit dependency on target 'MacPreviewUtils' in project 'MacPreviewUtils'
➜ Explicit dependency on target 'MacPreviewUtilsObjC' in project 'MacPreviewUtils'
Target 'MacPreviewUtilsObjC' in project 'MacPreviewUtils'
➜ Explicit dependency on target 'MacPreviewUtils' in project 'MacPreviewUtils'
Target 'MacPreviewUtils' in project 'MacPreviewUtils' (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/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk -x c -c /dev/null
ExecuteExternalTool /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -arch arm64 -isysroot /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk -x objective-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/clang -v -E -dM -arch arm64 -isysroot /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk -x c -c /dev/null
ExecuteExternalTool /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld -version_details
Build description signature: 9cc7df3f4bae72629f7b2f2af184f350
Build description path: /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/XCBuildData/9cc7df3f4bae72629f7b2f2af184f350.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/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos27.0-24J360-e829b21a6f8c9b70876ba0858053c044b32bfd8d43560033f8d89884cdb90028.sdkstatcache
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk -o /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos27.0-24J360-e829b21a6f8c9b70876ba0858053c044b32bfd8d43560033f8d89884cdb90028.sdkstatcache
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-appletvos
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-appletvos
CreateBuildDirectory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-create-build-directory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos
CreateBuildDirectory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/PackageFrameworks
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-create-build-directory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/PackageFrameworks
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtilsObjC-t.build/MacPreviewUtilsObjC.modulemap (in target 'MacPreviewUtilsObjC' from project 'MacPreviewUtils')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtilsObjC-t.build/MacPreviewUtilsObjC.modulemap
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtilsObjC-t.build/MacPreviewUtilsObjC.DependencyStaticMetadataFileList (in target 'MacPreviewUtilsObjC' from project 'MacPreviewUtils')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtilsObjC-t.build/MacPreviewUtilsObjC.DependencyStaticMetadataFileList
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtilsObjC-t.build/MacPreviewUtilsObjC.DependencyMetadataFileList (in target 'MacPreviewUtilsObjC' from project 'MacPreviewUtils')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtilsObjC-t.build/MacPreviewUtilsObjC.DependencyMetadataFileList
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils_const_extract_protocols.json (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils_const_extract_protocols.json
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils.SwiftFileList (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils.SwiftFileList
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtilsObjC-t.build/Objects-normal/arm64/e6072d4f65d7061329687fe24e3d63a7-common-args.resp (in target 'MacPreviewUtilsObjC' from project 'MacPreviewUtils')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtilsObjC-t.build/Objects-normal/arm64/e6072d4f65d7061329687fe24e3d63a7-common-args.resp
-fobjc-arc -fmodules -gmodules '-fmodules-cache-path=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex' '-fmodule-name=MacPreviewUtilsObjC' -fpascal-strings -O0 -DSWIFT_PACKAGE '-DDEBUG=1' '-DOBJC_OLD_DISPATCH_PROTOTYPES=1' -g -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -I/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtilsObjC/include -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtilsObjC-t.build/DerivedSources-normal/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtilsObjC-t.build/DerivedSources/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtilsObjC-t.build/DerivedSources -F/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/PackageFrameworks -F/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -iframework /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -iframework /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk/Developer/Library/Frameworks '-fmodule-map-file=/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/GeneratedModuleMaps-appletvos/MacPreviewUtils.modulemap' -DXcode
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils.SwiftConstValuesFileList (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils.SwiftConstValuesFileList
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtilsObjC-t.build/Objects-normal/arm64/MacPreviewUtilsObjC.LinkFileList (in target 'MacPreviewUtilsObjC' from project 'MacPreviewUtils')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtilsObjC-t.build/Objects-normal/arm64/MacPreviewUtilsObjC.LinkFileList
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils.LinkFileList (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils.LinkFileList
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils-OutputFileMap.json (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils-OutputFileMap.json
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/MacPreviewUtils.modulemap (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/MacPreviewUtils.modulemap
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/MacPreviewUtils.DependencyStaticMetadataFileList (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/MacPreviewUtils.DependencyStaticMetadataFileList
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/MacPreviewUtils.DependencyMetadataFileList (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/MacPreviewUtils.DependencyMetadataFileList
Copy /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/GeneratedModuleMaps-appletvos/MacPreviewUtilsObjC.modulemap /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtilsObjC-t.build/MacPreviewUtilsObjC.modulemap (in target 'MacPreviewUtilsObjC' from project 'MacPreviewUtils')
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/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtilsObjC-t.build/MacPreviewUtilsObjC.modulemap /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/GeneratedModuleMaps-appletvos
Copy /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/GeneratedModuleMaps-appletvos/MacPreviewUtils.modulemap /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/MacPreviewUtils.modulemap (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
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/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/MacPreviewUtils.modulemap /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/GeneratedModuleMaps-appletvos
SwiftDriver MacPreviewUtils normal arm64 com.apple.xcode.tools.swift.compiler (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
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 MacPreviewUtils -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -DXcode -plugin-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk -target arm64-apple-tvos15.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -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-appletvos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos27.0-24J360-e829b21a6f8c9b70876ba0858053c044b32bfd8d43560033f8d89884cdb90028.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils-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/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils-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/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-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/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils-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-9ZJZ6FDEZNKTZU8YLPMFT9RAQ.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/SwiftShims-8N4EXJ4RUJTR8K9OO3CMOH1EP.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_SwiftConcurrencyShims-BY5PD8KF1L5KF6F4Q69HE3TJ4.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_float-8ZJAYZ85YBOAOP52Y9H6IUNP3.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/DeveloperToolsSupport-B1X8RI63V48AJRTH2RK6JAARV.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_stdbool-AHRDH5EKLY6D04C5E42F3VCQI.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/ptrcheck-2AZ6B5IBYD3RRRTFWN2ONASY3.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/ptrauth-8X2KEPL7CTRPS40TUB9APHPK6.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_stdarg-BO2OCAUYVAXDRVQWQ8ISKGNUQ.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_AvailabilityInternal-BV2EDDP0MI5QJDDPEEV4D9D3V.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_DarwinFoundation1-JOTYMOA1YZCIJ2NON6FQ848O.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_DarwinFoundation2-AOGAN1O02NKXRJN5V73AV3V3M.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_limits-7JU2HP127LIT1X9E2V3D8WZ1.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_tgmath-7ULT1EUHDHW4OZPSTT33H6QGE.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/string_h-6EVHP7A717OUS5DMC78F79HWO.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_stdint-6NFTB6IBKS143IVPGT1EKB7HO.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/sys_types-8GCAV1YMG5UUGHUID3CA20TCH.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_intrinsics-437O2R2NID4WAQVENR63GR82C.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_stdatomic-3YXHN678NGYM3NL9POJ2HVEIF.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_DarwinFoundation3-8SR3855WDFHQPR6G9GHOI2C07.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_Builtin_inttypes-6X1IQ3QK9KEVKXOK9Y79EW7J3.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/Darwin-DBSQAVBBPC3D2OMU5ZI2RXMST.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/simd-117QUXEUT3Z7UQCUYWV2UA228.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/ObjectiveC-5250FDCE56N8508OR6XUYDKZM.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/MachO-EH3F5PJCIZG05NO51CEFSZYPW.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/os_object-E2DGZ0SX0TULQHULZRPO6OKNW.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/os_workgroup-DBUFF7811DKMX7VPBOJPGGF1U.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/Spatial-7U8NLEFXSB8BR7PJQGVMF5A4Q.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/Dispatch-1QL58A0V50C39KVAIC6C38SHL.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/XPC-6O2DJFT3QUJ7QKTD3SNUB6PCR.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/CoreFoundation-7TPJ7ENDC4L1A1ESHYI9TXS0D.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/os-3GJI8H0BNAEZPQPQ1V0VVY3FY.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/CFNetwork-2CUR2VK9S3S3WPFXPNXNUWYGN.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/CoreGraphics-CWSP3J98S2658BYCVL6RP99T3.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/Security-8VMXEKVDA3MHUH9AOTP905DID.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/CoreAudioTypes-E7EH96HAL3G83QSWLT7VWYIP4.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/CoreAudio-6IR1XRM0Q9YQZMFW89F3H4V3X.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/Foundation-BSSIP64DIGUKMAYJOG1WPQ78X.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/CoreText-59NY7PABM0I4V978161FOC04A.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/ImageIO-88D4CLEBD4CLWQKT78PZ6H1O8.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/DataDetection-37JIYZ2GWDA1L166PP1D9JKAF.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/IOSurface-38FJ1CKX9FV2RD97O64Z7QB17.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/_LocationEssentials-ETSJ65FELPWR8WH8G49R1DF2E.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/Symbols-B5AU9VM9Y7NU79RLMH13Z4IFM.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/CoreTransferable-7V4O8DATEQ9F7SDNTCW8YWLG3.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/Accessibility-B6BODGZ4MQQTY0PBC4SHRP009.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/UserNotifications-E9ZW5TH066WIJWH9080RC5NG4.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/OSLog-7OT6HHTMY0ZFEQJ095LJZ6NLC.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/UniformTypeIdentifiers-95CC8U42ZA9STP5K6GP9ZVJS5.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/CoreData-DYMPHH3PH8AX9I1FHA4VFJ675.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/UIUtilities-6ZFJ1AK4H8IBGEBMYQBWGBYLK.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/CoreLocation-YVXXAOMVX0JH2KO1XTTKTY51.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/Metal-2KYBS7IML1SD788M91YV7Q0CC.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/OpenGLES-4NY99CNDU9WUNUYEIXSS1QFGE.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/CoreVideo-DPU0PB5X0XLSVA2ETRGI6FJBM.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/CoreImage-7S2AFJ8EIY3DUFYLEAX1JR1QV.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/CoreMedia-4OUKVT03LV547KZJDPPJRJ4F8.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/QuartzCore-DJSYAWKXFGVSAK5CQMOB3JSR.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/SwiftUICore-543QU5V2NHKUFCYFJDKUJ7NYG.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/UIKit-1TKWN7VC2X6N3ITMRVA2G0EB2.pcm
SwiftExplicitDependencyGeneratePcm arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/SwiftUI-7BV1YDT6IZWW6B8OC6ENV0Y0F.pcm
SwiftEmitModule normal arm64 Emitting\ module\ for\ MacPreviewUtils (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/MacPreviewUtilsWindow.swift:12:11: error: cannot find type 'NSWindow' in scope
10 | }
11 |
12 | extension NSWindow {
| `- error: cannot find type 'NSWindow' in scope
13 | func constrainPreview(to frameRect: NSRect, on screen: NSScreen?) -> NSRect {
14 | guard let screen else {
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/NSApplication+ActivatePreview.swift:4:11: error: cannot find type 'NSApplication' in scope
2 | import SwiftUI
3 |
4 | extension NSApplication {
| `- error: cannot find type 'NSApplication' in scope
5 |
6 | func activateForPreview(then block: (() -> Void)? = nil) {
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:6:24: error: cannot find type 'NSWindow' in scope
4 |
5 | extension EnvironmentValues {
6 | var previewWindow: NSWindow? {
| `- error: cannot find type 'NSWindow' in scope
7 | get { self[PreviewWindowEnvironmentKey.self] }
8 | set { self[PreviewWindowEnvironmentKey.self] = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:13:30: error: cannot find type 'NSWindow' in scope
11 |
12 | private struct PreviewWindowEnvironmentKey: EnvironmentKey {
13 | static var defaultValue: NSWindow?
| `- error: cannot find type 'NSWindow' in scope
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:12:16: error: type 'PreviewWindowEnvironmentKey' does not conform to protocol 'EnvironmentKey'
10 | }
11 |
12 | private struct PreviewWindowEnvironmentKey: EnvironmentKey {
| |- error: type 'PreviewWindowEnvironmentKey' does not conform to protocol 'EnvironmentKey'
| `- note: add stubs for conformance
13 | static var defaultValue: NSWindow?
14 | }
SwiftUI.EnvironmentKey.Value:2:16: note: protocol requires nested type 'Value'
1 | protocol EnvironmentKey {
2 | associatedtype Value}
| `- note: protocol requires nested type 'Value'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:16:48: error: cannot find type 'NSWindow' in scope
14 | }
15 |
16 | typealias NSWindowSubject = PassthroughSubject<NSWindow?, Never>
| `- error: cannot find type 'NSWindow' in scope
17 |
18 | extension View {
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:28:32: error: cannot find type 'NSWindow' in scope
26 | private let windowSubject = NSWindowSubject()
27 |
28 | @State private var window: NSWindow?
| `- error: cannot find type 'NSWindow' in scope
29 |
30 | func body(content: Content) -> some View {
macro expansion @State:2:24: error: cannot find type 'NSWindow' in scope
`- /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:28:41: note: expanded code originates here
26 | private let windowSubject = NSWindowSubject()
27 |
28 | @State private var window: NSWindow?
| `- note: in expansion of macro 'State' on property 'window' here
+--- macro expansion @State -----------------------------------------
| 1 | private var __window = SwiftUICore.State._makeStorage(({
| 2 | let value: NSWindow? = nil
| | `- error: cannot find type 'NSWindow' in scope
| 3 | return value
| 4 | }))
+--------------------------------------------------------------------
29 |
30 | func body(content: Content) -> some View {
macro expansion @State:8:27: error: cannot find type 'NSWindow' in scope
`- /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:28:41: note: expanded code originates here
26 | private let windowSubject = NSWindowSubject()
27 |
28 | @State private var window: NSWindow?
| `- note: in expansion of macro 'State' on property 'window' here
+--- macro expansion @State -----------------------------------------
| 6 | @SwiftUICore._StatePropertyWrapperStorage(initialValue: "JHMxNU1hY1ByZXZpZXdVdGlsczBCMTRXaW5kb3dNb2RpZmllclY2d2luZG93MzNfNzUzQTdBRTBENzg3QUQ4OEU0NDZCNkY3NEI5MUVDNUFMTDVTdGF0ZWZNcF8yMF9pbml0aWFsU3RvcmVkVmFsdWVfZk11Xw==")
| 7 | private var _window: SwiftUICore.State<_>! = SwiftUICore._stateNil(of: {
| 8 | SwiftUICore.State<NSWindow?>(initialValue: nil)
| | `- error: cannot find type 'NSWindow' in scope
| 9 | })
|10 |
+--------------------------------------------------------------------
29 |
30 | func body(content: Content) -> some View {
macro expansion @State:7:40: error: could not infer type for placeholder
`- /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:28:41: note: expanded code originates here
26 | private let windowSubject = NSWindowSubject()
27 |
28 | @State private var window: NSWindow?
| `- note: in expansion of macro 'State' on property 'window' here
+--- macro expansion @State -----------------------------------------
| 5 |
| 6 | @SwiftUICore._StatePropertyWrapperStorage(initialValue: "JHMxNU1hY1ByZXZpZXdVdGlsczBCMTRXaW5kb3dNb2RpZmllclY2d2luZG93MzNfNzUzQTdBRTBENzg3QUQ4OEU0NDZCNkY3NEI5MUVDNUFMTDVTdGF0ZWZNcF8yMF9pbml0aWFsU3RvcmVkVmFsdWVfZk11Xw==")
| 7 | private var _window: SwiftUICore.State<_>! = SwiftUICore._stateNil(of: {
| | `- error: could not infer type for placeholder
| 8 | SwiftUICore.State<NSWindow?>(initialValue: nil)
| 9 | })
+--------------------------------------------------------------------
29 |
30 | func body(content: Content) -> some View {
macro expansion @State:12:41: error: cannot find type 'NSWindow' in scope
`- /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:28:41: note: expanded code originates here
26 | private let windowSubject = NSWindowSubject()
27 |
28 | @State private var window: NSWindow?
| `- note: in expansion of macro 'State' on property 'window' here
+--- macro expansion @State -----------------------------------------
|10 |
|11 | @SwiftUICore._StateProjectedValue
|12 | private var $window = SwiftUICore.State<NSWindow?>(initialValue: nil).projectedValue
| | `- error: cannot find type 'NSWindow' in scope
|13 |
|14 | @SwiftUICore._StateInitialStoredValue("U3dpZnRVSUNvcmUuU3RhdGUuX21ha2VTdG9yYWdlKGluaXRpYWxWYWx1ZTogeyBsZXQgeDogTlNXaW5kb3c/ID0gbmlsCnJldHVybiB4IH0oKSk=")
+--------------------------------------------------------------------
29 |
30 | func body(content: Content) -> some View {
macro expansion @State:16:20: error: cannot find type 'NSWindow' in scope
`- /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:28:41: note: expanded code originates here
26 | private let windowSubject = NSWindowSubject()
27 |
28 | @State private var window: NSWindow?
| `- note: in expansion of macro 'State' on property 'window' here
+--- macro expansion @State -----------------------------------------
|14 | @SwiftUICore._StateInitialStoredValue("U3dpZnRVSUNvcmUuU3RhdGUuX21ha2VTdG9yYWdlKGluaXRpYWxWYWx1ZTogeyBsZXQgeDogTlNXaW5kb3c/ID0gbmlsCnJldHVybiB4IH0oKSk=")
|15 | private static var $s15MacPreviewUtils0B14WindowModifierV6window33_753A7AE0D787AD88E446B6F74B91EC5ALL5StatefMp_20_initialStoredValue_fMu_ = (SwiftUICore.State._makeStorage(initialValue: {
|16 | let x: NSWindow? = nil
| | `- error: cannot find type 'NSWindow' in scope
|17 | return x
|18 | }()))
+--------------------------------------------------------------------
29 |
30 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:49:30: error: cannot find type 'Context' in scope
47 | var subject: NSWindowSubject
48 |
49 | func makeNSView(context: Context) -> _PreviewWindowGrabbingView {
| `- error: cannot find type 'Context' in scope
50 | let v = _PreviewWindowGrabbingView { window in
51 | subject.send(window)
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:56:70: error: cannot find type 'Context' in scope
54 | }
55 |
56 | func updateNSView(_ nsView: _PreviewWindowGrabbingView, context: Context) {
| `- error: cannot find type 'Context' in scope
57 |
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:44:36: error: cannot find type 'NSViewRepresentable' in scope
42 | }
43 |
44 | struct PreviewWindowProvidingView: NSViewRepresentable {
| `- error: cannot find type 'NSViewRepresentable' in scope
45 | typealias NSViewType = _PreviewWindowGrabbingView
46 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:61:41: error: cannot find type 'NSView' in scope
59 | }
60 |
61 | final class _PreviewWindowGrabbingView: NSView {
| `- error: cannot find type 'NSView' in scope
62 |
63 | var callback: (NSWindow?) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:63:20: error: cannot find type 'NSWindow' in scope
61 | final class _PreviewWindowGrabbingView: NSView {
62 |
63 | var callback: (NSWindow?) -> Void
| `- error: cannot find type 'NSWindow' in scope
64 |
65 | init(callback: @escaping (NSWindow?) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:65:31: error: cannot find type 'NSWindow' in scope
63 | var callback: (NSWindow?) -> Void
64 |
65 | init(callback: @escaping (NSWindow?) -> Void) {
| `- error: cannot find type 'NSWindow' in scope
66 | self.callback = callback
67 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:75:19: error: method does not override any method from its superclass
73 | }
74 |
75 | override func viewDidMoveToWindow() {
| `- error: method does not override any method from its superclass
76 | super.viewDidMoveToWindow()
77 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift:32:25: error: cannot find type 'NSScreen' in scope
30 |
31 | /// The closure that's executed for each available display.
32 | public var filter: (NSScreen) -> Bool
| `- error: cannot find type 'NSScreen' in scope
33 |
34 | /// Initializes a predicate for filtering based on a display's name.
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:128:18: error: cannot convert value of type 'KeyPath<Root, Value>' to expected argument type 'Value.Type'
126 | }
127 |
128 | @Environment(\.previewWindow)
| `- error: cannot convert value of type 'KeyPath<Root, Value>' to expected argument type 'Value.Type'
129 | private var previewWindow
130 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:128:6: error: generic parameter 'Value' could not be inferred
126 | }
127 |
128 | @Environment(\.previewWindow)
| `- error: generic parameter 'Value' could not be inferred
129 | private var previewWindow
130 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:128:18: error: cannot infer key path type from context; consider explicitly specifying a root type
126 | }
127 |
128 | @Environment(\.previewWindow)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
129 | private var previewWindow
130 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:153:27: error: cannot find type 'NSPanel' in scope
151 |
152 | @available(macOS 12.0, *)
153 | final class ConsolePanel: NSPanel, MacPreviewUtilsWindow {
| `- error: cannot find type 'NSPanel' in scope
154 |
155 | override func constrainFrameRect(_ frameRect: NSRect, to screen: NSScreen?) -> NSRect {
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:155:84: error: cannot find type 'NSRect' in scope
153 | final class ConsolePanel: NSPanel, MacPreviewUtilsWindow {
154 |
155 | override func constrainFrameRect(_ frameRect: NSRect, to screen: NSScreen?) -> NSRect {
| `- error: cannot find type 'NSRect' in scope
156 | guard let screen else {
157 | return super.constrainFrameRect(frameRect, to: screen)
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:155:51: error: cannot find type 'NSRect' in scope
153 | final class ConsolePanel: NSPanel, MacPreviewUtilsWindow {
154 |
155 | override func constrainFrameRect(_ frameRect: NSRect, to screen: NSScreen?) -> NSRect {
| `- error: cannot find type 'NSRect' in scope
156 | guard let screen else {
157 | return super.constrainFrameRect(frameRect, to: screen)
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:155:70: error: cannot find type 'NSScreen' in scope
153 | final class ConsolePanel: NSPanel, MacPreviewUtilsWindow {
154 |
155 | override func constrainFrameRect(_ frameRect: NSRect, to screen: NSScreen?) -> NSRect {
| `- error: cannot find type 'NSScreen' in scope
156 | guard let screen else {
157 | return super.constrainFrameRect(frameRect, to: screen)
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:166:38: error: cannot find type 'NSWindowController' in scope
164 |
165 | @available(macOS 12.0, *)
166 | final class ConsoleWindowController: NSWindowController {
| `- error: cannot find type 'NSWindowController' in scope
167 |
168 | static var current: ConsoleWindowController?
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:170:29: error: cannot find type 'NSWindow' in scope
168 | static var current: ConsoleWindowController?
169 |
170 | weak var trackedWindow: NSWindow?
| `- error: cannot find type 'NSWindow' in scope
171 | var alignment: Alignment?
172 | var displaySelector: DisplaySelector?
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:174:48: error: cannot find type 'NSWindow' in scope
172 | var displaySelector: DisplaySelector?
173 |
174 | convenience init(targetting trackedWindow: NSWindow, alignment: Alignment?, displaySelector: DisplaySelector, source: StaticString) {
| `- error: cannot find type 'NSWindow' in scope
175 | Self.current?.close()
176 | Self.current = nil
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:201:19: error: method does not override any method from its superclass
199 | }
200 |
201 | override func showWindow(_ sender: Any?) {
| `- error: method does not override any method from its superclass
202 | super.showWindow(sender)
203 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:267:17: warning: cannot use generic class 'Autoconnect' in a property declaration member of a type not marked '@_implementationOnly'; 'Combine' was not imported by this file
265 | @available(macOS 12.0, *)
266 | struct PreviewConsoleTestView: View {
267 | private var timer = Timer.publish(every: 2, on: .main, in: .common).autoconnect()
| `- warning: cannot use generic class 'Autoconnect' in a property declaration member of a type not marked '@_implementationOnly'; 'Combine' was not imported by this file
268 |
269 | var body: some View {
Combine.Publishers.Autoconnect:2:14: note: generic class declared here
1 | enum Publishers {
2 | public class Autoconnect<Upstream> : Publisher where Upstream : ConnectablePublisher {
| `- note: generic class declared here
3 | public typealias Output = Upstream.Output
4 | public typealias Failure = Upstream.Failure
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:267:17: warning: cannot use enum 'Publishers' in a property declaration member of a type not marked '@_implementationOnly'; 'Combine' was not imported by this file
265 | @available(macOS 12.0, *)
266 | struct PreviewConsoleTestView: View {
267 | private var timer = Timer.publish(every: 2, on: .main, in: .common).autoconnect()
| `- warning: cannot use enum 'Publishers' in a property declaration member of a type not marked '@_implementationOnly'; 'Combine' was not imported by this file
268 |
269 | var body: some View {
Combine.Publishers:2:13: note: enum declared here
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | public enum Publishers {
| `- note: enum declared here
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift:51:38: error: cannot find type 'NSScreen' in scope
49 | /// - Parameter filter: A closure that takes an `NSScreen` and returns `true` if the display should be selected.
50 | /// The first display in the `NSScreen.screens` array that matches the filter will be used.
51 | public init(_ filter: @escaping (NSScreen) -> Bool) {
| `- error: cannot find type 'NSScreen' in scope
52 | self.filter = filter
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift:60:33: error: cannot find 'NSScreen' in scope
58 | /// A predicate that matches the Mac's current main display.
59 | static let mainDisplay: DisplaySelector = {
60 | DisplaySelector { $0 == NSScreen.main }
| `- error: cannot find 'NSScreen' in scope
61 | }()
62 | /// A predicate that matches the first external display that's connected to the Mac.
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift:60:25: error: trailing closure passed to parameter of type 'StringLiteralType' (aka 'String') that does not accept a closure
42 | /// .pin(to: "dell")
43 | /// ```
44 | public init(stringLiteral value: StringLiteralType) {
| `- note: 'init(stringLiteral:)' declared here
45 | self.filter = { $0.localizedName.localizedCaseInsensitiveContains(value) }
46 | }
:
58 | /// A predicate that matches the Mac's current main display.
59 | static let mainDisplay: DisplaySelector = {
60 | DisplaySelector { $0 == NSScreen.main }
| `- error: trailing closure passed to parameter of type 'StringLiteralType' (aka 'String') that does not accept a closure
61 | }()
62 | /// A predicate that matches the first external display that's connected to the Mac.
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift:65:33: error: cannot find 'NSScreen' in scope
63 | /// "External display" is any display that's not the current main display for the Mac.
64 | static let externalDisplay: DisplaySelector = {
65 | DisplaySelector { $0 != NSScreen.main }
| `- error: cannot find 'NSScreen' in scope
66 | }()
67 | /// A predicate that matches the first Sidecar display that's available.
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift:65:25: error: trailing closure passed to parameter of type 'StringLiteralType' (aka 'String') that does not accept a closure
42 | /// .pin(to: "dell")
43 | /// ```
44 | public init(stringLiteral value: StringLiteralType) {
| `- note: 'init(stringLiteral:)' declared here
45 | self.filter = { $0.localizedName.localizedCaseInsensitiveContains(value) }
46 | }
:
63 | /// "External display" is any display that's not the current main display for the Mac.
64 | static let externalDisplay: DisplaySelector = {
65 | DisplaySelector { $0 != NSScreen.main }
| `- error: trailing closure passed to parameter of type 'StringLiteralType' (aka 'String') that does not accept a closure
66 | }()
67 | /// A predicate that matches the first Sidecar display that's available.
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift:143:36: error: cannot find type 'NSWindow' in scope
141 | }
142 |
143 | private func attach(to window: NSWindow) {
| `- error: cannot find type 'NSWindow' in scope
144 | guard let targetScreen = NSScreen.matching(selector) else { return }
145 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift:187:35: error: cannot find type 'NSScreen' in scope
185 | #if DEBUG
186 | extension DisplaySelector {
187 | func callAsFunction(_ screen: NSScreen?) -> Bool {
| `- error: cannot find type 'NSScreen' in scope
188 | guard let screen else { return false }
189 | return filter(screen)
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift:204:11: error: cannot find type 'NSWindow' in scope
202 | }
203 |
204 | extension NSWindow {
| `- error: cannot find type 'NSWindow' in scope
205 | func position(on screen: NSScreen, using alignment: Alignment, ignoreSafeArea: Bool) {
206 | let screenFrame = ignoreSafeArea ? screen.frame : screen.visibleFrame
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift:231:18: error: cannot find type 'NSScreen' in scope
229 | }
230 |
231 | public extension NSScreen {
| `- error: cannot find type 'NSScreen' in scope
232 | static func matching(_ selector: DisplaySelector) -> NSScreen? {
233 | NSScreen.screens.first(where: { selector($0) })
Failed frontend command:
SwiftCompile normal arm64 (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
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/MacPreviewUtils/Helpers/MacPreviewUtilsWindow.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/NSApplication+ActivatePreview.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/RuntimeWarnings.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/ViewModifier+Warning.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleView.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/ProcessPipe.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/ProcessInfo+Preview.swift -target arm64-apple-tvos15.0 -disable-cross-import-overlay-search -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib/swift/host/plugins/libPreviewsMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/bin/swift-plugin-server\#PreviewsMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/bin/swift-plugin-server\#SwiftMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftUIMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/bin/swift-plugin-server\#SwiftUIMacros -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/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils-dependencies-1.json -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk/Developer/Library/Frameworks -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -no-color-diagnostics -Xcc -fno-color-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -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/appletvos27.0-24J360-e829b21a6f8c9b70876ba0858053c044b32bfd8d43560033f8d89884cdb90028.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name MacPreviewUtils -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils_const_extract_protocols.json -disable-clang-spi -clang-target arm64-apple-tvos27.0 -target-sdk-version 27.0 -target-sdk-name appletvos27.0 -in-process-plugin-server-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -emit-module-doc-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils.abi.json
SwiftCompile normal arm64 Compiling\ PinToDisplay.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile PinToDisplay.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift:32:25: error: cannot find type 'NSScreen' in scope
30 |
31 | /// The closure that's executed for each available display.
32 | public var filter: (NSScreen) -> Bool
| `- error: cannot find type 'NSScreen' in scope
33 |
34 | /// Initializes a predicate for filtering based on a display's name.
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift:51:38: error: cannot find type 'NSScreen' in scope
49 | /// - Parameter filter: A closure that takes an `NSScreen` and returns `true` if the display should be selected.
50 | /// The first display in the `NSScreen.screens` array that matches the filter will be used.
51 | public init(_ filter: @escaping (NSScreen) -> Bool) {
| `- error: cannot find type 'NSScreen' in scope
52 | self.filter = filter
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift:60:33: error: cannot find 'NSScreen' in scope
58 | /// A predicate that matches the Mac's current main display.
59 | static let mainDisplay: DisplaySelector = {
60 | DisplaySelector { $0 == NSScreen.main }
| `- error: cannot find 'NSScreen' in scope
61 | }()
62 | /// A predicate that matches the first external display that's connected to the Mac.
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift:60:25: error: trailing closure passed to parameter of type 'StringLiteralType' (aka 'String') that does not accept a closure
42 | /// .pin(to: "dell")
43 | /// ```
44 | public init(stringLiteral value: StringLiteralType) {
| `- note: 'init(stringLiteral:)' declared here
45 | self.filter = { $0.localizedName.localizedCaseInsensitiveContains(value) }
46 | }
:
58 | /// A predicate that matches the Mac's current main display.
59 | static let mainDisplay: DisplaySelector = {
60 | DisplaySelector { $0 == NSScreen.main }
| `- error: trailing closure passed to parameter of type 'StringLiteralType' (aka 'String') that does not accept a closure
61 | }()
62 | /// A predicate that matches the first external display that's connected to the Mac.
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift:65:33: error: cannot find 'NSScreen' in scope
63 | /// "External display" is any display that's not the current main display for the Mac.
64 | static let externalDisplay: DisplaySelector = {
65 | DisplaySelector { $0 != NSScreen.main }
| `- error: cannot find 'NSScreen' in scope
66 | }()
67 | /// A predicate that matches the first Sidecar display that's available.
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift:65:25: error: trailing closure passed to parameter of type 'StringLiteralType' (aka 'String') that does not accept a closure
42 | /// .pin(to: "dell")
43 | /// ```
44 | public init(stringLiteral value: StringLiteralType) {
| `- note: 'init(stringLiteral:)' declared here
45 | self.filter = { $0.localizedName.localizedCaseInsensitiveContains(value) }
46 | }
:
63 | /// "External display" is any display that's not the current main display for the Mac.
64 | static let externalDisplay: DisplaySelector = {
65 | DisplaySelector { $0 != NSScreen.main }
| `- error: trailing closure passed to parameter of type 'StringLiteralType' (aka 'String') that does not accept a closure
66 | }()
67 | /// A predicate that matches the first Sidecar display that's available.
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:16:48: error: cannot find type 'NSWindow' in scope
14 | }
15 |
16 | typealias NSWindowSubject = PassthroughSubject<NSWindow?, Never>
| `- error: cannot find type 'NSWindow' in scope
17 |
18 | extension View {
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift:143:36: error: cannot find type 'NSWindow' in scope
141 | }
142 |
143 | private func attach(to window: NSWindow) {
| `- error: cannot find type 'NSWindow' in scope
144 | guard let targetScreen = NSScreen.matching(selector) else { return }
145 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift:187:35: error: cannot find type 'NSScreen' in scope
185 | #if DEBUG
186 | extension DisplaySelector {
187 | func callAsFunction(_ screen: NSScreen?) -> Bool {
| `- error: cannot find type 'NSScreen' in scope
188 | guard let screen else { return false }
189 | return filter(screen)
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift:204:11: error: cannot find type 'NSWindow' in scope
202 | }
203 |
204 | extension NSWindow {
| `- error: cannot find type 'NSWindow' in scope
205 | func position(on screen: NSScreen, using alignment: Alignment, ignoreSafeArea: Bool) {
206 | let screenFrame = ignoreSafeArea ? screen.frame : screen.visibleFrame
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift:231:18: error: cannot find type 'NSScreen' in scope
229 | }
230 |
231 | public extension NSScreen {
| `- error: cannot find type 'NSScreen' in scope
232 | static func matching(_ selector: DisplaySelector) -> NSScreen? {
233 | NSScreen.screens.first(where: { selector($0) })
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift:45:23: error: cannot infer type of closure parameter '$0' without a type annotation
43 | /// ```
44 | public init(stringLiteral value: StringLiteralType) {
45 | self.filter = { $0.localizedName.localizedCaseInsensitiveContains(value) }
| `- error: cannot infer type of closure parameter '$0' without a type annotation
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift:144:34: error: cannot find 'NSScreen' in scope
142 |
143 | private func attach(to window: NSWindow) {
144 | guard let targetScreen = NSScreen.matching(selector) else { return }
| `- error: cannot find 'NSScreen' in scope
145 |
146 | let app = NSApplication.shared
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift:146:19: error: cannot find 'NSApplication' in scope
144 | guard let targetScreen = NSScreen.matching(selector) else { return }
145 |
146 | let app = NSApplication.shared
| `- error: cannot find 'NSApplication' in scope
147 | let windows = app.windows
148 |
SwiftCompile normal arm64 Compiling\ ProcessPipe.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/ProcessPipe.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/ProcessPipe.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ProcessPipe.swift
SwiftCompile normal arm64 Compiling\ ProcessInfo+Preview.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/ProcessInfo+Preview.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/ProcessInfo+Preview.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ProcessInfo+Preview.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/ProcessInfo+Preview.swift:25:17: error: cannot find 'NSApplication' in scope
23 | /// `PreviewHostingWindow` is used for non-interactive previews, but this modifier requires interactive previews.
24 | /// This might break in the future since it relies on implementation details of SwiftUI previews.
25 | return !NSApplication.shared.windows.contains(where: { $0.className.contains("PreviewHostingWindow") })
| `- error: cannot find 'NSApplication' in scope
26 | #else
27 | return false
SwiftCompile normal arm64 Compiling\ PreviewConsoleView.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleView.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleView.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile PreviewConsoleView.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleView.swift:26:14: error: 'textSelection' is unavailable in tvOS
24 | }
25 | }
26 | .textSelection(.enabled)
| `- error: 'textSelection' is unavailable in tvOS
27 | .safeAreaInset(edge: .bottom, alignment: .leading, spacing: 0) {
28 | bottomBar
SwiftUI.View.textSelection:2:25: note: 'textSelection' has been explicitly marked unavailable here
1 | protocol View {
2 | nonisolated public func textSelection<S>(_ selectability: S) -> some View where S : TextSelectability
| `- note: 'textSelection' has been explicitly marked unavailable here
3 | }
4 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleView.swift:26:29: error: 'enabled' is unavailable in tvOS
24 | }
25 | }
26 | .textSelection(.enabled)
| `- error: 'enabled' is unavailable in tvOS
27 | .safeAreaInset(edge: .bottom, alignment: .leading, spacing: 0) {
28 | bottomBar
SwiftUI.TextSelectability.enabled:2:43: note: 'enabled' has been explicitly marked unavailable here
1 | protocol TextSelectability {
2 | @export(implementation) public static var enabled: EnabledTextSelectability { get }}
| `- note: 'enabled' has been explicitly marked unavailable here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleView.swift:61:23: error: 'borderless' is only available in tvOS 17.0 or newer
3 |
4 | @available(macOS 12.0, *)
5 | struct PreviewConsoleView: View {
| `- note: add '@available' attribute to enclosing struct
6 | static var minWidth: CGFloat { 580 }
7 | static var minHeight: CGFloat { 250 }
:
43 |
44 | @ViewBuilder
45 | private var bottomBar: some View {
| `- note: add '@available' attribute to enclosing property
46 | HStack {
47 | Button {
:
59 | ConsoleSearchField(label: "Search", text: $searchTerm)
60 | }
61 | .buttonStyle(.borderless)
| |- error: 'borderless' is only available in tvOS 17.0 or newer
| `- note: add 'if #available' version check
62 | .padding(12)
63 | .background(Material.bar)
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleView.swift:63:30: error: 'bar' is unavailable in tvOS
61 | .buttonStyle(.borderless)
62 | .padding(12)
63 | .background(Material.bar)
| `- error: 'bar' is unavailable in tvOS
64 | .overlay(alignment: .top) {
65 | Rectangle()
SwiftUI.Material.bar:2:19: note: 'bar' has been explicitly marked unavailable here
1 | struct Material {
2 | public static let bar: Material}
| `- note: 'bar' has been explicitly marked unavailable here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleView.swift:91:21: error: cannot find 'NSPasteboard' in scope
89 | .contextMenu {
90 | Button("Copy") {
91 | NSPasteboard.general.clearContents()
| `- error: cannot find 'NSPasteboard' in scope
92 | NSPasteboard.general.setString(message.contents, forType: .string)
93 | }
SwiftCompile normal arm64 Compiling\ ViewModifier+Warning.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/ViewModifier+Warning.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/ViewModifier+Warning.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ViewModifier+Warning.swift
SwiftCompile normal arm64 Compiling\ RuntimeWarnings.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/RuntimeWarnings.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/RuntimeWarnings.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile RuntimeWarnings.swift
SwiftCompile normal arm64 Compiling\ PreviewWindow.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:6:24: error: cannot find type 'NSWindow' in scope
4 |
5 | extension EnvironmentValues {
6 | var previewWindow: NSWindow? {
| `- error: cannot find type 'NSWindow' in scope
7 | get { self[PreviewWindowEnvironmentKey.self] }
8 | set { self[PreviewWindowEnvironmentKey.self] = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:13:30: error: cannot find type 'NSWindow' in scope
11 |
12 | private struct PreviewWindowEnvironmentKey: EnvironmentKey {
13 | static var defaultValue: NSWindow?
| `- error: cannot find type 'NSWindow' in scope
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:12:16: error: type 'PreviewWindowEnvironmentKey' does not conform to protocol 'EnvironmentKey'
10 | }
11 |
12 | private struct PreviewWindowEnvironmentKey: EnvironmentKey {
| |- error: type 'PreviewWindowEnvironmentKey' does not conform to protocol 'EnvironmentKey'
| `- note: add stubs for conformance
13 | static var defaultValue: NSWindow?
14 | }
SwiftUI.EnvironmentKey.Value:2:16: note: protocol requires nested type 'Value'
1 | protocol EnvironmentKey {
2 | associatedtype Value}
| `- note: protocol requires nested type 'Value'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:16:48: error: cannot find type 'NSWindow' in scope
14 | }
15 |
16 | typealias NSWindowSubject = PassthroughSubject<NSWindow?, Never>
| `- error: cannot find type 'NSWindow' in scope
17 |
18 | extension View {
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:28:32: error: cannot find type 'NSWindow' in scope
26 | private let windowSubject = NSWindowSubject()
27 |
28 | @State private var window: NSWindow?
| `- error: cannot find type 'NSWindow' in scope
29 |
30 | func body(content: Content) -> some View {
macro expansion @State:2:24: error: cannot find type 'NSWindow' in scope
`- /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:28:41: note: expanded code originates here
26 | private let windowSubject = NSWindowSubject()
27 |
28 | @State private var window: NSWindow?
| `- note: in expansion of macro 'State' on property 'window' here
+--- macro expansion @State -----------------------------------------
| 1 | private var __window = SwiftUICore.State._makeStorage(({
| 2 | let value: NSWindow? = nil
| | `- error: cannot find type 'NSWindow' in scope
| 3 | return value
| 4 | }))
+--------------------------------------------------------------------
29 |
30 | func body(content: Content) -> some View {
macro expansion @State:8:27: error: cannot find type 'NSWindow' in scope
`- /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:28:41: note: expanded code originates here
26 | private let windowSubject = NSWindowSubject()
27 |
28 | @State private var window: NSWindow?
| `- note: in expansion of macro 'State' on property 'window' here
+--- macro expansion @State -----------------------------------------
| 6 | @SwiftUICore._StatePropertyWrapperStorage(initialValue: "JHMxNU1hY1ByZXZpZXdVdGlsczBCMTRXaW5kb3dNb2RpZmllclY2d2luZG93MzNfNzUzQTdBRTBENzg3QUQ4OEU0NDZCNkY3NEI5MUVDNUFMTDVTdGF0ZWZNcF8yMF9pbml0aWFsU3RvcmVkVmFsdWVfZk11Xw==")
| 7 | private var _window: SwiftUICore.State<_>! = SwiftUICore._stateNil(of: {
| 8 | SwiftUICore.State<NSWindow?>(initialValue: nil)
| | `- error: cannot find type 'NSWindow' in scope
| 9 | })
|10 |
+--------------------------------------------------------------------
29 |
30 | func body(content: Content) -> some View {
macro expansion @State:7:40: error: could not infer type for placeholder
`- /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:28:41: note: expanded code originates here
26 | private let windowSubject = NSWindowSubject()
27 |
28 | @State private var window: NSWindow?
| `- note: in expansion of macro 'State' on property 'window' here
+--- macro expansion @State -----------------------------------------
| 5 |
| 6 | @SwiftUICore._StatePropertyWrapperStorage(initialValue: "JHMxNU1hY1ByZXZpZXdVdGlsczBCMTRXaW5kb3dNb2RpZmllclY2d2luZG93MzNfNzUzQTdBRTBENzg3QUQ4OEU0NDZCNkY3NEI5MUVDNUFMTDVTdGF0ZWZNcF8yMF9pbml0aWFsU3RvcmVkVmFsdWVfZk11Xw==")
| 7 | private var _window: SwiftUICore.State<_>! = SwiftUICore._stateNil(of: {
| | `- error: could not infer type for placeholder
| 8 | SwiftUICore.State<NSWindow?>(initialValue: nil)
| 9 | })
+--------------------------------------------------------------------
29 |
30 | func body(content: Content) -> some View {
macro expansion @State:12:41: error: cannot find type 'NSWindow' in scope
`- /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:28:41: note: expanded code originates here
26 | private let windowSubject = NSWindowSubject()
27 |
28 | @State private var window: NSWindow?
| `- note: in expansion of macro 'State' on property 'window' here
+--- macro expansion @State -----------------------------------------
|10 |
|11 | @SwiftUICore._StateProjectedValue
|12 | private var $window = SwiftUICore.State<NSWindow?>(initialValue: nil).projectedValue
| | `- error: cannot find type 'NSWindow' in scope
|13 |
|14 | @SwiftUICore._StateInitialStoredValue("U3dpZnRVSUNvcmUuU3RhdGUuX21ha2VTdG9yYWdlKGluaXRpYWxWYWx1ZTogeyBsZXQgeDogTlNXaW5kb3c/ID0gbmlsCnJldHVybiB4IH0oKSk=")
+--------------------------------------------------------------------
29 |
30 | func body(content: Content) -> some View {
macro expansion @State:16:20: error: cannot find type 'NSWindow' in scope
`- /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:28:41: note: expanded code originates here
26 | private let windowSubject = NSWindowSubject()
27 |
28 | @State private var window: NSWindow?
| `- note: in expansion of macro 'State' on property 'window' here
+--- macro expansion @State -----------------------------------------
|14 | @SwiftUICore._StateInitialStoredValue("U3dpZnRVSUNvcmUuU3RhdGUuX21ha2VTdG9yYWdlKGluaXRpYWxWYWx1ZTogeyBsZXQgeDogTlNXaW5kb3c/ID0gbmlsCnJldHVybiB4IH0oKSk=")
|15 | private static var $s15MacPreviewUtils0B14WindowModifierV6window33_753A7AE0D787AD88E446B6F74B91EC5ALL5StatefMp_20_initialStoredValue_fMu_ = (SwiftUICore.State._makeStorage(initialValue: {
|16 | let x: NSWindow? = nil
| | `- error: cannot find type 'NSWindow' in scope
|17 | return x
|18 | }()))
+--------------------------------------------------------------------
29 |
30 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:49:30: error: cannot find type 'Context' in scope
47 | var subject: NSWindowSubject
48 |
49 | func makeNSView(context: Context) -> _PreviewWindowGrabbingView {
| `- error: cannot find type 'Context' in scope
50 | let v = _PreviewWindowGrabbingView { window in
51 | subject.send(window)
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:56:70: error: cannot find type 'Context' in scope
54 | }
55 |
56 | func updateNSView(_ nsView: _PreviewWindowGrabbingView, context: Context) {
| `- error: cannot find type 'Context' in scope
57 |
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:44:36: error: cannot find type 'NSViewRepresentable' in scope
42 | }
43 |
44 | struct PreviewWindowProvidingView: NSViewRepresentable {
| `- error: cannot find type 'NSViewRepresentable' in scope
45 | typealias NSViewType = _PreviewWindowGrabbingView
46 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:61:41: error: cannot find type 'NSView' in scope
59 | }
60 |
61 | final class _PreviewWindowGrabbingView: NSView {
| `- error: cannot find type 'NSView' in scope
62 |
63 | var callback: (NSWindow?) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:63:20: error: cannot find type 'NSWindow' in scope
61 | final class _PreviewWindowGrabbingView: NSView {
62 |
63 | var callback: (NSWindow?) -> Void
| `- error: cannot find type 'NSWindow' in scope
64 |
65 | init(callback: @escaping (NSWindow?) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:65:31: error: cannot find type 'NSWindow' in scope
63 | var callback: (NSWindow?) -> Void
64 |
65 | init(callback: @escaping (NSWindow?) -> Void) {
| `- error: cannot find type 'NSWindow' in scope
66 | self.callback = callback
67 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:75:19: error: method does not override any method from its superclass
73 | }
74 |
75 | override func viewDidMoveToWindow() {
| `- error: method does not override any method from its superclass
76 | super.viewDidMoveToWindow()
77 |
macro expansion @_StateInitialStoredValue:4:24: error: cannot find type 'NSWindow' in scope
`- /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:28:41: note: expanded code originates here
26 | private let windowSubject = NSWindowSubject()
27 |
28 | @State private var window: NSWindow?
| `- note: in expansion of macro 'State' on property 'window' here
+--- macro expansion @State -----------------------------------------
|12 | private var $window = SwiftUICore.State<NSWindow?>(initialValue: nil).projectedValue
|13 |
|14 | @SwiftUICore._StateInitialStoredValue("U3dpZnRVSUNvcmUuU3RhdGUuX21ha2VTdG9yYWdlKGluaXRpYWxWYWx1ZTogeyBsZXQgeDogTlNXaW5kb3c/ID0gbmlsCnJldHVybiB4IH0oKSk=")
| | `- note: in expansion of macro '_StateInitialStoredValue' on static property '$s15MacPreviewUtils0B14WindowModifierV6window33_753A7AE0D787AD88E446B6F74B91EC5ALL5StatefMp_20_initialStoredValue_fMu_' here
|15 | private static var $s15MacPreviewUtils0B14WindowModifierV6window33_753A7AE0D787AD88E446B6F74B91EC5ALL5StatefMp_20_initialStoredValue_fMu_ = (SwiftUICore.State._makeStorage(initialValue: {
|16 | let x: NSWindow? = nil
|17 | return x
|18 | }()))
| +--- macro expansion @_StateInitialStoredValue ------------------
| |2 | get {
| |3 | SwiftUICore.State._makeStorage(initialValue: {
| |4 | let x: NSWindow? = nil
| | | `- error: cannot find type 'NSWindow' in scope
| |5 | return x
| |6 | }())
| +----------------------------------------------------------------
+--------------------------------------------------------------------
29 |
30 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:32:26: error: cannot convert value of type 'KeyPath<EnvironmentValues, V>' to expected argument type 'WritableKeyPath<EnvironmentValues, V>'
30 | func body(content: Content) -> some View {
31 | content
32 | .environment(\.previewWindow, window)
| `- error: cannot convert value of type 'KeyPath<EnvironmentValues, V>' to expected argument type 'WritableKeyPath<EnvironmentValues, V>'
33 | .background(
34 | PreviewWindowProvidingView(subject: windowSubject)
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:50:44: error: trailing closure passed to parameter of type 'NSCoder' that does not accept a closure
48 |
49 | func makeNSView(context: Context) -> _PreviewWindowGrabbingView {
50 | let v = _PreviewWindowGrabbingView { window in
| `- error: trailing closure passed to parameter of type 'NSCoder' that does not accept a closure
51 | subject.send(window)
52 | }
:
69 | }
70 |
71 | required init?(coder: NSCoder) {
| `- note: 'init(coder:)' declared here
72 | fatalError()
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:68:9: error: 'super' cannot be used in class '_PreviewWindowGrabbingView' because it has no superclass
66 | self.callback = callback
67 |
68 | super.init(frame: .zero)
| `- error: 'super' cannot be used in class '_PreviewWindowGrabbingView' because it has no superclass
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:76:9: error: 'super' cannot be used in class '_PreviewWindowGrabbingView' because it has no superclass
74 |
75 | override func viewDidMoveToWindow() {
76 | super.viewDidMoveToWindow()
| `- error: 'super' cannot be used in class '_PreviewWindowGrabbingView' because it has no superclass
77 |
78 | callback(window)
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile PreviewWindow.swift
SwiftCompile normal arm64 Compiling\ NSApplication+ActivatePreview.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/NSApplication+ActivatePreview.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/NSApplication+ActivatePreview.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile NSApplication+ActivatePreview.swift
SwiftCompile normal arm64 Compiling\ PreviewConsoleModifier.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift:32:25: error: cannot find type 'NSScreen' in scope
30 |
31 | /// The closure that's executed for each available display.
32 | public var filter: (NSScreen) -> Bool
| `- error: cannot find type 'NSScreen' in scope
33 |
34 | /// Initializes a predicate for filtering based on a display's name.
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:6:24: error: cannot find type 'NSWindow' in scope
4 |
5 | extension EnvironmentValues {
6 | var previewWindow: NSWindow? {
| `- error: cannot find type 'NSWindow' in scope
7 | get { self[PreviewWindowEnvironmentKey.self] }
8 | set { self[PreviewWindowEnvironmentKey.self] = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:128:6: error: generic parameter 'Value' could not be inferred
126 | }
127 |
128 | @Environment(\.previewWindow)
| `- error: generic parameter 'Value' could not be inferred
129 | private var previewWindow
130 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:128:18: error: cannot convert value of type 'KeyPath<Root, Value>' to expected argument type 'Value.Type'
126 | }
127 |
128 | @Environment(\.previewWindow)
| `- error: cannot convert value of type 'KeyPath<Root, Value>' to expected argument type 'Value.Type'
129 | private var previewWindow
130 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:128:18: error: cannot infer key path type from context; consider explicitly specifying a root type
126 | }
127 |
128 | @Environment(\.previewWindow)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
129 | private var previewWindow
130 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:153:27: error: cannot find type 'NSPanel' in scope
151 |
152 | @available(macOS 12.0, *)
153 | final class ConsolePanel: NSPanel, MacPreviewUtilsWindow {
| `- error: cannot find type 'NSPanel' in scope
154 |
155 | override func constrainFrameRect(_ frameRect: NSRect, to screen: NSScreen?) -> NSRect {
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:155:84: error: cannot find type 'NSRect' in scope
153 | final class ConsolePanel: NSPanel, MacPreviewUtilsWindow {
154 |
155 | override func constrainFrameRect(_ frameRect: NSRect, to screen: NSScreen?) -> NSRect {
| `- error: cannot find type 'NSRect' in scope
156 | guard let screen else {
157 | return super.constrainFrameRect(frameRect, to: screen)
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:155:51: error: cannot find type 'NSRect' in scope
153 | final class ConsolePanel: NSPanel, MacPreviewUtilsWindow {
154 |
155 | override func constrainFrameRect(_ frameRect: NSRect, to screen: NSScreen?) -> NSRect {
| `- error: cannot find type 'NSRect' in scope
156 | guard let screen else {
157 | return super.constrainFrameRect(frameRect, to: screen)
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:155:70: error: cannot find type 'NSScreen' in scope
153 | final class ConsolePanel: NSPanel, MacPreviewUtilsWindow {
154 |
155 | override func constrainFrameRect(_ frameRect: NSRect, to screen: NSScreen?) -> NSRect {
| `- error: cannot find type 'NSScreen' in scope
156 | guard let screen else {
157 | return super.constrainFrameRect(frameRect, to: screen)
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:166:38: error: cannot find type 'NSWindowController' in scope
164 |
165 | @available(macOS 12.0, *)
166 | final class ConsoleWindowController: NSWindowController {
| `- error: cannot find type 'NSWindowController' in scope
167 |
168 | static var current: ConsoleWindowController?
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:170:29: error: cannot find type 'NSWindow' in scope
168 | static var current: ConsoleWindowController?
169 |
170 | weak var trackedWindow: NSWindow?
| `- error: cannot find type 'NSWindow' in scope
171 | var alignment: Alignment?
172 | var displaySelector: DisplaySelector?
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:174:48: error: cannot find type 'NSWindow' in scope
172 | var displaySelector: DisplaySelector?
173 |
174 | convenience init(targetting trackedWindow: NSWindow, alignment: Alignment?, displaySelector: DisplaySelector, source: StaticString) {
| `- error: cannot find type 'NSWindow' in scope
175 | Self.current?.close()
176 | Self.current = nil
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:201:19: error: method does not override any method from its superclass
199 | }
200 |
201 | override func showWindow(_ sender: Any?) {
| `- error: method does not override any method from its superclass
202 | super.showWindow(sender)
203 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:267:17: warning: cannot use generic class 'Autoconnect' in a property declaration member of a type not marked '@_implementationOnly'; 'Combine' was not imported by this file
265 | @available(macOS 12.0, *)
266 | struct PreviewConsoleTestView: View {
267 | private var timer = Timer.publish(every: 2, on: .main, in: .common).autoconnect()
| `- warning: cannot use generic class 'Autoconnect' in a property declaration member of a type not marked '@_implementationOnly'; 'Combine' was not imported by this file
268 |
269 | var body: some View {
Combine.Publishers.Autoconnect:2:14: note: generic class declared here
1 | enum Publishers {
2 | public class Autoconnect<Upstream> : Publisher where Upstream : ConnectablePublisher {
| `- note: generic class declared here
3 | public typealias Output = Upstream.Output
4 | public typealias Failure = Upstream.Failure
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:267:17: warning: cannot use enum 'Publishers' in a property declaration member of a type not marked '@_implementationOnly'; 'Combine' was not imported by this file
265 | @available(macOS 12.0, *)
266 | struct PreviewConsoleTestView: View {
267 | private var timer = Timer.publish(every: 2, on: .main, in: .common).autoconnect()
| `- warning: cannot use enum 'Publishers' in a property declaration member of a type not marked '@_implementationOnly'; 'Combine' was not imported by this file
268 |
269 | var body: some View {
Combine.Publishers:2:13: note: enum declared here
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | public enum Publishers {
| `- note: enum declared here
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:157:20: error: 'super' cannot be used in class 'ConsolePanel' because it has no superclass
155 | override func constrainFrameRect(_ frameRect: NSRect, to screen: NSScreen?) -> NSRect {
156 | guard let screen else {
157 | return super.constrainFrameRect(frameRect, to: screen)
| `- error: 'super' cannot be used in class 'ConsolePanel' because it has no superclass
158 | }
159 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:160:16: error: cannot find 'constrainPreview' in scope
158 | }
159 |
160 | return constrainPreview(to: frameRect, on: screen)
| `- error: cannot find 'constrainPreview' in scope
161 | }
162 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:175:23: error: value of type 'ConsoleWindowController' has no member 'close'
173 |
174 | convenience init(targetting trackedWindow: NSWindow, alignment: Alignment?, displaySelector: DisplaySelector, source: StaticString) {
175 | Self.current?.close()
| `- error: value of type 'ConsoleWindowController' has no member 'close'
176 | Self.current = nil
177 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:179:26: error: cannot find 'NSRect' in scope
177 |
178 | let panel = ConsolePanel(
179 | contentRect: NSRect(x: 0, y: 0, width: PreviewConsoleView.minWidth, height: PreviewConsoleView.minHeight),
| `- error: cannot find 'NSRect' in scope
180 | styleMask: [.titled, .closable, .resizable, .fullSizeContentView, .hudWindow, .utilityWindow],
181 | backing: .buffered,
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile PreviewConsoleModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:178:33: error: argument passed to call that takes no arguments
176 | Self.current = nil
177 |
178 | let panel = ConsolePanel(
| `- error: argument passed to call that takes no arguments
179 | contentRect: NSRect(x: 0, y: 0, width: PreviewConsoleView.minWidth, height: PreviewConsoleView.minHeight),
180 | styleMask: [.titled, .closable, .resizable, .fullSizeContentView, .hudWindow, .utilityWindow],
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:180:26: error: reference to member 'titled' cannot be resolved without a contextual type
178 | let panel = ConsolePanel(
179 | contentRect: NSRect(x: 0, y: 0, width: PreviewConsoleView.minWidth, height: PreviewConsoleView.minHeight),
180 | styleMask: [.titled, .closable, .resizable, .fullSizeContentView, .hudWindow, .utilityWindow],
| `- error: reference to member 'titled' cannot be resolved without a contextual type
181 | backing: .buffered,
182 | defer: false
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:180:35: error: reference to member 'closable' cannot be resolved without a contextual type
178 | let panel = ConsolePanel(
179 | contentRect: NSRect(x: 0, y: 0, width: PreviewConsoleView.minWidth, height: PreviewConsoleView.minHeight),
180 | styleMask: [.titled, .closable, .resizable, .fullSizeContentView, .hudWindow, .utilityWindow],
| `- error: reference to member 'closable' cannot be resolved without a contextual type
181 | backing: .buffered,
182 | defer: false
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:180:46: error: reference to member 'resizable' cannot be resolved without a contextual type
178 | let panel = ConsolePanel(
179 | contentRect: NSRect(x: 0, y: 0, width: PreviewConsoleView.minWidth, height: PreviewConsoleView.minHeight),
180 | styleMask: [.titled, .closable, .resizable, .fullSizeContentView, .hudWindow, .utilityWindow],
| `- error: reference to member 'resizable' cannot be resolved without a contextual type
181 | backing: .buffered,
182 | defer: false
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:180:58: error: reference to member 'fullSizeContentView' cannot be resolved without a contextual type
178 | let panel = ConsolePanel(
179 | contentRect: NSRect(x: 0, y: 0, width: PreviewConsoleView.minWidth, height: PreviewConsoleView.minHeight),
180 | styleMask: [.titled, .closable, .resizable, .fullSizeContentView, .hudWindow, .utilityWindow],
| `- error: reference to member 'fullSizeContentView' cannot be resolved without a contextual type
181 | backing: .buffered,
182 | defer: false
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:180:80: error: reference to member 'hudWindow' cannot be resolved without a contextual type
178 | let panel = ConsolePanel(
179 | contentRect: NSRect(x: 0, y: 0, width: PreviewConsoleView.minWidth, height: PreviewConsoleView.minHeight),
180 | styleMask: [.titled, .closable, .resizable, .fullSizeContentView, .hudWindow, .utilityWindow],
| `- error: reference to member 'hudWindow' cannot be resolved without a contextual type
181 | backing: .buffered,
182 | defer: false
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:180:92: error: reference to member 'utilityWindow' cannot be resolved without a contextual type
178 | let panel = ConsolePanel(
179 | contentRect: NSRect(x: 0, y: 0, width: PreviewConsoleView.minWidth, height: PreviewConsoleView.minHeight),
180 | styleMask: [.titled, .closable, .resizable, .fullSizeContentView, .hudWindow, .utilityWindow],
| `- error: reference to member 'utilityWindow' cannot be resolved without a contextual type
181 | backing: .buffered,
182 | defer: false
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:181:23: error: cannot infer contextual base in reference to member 'buffered'
179 | contentRect: NSRect(x: 0, y: 0, width: PreviewConsoleView.minWidth, height: PreviewConsoleView.minHeight),
180 | styleMask: [.titled, .closable, .resizable, .fullSizeContentView, .hudWindow, .utilityWindow],
181 | backing: .buffered,
| `- error: cannot infer contextual base in reference to member 'buffered'
182 | defer: false
183 | )
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:184:24: error: cannot infer contextual base in reference to member 'statusBar'
182 | defer: false
183 | )
184 | panel.level = .statusBar
| `- error: cannot infer contextual base in reference to member 'statusBar'
185 | panel.hidesOnDeactivate = false
186 | panel.alphaValue = 0
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:188:27: error: argument passed to call that takes no arguments
186 | panel.alphaValue = 0
187 |
188 | self.init(window: panel)
| `- error: argument passed to call that takes no arguments
189 |
190 | self.trackedWindow = trackedWindow
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:196:9: error: cannot find 'contentViewController' in scope
194 | panel.title = URL(fileURLWithPath: "\(source)").deletingPathExtension().lastPathComponent
195 |
196 | contentViewController = NSHostingController(rootView: PreviewConsoleView())
| `- error: cannot find 'contentViewController' in scope
197 |
198 | Self.current = self
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:196:33: error: cannot find 'NSHostingController' in scope
194 | panel.title = URL(fileURLWithPath: "\(source)").deletingPathExtension().lastPathComponent
195 |
196 | contentViewController = NSHostingController(rootView: PreviewConsoleView())
| `- error: cannot find 'NSHostingController' in scope
197 |
198 | Self.current = self
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:202:9: error: 'super' cannot be used in class 'ConsoleWindowController' because it has no superclass
200 |
201 | override func showWindow(_ sender: Any?) {
202 | super.showWindow(sender)
| `- error: 'super' cannot be used in class 'ConsoleWindowController' because it has no superclass
203 |
204 | ProcessPipe.current.activate()
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:206:9: error: cannot find 'NSApplication' in scope
204 | ProcessPipe.current.activate()
205 |
206 | NSApplication.shared.activateForPreview { [weak self] in
| `- error: cannot find 'NSApplication' in scope
207 | guard let self = self else { return }
208 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:212:22: error: value of type 'ConsoleWindowController' has no member 'window'
210 |
211 | DispatchQueue.main.async {
212 | self.window?.alphaValue = 1
| `- error: value of type 'ConsoleWindowController' has no member 'window'
213 | }
214 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:240:28: error: cannot find 'NSScreen' in scope
238 |
239 | private func positionWithoutTrackedWindow() {
240 | guard let screen = NSScreen.matching(displaySelector ?? .mainDisplay) else { return }
| `- error: cannot find 'NSScreen' in scope
241 |
242 | window?.position(on: screen, using: effectiveAlignment, ignoreSafeArea: false)
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:242:9: error: cannot find 'window' in scope
240 | guard let screen = NSScreen.matching(displaySelector ?? .mainDisplay) else { return }
241 |
242 | window?.position(on: screen, using: effectiveAlignment, ignoreSafeArea: false)
| `- error: cannot find 'window' in scope
243 | }
244 |
SwiftCompile normal arm64 Compiling\ MacPreviewUtilsWindow.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/MacPreviewUtilsWindow.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/MacPreviewUtilsWindow.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile MacPreviewUtilsWindow.swift
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
2026-09-19 04:22:11.174 xcodebuild[668:4288] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
** BUILD FAILED **
The following build commands failed:
SwiftCompile normal arm64 (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
SwiftEmitModule normal arm64 Emitting\ module\ for\ MacPreviewUtils (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
Building workspace MacPreviewUtils with scheme MacPreviewUtils
(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:
MacPreviewUtils: /Users/admin/builder/spi-builder-workspace
resolved source packages: MacPreviewUtils
2026-09-19 04:22:17.515 xcodebuild[762:4670] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
{
"dependencies" : [
],
"manifest_display_name" : "MacPreviewUtils",
"name" : "MacPreviewUtils",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "11.0"
}
],
"products" : [
{
"name" : "MacPreviewUtils",
"targets" : [
"MacPreviewUtils",
"MacPreviewUtilsObjC"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "MacPreviewUtilsObjC",
"module_type" : "ClangTarget",
"name" : "MacPreviewUtilsObjC",
"path" : "Sources/MacPreviewUtilsObjC",
"product_memberships" : [
"MacPreviewUtils"
],
"sources" : [
"FixTranslucencyInPreviews.m"
],
"target_dependencies" : [
"MacPreviewUtils"
],
"type" : "library"
},
{
"c99name" : "MacPreviewUtils",
"module_type" : "SwiftTarget",
"name" : "MacPreviewUtils",
"path" : "Sources/MacPreviewUtils",
"product_memberships" : [
"MacPreviewUtils"
],
"sources" : [
"Helpers/MacPreviewUtilsWindow.swift",
"Helpers/NSApplication+ActivatePreview.swift",
"Helpers/PreviewWindow.swift",
"Helpers/RuntimeWarnings.swift",
"Helpers/ViewModifier+Warning.swift",
"Logging/PreviewConsoleModifier.swift",
"Logging/PreviewConsoleView.swift",
"Logging/ProcessPipe.swift",
"PinToDisplay.swift",
"ProcessInfo+Preview.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
{
"workspace" : {
"name" : "MacPreviewUtils",
"schemes" : [
"MacPreviewUtils"
]
}
}
2026-09-19 04:22:18.715 xcodebuild[770:4744] [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 MacPreviewUtils -destination generic/platform=tvOS
Command line invocation:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath /Users/admin/builder/spi-builder-workspace/.derivedData build -scheme MacPreviewUtils -destination generic/platform=tvOS
Resolve Package Graph
Resolved source packages:
MacPreviewUtils: /Users/admin/builder/spi-builder-workspace
ComputePackagePrebuildTargetDependencyGraph
Prepare packages
CreateBuildRequest
SendProjectDescription
CreateBuildOperation
ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (3 targets)
Target 'MacPreviewUtils-product' in project 'MacPreviewUtils'
➜ Explicit dependency on target 'MacPreviewUtils' in project 'MacPreviewUtils'
➜ Explicit dependency on target 'MacPreviewUtilsObjC' in project 'MacPreviewUtils'
Target 'MacPreviewUtilsObjC' in project 'MacPreviewUtils'
➜ Explicit dependency on target 'MacPreviewUtils' in project 'MacPreviewUtils'
Target 'MacPreviewUtils' in project 'MacPreviewUtils' (no dependencies)
GatherProvisioningInputs
CreateBuildDescription
ClangStatCache /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos27.0-24J360-e829b21a6f8c9b70876ba0858053c044b32bfd8d43560033f8d89884cdb90028.sdkstatcache
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk -o /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos27.0-24J360-e829b21a6f8c9b70876ba0858053c044b32bfd8d43560033f8d89884cdb90028.sdkstatcache
SwiftDriver MacPreviewUtils normal arm64 com.apple.xcode.tools.swift.compiler (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
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 MacPreviewUtils -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -DXcode -plugin-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk -target arm64-apple-tvos15.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -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-appletvos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos27.0-24J360-e829b21a6f8c9b70876ba0858053c044b32bfd8d43560033f8d89884cdb90028.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils-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/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils-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/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-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/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftCompile normal arm64 Compiling\ NSApplication+ActivatePreview.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/NSApplication+ActivatePreview.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/NSApplication+ActivatePreview.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile NSApplication+ActivatePreview.swift
SwiftCompile normal arm64 Compiling\ PreviewConsoleModifier.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift:32:25: error: cannot find type 'NSScreen' in scope
30 |
31 | /// The closure that's executed for each available display.
32 | public var filter: (NSScreen) -> Bool
| `- error: cannot find type 'NSScreen' in scope
33 |
34 | /// Initializes a predicate for filtering based on a display's name.
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:6:24: error: cannot find type 'NSWindow' in scope
4 |
5 | extension EnvironmentValues {
6 | var previewWindow: NSWindow? {
| `- error: cannot find type 'NSWindow' in scope
7 | get { self[PreviewWindowEnvironmentKey.self] }
8 | set { self[PreviewWindowEnvironmentKey.self] = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:128:6: error: generic parameter 'Value' could not be inferred
126 | }
127 |
128 | @Environment(\.previewWindow)
| `- error: generic parameter 'Value' could not be inferred
129 | private var previewWindow
130 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:128:18: error: cannot convert value of type 'KeyPath<Root, Value>' to expected argument type 'Value.Type'
126 | }
127 |
128 | @Environment(\.previewWindow)
| `- error: cannot convert value of type 'KeyPath<Root, Value>' to expected argument type 'Value.Type'
129 | private var previewWindow
130 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:128:18: error: cannot infer key path type from context; consider explicitly specifying a root type
126 | }
127 |
128 | @Environment(\.previewWindow)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
129 | private var previewWindow
130 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:153:27: error: cannot find type 'NSPanel' in scope
151 |
152 | @available(macOS 12.0, *)
153 | final class ConsolePanel: NSPanel, MacPreviewUtilsWindow {
| `- error: cannot find type 'NSPanel' in scope
154 |
155 | override func constrainFrameRect(_ frameRect: NSRect, to screen: NSScreen?) -> NSRect {
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:155:84: error: cannot find type 'NSRect' in scope
153 | final class ConsolePanel: NSPanel, MacPreviewUtilsWindow {
154 |
155 | override func constrainFrameRect(_ frameRect: NSRect, to screen: NSScreen?) -> NSRect {
| `- error: cannot find type 'NSRect' in scope
156 | guard let screen else {
157 | return super.constrainFrameRect(frameRect, to: screen)
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:155:51: error: cannot find type 'NSRect' in scope
153 | final class ConsolePanel: NSPanel, MacPreviewUtilsWindow {
154 |
155 | override func constrainFrameRect(_ frameRect: NSRect, to screen: NSScreen?) -> NSRect {
| `- error: cannot find type 'NSRect' in scope
156 | guard let screen else {
157 | return super.constrainFrameRect(frameRect, to: screen)
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:155:70: error: cannot find type 'NSScreen' in scope
153 | final class ConsolePanel: NSPanel, MacPreviewUtilsWindow {
154 |
155 | override func constrainFrameRect(_ frameRect: NSRect, to screen: NSScreen?) -> NSRect {
| `- error: cannot find type 'NSScreen' in scope
156 | guard let screen else {
157 | return super.constrainFrameRect(frameRect, to: screen)
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:166:38: error: cannot find type 'NSWindowController' in scope
164 |
165 | @available(macOS 12.0, *)
166 | final class ConsoleWindowController: NSWindowController {
| `- error: cannot find type 'NSWindowController' in scope
167 |
168 | static var current: ConsoleWindowController?
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:170:29: error: cannot find type 'NSWindow' in scope
168 | static var current: ConsoleWindowController?
169 |
170 | weak var trackedWindow: NSWindow?
| `- error: cannot find type 'NSWindow' in scope
171 | var alignment: Alignment?
172 | var displaySelector: DisplaySelector?
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:174:48: error: cannot find type 'NSWindow' in scope
172 | var displaySelector: DisplaySelector?
173 |
174 | convenience init(targetting trackedWindow: NSWindow, alignment: Alignment?, displaySelector: DisplaySelector, source: StaticString) {
| `- error: cannot find type 'NSWindow' in scope
175 | Self.current?.close()
176 | Self.current = nil
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:201:19: error: method does not override any method from its superclass
199 | }
200 |
201 | override func showWindow(_ sender: Any?) {
| `- error: method does not override any method from its superclass
202 | super.showWindow(sender)
203 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:267:17: warning: cannot use generic class 'Autoconnect' in a property declaration member of a type not marked '@_implementationOnly'; 'Combine' was not imported by this file
265 | @available(macOS 12.0, *)
266 | struct PreviewConsoleTestView: View {
267 | private var timer = Timer.publish(every: 2, on: .main, in: .common).autoconnect()
| `- warning: cannot use generic class 'Autoconnect' in a property declaration member of a type not marked '@_implementationOnly'; 'Combine' was not imported by this file
268 |
269 | var body: some View {
Combine.Publishers.Autoconnect:2:14: note: generic class declared here
1 | enum Publishers {
2 | public class Autoconnect<Upstream> : Publisher where Upstream : ConnectablePublisher {
| `- note: generic class declared here
3 | public typealias Output = Upstream.Output
4 | public typealias Failure = Upstream.Failure
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:267:17: warning: cannot use enum 'Publishers' in a property declaration member of a type not marked '@_implementationOnly'; 'Combine' was not imported by this file
265 | @available(macOS 12.0, *)
266 | struct PreviewConsoleTestView: View {
267 | private var timer = Timer.publish(every: 2, on: .main, in: .common).autoconnect()
| `- warning: cannot use enum 'Publishers' in a property declaration member of a type not marked '@_implementationOnly'; 'Combine' was not imported by this file
268 |
269 | var body: some View {
Combine.Publishers:2:13: note: enum declared here
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | public enum Publishers {
| `- note: enum declared here
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:157:20: error: 'super' cannot be used in class 'ConsolePanel' because it has no superclass
155 | override func constrainFrameRect(_ frameRect: NSRect, to screen: NSScreen?) -> NSRect {
156 | guard let screen else {
157 | return super.constrainFrameRect(frameRect, to: screen)
| `- error: 'super' cannot be used in class 'ConsolePanel' because it has no superclass
158 | }
159 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:160:16: error: cannot find 'constrainPreview' in scope
158 | }
159 |
160 | return constrainPreview(to: frameRect, on: screen)
| `- error: cannot find 'constrainPreview' in scope
161 | }
162 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:175:23: error: value of type 'ConsoleWindowController' has no member 'close'
173 |
174 | convenience init(targetting trackedWindow: NSWindow, alignment: Alignment?, displaySelector: DisplaySelector, source: StaticString) {
175 | Self.current?.close()
| `- error: value of type 'ConsoleWindowController' has no member 'close'
176 | Self.current = nil
177 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:179:26: error: cannot find 'NSRect' in scope
177 |
178 | let panel = ConsolePanel(
179 | contentRect: NSRect(x: 0, y: 0, width: PreviewConsoleView.minWidth, height: PreviewConsoleView.minHeight),
| `- error: cannot find 'NSRect' in scope
180 | styleMask: [.titled, .closable, .resizable, .fullSizeContentView, .hudWindow, .utilityWindow],
181 | backing: .buffered,
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:178:33: error: argument passed to call that takes no arguments
176 | Self.current = nil
177 |
178 | let panel = ConsolePanel(
| `- error: argument passed to call that takes no arguments
179 | contentRect: NSRect(x: 0, y: 0, width: PreviewConsoleView.minWidth, height: PreviewConsoleView.minHeight),
180 | styleMask: [.titled, .closable, .resizable, .fullSizeContentView, .hudWindow, .utilityWindow],
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:180:26: error: reference to member 'titled' cannot be resolved without a contextual type
178 | let panel = ConsolePanel(
179 | contentRect: NSRect(x: 0, y: 0, width: PreviewConsoleView.minWidth, height: PreviewConsoleView.minHeight),
180 | styleMask: [.titled, .closable, .resizable, .fullSizeContentView, .hudWindow, .utilityWindow],
| `- error: reference to member 'titled' cannot be resolved without a contextual type
181 | backing: .buffered,
182 | defer: false
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:180:35: error: reference to member 'closable' cannot be resolved without a contextual type
178 | let panel = ConsolePanel(
179 | contentRect: NSRect(x: 0, y: 0, width: PreviewConsoleView.minWidth, height: PreviewConsoleView.minHeight),
180 | styleMask: [.titled, .closable, .resizable, .fullSizeContentView, .hudWindow, .utilityWindow],
| `- error: reference to member 'closable' cannot be resolved without a contextual type
181 | backing: .buffered,
182 | defer: false
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:180:46: error: reference to member 'resizable' cannot be resolved without a contextual type
178 | let panel = ConsolePanel(
179 | contentRect: NSRect(x: 0, y: 0, width: PreviewConsoleView.minWidth, height: PreviewConsoleView.minHeight),
180 | styleMask: [.titled, .closable, .resizable, .fullSizeContentView, .hudWindow, .utilityWindow],
| `- error: reference to member 'resizable' cannot be resolved without a contextual type
181 | backing: .buffered,
182 | defer: false
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:180:58: error: reference to member 'fullSizeContentView' cannot be resolved without a contextual type
178 | let panel = ConsolePanel(
179 | contentRect: NSRect(x: 0, y: 0, width: PreviewConsoleView.minWidth, height: PreviewConsoleView.minHeight),
180 | styleMask: [.titled, .closable, .resizable, .fullSizeContentView, .hudWindow, .utilityWindow],
| `- error: reference to member 'fullSizeContentView' cannot be resolved without a contextual type
181 | backing: .buffered,
182 | defer: false
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:180:80: error: reference to member 'hudWindow' cannot be resolved without a contextual type
178 | let panel = ConsolePanel(
179 | contentRect: NSRect(x: 0, y: 0, width: PreviewConsoleView.minWidth, height: PreviewConsoleView.minHeight),
180 | styleMask: [.titled, .closable, .resizable, .fullSizeContentView, .hudWindow, .utilityWindow],
| `- error: reference to member 'hudWindow' cannot be resolved without a contextual type
181 | backing: .buffered,
182 | defer: false
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:180:92: error: reference to member 'utilityWindow' cannot be resolved without a contextual type
178 | let panel = ConsolePanel(
179 | contentRect: NSRect(x: 0, y: 0, width: PreviewConsoleView.minWidth, height: PreviewConsoleView.minHeight),
180 | styleMask: [.titled, .closable, .resizable, .fullSizeContentView, .hudWindow, .utilityWindow],
| `- error: reference to member 'utilityWindow' cannot be resolved without a contextual type
181 | backing: .buffered,
182 | defer: false
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:181:23: error: cannot infer contextual base in reference to member 'buffered'
179 | contentRect: NSRect(x: 0, y: 0, width: PreviewConsoleView.minWidth, height: PreviewConsoleView.minHeight),
180 | styleMask: [.titled, .closable, .resizable, .fullSizeContentView, .hudWindow, .utilityWindow],
181 | backing: .buffered,
| `- error: cannot infer contextual base in reference to member 'buffered'
182 | defer: false
183 | )
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:184:24: error: cannot infer contextual base in reference to member 'statusBar'
182 | defer: false
183 | )
184 | panel.level = .statusBar
| `- error: cannot infer contextual base in reference to member 'statusBar'
185 | panel.hidesOnDeactivate = false
186 | panel.alphaValue = 0
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:188:27: error: argument passed to call that takes no arguments
186 | panel.alphaValue = 0
187 |
188 | self.init(window: panel)
| `- error: argument passed to call that takes no arguments
189 |
190 | self.trackedWindow = trackedWindow
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:196:9: error: cannot find 'contentViewController' in scope
194 | panel.title = URL(fileURLWithPath: "\(source)").deletingPathExtension().lastPathComponent
195 |
196 | contentViewController = NSHostingController(rootView: PreviewConsoleView())
| `- error: cannot find 'contentViewController' in scope
197 |
198 | Self.current = self
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:196:33: error: cannot find 'NSHostingController' in scope
194 | panel.title = URL(fileURLWithPath: "\(source)").deletingPathExtension().lastPathComponent
195 |
196 | contentViewController = NSHostingController(rootView: PreviewConsoleView())
| `- error: cannot find 'NSHostingController' in scope
197 |
198 | Self.current = self
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:202:9: error: 'super' cannot be used in class 'ConsoleWindowController' because it has no superclass
200 |
201 | override func showWindow(_ sender: Any?) {
202 | super.showWindow(sender)
| `- error: 'super' cannot be used in class 'ConsoleWindowController' because it has no superclass
203 |
204 | ProcessPipe.current.activate()
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:206:9: error: cannot find 'NSApplication' in scope
204 | ProcessPipe.current.activate()
205 |
206 | NSApplication.shared.activateForPreview { [weak self] in
| `- error: cannot find 'NSApplication' in scope
207 | guard let self = self else { return }
208 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:212:22: error: value of type 'ConsoleWindowController' has no member 'window'
210 |
211 | DispatchQueue.main.async {
212 | self.window?.alphaValue = 1
| `- error: value of type 'ConsoleWindowController' has no member 'window'
213 | }
214 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:240:28: error: cannot find 'NSScreen' in scope
238 |
239 | private func positionWithoutTrackedWindow() {
240 | guard let screen = NSScreen.matching(displaySelector ?? .mainDisplay) else { return }
| `- error: cannot find 'NSScreen' in scope
241 |
242 | window?.position(on: screen, using: effectiveAlignment, ignoreSafeArea: false)
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:242:9: error: cannot find 'window' in scope
240 | guard let screen = NSScreen.matching(displaySelector ?? .mainDisplay) else { return }
241 |
242 | window?.position(on: screen, using: effectiveAlignment, ignoreSafeArea: false)
| `- error: cannot find 'window' in scope
243 | }
244 |
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile PreviewConsoleModifier.swift
SwiftCompile normal arm64 Compiling\ MacPreviewUtilsWindow.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/MacPreviewUtilsWindow.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/MacPreviewUtilsWindow.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile MacPreviewUtilsWindow.swift
SwiftCompile normal arm64 Compiling\ PreviewWindow.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:6:24: error: cannot find type 'NSWindow' in scope
4 |
5 | extension EnvironmentValues {
6 | var previewWindow: NSWindow? {
| `- error: cannot find type 'NSWindow' in scope
7 | get { self[PreviewWindowEnvironmentKey.self] }
8 | set { self[PreviewWindowEnvironmentKey.self] = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:13:30: error: cannot find type 'NSWindow' in scope
11 |
12 | private struct PreviewWindowEnvironmentKey: EnvironmentKey {
13 | static var defaultValue: NSWindow?
| `- error: cannot find type 'NSWindow' in scope
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:12:16: error: type 'PreviewWindowEnvironmentKey' does not conform to protocol 'EnvironmentKey'
10 | }
11 |
12 | private struct PreviewWindowEnvironmentKey: EnvironmentKey {
| |- error: type 'PreviewWindowEnvironmentKey' does not conform to protocol 'EnvironmentKey'
| `- note: add stubs for conformance
13 | static var defaultValue: NSWindow?
14 | }
SwiftUI.EnvironmentKey.Value:2:16: note: protocol requires nested type 'Value'
1 | protocol EnvironmentKey {
2 | associatedtype Value}
| `- note: protocol requires nested type 'Value'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:16:48: error: cannot find type 'NSWindow' in scope
14 | }
15 |
16 | typealias NSWindowSubject = PassthroughSubject<NSWindow?, Never>
| `- error: cannot find type 'NSWindow' in scope
17 |
18 | extension View {
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:28:32: error: cannot find type 'NSWindow' in scope
26 | private let windowSubject = NSWindowSubject()
27 |
28 | @State private var window: NSWindow?
| `- error: cannot find type 'NSWindow' in scope
29 |
30 | func body(content: Content) -> some View {
macro expansion @State:2:24: error: cannot find type 'NSWindow' in scope
`- /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:28:41: note: expanded code originates here
26 | private let windowSubject = NSWindowSubject()
27 |
28 | @State private var window: NSWindow?
| `- note: in expansion of macro 'State' on property 'window' here
+--- macro expansion @State -----------------------------------------
| 1 | private var __window = SwiftUICore.State._makeStorage(({
| 2 | let value: NSWindow? = nil
| | `- error: cannot find type 'NSWindow' in scope
| 3 | return value
| 4 | }))
+--------------------------------------------------------------------
29 |
30 | func body(content: Content) -> some View {
macro expansion @State:8:27: error: cannot find type 'NSWindow' in scope
`- /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:28:41: note: expanded code originates here
26 | private let windowSubject = NSWindowSubject()
27 |
28 | @State private var window: NSWindow?
| `- note: in expansion of macro 'State' on property 'window' here
+--- macro expansion @State -----------------------------------------
| 6 | @SwiftUICore._StatePropertyWrapperStorage(initialValue: "JHMxNU1hY1ByZXZpZXdVdGlsczBCMTRXaW5kb3dNb2RpZmllclY2d2luZG93MzNfNzUzQTdBRTBENzg3QUQ4OEU0NDZCNkY3NEI5MUVDNUFMTDVTdGF0ZWZNcF8yMF9pbml0aWFsU3RvcmVkVmFsdWVfZk11Xw==")
| 7 | private var _window: SwiftUICore.State<_>! = SwiftUICore._stateNil(of: {
| 8 | SwiftUICore.State<NSWindow?>(initialValue: nil)
| | `- error: cannot find type 'NSWindow' in scope
| 9 | })
|10 |
+--------------------------------------------------------------------
29 |
30 | func body(content: Content) -> some View {
macro expansion @State:7:40: error: could not infer type for placeholder
`- /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:28:41: note: expanded code originates here
26 | private let windowSubject = NSWindowSubject()
27 |
28 | @State private var window: NSWindow?
| `- note: in expansion of macro 'State' on property 'window' here
+--- macro expansion @State -----------------------------------------
| 5 |
| 6 | @SwiftUICore._StatePropertyWrapperStorage(initialValue: "JHMxNU1hY1ByZXZpZXdVdGlsczBCMTRXaW5kb3dNb2RpZmllclY2d2luZG93MzNfNzUzQTdBRTBENzg3QUQ4OEU0NDZCNkY3NEI5MUVDNUFMTDVTdGF0ZWZNcF8yMF9pbml0aWFsU3RvcmVkVmFsdWVfZk11Xw==")
| 7 | private var _window: SwiftUICore.State<_>! = SwiftUICore._stateNil(of: {
| | `- error: could not infer type for placeholder
| 8 | SwiftUICore.State<NSWindow?>(initialValue: nil)
| 9 | })
+--------------------------------------------------------------------
29 |
30 | func body(content: Content) -> some View {
macro expansion @State:12:41: error: cannot find type 'NSWindow' in scope
`- /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:28:41: note: expanded code originates here
26 | private let windowSubject = NSWindowSubject()
27 |
28 | @State private var window: NSWindow?
| `- note: in expansion of macro 'State' on property 'window' here
+--- macro expansion @State -----------------------------------------
|10 |
|11 | @SwiftUICore._StateProjectedValue
|12 | private var $window = SwiftUICore.State<NSWindow?>(initialValue: nil).projectedValue
| | `- error: cannot find type 'NSWindow' in scope
|13 |
|14 | @SwiftUICore._StateInitialStoredValue("U3dpZnRVSUNvcmUuU3RhdGUuX21ha2VTdG9yYWdlKGluaXRpYWxWYWx1ZTogeyBsZXQgeDogTlNXaW5kb3c/ID0gbmlsCnJldHVybiB4IH0oKSk=")
+--------------------------------------------------------------------
29 |
30 | func body(content: Content) -> some View {
macro expansion @State:16:20: error: cannot find type 'NSWindow' in scope
`- /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:28:41: note: expanded code originates here
26 | private let windowSubject = NSWindowSubject()
27 |
28 | @State private var window: NSWindow?
| `- note: in expansion of macro 'State' on property 'window' here
+--- macro expansion @State -----------------------------------------
|14 | @SwiftUICore._StateInitialStoredValue("U3dpZnRVSUNvcmUuU3RhdGUuX21ha2VTdG9yYWdlKGluaXRpYWxWYWx1ZTogeyBsZXQgeDogTlNXaW5kb3c/ID0gbmlsCnJldHVybiB4IH0oKSk=")
|15 | private static var $s15MacPreviewUtils0B14WindowModifierV6window33_753A7AE0D787AD88E446B6F74B91EC5ALL5StatefMp_20_initialStoredValue_fMu_ = (SwiftUICore.State._makeStorage(initialValue: {
|16 | let x: NSWindow? = nil
| | `- error: cannot find type 'NSWindow' in scope
|17 | return x
|18 | }()))
+--------------------------------------------------------------------
29 |
30 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:49:30: error: cannot find type 'Context' in scope
47 | var subject: NSWindowSubject
48 |
49 | func makeNSView(context: Context) -> _PreviewWindowGrabbingView {
| `- error: cannot find type 'Context' in scope
50 | let v = _PreviewWindowGrabbingView { window in
51 | subject.send(window)
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:56:70: error: cannot find type 'Context' in scope
54 | }
55 |
56 | func updateNSView(_ nsView: _PreviewWindowGrabbingView, context: Context) {
| `- error: cannot find type 'Context' in scope
57 |
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:44:36: error: cannot find type 'NSViewRepresentable' in scope
42 | }
43 |
44 | struct PreviewWindowProvidingView: NSViewRepresentable {
| `- error: cannot find type 'NSViewRepresentable' in scope
45 | typealias NSViewType = _PreviewWindowGrabbingView
46 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:61:41: error: cannot find type 'NSView' in scope
59 | }
60 |
61 | final class _PreviewWindowGrabbingView: NSView {
| `- error: cannot find type 'NSView' in scope
62 |
63 | var callback: (NSWindow?) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:63:20: error: cannot find type 'NSWindow' in scope
61 | final class _PreviewWindowGrabbingView: NSView {
62 |
63 | var callback: (NSWindow?) -> Void
| `- error: cannot find type 'NSWindow' in scope
64 |
65 | init(callback: @escaping (NSWindow?) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:65:31: error: cannot find type 'NSWindow' in scope
63 | var callback: (NSWindow?) -> Void
64 |
65 | init(callback: @escaping (NSWindow?) -> Void) {
| `- error: cannot find type 'NSWindow' in scope
66 | self.callback = callback
67 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:75:19: error: method does not override any method from its superclass
73 | }
74 |
75 | override func viewDidMoveToWindow() {
| `- error: method does not override any method from its superclass
76 | super.viewDidMoveToWindow()
77 |
macro expansion @_StateInitialStoredValue:4:24: error: cannot find type 'NSWindow' in scope
`- /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:28:41: note: expanded code originates here
26 | private let windowSubject = NSWindowSubject()
27 |
28 | @State private var window: NSWindow?
| `- note: in expansion of macro 'State' on property 'window' here
+--- macro expansion @State -----------------------------------------
|12 | private var $window = SwiftUICore.State<NSWindow?>(initialValue: nil).projectedValue
|13 |
|14 | @SwiftUICore._StateInitialStoredValue("U3dpZnRVSUNvcmUuU3RhdGUuX21ha2VTdG9yYWdlKGluaXRpYWxWYWx1ZTogeyBsZXQgeDogTlNXaW5kb3c/ID0gbmlsCnJldHVybiB4IH0oKSk=")
| | `- note: in expansion of macro '_StateInitialStoredValue' on static property '$s15MacPreviewUtils0B14WindowModifierV6window33_753A7AE0D787AD88E446B6F74B91EC5ALL5StatefMp_20_initialStoredValue_fMu_' here
|15 | private static var $s15MacPreviewUtils0B14WindowModifierV6window33_753A7AE0D787AD88E446B6F74B91EC5ALL5StatefMp_20_initialStoredValue_fMu_ = (SwiftUICore.State._makeStorage(initialValue: {
|16 | let x: NSWindow? = nil
|17 | return x
|18 | }()))
| +--- macro expansion @_StateInitialStoredValue ------------------
| |2 | get {
| |3 | SwiftUICore.State._makeStorage(initialValue: {
| |4 | let x: NSWindow? = nil
| | | `- error: cannot find type 'NSWindow' in scope
| |5 | return x
| |6 | }())
| +----------------------------------------------------------------
+--------------------------------------------------------------------
29 |
30 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:32:26: error: cannot convert value of type 'KeyPath<EnvironmentValues, V>' to expected argument type 'WritableKeyPath<EnvironmentValues, V>'
30 | func body(content: Content) -> some View {
31 | content
32 | .environment(\.previewWindow, window)
| `- error: cannot convert value of type 'KeyPath<EnvironmentValues, V>' to expected argument type 'WritableKeyPath<EnvironmentValues, V>'
33 | .background(
34 | PreviewWindowProvidingView(subject: windowSubject)
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:50:44: error: trailing closure passed to parameter of type 'NSCoder' that does not accept a closure
48 |
49 | func makeNSView(context: Context) -> _PreviewWindowGrabbingView {
50 | let v = _PreviewWindowGrabbingView { window in
| `- error: trailing closure passed to parameter of type 'NSCoder' that does not accept a closure
51 | subject.send(window)
52 | }
:
69 | }
70 |
71 | required init?(coder: NSCoder) {
| `- note: 'init(coder:)' declared here
72 | fatalError()
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:68:9: error: 'super' cannot be used in class '_PreviewWindowGrabbingView' because it has no superclass
66 | self.callback = callback
67 |
68 | super.init(frame: .zero)
| `- error: 'super' cannot be used in class '_PreviewWindowGrabbingView' because it has no superclass
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:76:9: error: 'super' cannot be used in class '_PreviewWindowGrabbingView' because it has no superclass
74 |
75 | override func viewDidMoveToWindow() {
76 | super.viewDidMoveToWindow()
| `- error: 'super' cannot be used in class '_PreviewWindowGrabbingView' because it has no superclass
77 |
78 | callback(window)
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile PreviewWindow.swift
SwiftCompile normal arm64 Compiling\ RuntimeWarnings.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/RuntimeWarnings.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/RuntimeWarnings.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile RuntimeWarnings.swift
SwiftCompile normal arm64 Compiling\ ViewModifier+Warning.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/ViewModifier+Warning.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/ViewModifier+Warning.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ViewModifier+Warning.swift
SwiftCompile normal arm64 Compiling\ ProcessInfo+Preview.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/ProcessInfo+Preview.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/ProcessInfo+Preview.swift:25:17: error: cannot find 'NSApplication' in scope
23 | /// `PreviewHostingWindow` is used for non-interactive previews, but this modifier requires interactive previews.
24 | /// This might break in the future since it relies on implementation details of SwiftUI previews.
25 | return !NSApplication.shared.windows.contains(where: { $0.className.contains("PreviewHostingWindow") })
| `- error: cannot find 'NSApplication' in scope
26 | #else
27 | return false
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/ProcessInfo+Preview.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ProcessInfo+Preview.swift
SwiftCompile normal arm64 Compiling\ ProcessPipe.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/ProcessPipe.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/ProcessPipe.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ProcessPipe.swift
SwiftCompile normal arm64 Compiling\ PreviewConsoleView.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleView.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleView.swift:26:14: error: 'textSelection' is unavailable in tvOS
24 | }
25 | }
26 | .textSelection(.enabled)
| `- error: 'textSelection' is unavailable in tvOS
27 | .safeAreaInset(edge: .bottom, alignment: .leading, spacing: 0) {
28 | bottomBar
SwiftUI.View.textSelection:2:25: note: 'textSelection' has been explicitly marked unavailable here
1 | protocol View {
2 | nonisolated public func textSelection<S>(_ selectability: S) -> some View where S : TextSelectability
| `- note: 'textSelection' has been explicitly marked unavailable here
3 | }
4 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleView.swift:26:29: error: 'enabled' is unavailable in tvOS
24 | }
25 | }
26 | .textSelection(.enabled)
| `- error: 'enabled' is unavailable in tvOS
27 | .safeAreaInset(edge: .bottom, alignment: .leading, spacing: 0) {
28 | bottomBar
SwiftUI.TextSelectability.enabled:2:43: note: 'enabled' has been explicitly marked unavailable here
1 | protocol TextSelectability {
2 | @export(implementation) public static var enabled: EnabledTextSelectability { get }}
| `- note: 'enabled' has been explicitly marked unavailable here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleView.swift:61:23: error: 'borderless' is only available in tvOS 17.0 or newer
3 |
4 | @available(macOS 12.0, *)
5 | struct PreviewConsoleView: View {
| `- note: add '@available' attribute to enclosing struct
6 | static var minWidth: CGFloat { 580 }
7 | static var minHeight: CGFloat { 250 }
:
43 |
44 | @ViewBuilder
45 | private var bottomBar: some View {
| `- note: add '@available' attribute to enclosing property
46 | HStack {
47 | Button {
:
59 | ConsoleSearchField(label: "Search", text: $searchTerm)
60 | }
61 | .buttonStyle(.borderless)
| |- error: 'borderless' is only available in tvOS 17.0 or newer
| `- note: add 'if #available' version check
62 | .padding(12)
63 | .background(Material.bar)
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleView.swift:63:30: error: 'bar' is unavailable in tvOS
61 | .buttonStyle(.borderless)
62 | .padding(12)
63 | .background(Material.bar)
| `- error: 'bar' is unavailable in tvOS
64 | .overlay(alignment: .top) {
65 | Rectangle()
SwiftUI.Material.bar:2:19: note: 'bar' has been explicitly marked unavailable here
1 | struct Material {
2 | public static let bar: Material}
| `- note: 'bar' has been explicitly marked unavailable here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleView.swift:91:21: error: cannot find 'NSPasteboard' in scope
89 | .contextMenu {
90 | Button("Copy") {
91 | NSPasteboard.general.clearContents()
| `- error: cannot find 'NSPasteboard' in scope
92 | NSPasteboard.general.setString(message.contents, forType: .string)
93 | }
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleView.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile PreviewConsoleView.swift
SwiftEmitModule normal arm64 Emitting\ module\ for\ MacPreviewUtils (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/MacPreviewUtilsWindow.swift:12:11: error: cannot find type 'NSWindow' in scope
10 | }
11 |
12 | extension NSWindow {
| `- error: cannot find type 'NSWindow' in scope
13 | func constrainPreview(to frameRect: NSRect, on screen: NSScreen?) -> NSRect {
14 | guard let screen else {
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/NSApplication+ActivatePreview.swift:4:11: error: cannot find type 'NSApplication' in scope
2 | import SwiftUI
3 |
4 | extension NSApplication {
| `- error: cannot find type 'NSApplication' in scope
5 |
6 | func activateForPreview(then block: (() -> Void)? = nil) {
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:6:24: error: cannot find type 'NSWindow' in scope
4 |
5 | extension EnvironmentValues {
6 | var previewWindow: NSWindow? {
| `- error: cannot find type 'NSWindow' in scope
7 | get { self[PreviewWindowEnvironmentKey.self] }
8 | set { self[PreviewWindowEnvironmentKey.self] = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:13:30: error: cannot find type 'NSWindow' in scope
11 |
12 | private struct PreviewWindowEnvironmentKey: EnvironmentKey {
13 | static var defaultValue: NSWindow?
| `- error: cannot find type 'NSWindow' in scope
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:12:16: error: type 'PreviewWindowEnvironmentKey' does not conform to protocol 'EnvironmentKey'
10 | }
11 |
12 | private struct PreviewWindowEnvironmentKey: EnvironmentKey {
| |- error: type 'PreviewWindowEnvironmentKey' does not conform to protocol 'EnvironmentKey'
| `- note: add stubs for conformance
13 | static var defaultValue: NSWindow?
14 | }
SwiftUI.EnvironmentKey.Value:2:16: note: protocol requires nested type 'Value'
1 | protocol EnvironmentKey {
2 | associatedtype Value}
| `- note: protocol requires nested type 'Value'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:16:48: error: cannot find type 'NSWindow' in scope
14 | }
15 |
16 | typealias NSWindowSubject = PassthroughSubject<NSWindow?, Never>
| `- error: cannot find type 'NSWindow' in scope
17 |
18 | extension View {
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:28:32: error: cannot find type 'NSWindow' in scope
26 | private let windowSubject = NSWindowSubject()
27 |
28 | @State private var window: NSWindow?
| `- error: cannot find type 'NSWindow' in scope
29 |
30 | func body(content: Content) -> some View {
macro expansion @State:2:24: error: cannot find type 'NSWindow' in scope
`- /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:28:41: note: expanded code originates here
26 | private let windowSubject = NSWindowSubject()
27 |
28 | @State private var window: NSWindow?
| `- note: in expansion of macro 'State' on property 'window' here
+--- macro expansion @State -----------------------------------------
| 1 | private var __window = SwiftUICore.State._makeStorage(({
| 2 | let value: NSWindow? = nil
| | `- error: cannot find type 'NSWindow' in scope
| 3 | return value
| 4 | }))
+--------------------------------------------------------------------
29 |
30 | func body(content: Content) -> some View {
macro expansion @State:8:27: error: cannot find type 'NSWindow' in scope
`- /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:28:41: note: expanded code originates here
26 | private let windowSubject = NSWindowSubject()
27 |
28 | @State private var window: NSWindow?
| `- note: in expansion of macro 'State' on property 'window' here
+--- macro expansion @State -----------------------------------------
| 6 | @SwiftUICore._StatePropertyWrapperStorage(initialValue: "JHMxNU1hY1ByZXZpZXdVdGlsczBCMTRXaW5kb3dNb2RpZmllclY2d2luZG93MzNfNzUzQTdBRTBENzg3QUQ4OEU0NDZCNkY3NEI5MUVDNUFMTDVTdGF0ZWZNcF8yMF9pbml0aWFsU3RvcmVkVmFsdWVfZk11Xw==")
| 7 | private var _window: SwiftUICore.State<_>! = SwiftUICore._stateNil(of: {
| 8 | SwiftUICore.State<NSWindow?>(initialValue: nil)
| | `- error: cannot find type 'NSWindow' in scope
| 9 | })
|10 |
+--------------------------------------------------------------------
29 |
30 | func body(content: Content) -> some View {
macro expansion @State:7:40: error: could not infer type for placeholder
`- /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:28:41: note: expanded code originates here
26 | private let windowSubject = NSWindowSubject()
27 |
28 | @State private var window: NSWindow?
| `- note: in expansion of macro 'State' on property 'window' here
+--- macro expansion @State -----------------------------------------
| 5 |
| 6 | @SwiftUICore._StatePropertyWrapperStorage(initialValue: "JHMxNU1hY1ByZXZpZXdVdGlsczBCMTRXaW5kb3dNb2RpZmllclY2d2luZG93MzNfNzUzQTdBRTBENzg3QUQ4OEU0NDZCNkY3NEI5MUVDNUFMTDVTdGF0ZWZNcF8yMF9pbml0aWFsU3RvcmVkVmFsdWVfZk11Xw==")
| 7 | private var _window: SwiftUICore.State<_>! = SwiftUICore._stateNil(of: {
| | `- error: could not infer type for placeholder
| 8 | SwiftUICore.State<NSWindow?>(initialValue: nil)
| 9 | })
+--------------------------------------------------------------------
29 |
30 | func body(content: Content) -> some View {
macro expansion @State:12:41: error: cannot find type 'NSWindow' in scope
`- /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:28:41: note: expanded code originates here
26 | private let windowSubject = NSWindowSubject()
27 |
28 | @State private var window: NSWindow?
| `- note: in expansion of macro 'State' on property 'window' here
+--- macro expansion @State -----------------------------------------
|10 |
|11 | @SwiftUICore._StateProjectedValue
|12 | private var $window = SwiftUICore.State<NSWindow?>(initialValue: nil).projectedValue
| | `- error: cannot find type 'NSWindow' in scope
|13 |
|14 | @SwiftUICore._StateInitialStoredValue("U3dpZnRVSUNvcmUuU3RhdGUuX21ha2VTdG9yYWdlKGluaXRpYWxWYWx1ZTogeyBsZXQgeDogTlNXaW5kb3c/ID0gbmlsCnJldHVybiB4IH0oKSk=")
+--------------------------------------------------------------------
29 |
30 | func body(content: Content) -> some View {
macro expansion @State:16:20: error: cannot find type 'NSWindow' in scope
`- /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:28:41: note: expanded code originates here
26 | private let windowSubject = NSWindowSubject()
27 |
28 | @State private var window: NSWindow?
| `- note: in expansion of macro 'State' on property 'window' here
+--- macro expansion @State -----------------------------------------
|14 | @SwiftUICore._StateInitialStoredValue("U3dpZnRVSUNvcmUuU3RhdGUuX21ha2VTdG9yYWdlKGluaXRpYWxWYWx1ZTogeyBsZXQgeDogTlNXaW5kb3c/ID0gbmlsCnJldHVybiB4IH0oKSk=")
|15 | private static var $s15MacPreviewUtils0B14WindowModifierV6window33_753A7AE0D787AD88E446B6F74B91EC5ALL5StatefMp_20_initialStoredValue_fMu_ = (SwiftUICore.State._makeStorage(initialValue: {
|16 | let x: NSWindow? = nil
| | `- error: cannot find type 'NSWindow' in scope
|17 | return x
|18 | }()))
+--------------------------------------------------------------------
29 |
30 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:49:30: error: cannot find type 'Context' in scope
47 | var subject: NSWindowSubject
48 |
49 | func makeNSView(context: Context) -> _PreviewWindowGrabbingView {
| `- error: cannot find type 'Context' in scope
50 | let v = _PreviewWindowGrabbingView { window in
51 | subject.send(window)
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:56:70: error: cannot find type 'Context' in scope
54 | }
55 |
56 | func updateNSView(_ nsView: _PreviewWindowGrabbingView, context: Context) {
| `- error: cannot find type 'Context' in scope
57 |
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:44:36: error: cannot find type 'NSViewRepresentable' in scope
42 | }
43 |
44 | struct PreviewWindowProvidingView: NSViewRepresentable {
| `- error: cannot find type 'NSViewRepresentable' in scope
45 | typealias NSViewType = _PreviewWindowGrabbingView
46 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:61:41: error: cannot find type 'NSView' in scope
59 | }
60 |
61 | final class _PreviewWindowGrabbingView: NSView {
| `- error: cannot find type 'NSView' in scope
62 |
63 | var callback: (NSWindow?) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:63:20: error: cannot find type 'NSWindow' in scope
61 | final class _PreviewWindowGrabbingView: NSView {
62 |
63 | var callback: (NSWindow?) -> Void
| `- error: cannot find type 'NSWindow' in scope
64 |
65 | init(callback: @escaping (NSWindow?) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:65:31: error: cannot find type 'NSWindow' in scope
63 | var callback: (NSWindow?) -> Void
64 |
65 | init(callback: @escaping (NSWindow?) -> Void) {
| `- error: cannot find type 'NSWindow' in scope
66 | self.callback = callback
67 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift:75:19: error: method does not override any method from its superclass
73 | }
74 |
75 | override func viewDidMoveToWindow() {
| `- error: method does not override any method from its superclass
76 | super.viewDidMoveToWindow()
77 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift:32:25: error: cannot find type 'NSScreen' in scope
30 |
31 | /// The closure that's executed for each available display.
32 | public var filter: (NSScreen) -> Bool
| `- error: cannot find type 'NSScreen' in scope
33 |
34 | /// Initializes a predicate for filtering based on a display's name.
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:128:18: error: cannot convert value of type 'KeyPath<Root, Value>' to expected argument type 'Value.Type'
126 | }
127 |
128 | @Environment(\.previewWindow)
| `- error: cannot convert value of type 'KeyPath<Root, Value>' to expected argument type 'Value.Type'
129 | private var previewWindow
130 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:128:6: error: generic parameter 'Value' could not be inferred
126 | }
127 |
128 | @Environment(\.previewWindow)
| `- error: generic parameter 'Value' could not be inferred
129 | private var previewWindow
130 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:128:18: error: cannot infer key path type from context; consider explicitly specifying a root type
126 | }
127 |
128 | @Environment(\.previewWindow)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
129 | private var previewWindow
130 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:153:27: error: cannot find type 'NSPanel' in scope
151 |
152 | @available(macOS 12.0, *)
153 | final class ConsolePanel: NSPanel, MacPreviewUtilsWindow {
| `- error: cannot find type 'NSPanel' in scope
154 |
155 | override func constrainFrameRect(_ frameRect: NSRect, to screen: NSScreen?) -> NSRect {
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:155:84: error: cannot find type 'NSRect' in scope
153 | final class ConsolePanel: NSPanel, MacPreviewUtilsWindow {
154 |
155 | override func constrainFrameRect(_ frameRect: NSRect, to screen: NSScreen?) -> NSRect {
| `- error: cannot find type 'NSRect' in scope
156 | guard let screen else {
157 | return super.constrainFrameRect(frameRect, to: screen)
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:155:51: error: cannot find type 'NSRect' in scope
153 | final class ConsolePanel: NSPanel, MacPreviewUtilsWindow {
154 |
155 | override func constrainFrameRect(_ frameRect: NSRect, to screen: NSScreen?) -> NSRect {
| `- error: cannot find type 'NSRect' in scope
156 | guard let screen else {
157 | return super.constrainFrameRect(frameRect, to: screen)
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:155:70: error: cannot find type 'NSScreen' in scope
153 | final class ConsolePanel: NSPanel, MacPreviewUtilsWindow {
154 |
155 | override func constrainFrameRect(_ frameRect: NSRect, to screen: NSScreen?) -> NSRect {
| `- error: cannot find type 'NSScreen' in scope
156 | guard let screen else {
157 | return super.constrainFrameRect(frameRect, to: screen)
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:166:38: error: cannot find type 'NSWindowController' in scope
164 |
165 | @available(macOS 12.0, *)
166 | final class ConsoleWindowController: NSWindowController {
| `- error: cannot find type 'NSWindowController' in scope
167 |
168 | static var current: ConsoleWindowController?
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:170:29: error: cannot find type 'NSWindow' in scope
168 | static var current: ConsoleWindowController?
169 |
170 | weak var trackedWindow: NSWindow?
| `- error: cannot find type 'NSWindow' in scope
171 | var alignment: Alignment?
172 | var displaySelector: DisplaySelector?
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:174:48: error: cannot find type 'NSWindow' in scope
172 | var displaySelector: DisplaySelector?
173 |
174 | convenience init(targetting trackedWindow: NSWindow, alignment: Alignment?, displaySelector: DisplaySelector, source: StaticString) {
| `- error: cannot find type 'NSWindow' in scope
175 | Self.current?.close()
176 | Self.current = nil
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:201:19: error: method does not override any method from its superclass
199 | }
200 |
201 | override func showWindow(_ sender: Any?) {
| `- error: method does not override any method from its superclass
202 | super.showWindow(sender)
203 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:267:17: warning: cannot use generic class 'Autoconnect' in a property declaration member of a type not marked '@_implementationOnly'; 'Combine' was not imported by this file
265 | @available(macOS 12.0, *)
266 | struct PreviewConsoleTestView: View {
267 | private var timer = Timer.publish(every: 2, on: .main, in: .common).autoconnect()
| `- warning: cannot use generic class 'Autoconnect' in a property declaration member of a type not marked '@_implementationOnly'; 'Combine' was not imported by this file
268 |
269 | var body: some View {
Combine.Publishers.Autoconnect:2:14: note: generic class declared here
1 | enum Publishers {
2 | public class Autoconnect<Upstream> : Publisher where Upstream : ConnectablePublisher {
| `- note: generic class declared here
3 | public typealias Output = Upstream.Output
4 | public typealias Failure = Upstream.Failure
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift:267:17: warning: cannot use enum 'Publishers' in a property declaration member of a type not marked '@_implementationOnly'; 'Combine' was not imported by this file
265 | @available(macOS 12.0, *)
266 | struct PreviewConsoleTestView: View {
267 | private var timer = Timer.publish(every: 2, on: .main, in: .common).autoconnect()
| `- warning: cannot use enum 'Publishers' in a property declaration member of a type not marked '@_implementationOnly'; 'Combine' was not imported by this file
268 |
269 | var body: some View {
Combine.Publishers:2:13: note: enum declared here
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | public enum Publishers {
| `- note: enum declared here
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift:51:38: error: cannot find type 'NSScreen' in scope
49 | /// - Parameter filter: A closure that takes an `NSScreen` and returns `true` if the display should be selected.
50 | /// The first display in the `NSScreen.screens` array that matches the filter will be used.
51 | public init(_ filter: @escaping (NSScreen) -> Bool) {
| `- error: cannot find type 'NSScreen' in scope
52 | self.filter = filter
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift:60:33: error: cannot find 'NSScreen' in scope
58 | /// A predicate that matches the Mac's current main display.
59 | static let mainDisplay: DisplaySelector = {
60 | DisplaySelector { $0 == NSScreen.main }
| `- error: cannot find 'NSScreen' in scope
61 | }()
62 | /// A predicate that matches the first external display that's connected to the Mac.
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift:60:25: error: trailing closure passed to parameter of type 'StringLiteralType' (aka 'String') that does not accept a closure
42 | /// .pin(to: "dell")
43 | /// ```
44 | public init(stringLiteral value: StringLiteralType) {
| `- note: 'init(stringLiteral:)' declared here
45 | self.filter = { $0.localizedName.localizedCaseInsensitiveContains(value) }
46 | }
:
58 | /// A predicate that matches the Mac's current main display.
59 | static let mainDisplay: DisplaySelector = {
60 | DisplaySelector { $0 == NSScreen.main }
| `- error: trailing closure passed to parameter of type 'StringLiteralType' (aka 'String') that does not accept a closure
61 | }()
62 | /// A predicate that matches the first external display that's connected to the Mac.
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift:65:33: error: cannot find 'NSScreen' in scope
63 | /// "External display" is any display that's not the current main display for the Mac.
64 | static let externalDisplay: DisplaySelector = {
65 | DisplaySelector { $0 != NSScreen.main }
| `- error: cannot find 'NSScreen' in scope
66 | }()
67 | /// A predicate that matches the first Sidecar display that's available.
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift:65:25: error: trailing closure passed to parameter of type 'StringLiteralType' (aka 'String') that does not accept a closure
42 | /// .pin(to: "dell")
43 | /// ```
44 | public init(stringLiteral value: StringLiteralType) {
| `- note: 'init(stringLiteral:)' declared here
45 | self.filter = { $0.localizedName.localizedCaseInsensitiveContains(value) }
46 | }
:
63 | /// "External display" is any display that's not the current main display for the Mac.
64 | static let externalDisplay: DisplaySelector = {
65 | DisplaySelector { $0 != NSScreen.main }
| `- error: trailing closure passed to parameter of type 'StringLiteralType' (aka 'String') that does not accept a closure
66 | }()
67 | /// A predicate that matches the first Sidecar display that's available.
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift:143:36: error: cannot find type 'NSWindow' in scope
141 | }
142 |
143 | private func attach(to window: NSWindow) {
| `- error: cannot find type 'NSWindow' in scope
144 | guard let targetScreen = NSScreen.matching(selector) else { return }
145 |
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift:187:35: error: cannot find type 'NSScreen' in scope
185 | #if DEBUG
186 | extension DisplaySelector {
187 | func callAsFunction(_ screen: NSScreen?) -> Bool {
| `- error: cannot find type 'NSScreen' in scope
188 | guard let screen else { return false }
189 | return filter(screen)
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift:204:11: error: cannot find type 'NSWindow' in scope
202 | }
203 |
204 | extension NSWindow {
| `- error: cannot find type 'NSWindow' in scope
205 | func position(on screen: NSScreen, using alignment: Alignment, ignoreSafeArea: Bool) {
206 | let screenFrame = ignoreSafeArea ? screen.frame : screen.visibleFrame
/Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift:231:18: error: cannot find type 'NSScreen' in scope
229 | }
230 |
231 | public extension NSScreen {
| `- error: cannot find type 'NSScreen' in scope
232 | static func matching(_ selector: DisplaySelector) -> NSScreen? {
233 | NSScreen.screens.first(where: { selector($0) })
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/MacPreviewUtils/Helpers/MacPreviewUtilsWindow.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/NSApplication+ActivatePreview.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/PreviewWindow.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/RuntimeWarnings.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Helpers/ViewModifier+Warning.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleModifier.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/PreviewConsoleView.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/Logging/ProcessPipe.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/ProcessInfo+Preview.swift -target arm64-apple-tvos15.0 -disable-cross-import-overlay-search -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib/swift/host/plugins/libPreviewsMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/bin/swift-plugin-server\#PreviewsMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/bin/swift-plugin-server\#SwiftMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftUIMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/bin/swift-plugin-server\#SwiftUIMacros -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/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils-dependencies-1.json -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk/Developer/Library/Frameworks -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -no-color-diagnostics -Xcc -fno-color-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -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/appletvos27.0-24J360-e829b21a6f8c9b70876ba0858053c044b32bfd8d43560033f8d89884cdb90028.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name MacPreviewUtils -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils_const_extract_protocols.json -disable-clang-spi -clang-target arm64-apple-tvos27.0 -target-sdk-version 27.0 -target-sdk-name appletvos27.0 -in-process-plugin-server-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -emit-module-doc-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/MacPreviewUtils.build/Debug-appletvos/MacPreviewUtils-t.build/Objects-normal/arm64/MacPreviewUtils.abi.json
SwiftCompile normal arm64 (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftCompile normal arm64 Compiling\ PinToDisplay.swift /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/MacPreviewUtils/PinToDisplay.swift (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile PinToDisplay.swift
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
2026-09-19 04:22:19.686 xcodebuild[771:4768] [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\ MacPreviewUtils (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
SwiftCompile normal arm64 (in target 'MacPreviewUtils' from project 'MacPreviewUtils')
Building workspace MacPreviewUtils with scheme MacPreviewUtils
(3 failures)
BUILD FAILURE 6.4 tvOS