Build Information
Failed to build ViewOnTouch with Swift 5.10 for macOS (SPM).
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0-Beta.2.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Jnis/ViewOnTouch.git
Reference: 1.0.1
Initialized empty Git repository in /Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/.git/
From https://github.com/Jnis/ViewOnTouch
* tag 1.0.1 -> FETCH_HEAD
HEAD is now at 9656e94 Merge pull request #1 from ast3150/patch-1
Cloned https://github.com/Jnis/ViewOnTouch.git
Revision (git rev-parse @):
9656e94f354f43ee6906f25cd762794cebf4e346
SUCCESS checkout https://github.com/Jnis/ViewOnTouch.git at 1.0.1
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 5.10
Building package at path: $workDir
https://github.com/Jnis/ViewOnTouch.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0-Beta.2.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--423B1241ED78D482.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module ViewOnTouch
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:32:132: error: 'View' is only available in macOS 10.15 or newer
public func onTouch(type: OnTouchType, limitToBounds: Bool = false, perform: @escaping (CGPoint, OnTouchType) -> Void) -> some View {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:32:17: note: add @available attribute to enclosing instance method
public func onTouch(type: OnTouchType, limitToBounds: Bool = false, perform: @escaping (CGPoint, OnTouchType) -> Void) -> some View {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:31:1: note: add @available attribute to enclosing extension
extension View {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:31:11: error: 'View' is only available in macOS 10.15 or newer
extension View {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:31:1: note: add @available attribute to enclosing extension
extension View {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:43:41: error: 'View' is only available in macOS 10.15 or newer
func body(content: Content) -> some View {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:43:10: note: add @available attribute to enclosing instance method
func body(content: Content) -> some View {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:38:8: note: add @available attribute to enclosing struct
struct TouchLocaterModifier: ViewModifier {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:61:30: error: cannot find type 'Context' in scope
func makeUIView(context: Context) -> TouchLocatingUIView {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:70:63: error: cannot find type 'Context' in scope
func updateUIView(_ uiView: TouchLocatingUIView, context: Context) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:98:39: error: cannot find 'UITapGestureRecognizer' in scope
private lazy var tapGesture = UITapGestureRecognizer(target: self, action: #selector(tapGestureAction(gesture:)))
^~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:107:54: error: cannot find type 'UIGestureRecognizer' in scope
@objc private func tapGestureAction(gesture: UIGestureRecognizer) {
^~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:99:45: error: cannot find 'UILongPressGestureRecognizer' in scope
private lazy var longPressGesture = UILongPressGestureRecognizer(target: self, action: #selector(longPressGestureAction(gesture:)))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:112:60: error: cannot find type 'UILongPressGestureRecognizer' in scope
@objc private func longPressGestureAction(gesture: UILongPressGestureRecognizer) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:87:18: error: initializer does not override a designated initializer from its superclass
override init(frame: CGRect) {
~~~~~~~~ ^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:124:51: error: cannot find type 'UITouch' in scope
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:124:73: error: cannot find type 'UIEvent' in scope
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:124:23: error: method does not override any method from its superclass
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
~~~~~~~~ ^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:132:51: error: cannot find type 'UITouch' in scope
override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:132:73: error: cannot find type 'UIEvent' in scope
override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:132:23: error: method does not override any method from its superclass
override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?) {
~~~~~~~~ ^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:140:51: error: cannot find type 'UITouch' in scope
override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:140:73: error: cannot find type 'UIEvent' in scope
override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:140:23: error: method does not override any method from its superclass
override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
~~~~~~~~ ^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:148:55: error: cannot find type 'UITouch' in scope
override func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent?) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:148:77: error: cannot find type 'UIEvent' in scope
override func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent?) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:148:23: error: method does not override any method from its superclass
override func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent?) {
~~~~~~~~ ^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:74:32: error: cannot find type 'UIView' in scope
class TouchLocatingUIView: UIView {
^~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:51:27: error: cannot find type 'UIViewRepresentable' in scope
struct TouchLocatingView: UIViewRepresentable {
^~~~~~~~~~~~~~~~~~~
[4/4] Compiling ViewOnTouch View+OnTouch.swift
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:32:132: error: 'View' is only available in macOS 10.15 or newer
public func onTouch(type: OnTouchType, limitToBounds: Bool = false, perform: @escaping (CGPoint, OnTouchType) -> Void) -> some View {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:32:17: note: add @available attribute to enclosing instance method
public func onTouch(type: OnTouchType, limitToBounds: Bool = false, perform: @escaping (CGPoint, OnTouchType) -> Void) -> some View {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:31:1: note: add @available attribute to enclosing extension
extension View {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:31:11: error: 'View' is only available in macOS 10.15 or newer
extension View {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:31:1: note: add @available attribute to enclosing extension
extension View {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:43:41: error: 'View' is only available in macOS 10.15 or newer
func body(content: Content) -> some View {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:43:10: note: add @available attribute to enclosing instance method
func body(content: Content) -> some View {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:38:8: note: add @available attribute to enclosing struct
struct TouchLocaterModifier: ViewModifier {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:61:30: error: cannot find type 'Context' in scope
func makeUIView(context: Context) -> TouchLocatingUIView {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:70:63: error: cannot find type 'Context' in scope
func updateUIView(_ uiView: TouchLocatingUIView, context: Context) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:98:39: error: cannot find 'UITapGestureRecognizer' in scope
private lazy var tapGesture = UITapGestureRecognizer(target: self, action: #selector(tapGestureAction(gesture:)))
^~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:107:54: error: cannot find type 'UIGestureRecognizer' in scope
@objc private func tapGestureAction(gesture: UIGestureRecognizer) {
^~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:99:45: error: cannot find 'UILongPressGestureRecognizer' in scope
private lazy var longPressGesture = UILongPressGestureRecognizer(target: self, action: #selector(longPressGestureAction(gesture:)))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:112:60: error: cannot find type 'UILongPressGestureRecognizer' in scope
@objc private func longPressGestureAction(gesture: UILongPressGestureRecognizer) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:87:18: error: initializer does not override a designated initializer from its superclass
override init(frame: CGRect) {
~~~~~~~~ ^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:124:51: error: cannot find type 'UITouch' in scope
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:124:73: error: cannot find type 'UIEvent' in scope
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:124:23: error: method does not override any method from its superclass
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
~~~~~~~~ ^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:132:51: error: cannot find type 'UITouch' in scope
override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:132:73: error: cannot find type 'UIEvent' in scope
override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:132:23: error: method does not override any method from its superclass
override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?) {
~~~~~~~~ ^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:140:51: error: cannot find type 'UITouch' in scope
override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:140:73: error: cannot find type 'UIEvent' in scope
override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:140:23: error: method does not override any method from its superclass
override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
~~~~~~~~ ^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:148:55: error: cannot find type 'UITouch' in scope
override func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent?) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:148:77: error: cannot find type 'UIEvent' in scope
override func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent?) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:148:23: error: method does not override any method from its superclass
override func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent?) {
~~~~~~~~ ^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:74:32: error: cannot find type 'UIView' in scope
class TouchLocatingUIView: UIView {
^~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:51:27: error: cannot find type 'UIViewRepresentable' in scope
struct TouchLocatingView: UIViewRepresentable {
^~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:33:14: error: 'modifier' is only available in macOS 10.15 or newer
self.modifier(TouchLocaterModifier(type: type, limitToBounds: limitToBounds, perform: perform))
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:33:14: note: add 'if #available' version check
self.modifier(TouchLocaterModifier(type: type, limitToBounds: limitToBounds, perform: perform))
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:32:17: note: add @available attribute to enclosing instance method
public func onTouch(type: OnTouchType, limitToBounds: Bool = false, perform: @escaping (CGPoint, OnTouchType) -> Void) -> some View {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:31:1: note: add @available attribute to enclosing extension
extension View {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:45:14: error: instance method 'overlay(_:ignoresSafeAreaEdges:)' requires that 'TouchLocatingView' conform to 'ShapeStyle'
.overlay(
^
SwiftUI.View:5:28: note: where 'S' = 'TouchLocatingView'
@inlinable public func overlay<S>(_ style: S, ignoresSafeAreaEdges edges: Edge.Set = .all) -> some View where S : ShapeStyle
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:63:40: error: missing argument for parameter 'frame' in call
let view = TouchLocatingUIView()
^
frame: <#CGRect#>
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:87:18: note: 'init(frame:)' declared here
override init(frame: CGRect) {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:88:13: error: 'super' members cannot be referenced in a root class
super.init(frame: frame)
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:94:13: error: 'super' members cannot be referenced in a root class
super.init(coder: coder)
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:102:13: error: cannot find 'isUserInteractionEnabled' in scope
isUserInteractionEnabled = true
^~~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:103:18: error: value of type 'TouchLocatingView.TouchLocatingUIView' has no member 'addGestureRecognizer'
self.addGestureRecognizer(tapGesture)
~~~~ ^~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:104:18: error: value of type 'TouchLocatingView.TouchLocatingUIView' has no member 'addGestureRecognizer'
self.addGestureRecognizer(longPressGesture)
~~~~ ^~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:114:34: error: cannot infer contextual base in reference to member 'began'
if gesture.state == .began {
~^~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:116:41: error: cannot infer contextual base in reference to member 'changed'
} else if gesture.state == .changed {
~^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:125:13: error: 'super' members cannot be referenced in a root class
super.touchesBegan(touches, with: event)
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:133:13: error: 'super' members cannot be referenced in a root class
super.touchesMoved(touches, with: event)
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:141:13: error: 'super' members cannot be referenced in a root class
super.touchesEnded(touches, with: event)
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:160:42: error: cannot find 'bounds' in scope
if limitToBounds == false || bounds.contains(location) {
^~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version--423B1241ED78D482.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] Emitting module ViewOnTouch
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:32:132: error: 'View' is only available in macOS 10.15 or newer
public func onTouch(type: OnTouchType, limitToBounds: Bool = false, perform: @escaping (CGPoint, OnTouchType) -> Void) -> some View {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:32:17: note: add @available attribute to enclosing instance method
public func onTouch(type: OnTouchType, limitToBounds: Bool = false, perform: @escaping (CGPoint, OnTouchType) -> Void) -> some View {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:31:1: note: add @available attribute to enclosing extension
extension View {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:31:11: error: 'View' is only available in macOS 10.15 or newer
extension View {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:31:1: note: add @available attribute to enclosing extension
extension View {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:43:41: error: 'View' is only available in macOS 10.15 or newer
func body(content: Content) -> some View {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:43:10: note: add @available attribute to enclosing instance method
func body(content: Content) -> some View {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:38:8: note: add @available attribute to enclosing struct
struct TouchLocaterModifier: ViewModifier {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:61:30: error: cannot find type 'Context' in scope
func makeUIView(context: Context) -> TouchLocatingUIView {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:70:63: error: cannot find type 'Context' in scope
func updateUIView(_ uiView: TouchLocatingUIView, context: Context) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:98:39: error: cannot find 'UITapGestureRecognizer' in scope
private lazy var tapGesture = UITapGestureRecognizer(target: self, action: #selector(tapGestureAction(gesture:)))
^~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:107:54: error: cannot find type 'UIGestureRecognizer' in scope
@objc private func tapGestureAction(gesture: UIGestureRecognizer) {
^~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:99:45: error: cannot find 'UILongPressGestureRecognizer' in scope
private lazy var longPressGesture = UILongPressGestureRecognizer(target: self, action: #selector(longPressGestureAction(gesture:)))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:112:60: error: cannot find type 'UILongPressGestureRecognizer' in scope
@objc private func longPressGestureAction(gesture: UILongPressGestureRecognizer) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:87:18: error: initializer does not override a designated initializer from its superclass
override init(frame: CGRect) {
~~~~~~~~ ^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:124:51: error: cannot find type 'UITouch' in scope
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:124:73: error: cannot find type 'UIEvent' in scope
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:124:23: error: method does not override any method from its superclass
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
~~~~~~~~ ^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:132:51: error: cannot find type 'UITouch' in scope
override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:132:73: error: cannot find type 'UIEvent' in scope
override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:132:23: error: method does not override any method from its superclass
override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?) {
~~~~~~~~ ^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:140:51: error: cannot find type 'UITouch' in scope
override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:140:73: error: cannot find type 'UIEvent' in scope
override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:140:23: error: method does not override any method from its superclass
override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
~~~~~~~~ ^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:148:55: error: cannot find type 'UITouch' in scope
override func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent?) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:148:77: error: cannot find type 'UIEvent' in scope
override func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent?) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:148:23: error: method does not override any method from its superclass
override func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent?) {
~~~~~~~~ ^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:74:32: error: cannot find type 'UIView' in scope
class TouchLocatingUIView: UIView {
^~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:51:27: error: cannot find type 'UIViewRepresentable' in scope
struct TouchLocatingView: UIViewRepresentable {
^~~~~~~~~~~~~~~~~~~
[3/3] Compiling ViewOnTouch View+OnTouch.swift
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:32:132: error: 'View' is only available in macOS 10.15 or newer
public func onTouch(type: OnTouchType, limitToBounds: Bool = false, perform: @escaping (CGPoint, OnTouchType) -> Void) -> some View {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:32:17: note: add @available attribute to enclosing instance method
public func onTouch(type: OnTouchType, limitToBounds: Bool = false, perform: @escaping (CGPoint, OnTouchType) -> Void) -> some View {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:31:1: note: add @available attribute to enclosing extension
extension View {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:31:11: error: 'View' is only available in macOS 10.15 or newer
extension View {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:31:1: note: add @available attribute to enclosing extension
extension View {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:43:41: error: 'View' is only available in macOS 10.15 or newer
func body(content: Content) -> some View {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:43:10: note: add @available attribute to enclosing instance method
func body(content: Content) -> some View {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:38:8: note: add @available attribute to enclosing struct
struct TouchLocaterModifier: ViewModifier {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:61:30: error: cannot find type 'Context' in scope
func makeUIView(context: Context) -> TouchLocatingUIView {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:70:63: error: cannot find type 'Context' in scope
func updateUIView(_ uiView: TouchLocatingUIView, context: Context) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:98:39: error: cannot find 'UITapGestureRecognizer' in scope
private lazy var tapGesture = UITapGestureRecognizer(target: self, action: #selector(tapGestureAction(gesture:)))
^~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:107:54: error: cannot find type 'UIGestureRecognizer' in scope
@objc private func tapGestureAction(gesture: UIGestureRecognizer) {
^~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:99:45: error: cannot find 'UILongPressGestureRecognizer' in scope
private lazy var longPressGesture = UILongPressGestureRecognizer(target: self, action: #selector(longPressGestureAction(gesture:)))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:112:60: error: cannot find type 'UILongPressGestureRecognizer' in scope
@objc private func longPressGestureAction(gesture: UILongPressGestureRecognizer) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:87:18: error: initializer does not override a designated initializer from its superclass
override init(frame: CGRect) {
~~~~~~~~ ^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:124:51: error: cannot find type 'UITouch' in scope
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:124:73: error: cannot find type 'UIEvent' in scope
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:124:23: error: method does not override any method from its superclass
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
~~~~~~~~ ^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:132:51: error: cannot find type 'UITouch' in scope
override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:132:73: error: cannot find type 'UIEvent' in scope
override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:132:23: error: method does not override any method from its superclass
override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?) {
~~~~~~~~ ^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:140:51: error: cannot find type 'UITouch' in scope
override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:140:73: error: cannot find type 'UIEvent' in scope
override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:140:23: error: method does not override any method from its superclass
override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
~~~~~~~~ ^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:148:55: error: cannot find type 'UITouch' in scope
override func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent?) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:148:77: error: cannot find type 'UIEvent' in scope
override func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent?) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:148:23: error: method does not override any method from its superclass
override func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent?) {
~~~~~~~~ ^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:74:32: error: cannot find type 'UIView' in scope
class TouchLocatingUIView: UIView {
^~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:51:27: error: cannot find type 'UIViewRepresentable' in scope
struct TouchLocatingView: UIViewRepresentable {
^~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:33:14: error: 'modifier' is only available in macOS 10.15 or newer
self.modifier(TouchLocaterModifier(type: type, limitToBounds: limitToBounds, perform: perform))
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:33:14: note: add 'if #available' version check
self.modifier(TouchLocaterModifier(type: type, limitToBounds: limitToBounds, perform: perform))
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:32:17: note: add @available attribute to enclosing instance method
public func onTouch(type: OnTouchType, limitToBounds: Bool = false, perform: @escaping (CGPoint, OnTouchType) -> Void) -> some View {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:31:1: note: add @available attribute to enclosing extension
extension View {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:45:14: error: instance method 'overlay(_:ignoresSafeAreaEdges:)' requires that 'TouchLocatingView' conform to 'ShapeStyle'
.overlay(
^
SwiftUI.View:5:28: note: where 'S' = 'TouchLocatingView'
@inlinable public func overlay<S>(_ style: S, ignoresSafeAreaEdges edges: Edge.Set = .all) -> some View where S : ShapeStyle
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:63:40: error: missing argument for parameter 'frame' in call
let view = TouchLocatingUIView()
^
frame: <#CGRect#>
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:87:18: note: 'init(frame:)' declared here
override init(frame: CGRect) {
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:88:13: error: 'super' members cannot be referenced in a root class
super.init(frame: frame)
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:94:13: error: 'super' members cannot be referenced in a root class
super.init(coder: coder)
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:102:13: error: cannot find 'isUserInteractionEnabled' in scope
isUserInteractionEnabled = true
^~~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:103:18: error: value of type 'TouchLocatingView.TouchLocatingUIView' has no member 'addGestureRecognizer'
self.addGestureRecognizer(tapGesture)
~~~~ ^~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:104:18: error: value of type 'TouchLocatingView.TouchLocatingUIView' has no member 'addGestureRecognizer'
self.addGestureRecognizer(longPressGesture)
~~~~ ^~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:114:34: error: cannot infer contextual base in reference to member 'began'
if gesture.state == .began {
~^~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:116:41: error: cannot infer contextual base in reference to member 'changed'
} else if gesture.state == .changed {
~^~~~~~~
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:125:13: error: 'super' members cannot be referenced in a root class
super.touchesBegan(touches, with: event)
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:133:13: error: 'super' members cannot be referenced in a root class
super.touchesMoved(touches, with: event)
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:141:13: error: 'super' members cannot be referenced in a root class
super.touchesEnded(touches, with: event)
^
/Users/builder/builds/UKfvDsi8u/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/View+OnTouch.swift:160:42: error: cannot find 'bounds' in scope
if limitToBounds == false || bounds.contains(location) {
^~~~~~
error: fatalError
BUILD FAILURE 5.10 macosSpm
Build Machine: Mac 7