The Swift Package Index logo.Swift Package Index

Build Information

Failed to build HostingView, reference main (4712a4), with Swift 6.4 for macOS (SPM) on 25 Sep 2026 21:10:04 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Jaesung-Jung/HostingView.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Jaesung-Jung/HostingView
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 4712a4d Update README
Cloned https://github.com/Jaesung-Jung/HostingView.git
Revision (git rev-parse @):
4712a4dfb6226ab7c632d6bce43037bf8b508d88
SUCCESS checkout https://github.com/Jaesung-Jung/HostingView.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/Jaesung-Jung/HostingView.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64
Building for debugging...
[Pre-planning 1 / 66]
[Planning deferred tasks]
[19 / 28]
[20 / 29] HostingView
[30 / 98]
[33 / 98]
[37 / 98]
[42 / 98]
[44 / 98]
[50 / 98]
[51 / 98]
[53 / 98]
[56 / 98]
[61 / 98]
[64 / 98]
[66 / 98]
[67 / 98]
[77 / 98]
[79 / 98]
[80 / 98]
[83 / 98]
[85 / 98]
[89 / 98] HostingView
error: SwiftCompile normal arm64 failed with a nonzero exit code. Command line:     cd /Users/admin/builder

/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:55:27: error: cannot find type 'UIView' in scope
 53 | /// ])
 54 | /// ```
 55 | public class HostingView: UIView {
    |                           `- error: cannot find type 'UIView' in scope
 56 |   private(set) var contentView: UIView!
 57 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:56:33: error: cannot find type 'UIView' in scope
 54 | /// ```
 55 | public class HostingView: UIView {
 56 |   private(set) var contentView: UIView!
    |                                 `- error: cannot find type 'UIView' in scope
 57 |
 58 |   /// The natural size of the hosted SwiftUI content.
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:63:23: error: property does not override any property from its superclass
 61 |   /// available. This lets multiline and flexible SwiftUI content participate
 62 |   /// in Auto Layout using the width that the layout system has assigned.
 63 |   public override var intrinsicContentSize: CGSize {
    |                       `- error: property does not override any property from its superclass
 64 |     let targetWidth = bounds.width > .zero ? bounds.width : UIView.layoutFittingCompressedSize.width
 65 |     let horizontalPriority: UILayoutPriority = bounds.width > .zero ? .required : .fittingSizeLevel
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:77:39: error: cannot find type 'UIEdgeInsets' in scope
 75 |   /// This view reports zero safe-area insets so the hosted SwiftUI hierarchy
 76 |   /// can extend to the edges of the UIKit view that contains it.
 77 |   public override var safeAreaInsets: UIEdgeInsets {
    |                                       `- error: cannot find type 'UIEdgeInsets' in scope
 78 |     get { .zero }
 79 |     set {}
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:117:24: error: method does not override any method from its superclass
115 |   }
116 |
117 |   public override func layoutSubviews() {
    |                        `- error: method does not override any method from its superclass
118 |     super.layoutSubviews()
119 |     contentView.frame = bounds
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:122:24: error: method does not override any method from its superclass
120 |   }
121 |
122 |   public override func systemLayoutSizeFitting(_ targetSize: CGSize) -> CGSize {
    |                        `- error: method does not override any method from its superclass
123 |     systemLayoutSizeFitting(
124 |       targetSize,
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:132:62: error: cannot find type 'UILayoutPriority' in scope
130 |   public override func systemLayoutSizeFitting(
131 |     _ targetSize: CGSize,
132 |     withHorizontalFittingPriority horizontalFittingPriority: UILayoutPriority,
    |                                                              `- error: cannot find type 'UILayoutPriority' in scope
133 |     verticalFittingPriority: UILayoutPriority
134 |   ) -> CGSize {
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:133:30: error: cannot find type 'UILayoutPriority' in scope
131 |     _ targetSize: CGSize,
132 |     withHorizontalFittingPriority horizontalFittingPriority: UILayoutPriority,
133 |     verticalFittingPriority: UILayoutPriority
    |                              `- error: cannot find type 'UILayoutPriority' in scope
134 |   ) -> CGSize {
135 |     contentView.systemLayoutSizeFitting(targetSize, withHorizontalFittingPriority: horizontalFittingPriority, verticalFittingPriority: verticalFittingPriority)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:142:10: error: return expression of type 'HostingView' does not conform to 'View'
140 |
141 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
142 | #Preview {
    |          `- error: return expression of type 'HostingView' does not conform to 'View'
143 |   HostingView {
144 |     Text("Hosting View")
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:119:10: error: return expression of type 'StatefulHostingView<Int>' does not conform to 'View'
117 |
118 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
119 | #Preview {
    |          `- error: return expression of type 'StatefulHostingView<Int>' does not conform to 'View'
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
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/HostingView/HostingView.swift /Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift -target arm64-apple-macos12.0 -disable-cross-import-overlay-search -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins/libPreviewsMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server\#PreviewsMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server\#SwiftMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins/libSwiftUIMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.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/.build/out/Intermediates.noindex/HostingView.build/Debug/HostingView-t.build/Objects-normal/arm64/HostingView-dependencies-1.json -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX27.0.sdk -I /Users/admin/builder/spi-builder-workspace/.build/out/Products/Debug -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.build/out/Products/Debug -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -module-cache-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftExplicitPrecompiledModules -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/admin/builder -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.build/out/SDKStatCaches.noindex/macosx27.0-26A425-80c5bbf1d171475443272936d42f90a36a22442a12e9d48fe1a705f55a1adfc4.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.build/out/Products/Debug/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/HostingView.build/Debug/HostingView-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/HostingView.build/Debug/HostingView-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/HostingView.build/Debug/HostingView-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name HostingView -package-name spi_builder_workspace -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/HostingView.build/Debug/HostingView-t.build/Objects-normal/arm64/HostingView_const_extract_protocols.json -disable-clang-spi -clang-target arm64-apple-macos27.0 -target-sdk-version 27.0 -target-sdk-name macosx27.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/.build/out/Intermediates.noindex/HostingView.build/Debug/HostingView-t.build/Objects-normal/arm64/HostingView.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/HostingView.build/Debug/HostingView-t.build/Objects-normal/arm64/HostingView.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/HostingView.build/Debug/HostingView-t.build/Objects-normal/arm64/HostingView-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/HostingView.build/Debug/HostingView-t.build/Objects-normal/arm64/HostingView-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/HostingView.build/Debug/HostingView-t.build/Objects-normal/arm64/HostingView-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/HostingView.build/Debug/HostingView-t.build/Objects-normal/arm64/HostingView.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/HostingView.build/Debug/HostingView-t.build/Objects-normal/arm64/HostingView.abi.json
error: Build failed
BUILD FAILURE 6.4 macosSpm