Build Information
Failed to build ZoomableScrollView, reference 1.0.4 (887167
), with Swift 5.8 for macOS (SPM) on 5 Sep 2024 21:29:58 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-14.3.1.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.52.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/insub4067/ZoomableScrollView.git
Reference: 1.0.4
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/insub4067/ZoomableScrollView
* tag 1.0.4 -> FETCH_HEAD
HEAD is now at 887167d Disable Scroll Debounce
Cloned https://github.com/insub4067/ZoomableScrollView.git
Revision (git rev-parse @):
887167dde654a9abab7f69643a08facf8e56ec9c
SUCCESS checkout https://github.com/insub4067/ZoomableScrollView.git at 1.0.4
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 5.8
Building package at path: $PWD
https://github.com/insub4067/ZoomableScrollView.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-14.3.1.app xcrun swift build --arch arm64
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/2] Emitting module ZoomableScrollView
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:6:50: error: cannot find type 'UIViewRepresentable' in scope
public struct ZoomableScrollView<Content: View>: UIViewRepresentable {
^~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:10:6: error: 'State' is only available in macOS 10.15 or newer
@State private var currentScale: CGFloat = 1.0
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:6:15: note: add @available attribute to enclosing generic struct
public struct ZoomableScrollView<Content: View>: UIViewRepresentable {
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:11:6: error: 'State' is only available in macOS 10.15 or newer
@State private var tapLocation: CGPoint = .zero
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:6:15: note: add @available attribute to enclosing generic struct
public struct ZoomableScrollView<Content: View>: UIViewRepresentable {
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:15:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
@ViewBuilder content: () -> Content
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:13:12: note: add @available attribute to enclosing initializer
public init(
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:6:15: note: add @available attribute to enclosing generic struct
public struct ZoomableScrollView<Content: View>: UIViewRepresentable {
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:21:49: error: cannot find type 'UIScrollView' in scope
public func makeUIView(context: Context) -> UIScrollView {
^~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:21:37: error: cannot find type 'Context' in scope
public func makeUIView(context: Context) -> UIScrollView {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:28:55: error: cannot find type 'UIScrollView' in scope
private func setupScrollView(context: Context) -> UIScrollView {
^~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:28:43: error: cannot find type 'Context' in scope
private func setupScrollView(context: Context) -> UIScrollView {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:42:47: error: cannot find type 'UIScrollView' in scope
private func addHostedView(to scrollView: UIScrollView, context: Context) {
^~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:42:70: error: cannot find type 'Context' in scope
private func addHostedView(to scrollView: UIScrollView, context: Context) {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:51:54: error: cannot find type 'UIScrollView' in scope
private func addGestureRecognizer(to scrollView: UIScrollView, context: Context) {
^~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:51:77: error: cannot find type 'Context' in scope
private func addGestureRecognizer(to scrollView: UIScrollView, context: Context) {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:69:40: error: cannot find type 'UIScrollView' in scope
public func updateUIView(_ uiView: UIScrollView, context: Context) {
^~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:69:63: error: cannot find type 'Context' in scope
public func updateUIView(_ uiView: UIScrollView, context: Context) {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:87:46: error: cannot find type 'UIScrollView' in scope
@MainActor func zoomRect(for scrollView: UIScrollView, scale: CGFloat, center: CGPoint) -> CGRect {
^~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:6:43: error: 'View' is only available in macOS 10.15 or newer
public struct ZoomableScrollView<Content: View>: UIViewRepresentable {
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:6:15: note: add @available attribute to enclosing generic struct
public struct ZoomableScrollView<Content: View>: UIViewRepresentable {
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:101:41: error: cannot find type 'UIScrollViewDelegate' in scope
public class Coordinator: NSObject, UIScrollViewDelegate {
^~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:111:32: error: cannot find type 'UIHostingController' in scope
hostingController: UIHostingController<Content>,
^~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:104:32: error: cannot find type 'UIHostingController' in scope
var hostingController: UIHostingController<Content>
^~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:106:10: error: 'Binding' is only available in macOS 10.15 or newer
@Binding private var currentScale: CGFloat
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:101:18: note: add @available attribute to enclosing class
public class Coordinator: NSObject, UIScrollViewDelegate {
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:101:18: note: add @available attribute to enclosing class
public class Coordinator: NSObject, UIScrollViewDelegate {
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:107:10: error: 'Binding' is only available in macOS 10.15 or newer
@Binding private var tapLocation: CGPoint
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:101:18: note: add @available attribute to enclosing class
public class Coordinator: NSObject, UIScrollViewDelegate {
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:101:18: note: add @available attribute to enclosing class
public class Coordinator: NSObject, UIScrollViewDelegate {
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:112:20: error: 'Binding' is only available in macOS 10.15 or newer
scale: Binding<CGFloat>,
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:109:9: note: add @available attribute to enclosing initializer
init(
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:101:18: note: add @available attribute to enclosing class
public class Coordinator: NSObject, UIScrollViewDelegate {
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:113:23: error: 'Binding' is only available in macOS 10.15 or newer
location: Binding<CGPoint>
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:109:9: note: add @available attribute to enclosing initializer
init(
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:101:18: note: add @available attribute to enclosing class
public class Coordinator: NSObject, UIScrollViewDelegate {
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:121:59: error: cannot find type 'UIView' in scope
public func viewForZooming(in _: UIScrollView) -> UIView? {
^~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:121:42: error: cannot find type 'UIScrollView' in scope
public func viewForZooming(in _: UIScrollView) -> UIView? {
^~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:125:48: error: cannot find type 'UIScrollView' in scope
public func scrollViewDidEndZooming(_: UIScrollView, with _: UIView?, atScale scale: CGFloat) {
^~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:125:70: error: cannot find type 'UIView' in scope
public func scrollViewDidEndZooming(_: UIScrollView, with _: UIView?, atScale scale: CGFloat) {
^~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:129:44: error: cannot find type 'UITapGestureRecognizer' in scope
@objc func handleDoubleTap(sender: UITapGestureRecognizer) {
^~~~~~~~~~~~~~~~~~~~~~
[2/2] Compiling ZoomableScrollView ZoomableScrollView.swift
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:6:50: error: cannot find type 'UIViewRepresentable' in scope
public struct ZoomableScrollView<Content: View>: UIViewRepresentable {
^~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:10:6: error: 'State' is only available in macOS 10.15 or newer
@State private var currentScale: CGFloat = 1.0
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:6:15: note: add @available attribute to enclosing generic struct
public struct ZoomableScrollView<Content: View>: UIViewRepresentable {
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:11:6: error: 'State' is only available in macOS 10.15 or newer
@State private var tapLocation: CGPoint = .zero
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:6:15: note: add @available attribute to enclosing generic struct
public struct ZoomableScrollView<Content: View>: UIViewRepresentable {
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:15:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
@ViewBuilder content: () -> Content
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:13:12: note: add @available attribute to enclosing initializer
public init(
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:6:15: note: add @available attribute to enclosing generic struct
public struct ZoomableScrollView<Content: View>: UIViewRepresentable {
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:21:49: error: cannot find type 'UIScrollView' in scope
public func makeUIView(context: Context) -> UIScrollView {
^~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:21:37: error: cannot find type 'Context' in scope
public func makeUIView(context: Context) -> UIScrollView {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:28:55: error: cannot find type 'UIScrollView' in scope
private func setupScrollView(context: Context) -> UIScrollView {
^~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:28:43: error: cannot find type 'Context' in scope
private func setupScrollView(context: Context) -> UIScrollView {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:42:47: error: cannot find type 'UIScrollView' in scope
private func addHostedView(to scrollView: UIScrollView, context: Context) {
^~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:42:70: error: cannot find type 'Context' in scope
private func addHostedView(to scrollView: UIScrollView, context: Context) {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:51:54: error: cannot find type 'UIScrollView' in scope
private func addGestureRecognizer(to scrollView: UIScrollView, context: Context) {
^~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:51:77: error: cannot find type 'Context' in scope
private func addGestureRecognizer(to scrollView: UIScrollView, context: Context) {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:69:40: error: cannot find type 'UIScrollView' in scope
public func updateUIView(_ uiView: UIScrollView, context: Context) {
^~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:69:63: error: cannot find type 'Context' in scope
public func updateUIView(_ uiView: UIScrollView, context: Context) {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:87:46: error: cannot find type 'UIScrollView' in scope
@MainActor func zoomRect(for scrollView: UIScrollView, scale: CGFloat, center: CGPoint) -> CGRect {
^~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:6:43: error: 'View' is only available in macOS 10.15 or newer
public struct ZoomableScrollView<Content: View>: UIViewRepresentable {
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:6:15: note: add @available attribute to enclosing generic struct
public struct ZoomableScrollView<Content: View>: UIViewRepresentable {
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:101:41: error: cannot find type 'UIScrollViewDelegate' in scope
public class Coordinator: NSObject, UIScrollViewDelegate {
^~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:111:32: error: cannot find type 'UIHostingController' in scope
hostingController: UIHostingController<Content>,
^~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:104:32: error: cannot find type 'UIHostingController' in scope
var hostingController: UIHostingController<Content>
^~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:106:10: error: 'Binding' is only available in macOS 10.15 or newer
@Binding private var currentScale: CGFloat
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:101:18: note: add @available attribute to enclosing class
public class Coordinator: NSObject, UIScrollViewDelegate {
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:101:18: note: add @available attribute to enclosing class
public class Coordinator: NSObject, UIScrollViewDelegate {
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:107:10: error: 'Binding' is only available in macOS 10.15 or newer
@Binding private var tapLocation: CGPoint
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:101:18: note: add @available attribute to enclosing class
public class Coordinator: NSObject, UIScrollViewDelegate {
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:101:18: note: add @available attribute to enclosing class
public class Coordinator: NSObject, UIScrollViewDelegate {
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:112:20: error: 'Binding' is only available in macOS 10.15 or newer
scale: Binding<CGFloat>,
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:109:9: note: add @available attribute to enclosing initializer
init(
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:101:18: note: add @available attribute to enclosing class
public class Coordinator: NSObject, UIScrollViewDelegate {
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:113:23: error: 'Binding' is only available in macOS 10.15 or newer
location: Binding<CGPoint>
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:109:9: note: add @available attribute to enclosing initializer
init(
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:101:18: note: add @available attribute to enclosing class
public class Coordinator: NSObject, UIScrollViewDelegate {
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:121:59: error: cannot find type 'UIView' in scope
public func viewForZooming(in _: UIScrollView) -> UIView? {
^~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:121:42: error: cannot find type 'UIScrollView' in scope
public func viewForZooming(in _: UIScrollView) -> UIView? {
^~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:125:48: error: cannot find type 'UIScrollView' in scope
public func scrollViewDidEndZooming(_: UIScrollView, with _: UIView?, atScale scale: CGFloat) {
^~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:125:70: error: cannot find type 'UIView' in scope
public func scrollViewDidEndZooming(_: UIScrollView, with _: UIView?, atScale scale: CGFloat) {
^~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:129:44: error: cannot find type 'UITapGestureRecognizer' in scope
@objc func handleDoubleTap(sender: UITapGestureRecognizer) {
^~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:29:26: error: cannot find 'UIScrollView' in scope
let scrollView = UIScrollView()
^~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:30:39: error: cannot infer contextual base in reference to member 'clear'
scrollView.backgroundColor = .clear
~^~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:45:41: error: reference to member 'flexibleWidth' cannot be resolved without a contextual type
hostedView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:45:57: error: reference to member 'flexibleHeight' cannot be resolved without a contextual type
hostedView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
^
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:47:39: error: cannot infer contextual base in reference to member 'clear'
hostedView.backgroundColor = .clear
~^~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:52:33: error: cannot find 'UITapGestureRecognizer' in scope
let gestureRecognizer = UITapGestureRecognizer(
^~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/ZoomableScrollView/ZoomableScrollView.swift:63:33: error: cannot infer contextual base in reference to member 'init'
hostingController: .init(rootView: content),
~^~~~
BUILD FAILURE 5.8 macosSpm