Build Information
Failed to build Magnetic, reference 3.3.1 (140334
), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 12:37:51 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/efremidze/Magnetic.git
Reference: 3.3.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/efremidze/Magnetic
* tag 3.3.1 -> FETCH_HEAD
HEAD is now at 1403349 3.3.1
Cloned https://github.com/efremidze/Magnetic.git
Revision (git rev-parse @):
14033492b91f6026ccbd285014c4fb4cacc8e4a6
SUCCESS checkout https://github.com/efremidze/Magnetic.git at 3.3.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "magnetic",
"name": "Magnetic",
"url": "https://github.com/efremidze/Magnetic.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Magnetic",
"dependencies": [
]
}
]
}
Fetching https://github.com/efremidze/Magnetic.git
[1/1288] Fetching magnetic
Fetched https://github.com/efremidze/Magnetic.git from cache (3.49s)
Creating working copy for https://github.com/efremidze/Magnetic.git
Working copy of https://github.com/efremidze/Magnetic.git resolved at 3.3.1 (1403349)
warning: '.resolve-product-dependencies': dependency 'magnetic' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/efremidze/Magnetic.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/11] Emitting module Magnetic
/Users/admin/builder/spi-builder-workspace/Sources/Extensions.swift:23:11: error: cannot find type 'UIImage' in scope
21 | }
22 |
23 | extension UIImage {
| `- error: cannot find type 'UIImage' in scope
24 | func aspectFill(_ size: CGSize) -> UIImage {
25 | let aspectWidth = size.width / self.size.width
/Users/admin/builder/spi-builder-workspace/Sources/Magnetic.swift:119:52: error: cannot find type 'UITouch' in scope
117 | extension Magnetic {
118 |
119 | open override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: cannot find type 'UITouch' in scope
120 | guard removeNodeOnLongPress, let touch = touches.first else { return }
121 | touchStarted = touch.timestamp
/Users/admin/builder/spi-builder-workspace/Sources/Magnetic.swift:119:74: error: cannot find type 'UIEvent' in scope
117 | extension Magnetic {
118 |
119 | open override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: cannot find type 'UIEvent' in scope
120 | guard removeNodeOnLongPress, let touch = touches.first else { return }
121 | touchStarted = touch.timestamp
/Users/admin/builder/spi-builder-workspace/Sources/Magnetic.swift:119:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
117 | extension Magnetic {
118 |
119 | open override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
120 | guard removeNodeOnLongPress, let touch = touches.first else { return }
121 | touchStarted = touch.timestamp
/Users/admin/builder/spi-builder-workspace/Sources/Magnetic.swift:119:24: error: method does not override any method from its superclass
117 | extension Magnetic {
118 |
119 | open override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: method does not override any method from its superclass
120 | guard removeNodeOnLongPress, let touch = touches.first else { return }
121 | touchStarted = touch.timestamp
/Users/admin/builder/spi-builder-workspace/Sources/Magnetic.swift:124:52: error: cannot find type 'UITouch' in scope
122 | }
123 |
124 | override open func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: cannot find type 'UITouch' in scope
125 | guard let touch = touches.first else { return }
126 | let location = touch.location(in: self)
/Users/admin/builder/spi-builder-workspace/Sources/Magnetic.swift:124:74: error: cannot find type 'UIEvent' in scope
122 | }
123 |
124 | override open func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: cannot find type 'UIEvent' in scope
125 | guard let touch = touches.first else { return }
126 | let location = touch.location(in: self)
/Users/admin/builder/spi-builder-workspace/Sources/Magnetic.swift:124:14: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
122 | }
123 |
124 | override open func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
125 | guard let touch = touches.first else { return }
126 | let location = touch.location(in: self)
/Users/admin/builder/spi-builder-workspace/Sources/Magnetic.swift:124:24: error: method does not override any method from its superclass
122 | }
123 |
124 | override open func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: method does not override any method from its superclass
125 | guard let touch = touches.first else { return }
126 | let location = touch.location(in: self)
/Users/admin/builder/spi-builder-workspace/Sources/Magnetic.swift:135:52: error: cannot find type 'UITouch' in scope
133 | }
134 |
135 | override open func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: cannot find type 'UITouch' in scope
136 | guard let touch = touches.first else { return }
137 | let location = touch.location(in: self)
/Users/admin/builder/spi-builder-workspace/Sources/Magnetic.swift:135:74: error: cannot find type 'UIEvent' in scope
133 | }
134 |
135 | override open func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: cannot find type 'UIEvent' in scope
136 | guard let touch = touches.first else { return }
137 | let location = touch.location(in: self)
/Users/admin/builder/spi-builder-workspace/Sources/Magnetic.swift:135:14: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
133 | }
134 |
135 | override open func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
136 | guard let touch = touches.first else { return }
137 | let location = touch.location(in: self)
/Users/admin/builder/spi-builder-workspace/Sources/Magnetic.swift:135:24: error: method does not override any method from its superclass
133 | }
134 |
135 | override open func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: method does not override any method from its superclass
136 | guard let touch = touches.first else { return }
137 | let location = touch.location(in: self)
/Users/admin/builder/spi-builder-workspace/Sources/Magnetic.swift:168:56: error: cannot find type 'UITouch' in scope
166 | }
167 |
168 | override open func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: cannot find type 'UITouch' in scope
169 | isDragging = false
170 | }
/Users/admin/builder/spi-builder-workspace/Sources/Magnetic.swift:168:78: error: cannot find type 'UIEvent' in scope
166 | }
167 |
168 | override open func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: cannot find type 'UIEvent' in scope
169 | isDragging = false
170 | }
/Users/admin/builder/spi-builder-workspace/Sources/Magnetic.swift:168:14: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
166 | }
167 |
168 | override open func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
169 | isDragging = false
170 | }
/Users/admin/builder/spi-builder-workspace/Sources/Magnetic.swift:168:24: error: method does not override any method from its superclass
166 | }
167 |
168 | override open func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: method does not override any method from its superclass
169 | isDragging = false
170 | }
/Users/admin/builder/spi-builder-workspace/Sources/MagneticView+SwiftUI.swift:15:37: error: cannot find type 'Context' in scope
13 |
14 | public struct MagneticView_SwiftUI: UIViewRepresentable {
15 | public func makeUIView(context: Context) -> MagneticView {
| `- error: cannot find type 'Context' in scope
16 | MagneticView()
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/MagneticView+SwiftUI.swift:18:63: error: cannot find type 'Context' in scope
16 | MagneticView()
17 | }
18 | public func updateUIView(_ uiView: MagneticView, context: Context) {}
| `- error: cannot find type 'Context' in scope
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/MagneticView+SwiftUI.swift:14:37: error: cannot find type 'UIViewRepresentable' in scope
12 | import SwiftUI
13 |
14 | public struct MagneticView_SwiftUI: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
15 | public func makeUIView(context: Context) -> MagneticView {
16 | MagneticView()
/Users/admin/builder/spi-builder-workspace/Sources/MagneticView.swift:36:26: error: method does not override any method from its superclass
34 | }
35 |
36 | public override func layoutSubviews() {
| `- error: method does not override any method from its superclass
37 | super.layoutSubviews()
38 |
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:206:45: error: cannot find type 'UIImage' in scope
204 | - Returns: A new node.
205 | */
206 | public init(text: String? = nil, image: UIImage? = nil, color: UIColor, path: CGPath, marginScale: CGFloat = 1.01) {
| `- error: cannot find type 'UIImage' in scope
207 | super.init()
208 | self.path = path
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:206:68: error: cannot find type 'UIColor' in scope
204 | - Returns: A new node.
205 | */
206 | public init(text: String? = nil, image: UIImage? = nil, color: UIColor, path: CGPath, marginScale: CGFloat = 1.01) {
| `- error: cannot find type 'UIColor' in scope
207 | super.init()
208 | self.path = path
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:230:57: error: cannot find type 'UIImage' in scope
228 | - Returns: A new node.
229 | */
230 | public convenience init(text: String? = nil, image: UIImage? = nil, color: UIColor, radius: CGFloat, marginScale: CGFloat = 1.01) {
| `- error: cannot find type 'UIImage' in scope
231 | let path = SKShapeNode(circleOfRadius: radius).path!
232 | self.init(text: text, image: image, color: color, path: path, marginScale: marginScale)
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:230:80: error: cannot find type 'UIColor' in scope
228 | - Returns: A new node.
229 | */
230 | public convenience init(text: String? = nil, image: UIImage? = nil, color: UIColor, radius: CGFloat, marginScale: CGFloat = 1.01) {
| `- error: cannot find type 'UIColor' in scope
231 | let path = SKShapeNode(circleOfRadius: radius).path!
232 | self.init(text: text, image: image, color: color, path: path, marginScale: marginScale)
/Users/admin/builder/spi-builder-workspace/Sources/SKMultilineLabelNode.swift:17:25: error: cannot find type 'UIColor' in scope
15 | open var fontName: String? { didSet { update() } }
16 | open var fontSize: CGFloat = 32 { didSet { update() } }
17 | open var fontColor: UIColor? { didSet { update() } }
| `- error: cannot find type 'UIColor' in scope
18 |
19 | open var separator: String? { didSet { update() } }
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:186:32: error: cannot find 'UIColor' in scope
184 | struct Defaults {
185 | static let fontName = "Avenir-Black"
186 | static let fontColor = UIColor.white
| `- error: cannot find 'UIColor' in scope
187 | static let fontSize = CGFloat(12)
188 | static let color = UIColor.clear
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:39:21: error: cannot find type 'UIImage' in scope
37 | The image displayed by the node.
38 | */
39 | open var image: UIImage? {
| `- error: cannot find type 'UIImage' in scope
40 | didSet {
41 | // let url = URL(string: "https://picsum.photos/1200/600")!
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:52:21: error: cannot find type 'UIColor' in scope
50 | Also blends the color with the image.
51 | */
52 | open var color: UIColor = Defaults.color {
| `- error: cannot find type 'UIColor' in scope
53 | didSet {
54 | self.fillColor = color
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:68:17: error: cannot find 'accessibilityTraits' in scope
66 | if isSelected {
67 | selectedAnimation()
68 | accessibilityTraits = .selected
| `- error: cannot find 'accessibilityTraits' in scope
69 | } else {
70 | deselectedAnimation()
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:71:17: error: cannot find 'accessibilityTraits' in scope
69 | } else {
70 | deselectedAnimation()
71 | accessibilityTraits = .none
| `- error: cannot find 'accessibilityTraits' in scope
72 | }
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:79:45: error: cannot find type 'UIBezierPath' in scope
77 | The internal accessibilityPath used by the node.
78 | */
79 | private var overridenAccessibilityPath: UIBezierPath?
| `- error: cannot find type 'UIBezierPath' in scope
80 |
81 | open override var accessibilityPath: UIBezierPath? {
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:81:42: error: cannot find type 'UIBezierPath' in scope
79 | private var overridenAccessibilityPath: UIBezierPath?
80 |
81 | open override var accessibilityPath: UIBezierPath? {
| `- error: cannot find type 'UIBezierPath' in scope
82 | get { overridenAccessibilityPath ?? UIBezierPath(ovalIn: self.accessibilityFrame) }
83 | set { self.overridenAccessibilityPath = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:81:23: error: property does not override any property from its superclass
79 | private var overridenAccessibilityPath: UIBezierPath?
80 |
81 | open override var accessibilityPath: UIBezierPath? {
| `- error: property does not override any property from its superclass
82 | get { overridenAccessibilityPath ?? UIBezierPath(ovalIn: self.accessibilityFrame) }
83 | set { self.overridenAccessibilityPath = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:117:32: error: cannot find type 'UIColor' in scope
115 | The original color of the node before animation
116 | */
117 | private var originalColor: UIColor = Defaults.color
| `- error: cannot find type 'UIColor' in scope
118 |
119 | /**
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:122:29: error: cannot find type 'UIColor' in scope
120 | The color of the seleted node
121 | */
122 | open var selectedColor: UIColor?
| `- error: cannot find type 'UIColor' in scope
123 |
124 | /**
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:127:33: error: cannot find type 'UIColor' in scope
125 | The text color of the seleted node
126 | */
127 | open var selectedFontColor: UIColor?
| `- error: cannot find type 'UIColor' in scope
128 |
129 | /**
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:132:36: error: cannot find type 'UIColor' in scope
130 | The original text color of the node before animation
131 | */
132 | private var originalFontColor: UIColor = Defaults.fontColor
| `- error: cannot find type 'UIColor' in scope
133 |
134 | /**
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:164:25: error: cannot find type 'UIColor' in scope
162 | The color of the label's font
163 | */
164 | open var fontColor: UIColor {
| `- error: cannot find type 'UIColor' in scope
165 | get { label.fontColor ?? Defaults.fontColor }
166 | set { label.fontColor = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:188:28: error: cannot find 'UIColor' in scope
186 | static let fontColor = UIColor.white
187 | static let fontSize = CGFloat(12)
188 | static let color = UIColor.clear
| `- error: cannot find 'UIColor' in scope
189 | static let marginScale = CGFloat(1.01)
190 | static let scaleToFitContent = false // backwards compatability
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:239:47: error: cannot find type 'UIImage' in scope
237 | }
238 |
239 | open func configure(text: String?, image: UIImage?, color: UIColor) {
| `- error: cannot find type 'UIImage' in scope
240 | self.text = text
241 | self.image = image
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:239:64: error: cannot find type 'UIColor' in scope
237 | }
238 |
239 | open func configure(text: String?, image: UIImage?, color: UIColor) {
| `- error: cannot find type 'UIColor' in scope
240 | self.text = text
241 | self.image = image
/Users/admin/builder/spi-builder-workspace/Sources/SKAction+Color.swift:23:11: error: cannot find type 'UIColor' in scope
21 | }
22 |
23 | extension UIColor {
| `- error: cannot find type 'UIColor' in scope
24 | var components: ColorComponents {
25 | get {
/Users/admin/builder/spi-builder-workspace/Sources/SKAction+Color.swift:36:47: error: cannot find type 'UIColor' in scope
34 | typealias ColorTransitionConfigure = ((_ node: SKNode) -> Void)?
35 |
36 | static func colorTransition(from fromColor: UIColor, to toColor: UIColor, duration: Double = 0.4, configure: ColorTransitionConfigure = nil) -> SKAction {
| `- error: cannot find type 'UIColor' in scope
37 | return SKAction.customAction(withDuration: duration, actionBlock: { (node : SKNode!, elapsedTime : CGFloat) -> Void in
38 | let fraction = CGFloat(elapsedTime / CGFloat(duration))
/Users/admin/builder/spi-builder-workspace/Sources/SKAction+Color.swift:36:68: error: cannot find type 'UIColor' in scope
34 | typealias ColorTransitionConfigure = ((_ node: SKNode) -> Void)?
35 |
36 | static func colorTransition(from fromColor: UIColor, to toColor: UIColor, duration: Double = 0.4, configure: ColorTransitionConfigure = nil) -> SKAction {
| `- error: cannot find type 'UIColor' in scope
37 | return SKAction.customAction(withDuration: duration, actionBlock: { (node : SKNode!, elapsedTime : CGFloat) -> Void in
38 | let fraction = CGFloat(elapsedTime / CGFloat(duration))
[4/11] Compiling Magnetic MagneticView+Accessibility.swift
/Users/admin/builder/spi-builder-workspace/Sources/MagneticView+Accessibility.swift:13:29: error: cannot find 'UIAccessibilityCustomRotor' in scope
11 | extension MagneticView {
12 | func accessibilityCreateSelectionRotor(withName name: String, usingScene magnet: Magnetic) {
13 | let selectedRotor = UIAccessibilityCustomRotor(name: name) { predicate in
| `- error: cannot find 'UIAccessibilityCustomRotor' in scope
14 | // Sort by Node name/text and ensure there is at least 1 selected Node
15 | let selected = magnet.selectedChildren.sorted { $0.text ?? "" < $1.text ?? "" }
/Users/admin/builder/spi-builder-workspace/Sources/MagneticView+Accessibility.swift:32:24: error: cannot find 'UIAccessibilityCustomRotorItemResult' in scope
30 |
31 | if let node = self.fetchNextSelectedNode(inDirection: isDirectionForward, fromCurrentNodeIndex: currentNodeIndex, inNodeArray: all) {
32 | return UIAccessibilityCustomRotorItemResult(targetElement: node, targetRange: nil)
| `- error: cannot find 'UIAccessibilityCustomRotorItemResult' in scope
33 | } else { return nil }
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/MagneticView+Accessibility.swift:17:52: error: 'nil' requires a contextual type
15 | let selected = magnet.selectedChildren.sorted { $0.text ?? "" < $1.text ?? "" }
16 | let all = magnet.children.compactMap { $0 as? Node }
17 | guard selected.count > 0 else { return nil }
| `- error: 'nil' requires a contextual type
18 |
19 | // See which direction the user is scrolling
/Users/admin/builder/spi-builder-workspace/Sources/MagneticView+Accessibility.swift:36:9: error: cannot assign to value: 'accessibilityCustomRotors' is a method
34 | }
35 |
36 | accessibilityCustomRotors = [selectedRotor]
| `- error: cannot assign to value: 'accessibilityCustomRotors' is a method
37 | }
38 |
[5/11] Compiling Magnetic MagneticView.swift
/Users/admin/builder/spi-builder-workspace/Sources/MagneticView.swift:36:26: error: method does not override any method from its superclass
34 | }
35 |
36 | public override func layoutSubviews() {
| `- error: method does not override any method from its superclass
37 | super.layoutSubviews()
38 |
/Users/admin/builder/spi-builder-workspace/Sources/MagneticView.swift:37:15: error: value of type 'SKView' has no member 'layoutSubviews'
35 |
36 | public override func layoutSubviews() {
37 | super.layoutSubviews()
| `- error: value of type 'SKView' has no member 'layoutSubviews'
38 |
39 | magnetic.size = bounds.size
[6/11] Compiling Magnetic Magnetic.swift
/Users/admin/builder/spi-builder-workspace/Sources/Magnetic.swift:119:52: error: cannot find type 'UITouch' in scope
117 | extension Magnetic {
118 |
119 | open override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: cannot find type 'UITouch' in scope
120 | guard removeNodeOnLongPress, let touch = touches.first else { return }
121 | touchStarted = touch.timestamp
/Users/admin/builder/spi-builder-workspace/Sources/Magnetic.swift:119:74: error: cannot find type 'UIEvent' in scope
117 | extension Magnetic {
118 |
119 | open override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: cannot find type 'UIEvent' in scope
120 | guard removeNodeOnLongPress, let touch = touches.first else { return }
121 | touchStarted = touch.timestamp
/Users/admin/builder/spi-builder-workspace/Sources/Magnetic.swift:119:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
117 | extension Magnetic {
118 |
119 | open override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
120 | guard removeNodeOnLongPress, let touch = touches.first else { return }
121 | touchStarted = touch.timestamp
/Users/admin/builder/spi-builder-workspace/Sources/Magnetic.swift:119:24: error: method does not override any method from its superclass
117 | extension Magnetic {
118 |
119 | open override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: method does not override any method from its superclass
120 | guard removeNodeOnLongPress, let touch = touches.first else { return }
121 | touchStarted = touch.timestamp
/Users/admin/builder/spi-builder-workspace/Sources/Magnetic.swift:124:52: error: cannot find type 'UITouch' in scope
122 | }
123 |
124 | override open func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: cannot find type 'UITouch' in scope
125 | guard let touch = touches.first else { return }
126 | let location = touch.location(in: self)
/Users/admin/builder/spi-builder-workspace/Sources/Magnetic.swift:124:74: error: cannot find type 'UIEvent' in scope
122 | }
123 |
124 | override open func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: cannot find type 'UIEvent' in scope
125 | guard let touch = touches.first else { return }
126 | let location = touch.location(in: self)
/Users/admin/builder/spi-builder-workspace/Sources/Magnetic.swift:124:14: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
122 | }
123 |
124 | override open func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
125 | guard let touch = touches.first else { return }
126 | let location = touch.location(in: self)
/Users/admin/builder/spi-builder-workspace/Sources/Magnetic.swift:124:24: error: method does not override any method from its superclass
122 | }
123 |
124 | override open func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: method does not override any method from its superclass
125 | guard let touch = touches.first else { return }
126 | let location = touch.location(in: self)
/Users/admin/builder/spi-builder-workspace/Sources/Magnetic.swift:135:52: error: cannot find type 'UITouch' in scope
133 | }
134 |
135 | override open func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: cannot find type 'UITouch' in scope
136 | guard let touch = touches.first else { return }
137 | let location = touch.location(in: self)
/Users/admin/builder/spi-builder-workspace/Sources/Magnetic.swift:135:74: error: cannot find type 'UIEvent' in scope
133 | }
134 |
135 | override open func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: cannot find type 'UIEvent' in scope
136 | guard let touch = touches.first else { return }
137 | let location = touch.location(in: self)
/Users/admin/builder/spi-builder-workspace/Sources/Magnetic.swift:135:14: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
133 | }
134 |
135 | override open func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
136 | guard let touch = touches.first else { return }
137 | let location = touch.location(in: self)
/Users/admin/builder/spi-builder-workspace/Sources/Magnetic.swift:135:24: error: method does not override any method from its superclass
133 | }
134 |
135 | override open func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: method does not override any method from its superclass
136 | guard let touch = touches.first else { return }
137 | let location = touch.location(in: self)
/Users/admin/builder/spi-builder-workspace/Sources/Magnetic.swift:168:56: error: cannot find type 'UITouch' in scope
166 | }
167 |
168 | override open func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: cannot find type 'UITouch' in scope
169 | isDragging = false
170 | }
/Users/admin/builder/spi-builder-workspace/Sources/Magnetic.swift:168:78: error: cannot find type 'UIEvent' in scope
166 | }
167 |
168 | override open func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: cannot find type 'UIEvent' in scope
169 | isDragging = false
170 | }
/Users/admin/builder/spi-builder-workspace/Sources/Magnetic.swift:168:14: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
166 | }
167 |
168 | override open func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
169 | isDragging = false
170 | }
/Users/admin/builder/spi-builder-workspace/Sources/Magnetic.swift:168:24: error: method does not override any method from its superclass
166 | }
167 |
168 | override open func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent?) {
| `- error: method does not override any method from its superclass
169 | isDragging = false
170 | }
/Users/admin/builder/spi-builder-workspace/Sources/Magnetic.swift:83:9: error: cannot find 'accessibilityContainerType' in scope
81 | backgroundColor = .white
82 | scaleMode = .aspectFill
83 | accessibilityContainerType = .list
| `- error: cannot find 'accessibilityContainerType' in scope
84 | configure()
85 | }
[7/11] Compiling Magnetic Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/Extensions.swift:23:11: error: cannot find type 'UIImage' in scope
21 | }
22 |
23 | extension UIImage {
| `- error: cannot find type 'UIImage' in scope
24 | func aspectFill(_ size: CGSize) -> UIImage {
25 | let aspectWidth = size.width / self.size.width
/Users/admin/builder/spi-builder-workspace/Sources/Extensions.swift:24:40: error: cannot find type 'UIImage' in scope
22 |
23 | extension UIImage {
24 | func aspectFill(_ size: CGSize) -> UIImage {
| `- error: cannot find type 'UIImage' in scope
25 | let aspectWidth = size.width / self.size.width
26 | let aspectHeight = size.height / self.size.height
/Users/admin/builder/spi-builder-workspace/Sources/Extensions.swift:34:36: error: cannot find type 'UIImage' in scope
32 | return resize(newSize)
33 | }
34 | func resize(_ size: CGSize) -> UIImage {
| `- error: cannot find type 'UIImage' in scope
35 | var rect = CGRect.zero
36 | rect.size = size
[8/11] Compiling Magnetic SKAction+Color.swift
/Users/admin/builder/spi-builder-workspace/Sources/SKAction+Color.swift:23:11: error: cannot find type 'UIColor' in scope
21 | }
22 |
23 | extension UIColor {
| `- error: cannot find type 'UIColor' in scope
24 | var components: ColorComponents {
25 | get {
/Users/admin/builder/spi-builder-workspace/Sources/SKAction+Color.swift:36:47: error: cannot find type 'UIColor' in scope
34 | typealias ColorTransitionConfigure = ((_ node: SKNode) -> Void)?
35 |
36 | static func colorTransition(from fromColor: UIColor, to toColor: UIColor, duration: Double = 0.4, configure: ColorTransitionConfigure = nil) -> SKAction {
| `- error: cannot find type 'UIColor' in scope
37 | return SKAction.customAction(withDuration: duration, actionBlock: { (node : SKNode!, elapsedTime : CGFloat) -> Void in
38 | let fraction = CGFloat(elapsedTime / CGFloat(duration))
/Users/admin/builder/spi-builder-workspace/Sources/SKAction+Color.swift:36:68: error: cannot find type 'UIColor' in scope
34 | typealias ColorTransitionConfigure = ((_ node: SKNode) -> Void)?
35 |
36 | static func colorTransition(from fromColor: UIColor, to toColor: UIColor, duration: Double = 0.4, configure: ColorTransitionConfigure = nil) -> SKAction {
| `- error: cannot find type 'UIColor' in scope
37 | return SKAction.customAction(withDuration: duration, actionBlock: { (node : SKNode!, elapsedTime : CGFloat) -> Void in
38 | let fraction = CGFloat(elapsedTime / CGFloat(duration))
/Users/admin/builder/spi-builder-workspace/Sources/SKAction+Color.swift:41:24: error: cannot find 'UIColor' in scope
39 | let startColorComponents = fromColor.components
40 | let endColorComponents = toColor.components
41 | let transColor = UIColor(
| `- error: cannot find 'UIColor' in scope
42 | red: lerp(a: startColorComponents.red, b: endColorComponents.red, fraction: fraction),
43 | green: lerp(a: startColorComponents.green, b: endColorComponents.green, fraction: fraction),
[9/11] Compiling Magnetic SKMultilineLabelNode.swift
/Users/admin/builder/spi-builder-workspace/Sources/SKMultilineLabelNode.swift:17:25: error: cannot find type 'UIColor' in scope
15 | open var fontName: String? { didSet { update() } }
16 | open var fontSize: CGFloat = 32 { didSet { update() } }
17 | open var fontColor: UIColor? { didSet { update() } }
| `- error: cannot find type 'UIColor' in scope
18 |
19 | open var separator: String? { didSet { update() } }
[10/11] Compiling Magnetic MagneticView+SwiftUI.swift
/Users/admin/builder/spi-builder-workspace/Sources/MagneticView+SwiftUI.swift:15:37: error: cannot find type 'Context' in scope
13 |
14 | public struct MagneticView_SwiftUI: UIViewRepresentable {
15 | public func makeUIView(context: Context) -> MagneticView {
| `- error: cannot find type 'Context' in scope
16 | MagneticView()
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/MagneticView+SwiftUI.swift:18:63: error: cannot find type 'Context' in scope
16 | MagneticView()
17 | }
18 | public func updateUIView(_ uiView: MagneticView, context: Context) {}
| `- error: cannot find type 'Context' in scope
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/MagneticView+SwiftUI.swift:14:37: error: cannot find type 'UIViewRepresentable' in scope
12 | import SwiftUI
13 |
14 | public struct MagneticView_SwiftUI: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
15 | public func makeUIView(context: Context) -> MagneticView {
16 | MagneticView()
/Users/admin/builder/spi-builder-workspace/Sources/MagneticView+SwiftUI.swift:16:9: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
13 |
14 | public struct MagneticView_SwiftUI: UIViewRepresentable {
15 | public func makeUIView(context: Context) -> MagneticView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
16 | MagneticView()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
17 | }
18 | public func updateUIView(_ uiView: MagneticView, context: Context) {}
SpriteKit.SKView:48:35: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
46 | public init(frame frameRect: NSRect)
47 | public init?(coder: NSCoder)
48 | @MainActor public convenience init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
49 | open class var supportsSecureCoding: Bool { get }
50 | }
[11/11] Compiling Magnetic Node.swift
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:206:45: error: cannot find type 'UIImage' in scope
204 | - Returns: A new node.
205 | */
206 | public init(text: String? = nil, image: UIImage? = nil, color: UIColor, path: CGPath, marginScale: CGFloat = 1.01) {
| `- error: cannot find type 'UIImage' in scope
207 | super.init()
208 | self.path = path
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:206:68: error: cannot find type 'UIColor' in scope
204 | - Returns: A new node.
205 | */
206 | public init(text: String? = nil, image: UIImage? = nil, color: UIColor, path: CGPath, marginScale: CGFloat = 1.01) {
| `- error: cannot find type 'UIColor' in scope
207 | super.init()
208 | self.path = path
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:230:57: error: cannot find type 'UIImage' in scope
228 | - Returns: A new node.
229 | */
230 | public convenience init(text: String? = nil, image: UIImage? = nil, color: UIColor, radius: CGFloat, marginScale: CGFloat = 1.01) {
| `- error: cannot find type 'UIImage' in scope
231 | let path = SKShapeNode(circleOfRadius: radius).path!
232 | self.init(text: text, image: image, color: color, path: path, marginScale: marginScale)
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:230:80: error: cannot find type 'UIColor' in scope
228 | - Returns: A new node.
229 | */
230 | public convenience init(text: String? = nil, image: UIImage? = nil, color: UIColor, radius: CGFloat, marginScale: CGFloat = 1.01) {
| `- error: cannot find type 'UIColor' in scope
231 | let path = SKShapeNode(circleOfRadius: radius).path!
232 | self.init(text: text, image: image, color: color, path: path, marginScale: marginScale)
/Users/admin/builder/spi-builder-workspace/Sources/SKMultilineLabelNode.swift:17:25: error: cannot find type 'UIColor' in scope
15 | open var fontName: String? { didSet { update() } }
16 | open var fontSize: CGFloat = 32 { didSet { update() } }
17 | open var fontColor: UIColor? { didSet { update() } }
| `- error: cannot find type 'UIColor' in scope
18 |
19 | open var separator: String? { didSet { update() } }
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:186:32: error: cannot find 'UIColor' in scope
184 | struct Defaults {
185 | static let fontName = "Avenir-Black"
186 | static let fontColor = UIColor.white
| `- error: cannot find 'UIColor' in scope
187 | static let fontSize = CGFloat(12)
188 | static let color = UIColor.clear
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:39:21: error: cannot find type 'UIImage' in scope
37 | The image displayed by the node.
38 | */
39 | open var image: UIImage? {
| `- error: cannot find type 'UIImage' in scope
40 | didSet {
41 | // let url = URL(string: "https://picsum.photos/1200/600")!
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:52:21: error: cannot find type 'UIColor' in scope
50 | Also blends the color with the image.
51 | */
52 | open var color: UIColor = Defaults.color {
| `- error: cannot find type 'UIColor' in scope
53 | didSet {
54 | self.fillColor = color
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:68:17: error: cannot find 'accessibilityTraits' in scope
66 | if isSelected {
67 | selectedAnimation()
68 | accessibilityTraits = .selected
| `- error: cannot find 'accessibilityTraits' in scope
69 | } else {
70 | deselectedAnimation()
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:71:17: error: cannot find 'accessibilityTraits' in scope
69 | } else {
70 | deselectedAnimation()
71 | accessibilityTraits = .none
| `- error: cannot find 'accessibilityTraits' in scope
72 | }
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:79:45: error: cannot find type 'UIBezierPath' in scope
77 | The internal accessibilityPath used by the node.
78 | */
79 | private var overridenAccessibilityPath: UIBezierPath?
| `- error: cannot find type 'UIBezierPath' in scope
80 |
81 | open override var accessibilityPath: UIBezierPath? {
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:81:42: error: cannot find type 'UIBezierPath' in scope
79 | private var overridenAccessibilityPath: UIBezierPath?
80 |
81 | open override var accessibilityPath: UIBezierPath? {
| `- error: cannot find type 'UIBezierPath' in scope
82 | get { overridenAccessibilityPath ?? UIBezierPath(ovalIn: self.accessibilityFrame) }
83 | set { self.overridenAccessibilityPath = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:81:23: error: property does not override any property from its superclass
79 | private var overridenAccessibilityPath: UIBezierPath?
80 |
81 | open override var accessibilityPath: UIBezierPath? {
| `- error: property does not override any property from its superclass
82 | get { overridenAccessibilityPath ?? UIBezierPath(ovalIn: self.accessibilityFrame) }
83 | set { self.overridenAccessibilityPath = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:117:32: error: cannot find type 'UIColor' in scope
115 | The original color of the node before animation
116 | */
117 | private var originalColor: UIColor = Defaults.color
| `- error: cannot find type 'UIColor' in scope
118 |
119 | /**
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:122:29: error: cannot find type 'UIColor' in scope
120 | The color of the seleted node
121 | */
122 | open var selectedColor: UIColor?
| `- error: cannot find type 'UIColor' in scope
123 |
124 | /**
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:127:33: error: cannot find type 'UIColor' in scope
125 | The text color of the seleted node
126 | */
127 | open var selectedFontColor: UIColor?
| `- error: cannot find type 'UIColor' in scope
128 |
129 | /**
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:132:36: error: cannot find type 'UIColor' in scope
130 | The original text color of the node before animation
131 | */
132 | private var originalFontColor: UIColor = Defaults.fontColor
| `- error: cannot find type 'UIColor' in scope
133 |
134 | /**
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:164:25: error: cannot find type 'UIColor' in scope
162 | The color of the label's font
163 | */
164 | open var fontColor: UIColor {
| `- error: cannot find type 'UIColor' in scope
165 | get { label.fontColor ?? Defaults.fontColor }
166 | set { label.fontColor = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:188:28: error: cannot find 'UIColor' in scope
186 | static let fontColor = UIColor.white
187 | static let fontSize = CGFloat(12)
188 | static let color = UIColor.clear
| `- error: cannot find 'UIColor' in scope
189 | static let marginScale = CGFloat(1.01)
190 | static let scaleToFitContent = false // backwards compatability
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:239:47: error: cannot find type 'UIImage' in scope
237 | }
238 |
239 | open func configure(text: String?, image: UIImage?, color: UIColor) {
| `- error: cannot find type 'UIImage' in scope
240 | self.text = text
241 | self.image = image
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:239:64: error: cannot find type 'UIColor' in scope
237 | }
238 |
239 | open func configure(text: String?, image: UIImage?, color: UIColor) {
| `- error: cannot find type 'UIColor' in scope
240 | self.text = text
241 | self.image = image
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:215:14: error: value of type 'Node' has no member 'shouldGroupAccessibilityChildren'
213 | configure(text: text, image: image, color: color)
214 | self.isAccessibilityElement = true
215 | self.shouldGroupAccessibilityChildren = true
| `- error: value of type 'Node' has no member 'shouldGroupAccessibilityChildren'
216 | }
217 |
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:232:18: error: extra arguments at positions #1, #2, #4, #5 in call
230 | public convenience init(text: String? = nil, image: UIImage? = nil, color: UIColor, radius: CGFloat, marginScale: CGFloat = 1.01) {
231 | let path = SKShapeNode(circleOfRadius: radius).path!
232 | self.init(text: text, image: image, color: color, path: path, marginScale: marginScale)
| `- error: extra arguments at positions #1, #2, #4, #5 in call
233 | }
234 |
235 | required public init?(coder aDecoder: NSCoder) {
| `- note: 'init(coder:)' declared here
236 | fatalError("init(coder:) has not been implemented")
237 | }
/Users/admin/builder/spi-builder-workspace/Sources/Node.swift:256:62: error: cannot find 'UIFont' in scope
254 | */
255 | public func resize() {
256 | guard scaleToFitContent, let text = text, let font = UIFont(name: fontName, size: fontSize) else { return }
| `- error: cannot find 'UIFont' in scope
257 | let fontAttributes = [NSAttributedString.Key.font: font]
258 | let size = (text as NSString).size(withAttributes: fontAttributes)
/Users/admin/builder/spi-builder-workspace/Sources/SKAction+Color.swift:36:47: error: cannot find type 'UIColor' in scope
34 | typealias ColorTransitionConfigure = ((_ node: SKNode) -> Void)?
35 |
36 | static func colorTransition(from fromColor: UIColor, to toColor: UIColor, duration: Double = 0.4, configure: ColorTransitionConfigure = nil) -> SKAction {
| `- error: cannot find type 'UIColor' in scope
37 | return SKAction.customAction(withDuration: duration, actionBlock: { (node : SKNode!, elapsedTime : CGFloat) -> Void in
38 | let fraction = CGFloat(elapsedTime / CGFloat(duration))
/Users/admin/builder/spi-builder-workspace/Sources/SKAction+Color.swift:36:68: error: cannot find type 'UIColor' in scope
34 | typealias ColorTransitionConfigure = ((_ node: SKNode) -> Void)?
35 |
36 | static func colorTransition(from fromColor: UIColor, to toColor: UIColor, duration: Double = 0.4, configure: ColorTransitionConfigure = nil) -> SKAction {
| `- error: cannot find type 'UIColor' in scope
37 | return SKAction.customAction(withDuration: duration, actionBlock: { (node : SKNode!, elapsedTime : CGFloat) -> Void in
38 | let fraction = CGFloat(elapsedTime / CGFloat(duration))
BUILD FAILURE 6.0 macosSpm