Build Information
Successful build of Sisyphos, reference main (31469f), with Swift 6.1 for macOS (SPM) on 6 Mar 2026 13:52:41 UTC.
Swift 6 data race errors: 7
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCapturesBuild Log
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:159:33: warning: call to main actor-isolated instance method 'press(forDuration:thenDragTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
157 | case .up:
158 | endCoordinate = startCoordinate.withOffset(CGVector(dx: 0, dy: window.frame.height/3))
159 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
| `- warning: call to main actor-isolated instance method 'press(forDuration:thenDragTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
160 | case .left:
161 | endCoordinate = startCoordinate.withOffset(CGVector(dx: window.frame.width/3, dy: 0))
XCUIAutomation.XCUICoordinate.press:2:22: note: calls to instance method 'press(forDuration:thenDragTo:)' from outside of its actor context are implicitly asynchronous
1 | class XCUICoordinate {
2 | @MainActor open func press(forDuration duration: TimeInterval, thenDragTo otherCoordinate: XCUICoordinate)}
| `- note: calls to instance method 'press(forDuration:thenDragTo:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:161:49: warning: call to main actor-isolated instance method 'withOffset' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
159 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
160 | case .left:
161 | endCoordinate = startCoordinate.withOffset(CGVector(dx: window.frame.width/3, dy: 0))
| `- warning: call to main actor-isolated instance method 'withOffset' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
162 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
163 | case .right:
XCUIAutomation.XCUICoordinate.withOffset:2:22: note: calls to instance method 'withOffset' from outside of its actor context are implicitly asynchronous
1 | class XCUICoordinate {
2 | @MainActor open func withOffset(_ offsetVector: CGVector) -> XCUICoordinate}
| `- note: calls to instance method 'withOffset' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:161:80: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
159 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
160 | case .left:
161 | endCoordinate = startCoordinate.withOffset(CGVector(dx: window.frame.width/3, dy: 0))
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
162 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
163 | case .right:
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:38:29: note: property declared here
36 |
37 | /*! The frame of the element in the screen coordinate space. */
38 | @property (readonly) CGRect frame;
| `- note: property declared here
39 |
40 | /*! The raw value attribute of the element. Depending on the element, the actual type can vary. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:162:33: warning: call to main actor-isolated instance method 'press(forDuration:thenDragTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
160 | case .left:
161 | endCoordinate = startCoordinate.withOffset(CGVector(dx: window.frame.width/3, dy: 0))
162 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
| `- warning: call to main actor-isolated instance method 'press(forDuration:thenDragTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
163 | case .right:
164 | endCoordinate = startCoordinate.withOffset(CGVector(dx: -window.frame.width/3, dy: 0))
XCUIAutomation.XCUICoordinate.press:2:22: note: calls to instance method 'press(forDuration:thenDragTo:)' from outside of its actor context are implicitly asynchronous
1 | class XCUICoordinate {
2 | @MainActor open func press(forDuration duration: TimeInterval, thenDragTo otherCoordinate: XCUICoordinate)}
| `- note: calls to instance method 'press(forDuration:thenDragTo:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:164:49: warning: call to main actor-isolated instance method 'withOffset' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
162 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
163 | case .right:
164 | endCoordinate = startCoordinate.withOffset(CGVector(dx: -window.frame.width/3, dy: 0))
| `- warning: call to main actor-isolated instance method 'withOffset' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
165 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
166 | }
XCUIAutomation.XCUICoordinate.withOffset:2:22: note: calls to instance method 'withOffset' from outside of its actor context are implicitly asynchronous
1 | class XCUICoordinate {
2 | @MainActor open func withOffset(_ offsetVector: CGVector) -> XCUICoordinate}
| `- note: calls to instance method 'withOffset' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:164:81: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
162 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
163 | case .right:
164 | endCoordinate = startCoordinate.withOffset(CGVector(dx: -window.frame.width/3, dy: 0))
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
165 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
166 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:38:29: note: property declared here
36 |
37 | /*! The frame of the element in the screen coordinate space. */
38 | @property (readonly) CGRect frame;
| `- note: property declared here
39 |
40 | /*! The raw value attribute of the element. Depending on the element, the actual type can vary. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:165:33: warning: call to main actor-isolated instance method 'press(forDuration:thenDragTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
163 | case .right:
164 | endCoordinate = startCoordinate.withOffset(CGVector(dx: -window.frame.width/3, dy: 0))
165 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
| `- warning: call to main actor-isolated instance method 'press(forDuration:thenDragTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
166 | }
167 | element.waitUntilStablePosition()
XCUIAutomation.XCUICoordinate.press:2:22: note: calls to instance method 'press(forDuration:thenDragTo:)' from outside of its actor context are implicitly asynchronous
1 | class XCUICoordinate {
2 | @MainActor open func press(forDuration duration: TimeInterval, thenDragTo otherCoordinate: XCUICoordinate)}
| `- note: calls to instance method 'press(forDuration:thenDragTo:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:167:21: warning: call to main actor-isolated instance method 'waitUntilStablePosition(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
165 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
166 | }
167 | element.waitUntilStablePosition()
| `- warning: call to main actor-isolated instance method 'waitUntilStablePosition(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
168 | tryCounter -= 1
169 | guard !CGRectContainsRect(window.frame, element.frame) else { return }
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/XCUIElement+Extensions.swift:11:10: note: calls to instance method 'waitUntilStablePosition(timeout:)' from outside of its actor context are implicitly asynchronous
9 | ///
10 | /// - Parameter timeout: The maximal time to wait until the element is not moving anymore in seconds.
11 | func waitUntilStablePosition(timeout: CFTimeInterval = 2) {
| `- note: calls to instance method 'waitUntilStablePosition(timeout:)' from outside of its actor context are implicitly asynchronous
12 | XCTContext.runActivity(named: "Wait for element to have a stable position") { activity in
13 | let timeout = Date(timeIntervalSinceNow: timeout)
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:169:46: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
167 | element.waitUntilStablePosition()
168 | tryCounter -= 1
169 | guard !CGRectContainsRect(window.frame, element.frame) else { return }
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
170 | } while tryCounter > 0
171 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:38:29: note: property declared here
36 |
37 | /*! The frame of the element in the screen coordinate space. */
38 | @property (readonly) CGRect frame;
| `- note: property declared here
39 |
40 | /*! The raw value attribute of the element. Depending on the element, the actual type can vary. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:169:61: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
167 | element.waitUntilStablePosition()
168 | tryCounter -= 1
169 | guard !CGRectContainsRect(window.frame, element.frame) else { return }
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
170 | } while tryCounter > 0
171 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:38:29: note: property declared here
36 |
37 | /*! The frame of the element in the screen coordinate space. */
38 | @property (readonly) CGRect frame;
| `- note: property declared here
39 |
40 | /*! The raw value attribute of the element. Depending on the element, the actual type can vary. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElementIdentifier.swift:15:16: warning: static property 'dynamic' is not concurrency-safe because non-'Sendable' type 'PageElementIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
3 | /// Elements are identified by their position in the source code. This has the additional benefit that the identifer
4 | /// can be used for helpful debug information.
5 | public struct PageElementIdentifier: Hashable {
| `- note: consider making struct 'PageElementIdentifier' conform to the 'Sendable' protocol
6 | /// The source file in which the element is defined.
7 | let file: String
:
13 | /// A special identifier which is used when page elements are created dynamically, e.g. in a automatically created
14 | /// page description of a running app.
15 | static let dynamic: Self = .init(file: "", line: 0, column: 0)
| |- warning: static property 'dynamic' is not concurrency-safe because non-'Sendable' type 'PageElementIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'dynamic' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:31:77: warning: sending value of non-Sendable type 'NSPredicate' risks causing data races; this is an error in the Swift 6 language mode
29 |
30 | let application = cacheEntry.page.xcuiapplication
31 | let query = application.descendants(matching: snapshot.elementType).matching(NSPredicate(snapshot: snapshot))
| |- warning: sending value of non-Sendable type 'NSPredicate' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'NSPredicate' to main actor-isolated instance method 'matching' risks causing races in between task-isolated and main actor-isolated uses
32 |
33 | return query.firstMatch
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:51:41: warning: sending value of non-Sendable type 'NSPredicate' risks causing data races; this is an error in the Swift 6 language mode
49 | }
50 | let application = cacheEntry.page.xcuiapplication
51 | let query = application.windows.containing(NSPredicate(snapshot: snapshot))
| |- warning: sending value of non-Sendable type 'NSPredicate' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'NSPredicate' to main actor-isolated instance method 'containing' risks causing races in between task-isolated and main actor-isolated uses
52 |
53 | return query.firstMatch
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:98:33: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
96 | // TODO: better activity description
97 | XCTContext.runActivity(named: "Typing text \(text.debugDescription)") { activity in
98 | guard let element = getXCUIElement(forAction: "type(text: \(text.debugDescription)") else { return }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
99 | element.waitUntilStablePosition()
100 | element.coordinate(withNormalizedOffset: CGVector(dx: 0.5, dy: 0.5)).tap()
[26/38] Compiling Sisyphos PageElementIdentifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:31:77: warning: call to main actor-isolated instance method 'matching' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
15 | extension PageElement {
16 |
17 | func getXCUIElement(forAction action: String) -> XCUIElement? {
| `- note: add '@MainActor' to make instance method 'getXCUIElement(forAction:)' part of global actor 'MainActor'
18 | handleInterruptions()
19 |
:
29 |
30 | let application = cacheEntry.page.xcuiapplication
31 | let query = application.descendants(matching: snapshot.elementType).matching(NSPredicate(snapshot: snapshot))
| `- warning: call to main actor-isolated instance method 'matching' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
32 |
33 | return query.firstMatch
XCUIAutomation.XCUIElementQuery.matching:2:22: note: calls to instance method 'matching' from outside of its actor context are implicitly asynchronous
1 | class XCUIElementQuery {
2 | @MainActor open func matching(_ predicate: NSPredicate) -> XCUIElementQuery}
| |- note: calls to instance method 'matching' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'XCUIElementTypeQueryProvider'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:31:33: warning: call to main actor-isolated instance method 'descendants(matching:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
15 | extension PageElement {
16 |
17 | func getXCUIElement(forAction action: String) -> XCUIElement? {
| `- note: add '@MainActor' to make instance method 'getXCUIElement(forAction:)' part of global actor 'MainActor'
18 | handleInterruptions()
19 |
:
29 |
30 | let application = cacheEntry.page.xcuiapplication
31 | let query = application.descendants(matching: snapshot.elementType).matching(NSPredicate(snapshot: snapshot))
| `- warning: call to main actor-isolated instance method 'descendants(matching:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
32 |
33 | return query.firstMatch
XCUIAutomation.XCUIElement.descendants:2:22: note: calls to instance method 'descendants(matching:)' from outside of its actor context are implicitly asynchronous
1 | class XCUIElement {
2 | @MainActor open func descendants(matching type: XCUIElement.ElementType) -> XCUIElementQuery}
| `- note: calls to instance method 'descendants(matching:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:31:64: warning: main actor-isolated property 'elementType' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 | extension PageElement {
16 |
17 | func getXCUIElement(forAction action: String) -> XCUIElement? {
| `- note: add '@MainActor' to make instance method 'getXCUIElement(forAction:)' part of global actor 'MainActor'
18 | handleInterruptions()
19 |
:
29 |
30 | let application = cacheEntry.page.xcuiapplication
31 | let query = application.descendants(matching: snapshot.elementType).matching(NSPredicate(snapshot: snapshot))
| `- warning: main actor-isolated property 'elementType' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
32 |
33 | return query.firstMatch
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:50:38: note: property declared here
48 |
49 | /*! The type of the element. /seealso XCUIElementType. */
50 | @property (readonly) XCUIElementType elementType;
| `- note: property declared here
51 |
52 | /*! Whether or not the element is enabled for user interaction. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:33:22: warning: main actor-isolated property 'firstMatch' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 | extension PageElement {
16 |
17 | func getXCUIElement(forAction action: String) -> XCUIElement? {
| `- note: add '@MainActor' to make instance method 'getXCUIElement(forAction:)' part of global actor 'MainActor'
18 | handleInterruptions()
19 |
:
31 | let query = application.descendants(matching: snapshot.elementType).matching(NSPredicate(snapshot: snapshot))
32 |
33 | return query.firstMatch
| `- warning: main actor-isolated property 'firstMatch' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
34 | }
35 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementTypeQueryProvider.h:105:35: note: property declared here
103 | * matches will not be detected.
104 | */
105 | @property (readonly) XCUIElement *firstMatch;
| `- note: property declared here
106 |
107 | @end
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:51:41: warning: call to main actor-isolated instance method 'containing' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
36 | /// It is used for getting the window that contains the element
37 | /// - Returns: Corresponding window
38 | func getXCUIWindow(forAction action: String) -> XCUIElement? {
| `- note: add '@MainActor' to make instance method 'getXCUIWindow(forAction:)' part of global actor 'MainActor'
39 | handleInterruptions()
40 |
:
49 | }
50 | let application = cacheEntry.page.xcuiapplication
51 | let query = application.windows.containing(NSPredicate(snapshot: snapshot))
| `- warning: call to main actor-isolated instance method 'containing' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | return query.firstMatch
XCUIAutomation.XCUIElementQuery.containing:2:22: note: calls to instance method 'containing' from outside of its actor context are implicitly asynchronous
1 | class XCUIElementQuery {
2 | @MainActor open func containing(_ predicate: NSPredicate) -> XCUIElementQuery}
| |- note: calls to instance method 'containing' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'XCUIElementTypeQueryProvider'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:51:33: warning: main actor-isolated property 'windows' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
36 | /// It is used for getting the window that contains the element
37 | /// - Returns: Corresponding window
38 | func getXCUIWindow(forAction action: String) -> XCUIElement? {
| `- note: add '@MainActor' to make instance method 'getXCUIWindow(forAction:)' part of global actor 'MainActor'
39 | handleInterruptions()
40 |
:
49 | }
50 | let application = cacheEntry.page.xcuiapplication
51 | let query = application.windows.containing(NSPredicate(snapshot: snapshot))
| `- warning: main actor-isolated property 'windows' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | return query.firstMatch
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementTypeQueryProvider.h:17:46: note: property declared here
15 | @property (readonly, copy) XCUIElementQuery *touchBars;
16 | @property (readonly, copy) XCUIElementQuery *groups;
17 | @property (readonly, copy) XCUIElementQuery *windows;
| `- note: property declared here
18 | @property (readonly, copy) XCUIElementQuery *sheets;
19 | @property (readonly, copy) XCUIElementQuery *drawers;
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:53:22: warning: main actor-isolated property 'firstMatch' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
36 | /// It is used for getting the window that contains the element
37 | /// - Returns: Corresponding window
38 | func getXCUIWindow(forAction action: String) -> XCUIElement? {
| `- note: add '@MainActor' to make instance method 'getXCUIWindow(forAction:)' part of global actor 'MainActor'
39 | handleInterruptions()
40 |
:
51 | let query = application.windows.containing(NSPredicate(snapshot: snapshot))
52 |
53 | return query.firstMatch
| `- warning: main actor-isolated property 'firstMatch' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
54 | }
55 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementTypeQueryProvider.h:105:35: note: property declared here
103 | * matches will not be detected.
104 | */
105 | @property (readonly) XCUIElement *firstMatch;
| `- note: property declared here
106 |
107 | @end
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:67:17: warning: call to main actor-isolated instance method 'waitUntilStablePosition(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
63 |
64 | /// Sends a tap event to a hittable point the system computes for the element.
65 | public func tap() {
| `- note: add '@MainActor' to make instance method 'tap()' part of global actor 'MainActor'
66 | guard let element = getXCUIElement(forAction: "tap()") else { return }
67 | element.waitUntilStablePosition()
| `- warning: call to main actor-isolated instance method 'waitUntilStablePosition(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
68 | element.tap()
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/XCUIElement+Extensions.swift:11:10: note: calls to instance method 'waitUntilStablePosition(timeout:)' from outside of its actor context are implicitly asynchronous
9 | ///
10 | /// - Parameter timeout: The maximal time to wait until the element is not moving anymore in seconds.
11 | func waitUntilStablePosition(timeout: CFTimeInterval = 2) {
| `- note: calls to instance method 'waitUntilStablePosition(timeout:)' from outside of its actor context are implicitly asynchronous
12 | XCTContext.runActivity(named: "Wait for element to have a stable position") { activity in
13 | let timeout = Date(timeIntervalSinceNow: timeout)
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:68:17: warning: call to main actor-isolated instance method 'tap()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
63 |
64 | /// Sends a tap event to a hittable point the system computes for the element.
65 | public func tap() {
| `- note: add '@MainActor' to make instance method 'tap()' part of global actor 'MainActor'
66 | guard let element = getXCUIElement(forAction: "tap()") else { return }
67 | element.waitUntilStablePosition()
68 | element.tap()
| `- warning: call to main actor-isolated instance method 'tap()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
69 | }
70 |
XCUIAutomation.XCUIElement.tap:2:22: note: calls to instance method 'tap()' from outside of its actor context are implicitly asynchronous
1 | class XCUIElement {
2 | @MainActor open func tap()}
| `- note: calls to instance method 'tap()' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:80:17: warning: call to main actor-isolated instance method 'waitUntilStablePosition(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
76 | /// coordinates.
77 | /// - Parameter coordinates: Normalized offset coordinates to specify tap position.
78 | public func tap(usingCoordinates coordinates: CGVector) {
| `- note: add '@MainActor' to make instance method 'tap(usingCoordinates:)' part of global actor 'MainActor'
79 | guard let element = getXCUIElement(forAction: "tap()") else { return }
80 | element.waitUntilStablePosition()
| `- warning: call to main actor-isolated instance method 'waitUntilStablePosition(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
81 | element.coordinate(withNormalizedOffset: coordinates).tap()
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/XCUIElement+Extensions.swift:11:10: note: calls to instance method 'waitUntilStablePosition(timeout:)' from outside of its actor context are implicitly asynchronous
9 | ///
10 | /// - Parameter timeout: The maximal time to wait until the element is not moving anymore in seconds.
11 | func waitUntilStablePosition(timeout: CFTimeInterval = 2) {
| `- note: calls to instance method 'waitUntilStablePosition(timeout:)' from outside of its actor context are implicitly asynchronous
12 | XCTContext.runActivity(named: "Wait for element to have a stable position") { activity in
13 | let timeout = Date(timeIntervalSinceNow: timeout)
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:81:63: warning: call to main actor-isolated instance method 'tap()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
76 | /// coordinates.
77 | /// - Parameter coordinates: Normalized offset coordinates to specify tap position.
78 | public func tap(usingCoordinates coordinates: CGVector) {
| `- note: add '@MainActor' to make instance method 'tap(usingCoordinates:)' part of global actor 'MainActor'
79 | guard let element = getXCUIElement(forAction: "tap()") else { return }
80 | element.waitUntilStablePosition()
81 | element.coordinate(withNormalizedOffset: coordinates).tap()
| `- warning: call to main actor-isolated instance method 'tap()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
82 | }
83 |
XCUIAutomation.XCUICoordinate.tap:2:22: note: calls to instance method 'tap()' from outside of its actor context are implicitly asynchronous
1 | class XCUICoordinate {
2 | @MainActor open func tap()}
| `- note: calls to instance method 'tap()' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:81:17: warning: call to main actor-isolated instance method 'coordinate(withNormalizedOffset:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
76 | /// coordinates.
77 | /// - Parameter coordinates: Normalized offset coordinates to specify tap position.
78 | public func tap(usingCoordinates coordinates: CGVector) {
| `- note: add '@MainActor' to make instance method 'tap(usingCoordinates:)' part of global actor 'MainActor'
79 | guard let element = getXCUIElement(forAction: "tap()") else { return }
80 | element.waitUntilStablePosition()
81 | element.coordinate(withNormalizedOffset: coordinates).tap()
| `- warning: call to main actor-isolated instance method 'coordinate(withNormalizedOffset:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
82 | }
83 |
XCUIAutomation.XCUIElement.coordinate:2:22: note: calls to instance method 'coordinate(withNormalizedOffset:)' from outside of its actor context are implicitly asynchronous
1 | class XCUIElement {
2 | @MainActor open func coordinate(withNormalizedOffset normalizedOffset: CGVector) -> XCUICoordinate}
| `- note: calls to instance method 'coordinate(withNormalizedOffset:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:97:20: warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
93 | /// Whether or not the keyboard should be dismissed after typing the text has finished. If the keyboard should
94 | /// be dismissed, it's dismissed by tapping the `Done` button on the keyboard.
95 | public func type(text: String, dismissKeyboard: Bool = true) {
| `- note: add '@MainActor' to make instance method 'type(text:dismissKeyboard:)' part of global actor 'MainActor'
96 | // TODO: better activity description
97 | XCTContext.runActivity(named: "Typing text \(text.debugDescription)") { activity in
| `- warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
98 | guard let element = getXCUIElement(forAction: "type(text: \(text.debugDescription)") else { return }
99 | element.waitUntilStablePosition()
XCTest.XCTContext.runActivity:2:46: note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
1 | class XCTContext {
2 | @MainActor @preconcurrency public class func runActivity<Result>(named name: String, block: @MainActor (any XCTActivity) throws -> Result) rethrows -> Result}
| `- note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:121:28: warning: main actor-isolated property 'isHittable' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
111 | }
112 |
113 | public func waitUntilIsHittable(
| `- note: add '@MainActor' to make instance method 'waitUntilIsHittable(timeout:file:line:)' part of global actor 'MainActor'
114 | timeout: CFTimeInterval = 10,
115 | file: StaticString = #file,
:
119 | let deadline = Date(timeIntervalSinceNow: timeout)
120 | repeat {
121 | guard !element.isHittable else { return }
| `- warning: main actor-isolated property 'isHittable' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
122 | _ = RunLoop.current.run(mode: .default, before: Date(timeIntervalSinceNow: 1))
123 | } while Date() < deadline
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElement.h:63:48: note: property declared here
61 |
62 | /*! Whether or not a hit point can be computed for the element for the purpose of synthesizing events. */
63 | @property (readonly, getter = isHittable) BOOL hittable;
| `- note: property declared here
64 |
65 | /*! Returns a query for all descendants of the element matching the specified type. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:148:42: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
146 | guard let app = getPage()?.xcuiapplication else { return }
147 | guard let window = getXCUIWindow(forAction: "scroll until visible") else { return }
148 | guard !CGRectContainsRect(window.frame, element.frame) else { return }
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
149 | var tryCounter = maxTryCount
150 | let startCoordinate = app.coordinate(withNormalizedOffset: CGVector(dx: 0.5, dy: 0.5))
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:38:29: note: property declared here
36 |
37 | /*! The frame of the element in the screen coordinate space. */
38 | @property (readonly) CGRect frame;
| `- note: property declared here
39 |
40 | /*! The raw value attribute of the element. Depending on the element, the actual type can vary. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:148:57: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
146 | guard let app = getPage()?.xcuiapplication else { return }
147 | guard let window = getXCUIWindow(forAction: "scroll until visible") else { return }
148 | guard !CGRectContainsRect(window.frame, element.frame) else { return }
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
149 | var tryCounter = maxTryCount
150 | let startCoordinate = app.coordinate(withNormalizedOffset: CGVector(dx: 0.5, dy: 0.5))
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:38:29: note: property declared here
36 |
37 | /*! The frame of the element in the screen coordinate space. */
38 | @property (readonly) CGRect frame;
| `- note: property declared here
39 |
40 | /*! The raw value attribute of the element. Depending on the element, the actual type can vary. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:150:35: warning: call to main actor-isolated instance method 'coordinate(withNormalizedOffset:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
148 | guard !CGRectContainsRect(window.frame, element.frame) else { return }
149 | var tryCounter = maxTryCount
150 | let startCoordinate = app.coordinate(withNormalizedOffset: CGVector(dx: 0.5, dy: 0.5))
| `- warning: call to main actor-isolated instance method 'coordinate(withNormalizedOffset:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
151 | repeat {
152 | var endCoordinate = startCoordinate
XCUIAutomation.XCUIElement.coordinate:2:22: note: calls to instance method 'coordinate(withNormalizedOffset:)' from outside of its actor context are implicitly asynchronous
1 | class XCUIElement {
2 | @MainActor open func coordinate(withNormalizedOffset normalizedOffset: CGVector) -> XCUICoordinate}
| `- note: calls to instance method 'coordinate(withNormalizedOffset:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:155:49: warning: call to main actor-isolated instance method 'withOffset' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
153 | switch direction {
154 | case .down:
155 | endCoordinate = startCoordinate.withOffset(CGVector(dx: 0, dy: -window.frame.height/3))
| `- warning: call to main actor-isolated instance method 'withOffset' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
156 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
157 | case .up:
XCUIAutomation.XCUICoordinate.withOffset:2:22: note: calls to instance method 'withOffset' from outside of its actor context are implicitly asynchronous
1 | class XCUICoordinate {
2 | @MainActor open func withOffset(_ offsetVector: CGVector) -> XCUICoordinate}
| `- note: calls to instance method 'withOffset' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:155:88: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
153 | switch direction {
154 | case .down:
155 | endCoordinate = startCoordinate.withOffset(CGVector(dx: 0, dy: -window.frame.height/3))
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
156 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
157 | case .up:
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:38:29: note: property declared here
36 |
37 | /*! The frame of the element in the screen coordinate space. */
38 | @property (readonly) CGRect frame;
| `- note: property declared here
39 |
40 | /*! The raw value attribute of the element. Depending on the element, the actual type can vary. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:156:33: warning: call to main actor-isolated instance method 'press(forDuration:thenDragTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
154 | case .down:
155 | endCoordinate = startCoordinate.withOffset(CGVector(dx: 0, dy: -window.frame.height/3))
156 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
| `- warning: call to main actor-isolated instance method 'press(forDuration:thenDragTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
157 | case .up:
158 | endCoordinate = startCoordinate.withOffset(CGVector(dx: 0, dy: window.frame.height/3))
XCUIAutomation.XCUICoordinate.press:2:22: note: calls to instance method 'press(forDuration:thenDragTo:)' from outside of its actor context are implicitly asynchronous
1 | class XCUICoordinate {
2 | @MainActor open func press(forDuration duration: TimeInterval, thenDragTo otherCoordinate: XCUICoordinate)}
| `- note: calls to instance method 'press(forDuration:thenDragTo:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:158:49: warning: call to main actor-isolated instance method 'withOffset' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
156 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
157 | case .up:
158 | endCoordinate = startCoordinate.withOffset(CGVector(dx: 0, dy: window.frame.height/3))
| `- warning: call to main actor-isolated instance method 'withOffset' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
159 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
160 | case .left:
XCUIAutomation.XCUICoordinate.withOffset:2:22: note: calls to instance method 'withOffset' from outside of its actor context are implicitly asynchronous
1 | class XCUICoordinate {
2 | @MainActor open func withOffset(_ offsetVector: CGVector) -> XCUICoordinate}
| `- note: calls to instance method 'withOffset' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:158:87: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
156 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
157 | case .up:
158 | endCoordinate = startCoordinate.withOffset(CGVector(dx: 0, dy: window.frame.height/3))
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
159 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
160 | case .left:
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:38:29: note: property declared here
36 |
37 | /*! The frame of the element in the screen coordinate space. */
38 | @property (readonly) CGRect frame;
| `- note: property declared here
39 |
40 | /*! The raw value attribute of the element. Depending on the element, the actual type can vary. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:159:33: warning: call to main actor-isolated instance method 'press(forDuration:thenDragTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
157 | case .up:
158 | endCoordinate = startCoordinate.withOffset(CGVector(dx: 0, dy: window.frame.height/3))
159 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
| `- warning: call to main actor-isolated instance method 'press(forDuration:thenDragTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
160 | case .left:
161 | endCoordinate = startCoordinate.withOffset(CGVector(dx: window.frame.width/3, dy: 0))
XCUIAutomation.XCUICoordinate.press:2:22: note: calls to instance method 'press(forDuration:thenDragTo:)' from outside of its actor context are implicitly asynchronous
1 | class XCUICoordinate {
2 | @MainActor open func press(forDuration duration: TimeInterval, thenDragTo otherCoordinate: XCUICoordinate)}
| `- note: calls to instance method 'press(forDuration:thenDragTo:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:161:49: warning: call to main actor-isolated instance method 'withOffset' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
159 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
160 | case .left:
161 | endCoordinate = startCoordinate.withOffset(CGVector(dx: window.frame.width/3, dy: 0))
| `- warning: call to main actor-isolated instance method 'withOffset' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
162 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
163 | case .right:
XCUIAutomation.XCUICoordinate.withOffset:2:22: note: calls to instance method 'withOffset' from outside of its actor context are implicitly asynchronous
1 | class XCUICoordinate {
2 | @MainActor open func withOffset(_ offsetVector: CGVector) -> XCUICoordinate}
| `- note: calls to instance method 'withOffset' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:161:80: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
159 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
160 | case .left:
161 | endCoordinate = startCoordinate.withOffset(CGVector(dx: window.frame.width/3, dy: 0))
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
162 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
163 | case .right:
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:38:29: note: property declared here
36 |
37 | /*! The frame of the element in the screen coordinate space. */
38 | @property (readonly) CGRect frame;
| `- note: property declared here
39 |
40 | /*! The raw value attribute of the element. Depending on the element, the actual type can vary. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:162:33: warning: call to main actor-isolated instance method 'press(forDuration:thenDragTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
160 | case .left:
161 | endCoordinate = startCoordinate.withOffset(CGVector(dx: window.frame.width/3, dy: 0))
162 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
| `- warning: call to main actor-isolated instance method 'press(forDuration:thenDragTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
163 | case .right:
164 | endCoordinate = startCoordinate.withOffset(CGVector(dx: -window.frame.width/3, dy: 0))
XCUIAutomation.XCUICoordinate.press:2:22: note: calls to instance method 'press(forDuration:thenDragTo:)' from outside of its actor context are implicitly asynchronous
1 | class XCUICoordinate {
2 | @MainActor open func press(forDuration duration: TimeInterval, thenDragTo otherCoordinate: XCUICoordinate)}
| `- note: calls to instance method 'press(forDuration:thenDragTo:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:164:49: warning: call to main actor-isolated instance method 'withOffset' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
162 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
163 | case .right:
164 | endCoordinate = startCoordinate.withOffset(CGVector(dx: -window.frame.width/3, dy: 0))
| `- warning: call to main actor-isolated instance method 'withOffset' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
165 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
166 | }
XCUIAutomation.XCUICoordinate.withOffset:2:22: note: calls to instance method 'withOffset' from outside of its actor context are implicitly asynchronous
1 | class XCUICoordinate {
2 | @MainActor open func withOffset(_ offsetVector: CGVector) -> XCUICoordinate}
| `- note: calls to instance method 'withOffset' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:164:81: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
162 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
163 | case .right:
164 | endCoordinate = startCoordinate.withOffset(CGVector(dx: -window.frame.width/3, dy: 0))
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
165 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
166 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:38:29: note: property declared here
36 |
37 | /*! The frame of the element in the screen coordinate space. */
38 | @property (readonly) CGRect frame;
| `- note: property declared here
39 |
40 | /*! The raw value attribute of the element. Depending on the element, the actual type can vary. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:165:33: warning: call to main actor-isolated instance method 'press(forDuration:thenDragTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
163 | case .right:
164 | endCoordinate = startCoordinate.withOffset(CGVector(dx: -window.frame.width/3, dy: 0))
165 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
| `- warning: call to main actor-isolated instance method 'press(forDuration:thenDragTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
166 | }
167 | element.waitUntilStablePosition()
XCUIAutomation.XCUICoordinate.press:2:22: note: calls to instance method 'press(forDuration:thenDragTo:)' from outside of its actor context are implicitly asynchronous
1 | class XCUICoordinate {
2 | @MainActor open func press(forDuration duration: TimeInterval, thenDragTo otherCoordinate: XCUICoordinate)}
| `- note: calls to instance method 'press(forDuration:thenDragTo:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:167:21: warning: call to main actor-isolated instance method 'waitUntilStablePosition(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
165 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
166 | }
167 | element.waitUntilStablePosition()
| `- warning: call to main actor-isolated instance method 'waitUntilStablePosition(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
168 | tryCounter -= 1
169 | guard !CGRectContainsRect(window.frame, element.frame) else { return }
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/XCUIElement+Extensions.swift:11:10: note: calls to instance method 'waitUntilStablePosition(timeout:)' from outside of its actor context are implicitly asynchronous
9 | ///
10 | /// - Parameter timeout: The maximal time to wait until the element is not moving anymore in seconds.
11 | func waitUntilStablePosition(timeout: CFTimeInterval = 2) {
| `- note: calls to instance method 'waitUntilStablePosition(timeout:)' from outside of its actor context are implicitly asynchronous
12 | XCTContext.runActivity(named: "Wait for element to have a stable position") { activity in
13 | let timeout = Date(timeIntervalSinceNow: timeout)
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:169:46: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
167 | element.waitUntilStablePosition()
168 | tryCounter -= 1
169 | guard !CGRectContainsRect(window.frame, element.frame) else { return }
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
170 | } while tryCounter > 0
171 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:38:29: note: property declared here
36 |
37 | /*! The frame of the element in the screen coordinate space. */
38 | @property (readonly) CGRect frame;
| `- note: property declared here
39 |
40 | /*! The raw value attribute of the element. Depending on the element, the actual type can vary. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:169:61: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
167 | element.waitUntilStablePosition()
168 | tryCounter -= 1
169 | guard !CGRectContainsRect(window.frame, element.frame) else { return }
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
170 | } while tryCounter > 0
171 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:38:29: note: property declared here
36 |
37 | /*! The frame of the element in the screen coordinate space. */
38 | @property (readonly) CGRect frame;
| `- note: property declared here
39 |
40 | /*! The raw value attribute of the element. Depending on the element, the actual type can vary. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElementIdentifier.swift:15:16: warning: static property 'dynamic' is not concurrency-safe because non-'Sendable' type 'PageElementIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
3 | /// Elements are identified by their position in the source code. This has the additional benefit that the identifer
4 | /// can be used for helpful debug information.
5 | public struct PageElementIdentifier: Hashable {
| `- note: consider making struct 'PageElementIdentifier' conform to the 'Sendable' protocol
6 | /// The source file in which the element is defined.
7 | let file: String
:
13 | /// A special identifier which is used when page elements are created dynamically, e.g. in a automatically created
14 | /// page description of a running app.
15 | static let dynamic: Self = .init(file: "", line: 0, column: 0)
| |- warning: static property 'dynamic' is not concurrency-safe because non-'Sendable' type 'PageElementIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'dynamic' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:31:77: warning: sending value of non-Sendable type 'NSPredicate' risks causing data races; this is an error in the Swift 6 language mode
29 |
30 | let application = cacheEntry.page.xcuiapplication
31 | let query = application.descendants(matching: snapshot.elementType).matching(NSPredicate(snapshot: snapshot))
| |- warning: sending value of non-Sendable type 'NSPredicate' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'NSPredicate' to main actor-isolated instance method 'matching' risks causing races in between task-isolated and main actor-isolated uses
32 |
33 | return query.firstMatch
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:51:41: warning: sending value of non-Sendable type 'NSPredicate' risks causing data races; this is an error in the Swift 6 language mode
49 | }
50 | let application = cacheEntry.page.xcuiapplication
51 | let query = application.windows.containing(NSPredicate(snapshot: snapshot))
| |- warning: sending value of non-Sendable type 'NSPredicate' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'NSPredicate' to main actor-isolated instance method 'containing' risks causing races in between task-isolated and main actor-isolated uses
52 |
53 | return query.firstMatch
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:98:33: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
96 | // TODO: better activity description
97 | XCTContext.runActivity(named: "Typing text \(text.debugDescription)") { activity in
98 | guard let element = getXCUIElement(forAction: "type(text: \(text.debugDescription)") else { return }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
99 | element.waitUntilStablePosition()
100 | element.coordinate(withNormalizedOffset: CGVector(dx: 0.5, dy: 0.5)).tap()
[27/38] Compiling Sisyphos PageExistsResults.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:31:77: warning: call to main actor-isolated instance method 'matching' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
15 | extension PageElement {
16 |
17 | func getXCUIElement(forAction action: String) -> XCUIElement? {
| `- note: add '@MainActor' to make instance method 'getXCUIElement(forAction:)' part of global actor 'MainActor'
18 | handleInterruptions()
19 |
:
29 |
30 | let application = cacheEntry.page.xcuiapplication
31 | let query = application.descendants(matching: snapshot.elementType).matching(NSPredicate(snapshot: snapshot))
| `- warning: call to main actor-isolated instance method 'matching' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
32 |
33 | return query.firstMatch
XCUIAutomation.XCUIElementQuery.matching:2:22: note: calls to instance method 'matching' from outside of its actor context are implicitly asynchronous
1 | class XCUIElementQuery {
2 | @MainActor open func matching(_ predicate: NSPredicate) -> XCUIElementQuery}
| |- note: calls to instance method 'matching' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'XCUIElementTypeQueryProvider'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:31:33: warning: call to main actor-isolated instance method 'descendants(matching:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
15 | extension PageElement {
16 |
17 | func getXCUIElement(forAction action: String) -> XCUIElement? {
| `- note: add '@MainActor' to make instance method 'getXCUIElement(forAction:)' part of global actor 'MainActor'
18 | handleInterruptions()
19 |
:
29 |
30 | let application = cacheEntry.page.xcuiapplication
31 | let query = application.descendants(matching: snapshot.elementType).matching(NSPredicate(snapshot: snapshot))
| `- warning: call to main actor-isolated instance method 'descendants(matching:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
32 |
33 | return query.firstMatch
XCUIAutomation.XCUIElement.descendants:2:22: note: calls to instance method 'descendants(matching:)' from outside of its actor context are implicitly asynchronous
1 | class XCUIElement {
2 | @MainActor open func descendants(matching type: XCUIElement.ElementType) -> XCUIElementQuery}
| `- note: calls to instance method 'descendants(matching:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:31:64: warning: main actor-isolated property 'elementType' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 | extension PageElement {
16 |
17 | func getXCUIElement(forAction action: String) -> XCUIElement? {
| `- note: add '@MainActor' to make instance method 'getXCUIElement(forAction:)' part of global actor 'MainActor'
18 | handleInterruptions()
19 |
:
29 |
30 | let application = cacheEntry.page.xcuiapplication
31 | let query = application.descendants(matching: snapshot.elementType).matching(NSPredicate(snapshot: snapshot))
| `- warning: main actor-isolated property 'elementType' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
32 |
33 | return query.firstMatch
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:50:38: note: property declared here
48 |
49 | /*! The type of the element. /seealso XCUIElementType. */
50 | @property (readonly) XCUIElementType elementType;
| `- note: property declared here
51 |
52 | /*! Whether or not the element is enabled for user interaction. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:33:22: warning: main actor-isolated property 'firstMatch' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 | extension PageElement {
16 |
17 | func getXCUIElement(forAction action: String) -> XCUIElement? {
| `- note: add '@MainActor' to make instance method 'getXCUIElement(forAction:)' part of global actor 'MainActor'
18 | handleInterruptions()
19 |
:
31 | let query = application.descendants(matching: snapshot.elementType).matching(NSPredicate(snapshot: snapshot))
32 |
33 | return query.firstMatch
| `- warning: main actor-isolated property 'firstMatch' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
34 | }
35 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementTypeQueryProvider.h:105:35: note: property declared here
103 | * matches will not be detected.
104 | */
105 | @property (readonly) XCUIElement *firstMatch;
| `- note: property declared here
106 |
107 | @end
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:51:41: warning: call to main actor-isolated instance method 'containing' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
36 | /// It is used for getting the window that contains the element
37 | /// - Returns: Corresponding window
38 | func getXCUIWindow(forAction action: String) -> XCUIElement? {
| `- note: add '@MainActor' to make instance method 'getXCUIWindow(forAction:)' part of global actor 'MainActor'
39 | handleInterruptions()
40 |
:
49 | }
50 | let application = cacheEntry.page.xcuiapplication
51 | let query = application.windows.containing(NSPredicate(snapshot: snapshot))
| `- warning: call to main actor-isolated instance method 'containing' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | return query.firstMatch
XCUIAutomation.XCUIElementQuery.containing:2:22: note: calls to instance method 'containing' from outside of its actor context are implicitly asynchronous
1 | class XCUIElementQuery {
2 | @MainActor open func containing(_ predicate: NSPredicate) -> XCUIElementQuery}
| |- note: calls to instance method 'containing' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'XCUIElementTypeQueryProvider'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:51:33: warning: main actor-isolated property 'windows' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
36 | /// It is used for getting the window that contains the element
37 | /// - Returns: Corresponding window
38 | func getXCUIWindow(forAction action: String) -> XCUIElement? {
| `- note: add '@MainActor' to make instance method 'getXCUIWindow(forAction:)' part of global actor 'MainActor'
39 | handleInterruptions()
40 |
:
49 | }
50 | let application = cacheEntry.page.xcuiapplication
51 | let query = application.windows.containing(NSPredicate(snapshot: snapshot))
| `- warning: main actor-isolated property 'windows' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | return query.firstMatch
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementTypeQueryProvider.h:17:46: note: property declared here
15 | @property (readonly, copy) XCUIElementQuery *touchBars;
16 | @property (readonly, copy) XCUIElementQuery *groups;
17 | @property (readonly, copy) XCUIElementQuery *windows;
| `- note: property declared here
18 | @property (readonly, copy) XCUIElementQuery *sheets;
19 | @property (readonly, copy) XCUIElementQuery *drawers;
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:53:22: warning: main actor-isolated property 'firstMatch' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
36 | /// It is used for getting the window that contains the element
37 | /// - Returns: Corresponding window
38 | func getXCUIWindow(forAction action: String) -> XCUIElement? {
| `- note: add '@MainActor' to make instance method 'getXCUIWindow(forAction:)' part of global actor 'MainActor'
39 | handleInterruptions()
40 |
:
51 | let query = application.windows.containing(NSPredicate(snapshot: snapshot))
52 |
53 | return query.firstMatch
| `- warning: main actor-isolated property 'firstMatch' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
54 | }
55 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementTypeQueryProvider.h:105:35: note: property declared here
103 | * matches will not be detected.
104 | */
105 | @property (readonly) XCUIElement *firstMatch;
| `- note: property declared here
106 |
107 | @end
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:67:17: warning: call to main actor-isolated instance method 'waitUntilStablePosition(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
63 |
64 | /// Sends a tap event to a hittable point the system computes for the element.
65 | public func tap() {
| `- note: add '@MainActor' to make instance method 'tap()' part of global actor 'MainActor'
66 | guard let element = getXCUIElement(forAction: "tap()") else { return }
67 | element.waitUntilStablePosition()
| `- warning: call to main actor-isolated instance method 'waitUntilStablePosition(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
68 | element.tap()
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/XCUIElement+Extensions.swift:11:10: note: calls to instance method 'waitUntilStablePosition(timeout:)' from outside of its actor context are implicitly asynchronous
9 | ///
10 | /// - Parameter timeout: The maximal time to wait until the element is not moving anymore in seconds.
11 | func waitUntilStablePosition(timeout: CFTimeInterval = 2) {
| `- note: calls to instance method 'waitUntilStablePosition(timeout:)' from outside of its actor context are implicitly asynchronous
12 | XCTContext.runActivity(named: "Wait for element to have a stable position") { activity in
13 | let timeout = Date(timeIntervalSinceNow: timeout)
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:68:17: warning: call to main actor-isolated instance method 'tap()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
63 |
64 | /// Sends a tap event to a hittable point the system computes for the element.
65 | public func tap() {
| `- note: add '@MainActor' to make instance method 'tap()' part of global actor 'MainActor'
66 | guard let element = getXCUIElement(forAction: "tap()") else { return }
67 | element.waitUntilStablePosition()
68 | element.tap()
| `- warning: call to main actor-isolated instance method 'tap()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
69 | }
70 |
XCUIAutomation.XCUIElement.tap:2:22: note: calls to instance method 'tap()' from outside of its actor context are implicitly asynchronous
1 | class XCUIElement {
2 | @MainActor open func tap()}
| `- note: calls to instance method 'tap()' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:80:17: warning: call to main actor-isolated instance method 'waitUntilStablePosition(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
76 | /// coordinates.
77 | /// - Parameter coordinates: Normalized offset coordinates to specify tap position.
78 | public func tap(usingCoordinates coordinates: CGVector) {
| `- note: add '@MainActor' to make instance method 'tap(usingCoordinates:)' part of global actor 'MainActor'
79 | guard let element = getXCUIElement(forAction: "tap()") else { return }
80 | element.waitUntilStablePosition()
| `- warning: call to main actor-isolated instance method 'waitUntilStablePosition(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
81 | element.coordinate(withNormalizedOffset: coordinates).tap()
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/XCUIElement+Extensions.swift:11:10: note: calls to instance method 'waitUntilStablePosition(timeout:)' from outside of its actor context are implicitly asynchronous
9 | ///
10 | /// - Parameter timeout: The maximal time to wait until the element is not moving anymore in seconds.
11 | func waitUntilStablePosition(timeout: CFTimeInterval = 2) {
| `- note: calls to instance method 'waitUntilStablePosition(timeout:)' from outside of its actor context are implicitly asynchronous
12 | XCTContext.runActivity(named: "Wait for element to have a stable position") { activity in
13 | let timeout = Date(timeIntervalSinceNow: timeout)
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:81:63: warning: call to main actor-isolated instance method 'tap()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
76 | /// coordinates.
77 | /// - Parameter coordinates: Normalized offset coordinates to specify tap position.
78 | public func tap(usingCoordinates coordinates: CGVector) {
| `- note: add '@MainActor' to make instance method 'tap(usingCoordinates:)' part of global actor 'MainActor'
79 | guard let element = getXCUIElement(forAction: "tap()") else { return }
80 | element.waitUntilStablePosition()
81 | element.coordinate(withNormalizedOffset: coordinates).tap()
| `- warning: call to main actor-isolated instance method 'tap()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
82 | }
83 |
XCUIAutomation.XCUICoordinate.tap:2:22: note: calls to instance method 'tap()' from outside of its actor context are implicitly asynchronous
1 | class XCUICoordinate {
2 | @MainActor open func tap()}
| `- note: calls to instance method 'tap()' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:81:17: warning: call to main actor-isolated instance method 'coordinate(withNormalizedOffset:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
76 | /// coordinates.
77 | /// - Parameter coordinates: Normalized offset coordinates to specify tap position.
78 | public func tap(usingCoordinates coordinates: CGVector) {
| `- note: add '@MainActor' to make instance method 'tap(usingCoordinates:)' part of global actor 'MainActor'
79 | guard let element = getXCUIElement(forAction: "tap()") else { return }
80 | element.waitUntilStablePosition()
81 | element.coordinate(withNormalizedOffset: coordinates).tap()
| `- warning: call to main actor-isolated instance method 'coordinate(withNormalizedOffset:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
82 | }
83 |
XCUIAutomation.XCUIElement.coordinate:2:22: note: calls to instance method 'coordinate(withNormalizedOffset:)' from outside of its actor context are implicitly asynchronous
1 | class XCUIElement {
2 | @MainActor open func coordinate(withNormalizedOffset normalizedOffset: CGVector) -> XCUICoordinate}
| `- note: calls to instance method 'coordinate(withNormalizedOffset:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:97:20: warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
93 | /// Whether or not the keyboard should be dismissed after typing the text has finished. If the keyboard should
94 | /// be dismissed, it's dismissed by tapping the `Done` button on the keyboard.
95 | public func type(text: String, dismissKeyboard: Bool = true) {
| `- note: add '@MainActor' to make instance method 'type(text:dismissKeyboard:)' part of global actor 'MainActor'
96 | // TODO: better activity description
97 | XCTContext.runActivity(named: "Typing text \(text.debugDescription)") { activity in
| `- warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
98 | guard let element = getXCUIElement(forAction: "type(text: \(text.debugDescription)") else { return }
99 | element.waitUntilStablePosition()
XCTest.XCTContext.runActivity:2:46: note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
1 | class XCTContext {
2 | @MainActor @preconcurrency public class func runActivity<Result>(named name: String, block: @MainActor (any XCTActivity) throws -> Result) rethrows -> Result}
| `- note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:121:28: warning: main actor-isolated property 'isHittable' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
111 | }
112 |
113 | public func waitUntilIsHittable(
| `- note: add '@MainActor' to make instance method 'waitUntilIsHittable(timeout:file:line:)' part of global actor 'MainActor'
114 | timeout: CFTimeInterval = 10,
115 | file: StaticString = #file,
:
119 | let deadline = Date(timeIntervalSinceNow: timeout)
120 | repeat {
121 | guard !element.isHittable else { return }
| `- warning: main actor-isolated property 'isHittable' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
122 | _ = RunLoop.current.run(mode: .default, before: Date(timeIntervalSinceNow: 1))
123 | } while Date() < deadline
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElement.h:63:48: note: property declared here
61 |
62 | /*! Whether or not a hit point can be computed for the element for the purpose of synthesizing events. */
63 | @property (readonly, getter = isHittable) BOOL hittable;
| `- note: property declared here
64 |
65 | /*! Returns a query for all descendants of the element matching the specified type. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:148:42: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
146 | guard let app = getPage()?.xcuiapplication else { return }
147 | guard let window = getXCUIWindow(forAction: "scroll until visible") else { return }
148 | guard !CGRectContainsRect(window.frame, element.frame) else { return }
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
149 | var tryCounter = maxTryCount
150 | let startCoordinate = app.coordinate(withNormalizedOffset: CGVector(dx: 0.5, dy: 0.5))
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:38:29: note: property declared here
36 |
37 | /*! The frame of the element in the screen coordinate space. */
38 | @property (readonly) CGRect frame;
| `- note: property declared here
39 |
40 | /*! The raw value attribute of the element. Depending on the element, the actual type can vary. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:148:57: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
146 | guard let app = getPage()?.xcuiapplication else { return }
147 | guard let window = getXCUIWindow(forAction: "scroll until visible") else { return }
148 | guard !CGRectContainsRect(window.frame, element.frame) else { return }
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
149 | var tryCounter = maxTryCount
150 | let startCoordinate = app.coordinate(withNormalizedOffset: CGVector(dx: 0.5, dy: 0.5))
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:38:29: note: property declared here
36 |
37 | /*! The frame of the element in the screen coordinate space. */
38 | @property (readonly) CGRect frame;
| `- note: property declared here
39 |
40 | /*! The raw value attribute of the element. Depending on the element, the actual type can vary. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:150:35: warning: call to main actor-isolated instance method 'coordinate(withNormalizedOffset:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
148 | guard !CGRectContainsRect(window.frame, element.frame) else { return }
149 | var tryCounter = maxTryCount
150 | let startCoordinate = app.coordinate(withNormalizedOffset: CGVector(dx: 0.5, dy: 0.5))
| `- warning: call to main actor-isolated instance method 'coordinate(withNormalizedOffset:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
151 | repeat {
152 | var endCoordinate = startCoordinate
XCUIAutomation.XCUIElement.coordinate:2:22: note: calls to instance method 'coordinate(withNormalizedOffset:)' from outside of its actor context are implicitly asynchronous
1 | class XCUIElement {
2 | @MainActor open func coordinate(withNormalizedOffset normalizedOffset: CGVector) -> XCUICoordinate}
| `- note: calls to instance method 'coordinate(withNormalizedOffset:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:155:49: warning: call to main actor-isolated instance method 'withOffset' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
153 | switch direction {
154 | case .down:
155 | endCoordinate = startCoordinate.withOffset(CGVector(dx: 0, dy: -window.frame.height/3))
| `- warning: call to main actor-isolated instance method 'withOffset' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
156 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
157 | case .up:
XCUIAutomation.XCUICoordinate.withOffset:2:22: note: calls to instance method 'withOffset' from outside of its actor context are implicitly asynchronous
1 | class XCUICoordinate {
2 | @MainActor open func withOffset(_ offsetVector: CGVector) -> XCUICoordinate}
| `- note: calls to instance method 'withOffset' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:155:88: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
153 | switch direction {
154 | case .down:
155 | endCoordinate = startCoordinate.withOffset(CGVector(dx: 0, dy: -window.frame.height/3))
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
156 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
157 | case .up:
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:38:29: note: property declared here
36 |
37 | /*! The frame of the element in the screen coordinate space. */
38 | @property (readonly) CGRect frame;
| `- note: property declared here
39 |
40 | /*! The raw value attribute of the element. Depending on the element, the actual type can vary. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:156:33: warning: call to main actor-isolated instance method 'press(forDuration:thenDragTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
154 | case .down:
155 | endCoordinate = startCoordinate.withOffset(CGVector(dx: 0, dy: -window.frame.height/3))
156 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
| `- warning: call to main actor-isolated instance method 'press(forDuration:thenDragTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
157 | case .up:
158 | endCoordinate = startCoordinate.withOffset(CGVector(dx: 0, dy: window.frame.height/3))
XCUIAutomation.XCUICoordinate.press:2:22: note: calls to instance method 'press(forDuration:thenDragTo:)' from outside of its actor context are implicitly asynchronous
1 | class XCUICoordinate {
2 | @MainActor open func press(forDuration duration: TimeInterval, thenDragTo otherCoordinate: XCUICoordinate)}
| `- note: calls to instance method 'press(forDuration:thenDragTo:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:158:49: warning: call to main actor-isolated instance method 'withOffset' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
156 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
157 | case .up:
158 | endCoordinate = startCoordinate.withOffset(CGVector(dx: 0, dy: window.frame.height/3))
| `- warning: call to main actor-isolated instance method 'withOffset' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
159 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
160 | case .left:
XCUIAutomation.XCUICoordinate.withOffset:2:22: note: calls to instance method 'withOffset' from outside of its actor context are implicitly asynchronous
1 | class XCUICoordinate {
2 | @MainActor open func withOffset(_ offsetVector: CGVector) -> XCUICoordinate}
| `- note: calls to instance method 'withOffset' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:158:87: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
156 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
157 | case .up:
158 | endCoordinate = startCoordinate.withOffset(CGVector(dx: 0, dy: window.frame.height/3))
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
159 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
160 | case .left:
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:38:29: note: property declared here
36 |
37 | /*! The frame of the element in the screen coordinate space. */
38 | @property (readonly) CGRect frame;
| `- note: property declared here
39 |
40 | /*! The raw value attribute of the element. Depending on the element, the actual type can vary. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:159:33: warning: call to main actor-isolated instance method 'press(forDuration:thenDragTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
157 | case .up:
158 | endCoordinate = startCoordinate.withOffset(CGVector(dx: 0, dy: window.frame.height/3))
159 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
| `- warning: call to main actor-isolated instance method 'press(forDuration:thenDragTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
160 | case .left:
161 | endCoordinate = startCoordinate.withOffset(CGVector(dx: window.frame.width/3, dy: 0))
XCUIAutomation.XCUICoordinate.press:2:22: note: calls to instance method 'press(forDuration:thenDragTo:)' from outside of its actor context are implicitly asynchronous
1 | class XCUICoordinate {
2 | @MainActor open func press(forDuration duration: TimeInterval, thenDragTo otherCoordinate: XCUICoordinate)}
| `- note: calls to instance method 'press(forDuration:thenDragTo:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:161:49: warning: call to main actor-isolated instance method 'withOffset' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
159 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
160 | case .left:
161 | endCoordinate = startCoordinate.withOffset(CGVector(dx: window.frame.width/3, dy: 0))
| `- warning: call to main actor-isolated instance method 'withOffset' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
162 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
163 | case .right:
XCUIAutomation.XCUICoordinate.withOffset:2:22: note: calls to instance method 'withOffset' from outside of its actor context are implicitly asynchronous
1 | class XCUICoordinate {
2 | @MainActor open func withOffset(_ offsetVector: CGVector) -> XCUICoordinate}
| `- note: calls to instance method 'withOffset' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:161:80: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
159 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
160 | case .left:
161 | endCoordinate = startCoordinate.withOffset(CGVector(dx: window.frame.width/3, dy: 0))
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
162 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
163 | case .right:
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:38:29: note: property declared here
36 |
37 | /*! The frame of the element in the screen coordinate space. */
38 | @property (readonly) CGRect frame;
| `- note: property declared here
39 |
40 | /*! The raw value attribute of the element. Depending on the element, the actual type can vary. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:162:33: warning: call to main actor-isolated instance method 'press(forDuration:thenDragTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
160 | case .left:
161 | endCoordinate = startCoordinate.withOffset(CGVector(dx: window.frame.width/3, dy: 0))
162 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
| `- warning: call to main actor-isolated instance method 'press(forDuration:thenDragTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
163 | case .right:
164 | endCoordinate = startCoordinate.withOffset(CGVector(dx: -window.frame.width/3, dy: 0))
XCUIAutomation.XCUICoordinate.press:2:22: note: calls to instance method 'press(forDuration:thenDragTo:)' from outside of its actor context are implicitly asynchronous
1 | class XCUICoordinate {
2 | @MainActor open func press(forDuration duration: TimeInterval, thenDragTo otherCoordinate: XCUICoordinate)}
| `- note: calls to instance method 'press(forDuration:thenDragTo:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:164:49: warning: call to main actor-isolated instance method 'withOffset' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
162 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
163 | case .right:
164 | endCoordinate = startCoordinate.withOffset(CGVector(dx: -window.frame.width/3, dy: 0))
| `- warning: call to main actor-isolated instance method 'withOffset' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
165 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
166 | }
XCUIAutomation.XCUICoordinate.withOffset:2:22: note: calls to instance method 'withOffset' from outside of its actor context are implicitly asynchronous
1 | class XCUICoordinate {
2 | @MainActor open func withOffset(_ offsetVector: CGVector) -> XCUICoordinate}
| `- note: calls to instance method 'withOffset' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:164:81: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
162 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
163 | case .right:
164 | endCoordinate = startCoordinate.withOffset(CGVector(dx: -window.frame.width/3, dy: 0))
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
165 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
166 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:38:29: note: property declared here
36 |
37 | /*! The frame of the element in the screen coordinate space. */
38 | @property (readonly) CGRect frame;
| `- note: property declared here
39 |
40 | /*! The raw value attribute of the element. Depending on the element, the actual type can vary. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:165:33: warning: call to main actor-isolated instance method 'press(forDuration:thenDragTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
163 | case .right:
164 | endCoordinate = startCoordinate.withOffset(CGVector(dx: -window.frame.width/3, dy: 0))
165 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
| `- warning: call to main actor-isolated instance method 'press(forDuration:thenDragTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
166 | }
167 | element.waitUntilStablePosition()
XCUIAutomation.XCUICoordinate.press:2:22: note: calls to instance method 'press(forDuration:thenDragTo:)' from outside of its actor context are implicitly asynchronous
1 | class XCUICoordinate {
2 | @MainActor open func press(forDuration duration: TimeInterval, thenDragTo otherCoordinate: XCUICoordinate)}
| `- note: calls to instance method 'press(forDuration:thenDragTo:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:167:21: warning: call to main actor-isolated instance method 'waitUntilStablePosition(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
165 | startCoordinate.press(forDuration: 0.05, thenDragTo: endCoordinate)
166 | }
167 | element.waitUntilStablePosition()
| `- warning: call to main actor-isolated instance method 'waitUntilStablePosition(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
168 | tryCounter -= 1
169 | guard !CGRectContainsRect(window.frame, element.frame) else { return }
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/XCUIElement+Extensions.swift:11:10: note: calls to instance method 'waitUntilStablePosition(timeout:)' from outside of its actor context are implicitly asynchronous
9 | ///
10 | /// - Parameter timeout: The maximal time to wait until the element is not moving anymore in seconds.
11 | func waitUntilStablePosition(timeout: CFTimeInterval = 2) {
| `- note: calls to instance method 'waitUntilStablePosition(timeout:)' from outside of its actor context are implicitly asynchronous
12 | XCTContext.runActivity(named: "Wait for element to have a stable position") { activity in
13 | let timeout = Date(timeIntervalSinceNow: timeout)
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:169:46: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
167 | element.waitUntilStablePosition()
168 | tryCounter -= 1
169 | guard !CGRectContainsRect(window.frame, element.frame) else { return }
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
170 | } while tryCounter > 0
171 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:38:29: note: property declared here
36 |
37 | /*! The frame of the element in the screen coordinate space. */
38 | @property (readonly) CGRect frame;
| `- note: property declared here
39 |
40 | /*! The raw value attribute of the element. Depending on the element, the actual type can vary. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:169:61: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
137 | /// - line: Line number that will be displayed if it fails.
138 | // TODO: Add PageBuilder argument to make the function more generic
139 | public func scrollUntilVisibleOnScreen(
| `- note: add '@MainActor' to make instance method 'scrollUntilVisibleOnScreen(direction:maxTryCount:file:line:)' part of global actor 'MainActor'
140 | direction: ScrollDirection,
141 | maxTryCount: Int = 5,
:
167 | element.waitUntilStablePosition()
168 | tryCounter -= 1
169 | guard !CGRectContainsRect(window.frame, element.frame) else { return }
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
170 | } while tryCounter > 0
171 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:38:29: note: property declared here
36 |
37 | /*! The frame of the element in the screen coordinate space. */
38 | @property (readonly) CGRect frame;
| `- note: property declared here
39 |
40 | /*! The raw value attribute of the element. Depending on the element, the actual type can vary. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElementIdentifier.swift:15:16: warning: static property 'dynamic' is not concurrency-safe because non-'Sendable' type 'PageElementIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
3 | /// Elements are identified by their position in the source code. This has the additional benefit that the identifer
4 | /// can be used for helpful debug information.
5 | public struct PageElementIdentifier: Hashable {
| `- note: consider making struct 'PageElementIdentifier' conform to the 'Sendable' protocol
6 | /// The source file in which the element is defined.
7 | let file: String
:
13 | /// A special identifier which is used when page elements are created dynamically, e.g. in a automatically created
14 | /// page description of a running app.
15 | static let dynamic: Self = .init(file: "", line: 0, column: 0)
| |- warning: static property 'dynamic' is not concurrency-safe because non-'Sendable' type 'PageElementIdentifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'dynamic' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:31:77: warning: sending value of non-Sendable type 'NSPredicate' risks causing data races; this is an error in the Swift 6 language mode
29 |
30 | let application = cacheEntry.page.xcuiapplication
31 | let query = application.descendants(matching: snapshot.elementType).matching(NSPredicate(snapshot: snapshot))
| |- warning: sending value of non-Sendable type 'NSPredicate' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'NSPredicate' to main actor-isolated instance method 'matching' risks causing races in between task-isolated and main actor-isolated uses
32 |
33 | return query.firstMatch
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:51:41: warning: sending value of non-Sendable type 'NSPredicate' risks causing data races; this is an error in the Swift 6 language mode
49 | }
50 | let application = cacheEntry.page.xcuiapplication
51 | let query = application.windows.containing(NSPredicate(snapshot: snapshot))
| |- warning: sending value of non-Sendable type 'NSPredicate' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'NSPredicate' to main actor-isolated instance method 'containing' risks causing races in between task-isolated and main actor-isolated uses
52 |
53 | return query.firstMatch
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/PageElement.swift:98:33: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
96 | // TODO: better activity description
97 | XCTContext.runActivity(named: "Typing text \(text.debugDescription)") { activity in
98 | guard let element = getXCUIElement(forAction: "type(text: \(text.debugDescription)") else { return }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
99 | element.waitUntilStablePosition()
100 | element.coordinate(withNormalizedOffset: CGVector(dx: 0.5, dy: 0.5)).tap()
[28/38] Compiling Sisyphos Page.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Page.swift:144:5: warning: var 'elementPathCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
142 | }
143 |
144 | var elementPathCache: [PageElementIdentifier: CacheEntry] = [:]
| |- warning: var 'elementPathCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'elementPathCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'elementPathCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
145 |
146 | struct CacheEntry {
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Page.swift:39:20: warning: call to main actor-isolated initializer 'init(bundleIdentifier:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
37 | var xcuiapplication: XCUIApplication {
38 | if !application.isEmpty {
39 | return XCUIApplication(bundleIdentifier: application)
| `- warning: call to main actor-isolated initializer 'init(bundleIdentifier:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
40 | } else {
41 | return XCUIApplication()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIApplication.h:35:1: note: calls to initializer 'init(bundleIdentifier:)' from outside of its actor context are implicitly asynchronous
33 | * Returns a proxy for an application associated with the specified bundle identifier.
34 | */
35 | - (instancetype)initWithBundleIdentifier:(NSString *)bundleIdentifier NS_DESIGNATED_INITIALIZER;
| `- note: calls to initializer 'init(bundleIdentifier:)' from outside of its actor context are implicitly asynchronous
36 |
37 | #if TARGET_OS_OSX || TARGET_OS_MACCATALYST
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Page.swift:41:20: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
39 | return XCUIApplication(bundleIdentifier: application)
40 | } else {
41 | return XCUIApplication()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
42 | }
43 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIApplication.h:29:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
27 | * Returns a proxy for the application specified by the "Target Application" target setting.
28 | */
29 | - (instancetype)init NS_DESIGNATED_INITIALIZER;
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
30 | + (instancetype)new;
31 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Page.swift:52:20: warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | /// Checks if the given page exists, that means it's currently visible on the screen as described in the page
50 | /// description.
51 | func exists() -> PageExistsResults {
| `- note: add '@MainActor' to make instance method 'exists()' part of global actor 'MainActor'
52 | XCTContext.runActivity(named: "Check if page \(debugName) exists") { activity in
| `- warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
53 | UIInterruptionsObserver.shared.checkForInterruptions()
54 |
XCTest.XCTContext.runActivity:2:46: note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
1 | class XCTContext {
2 | @MainActor @preconcurrency public class func runActivity<Result>(named name: String, block: @MainActor (any XCTActivity) throws -> Result) rethrows -> Result}
| `- note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Page.swift:103:20: warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
96 | /// ``exists()`` method. It will not fail the test and give a result that you can introspect to find out which
97 | /// elements of a page are missing.
98 | func waitForExistence(
| `- note: add '@MainActor' to make instance method 'waitForExistence(timeout:file:line:)' part of global actor 'MainActor'
99 | timeout: CFTimeInterval = 15,
100 | file: StaticString = #file,
101 | line: UInt = #line
102 | ) {
103 | XCTContext.runActivity(named: "Wait max \(timeout)s for page \(debugName) to exist") { activity in
| `- warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
104 | let runLoop = RunLoop.current
105 | let deadline = Date(timeIntervalSinceNow: timeout)
XCTest.XCTContext.runActivity:2:46: note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
1 | class XCTContext {
2 | @MainActor @preconcurrency public class func runActivity<Result>(named name: String, block: @MainActor (any XCTActivity) throws -> Result) rethrows -> Result}
| `- note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Page.swift:136:51: warning: call to main actor-isolated instance method 'snapshot()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
133 |
134 | extension Page {
135 | func refreshElementCache() {
| `- note: add '@MainActor' to make instance method 'refreshElementCache()' part of global actor 'MainActor'
136 | guard let snapshot = try? xcuiapplication.snapshot() else {
| `- warning: call to main actor-isolated instance method 'snapshot()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | return
138 | }
XCUIAutomation.XCUIElement.snapshot:2:22: note: calls to instance method 'snapshot()' from outside of its actor context are implicitly asynchronous
1 | class XCUIElement {
2 | @MainActor open func snapshot() throws -> any XCUIElementSnapshot}
| `- note: calls to instance method 'snapshot()' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Page.swift:55:66: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
53 | UIInterruptionsObserver.shared.checkForInterruptions()
54 |
55 | let screenshotAttachment = XCTAttachment(screenshot: xcuiapplication.screenshot())
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
56 | screenshotAttachment.lifetime = .deleteOnSuccess
57 | activity.add(screenshotAttachment)
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Page.swift:108:38: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
106 | var results: PageExistsResults?
107 | repeat {
108 | let currentResults = exists()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
109 | guard !currentResults.isExisting else { return }
110 | results = currentResults
[29/38] Compiling Sisyphos PageBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Page.swift:144:5: warning: var 'elementPathCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
142 | }
143 |
144 | var elementPathCache: [PageElementIdentifier: CacheEntry] = [:]
| |- warning: var 'elementPathCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'elementPathCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'elementPathCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
145 |
146 | struct CacheEntry {
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Page.swift:39:20: warning: call to main actor-isolated initializer 'init(bundleIdentifier:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
37 | var xcuiapplication: XCUIApplication {
38 | if !application.isEmpty {
39 | return XCUIApplication(bundleIdentifier: application)
| `- warning: call to main actor-isolated initializer 'init(bundleIdentifier:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
40 | } else {
41 | return XCUIApplication()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIApplication.h:35:1: note: calls to initializer 'init(bundleIdentifier:)' from outside of its actor context are implicitly asynchronous
33 | * Returns a proxy for an application associated with the specified bundle identifier.
34 | */
35 | - (instancetype)initWithBundleIdentifier:(NSString *)bundleIdentifier NS_DESIGNATED_INITIALIZER;
| `- note: calls to initializer 'init(bundleIdentifier:)' from outside of its actor context are implicitly asynchronous
36 |
37 | #if TARGET_OS_OSX || TARGET_OS_MACCATALYST
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Page.swift:41:20: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
39 | return XCUIApplication(bundleIdentifier: application)
40 | } else {
41 | return XCUIApplication()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
42 | }
43 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIApplication.h:29:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
27 | * Returns a proxy for the application specified by the "Target Application" target setting.
28 | */
29 | - (instancetype)init NS_DESIGNATED_INITIALIZER;
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
30 | + (instancetype)new;
31 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Page.swift:52:20: warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | /// Checks if the given page exists, that means it's currently visible on the screen as described in the page
50 | /// description.
51 | func exists() -> PageExistsResults {
| `- note: add '@MainActor' to make instance method 'exists()' part of global actor 'MainActor'
52 | XCTContext.runActivity(named: "Check if page \(debugName) exists") { activity in
| `- warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
53 | UIInterruptionsObserver.shared.checkForInterruptions()
54 |
XCTest.XCTContext.runActivity:2:46: note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
1 | class XCTContext {
2 | @MainActor @preconcurrency public class func runActivity<Result>(named name: String, block: @MainActor (any XCTActivity) throws -> Result) rethrows -> Result}
| `- note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Page.swift:103:20: warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
96 | /// ``exists()`` method. It will not fail the test and give a result that you can introspect to find out which
97 | /// elements of a page are missing.
98 | func waitForExistence(
| `- note: add '@MainActor' to make instance method 'waitForExistence(timeout:file:line:)' part of global actor 'MainActor'
99 | timeout: CFTimeInterval = 15,
100 | file: StaticString = #file,
101 | line: UInt = #line
102 | ) {
103 | XCTContext.runActivity(named: "Wait max \(timeout)s for page \(debugName) to exist") { activity in
| `- warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
104 | let runLoop = RunLoop.current
105 | let deadline = Date(timeIntervalSinceNow: timeout)
XCTest.XCTContext.runActivity:2:46: note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
1 | class XCTContext {
2 | @MainActor @preconcurrency public class func runActivity<Result>(named name: String, block: @MainActor (any XCTActivity) throws -> Result) rethrows -> Result}
| `- note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Page.swift:136:51: warning: call to main actor-isolated instance method 'snapshot()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
133 |
134 | extension Page {
135 | func refreshElementCache() {
| `- note: add '@MainActor' to make instance method 'refreshElementCache()' part of global actor 'MainActor'
136 | guard let snapshot = try? xcuiapplication.snapshot() else {
| `- warning: call to main actor-isolated instance method 'snapshot()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | return
138 | }
XCUIAutomation.XCUIElement.snapshot:2:22: note: calls to instance method 'snapshot()' from outside of its actor context are implicitly asynchronous
1 | class XCUIElement {
2 | @MainActor open func snapshot() throws -> any XCUIElementSnapshot}
| `- note: calls to instance method 'snapshot()' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Page.swift:55:66: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
53 | UIInterruptionsObserver.shared.checkForInterruptions()
54 |
55 | let screenshotAttachment = XCTAttachment(screenshot: xcuiapplication.screenshot())
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
56 | screenshotAttachment.lifetime = .deleteOnSuccess
57 | activity.add(screenshotAttachment)
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Page.swift:108:38: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
106 | var results: PageExistsResults?
107 | repeat {
108 | let currentResults = exists()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
109 | guard !currentResults.isExisting else { return }
110 | results = currentResults
[30/38] Compiling Sisyphos PageDescription.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Page.swift:144:5: warning: var 'elementPathCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
142 | }
143 |
144 | var elementPathCache: [PageElementIdentifier: CacheEntry] = [:]
| |- warning: var 'elementPathCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'elementPathCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'elementPathCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
145 |
146 | struct CacheEntry {
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Page.swift:39:20: warning: call to main actor-isolated initializer 'init(bundleIdentifier:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
37 | var xcuiapplication: XCUIApplication {
38 | if !application.isEmpty {
39 | return XCUIApplication(bundleIdentifier: application)
| `- warning: call to main actor-isolated initializer 'init(bundleIdentifier:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
40 | } else {
41 | return XCUIApplication()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIApplication.h:35:1: note: calls to initializer 'init(bundleIdentifier:)' from outside of its actor context are implicitly asynchronous
33 | * Returns a proxy for an application associated with the specified bundle identifier.
34 | */
35 | - (instancetype)initWithBundleIdentifier:(NSString *)bundleIdentifier NS_DESIGNATED_INITIALIZER;
| `- note: calls to initializer 'init(bundleIdentifier:)' from outside of its actor context are implicitly asynchronous
36 |
37 | #if TARGET_OS_OSX || TARGET_OS_MACCATALYST
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Page.swift:41:20: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
39 | return XCUIApplication(bundleIdentifier: application)
40 | } else {
41 | return XCUIApplication()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
42 | }
43 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIApplication.h:29:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
27 | * Returns a proxy for the application specified by the "Target Application" target setting.
28 | */
29 | - (instancetype)init NS_DESIGNATED_INITIALIZER;
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
30 | + (instancetype)new;
31 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Page.swift:52:20: warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | /// Checks if the given page exists, that means it's currently visible on the screen as described in the page
50 | /// description.
51 | func exists() -> PageExistsResults {
| `- note: add '@MainActor' to make instance method 'exists()' part of global actor 'MainActor'
52 | XCTContext.runActivity(named: "Check if page \(debugName) exists") { activity in
| `- warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
53 | UIInterruptionsObserver.shared.checkForInterruptions()
54 |
XCTest.XCTContext.runActivity:2:46: note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
1 | class XCTContext {
2 | @MainActor @preconcurrency public class func runActivity<Result>(named name: String, block: @MainActor (any XCTActivity) throws -> Result) rethrows -> Result}
| `- note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Page.swift:103:20: warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
96 | /// ``exists()`` method. It will not fail the test and give a result that you can introspect to find out which
97 | /// elements of a page are missing.
98 | func waitForExistence(
| `- note: add '@MainActor' to make instance method 'waitForExistence(timeout:file:line:)' part of global actor 'MainActor'
99 | timeout: CFTimeInterval = 15,
100 | file: StaticString = #file,
101 | line: UInt = #line
102 | ) {
103 | XCTContext.runActivity(named: "Wait max \(timeout)s for page \(debugName) to exist") { activity in
| `- warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
104 | let runLoop = RunLoop.current
105 | let deadline = Date(timeIntervalSinceNow: timeout)
XCTest.XCTContext.runActivity:2:46: note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
1 | class XCTContext {
2 | @MainActor @preconcurrency public class func runActivity<Result>(named name: String, block: @MainActor (any XCTActivity) throws -> Result) rethrows -> Result}
| `- note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Page.swift:136:51: warning: call to main actor-isolated instance method 'snapshot()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
133 |
134 | extension Page {
135 | func refreshElementCache() {
| `- note: add '@MainActor' to make instance method 'refreshElementCache()' part of global actor 'MainActor'
136 | guard let snapshot = try? xcuiapplication.snapshot() else {
| `- warning: call to main actor-isolated instance method 'snapshot()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | return
138 | }
XCUIAutomation.XCUIElement.snapshot:2:22: note: calls to instance method 'snapshot()' from outside of its actor context are implicitly asynchronous
1 | class XCUIElement {
2 | @MainActor open func snapshot() throws -> any XCUIElementSnapshot}
| `- note: calls to instance method 'snapshot()' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Page.swift:55:66: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
53 | UIInterruptionsObserver.shared.checkForInterruptions()
54 |
55 | let screenshotAttachment = XCTAttachment(screenshot: xcuiapplication.screenshot())
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
56 | screenshotAttachment.lifetime = .deleteOnSuccess
57 | activity.add(screenshotAttachment)
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Page.swift:108:38: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
106 | var results: PageExistsResults?
107 | repeat {
108 | let currentResults = exists()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
109 | guard !currentResults.isExisting else { return }
110 | results = currentResults
[31/38] Compiling Sisyphos Button.swift
[32/38] Compiling Sisyphos Cell.swift
[33/38] Compiling Sisyphos CollectionView.swift
[34/38] Compiling Sisyphos NavigationBar.swift
[35/38] Compiling Sisyphos DefaultAlert.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/NSPredicate+Description.swift:20:13: warning: var 'snapshotByPredicate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 | /// snapshot that is used for matching in the predicate. This is needed so we can provide useful output in the test
19 | /// reports.
20 | private var snapshotByPredicate: NSMapTable<NSPredicate, XCUIElementSnapshot> = NSMapTable.weakToStrongObjects()
| |- warning: var 'snapshotByPredicate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'snapshotByPredicate' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'snapshotByPredicate' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/NSPredicate+Description.swift:10:29: warning: call to main actor-isolated instance method 'matches(snapshot:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
8 | self.init(block: { element, _ in
9 | guard let elementSnapshot = element as? XCUIElementSnapshot else { return false }
10 | return snapshot.matches(snapshot: elementSnapshot)
| `- warning: call to main actor-isolated instance method 'matches(snapshot:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
11 | })
12 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/XCUIElementSnapshot+Matching.swift:24:10: note: calls to instance method 'matches(snapshot:)' from outside of its actor context are implicitly asynchronous
22 |
23 | /// Checks if the given snapshot matches this element snapshot, so both snapshots are snapshots of the same element.
24 | func matches(snapshot: XCUIElementSnapshot) -> Bool {
| `- note: calls to instance method 'matches(snapshot:)' from outside of its actor context are implicitly asynchronous
25 | // The private Apple API crashes if elements have different types. That's why we check upfront.
26 | guard snapshot.elementType == self.elementType else { return false }
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/NSPredicate+Description.swift:43:33: warning: main actor-isolated property 'elementType' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
41 | guard let snapshot = snapshotByPredicate.object(forKey: self) else { return super.description }
42 | var attributes: [String] = [
43 | "element=\(snapshot.elementType)",
| `- warning: main actor-isolated property 'elementType' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
44 | ]
45 | if !snapshot.identifier.isEmpty {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:50:38: note: property declared here
48 |
49 | /*! The type of the element. /seealso XCUIElementType. */
50 | @property (readonly) XCUIElementType elementType;
| `- note: property declared here
51 |
52 | /*! Whether or not the element is enabled for user interaction. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/NSPredicate+Description.swift:45:22: warning: main actor-isolated property 'identifier' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
43 | "element=\(snapshot.elementType)",
44 | ]
45 | if !snapshot.identifier.isEmpty {
| `- warning: main actor-isolated property 'identifier' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
46 | attributes.append("identifier=\(snapshot.identifier.debugDescription)")
47 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:35:32: note: property declared here
33 |
34 | /*! The accessibility identifier. */
35 | @property (readonly) NSString *identifier;
| `- note: property declared here
36 |
37 | /*! The frame of the element in the screen coordinate space. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/NSPredicate+Description.swift:46:54: warning: main actor-isolated property 'identifier' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
44 | ]
45 | if !snapshot.identifier.isEmpty {
46 | attributes.append("identifier=\(snapshot.identifier.debugDescription)")
| `- warning: main actor-isolated property 'identifier' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
47 | }
48 | if !snapshot.label.isEmpty {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:35:32: note: property declared here
33 |
34 | /*! The accessibility identifier. */
35 | @property (readonly) NSString *identifier;
| `- note: property declared here
36 |
37 | /*! The frame of the element in the screen coordinate space. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/NSPredicate+Description.swift:48:22: warning: main actor-isolated property 'label' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
46 | attributes.append("identifier=\(snapshot.identifier.debugDescription)")
47 | }
48 | if !snapshot.label.isEmpty {
| `- warning: main actor-isolated property 'label' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
49 | attributes.append("label=\(snapshot.label.debugDescription)")
50 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:47:38: note: property declared here
45 |
46 | /*! The label attribute of the element. */
47 | @property (readonly, copy) NSString *label;
| `- note: property declared here
48 |
49 | /*! The type of the element. /seealso XCUIElementType. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/NSPredicate+Description.swift:49:49: warning: main actor-isolated property 'label' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
47 | }
48 | if !snapshot.label.isEmpty {
49 | attributes.append("label=\(snapshot.label.debugDescription)")
| `- warning: main actor-isolated property 'label' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 | if let value = snapshot.value as? String {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:47:38: note: property declared here
45 |
46 | /*! The label attribute of the element. */
47 | @property (readonly, copy) NSString *label;
| `- note: property declared here
48 |
49 | /*! The type of the element. /seealso XCUIElementType. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/NSPredicate+Description.swift:51:33: warning: main actor-isolated property 'value' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
49 | attributes.append("label=\(snapshot.label.debugDescription)")
50 | }
51 | if let value = snapshot.value as? String {
| `- warning: main actor-isolated property 'value' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
52 | attributes.append("value=\(value.debugDescription)")
53 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:41:35: note: property declared here
39 |
40 | /*! The raw value attribute of the element. Depending on the element, the actual type can vary. */
41 | @property (readonly, nullable) id value;
| `- note: property declared here
42 |
43 | /*! The title attribute of the element. */
[36/38] Compiling Sisyphos DefaultPermissionAlert.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/NSPredicate+Description.swift:20:13: warning: var 'snapshotByPredicate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 | /// snapshot that is used for matching in the predicate. This is needed so we can provide useful output in the test
19 | /// reports.
20 | private var snapshotByPredicate: NSMapTable<NSPredicate, XCUIElementSnapshot> = NSMapTable.weakToStrongObjects()
| |- warning: var 'snapshotByPredicate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'snapshotByPredicate' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'snapshotByPredicate' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/NSPredicate+Description.swift:10:29: warning: call to main actor-isolated instance method 'matches(snapshot:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
8 | self.init(block: { element, _ in
9 | guard let elementSnapshot = element as? XCUIElementSnapshot else { return false }
10 | return snapshot.matches(snapshot: elementSnapshot)
| `- warning: call to main actor-isolated instance method 'matches(snapshot:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
11 | })
12 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/XCUIElementSnapshot+Matching.swift:24:10: note: calls to instance method 'matches(snapshot:)' from outside of its actor context are implicitly asynchronous
22 |
23 | /// Checks if the given snapshot matches this element snapshot, so both snapshots are snapshots of the same element.
24 | func matches(snapshot: XCUIElementSnapshot) -> Bool {
| `- note: calls to instance method 'matches(snapshot:)' from outside of its actor context are implicitly asynchronous
25 | // The private Apple API crashes if elements have different types. That's why we check upfront.
26 | guard snapshot.elementType == self.elementType else { return false }
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/NSPredicate+Description.swift:43:33: warning: main actor-isolated property 'elementType' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
41 | guard let snapshot = snapshotByPredicate.object(forKey: self) else { return super.description }
42 | var attributes: [String] = [
43 | "element=\(snapshot.elementType)",
| `- warning: main actor-isolated property 'elementType' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
44 | ]
45 | if !snapshot.identifier.isEmpty {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:50:38: note: property declared here
48 |
49 | /*! The type of the element. /seealso XCUIElementType. */
50 | @property (readonly) XCUIElementType elementType;
| `- note: property declared here
51 |
52 | /*! Whether or not the element is enabled for user interaction. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/NSPredicate+Description.swift:45:22: warning: main actor-isolated property 'identifier' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
43 | "element=\(snapshot.elementType)",
44 | ]
45 | if !snapshot.identifier.isEmpty {
| `- warning: main actor-isolated property 'identifier' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
46 | attributes.append("identifier=\(snapshot.identifier.debugDescription)")
47 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:35:32: note: property declared here
33 |
34 | /*! The accessibility identifier. */
35 | @property (readonly) NSString *identifier;
| `- note: property declared here
36 |
37 | /*! The frame of the element in the screen coordinate space. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/NSPredicate+Description.swift:46:54: warning: main actor-isolated property 'identifier' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
44 | ]
45 | if !snapshot.identifier.isEmpty {
46 | attributes.append("identifier=\(snapshot.identifier.debugDescription)")
| `- warning: main actor-isolated property 'identifier' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
47 | }
48 | if !snapshot.label.isEmpty {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:35:32: note: property declared here
33 |
34 | /*! The accessibility identifier. */
35 | @property (readonly) NSString *identifier;
| `- note: property declared here
36 |
37 | /*! The frame of the element in the screen coordinate space. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/NSPredicate+Description.swift:48:22: warning: main actor-isolated property 'label' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
46 | attributes.append("identifier=\(snapshot.identifier.debugDescription)")
47 | }
48 | if !snapshot.label.isEmpty {
| `- warning: main actor-isolated property 'label' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
49 | attributes.append("label=\(snapshot.label.debugDescription)")
50 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:47:38: note: property declared here
45 |
46 | /*! The label attribute of the element. */
47 | @property (readonly, copy) NSString *label;
| `- note: property declared here
48 |
49 | /*! The type of the element. /seealso XCUIElementType. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/NSPredicate+Description.swift:49:49: warning: main actor-isolated property 'label' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
47 | }
48 | if !snapshot.label.isEmpty {
49 | attributes.append("label=\(snapshot.label.debugDescription)")
| `- warning: main actor-isolated property 'label' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 | if let value = snapshot.value as? String {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:47:38: note: property declared here
45 |
46 | /*! The label attribute of the element. */
47 | @property (readonly, copy) NSString *label;
| `- note: property declared here
48 |
49 | /*! The type of the element. /seealso XCUIElementType. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/NSPredicate+Description.swift:51:33: warning: main actor-isolated property 'value' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
49 | attributes.append("label=\(snapshot.label.debugDescription)")
50 | }
51 | if let value = snapshot.value as? String {
| `- warning: main actor-isolated property 'value' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
52 | attributes.append("value=\(value.debugDescription)")
53 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:41:35: note: property declared here
39 |
40 | /*! The raw value attribute of the element. Depending on the element, the actual type can vary. */
41 | @property (readonly, nullable) id value;
| `- note: property declared here
42 |
43 | /*! The title attribute of the element. */
[37/38] Compiling Sisyphos NSPredicate+Description.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/NSPredicate+Description.swift:20:13: warning: var 'snapshotByPredicate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 | /// snapshot that is used for matching in the predicate. This is needed so we can provide useful output in the test
19 | /// reports.
20 | private var snapshotByPredicate: NSMapTable<NSPredicate, XCUIElementSnapshot> = NSMapTable.weakToStrongObjects()
| |- warning: var 'snapshotByPredicate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'snapshotByPredicate' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'snapshotByPredicate' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/NSPredicate+Description.swift:10:29: warning: call to main actor-isolated instance method 'matches(snapshot:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
8 | self.init(block: { element, _ in
9 | guard let elementSnapshot = element as? XCUIElementSnapshot else { return false }
10 | return snapshot.matches(snapshot: elementSnapshot)
| `- warning: call to main actor-isolated instance method 'matches(snapshot:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
11 | })
12 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/XCUIElementSnapshot+Matching.swift:24:10: note: calls to instance method 'matches(snapshot:)' from outside of its actor context are implicitly asynchronous
22 |
23 | /// Checks if the given snapshot matches this element snapshot, so both snapshots are snapshots of the same element.
24 | func matches(snapshot: XCUIElementSnapshot) -> Bool {
| `- note: calls to instance method 'matches(snapshot:)' from outside of its actor context are implicitly asynchronous
25 | // The private Apple API crashes if elements have different types. That's why we check upfront.
26 | guard snapshot.elementType == self.elementType else { return false }
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/NSPredicate+Description.swift:43:33: warning: main actor-isolated property 'elementType' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
41 | guard let snapshot = snapshotByPredicate.object(forKey: self) else { return super.description }
42 | var attributes: [String] = [
43 | "element=\(snapshot.elementType)",
| `- warning: main actor-isolated property 'elementType' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
44 | ]
45 | if !snapshot.identifier.isEmpty {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:50:38: note: property declared here
48 |
49 | /*! The type of the element. /seealso XCUIElementType. */
50 | @property (readonly) XCUIElementType elementType;
| `- note: property declared here
51 |
52 | /*! Whether or not the element is enabled for user interaction. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/NSPredicate+Description.swift:45:22: warning: main actor-isolated property 'identifier' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
43 | "element=\(snapshot.elementType)",
44 | ]
45 | if !snapshot.identifier.isEmpty {
| `- warning: main actor-isolated property 'identifier' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
46 | attributes.append("identifier=\(snapshot.identifier.debugDescription)")
47 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:35:32: note: property declared here
33 |
34 | /*! The accessibility identifier. */
35 | @property (readonly) NSString *identifier;
| `- note: property declared here
36 |
37 | /*! The frame of the element in the screen coordinate space. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/NSPredicate+Description.swift:46:54: warning: main actor-isolated property 'identifier' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
44 | ]
45 | if !snapshot.identifier.isEmpty {
46 | attributes.append("identifier=\(snapshot.identifier.debugDescription)")
| `- warning: main actor-isolated property 'identifier' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
47 | }
48 | if !snapshot.label.isEmpty {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:35:32: note: property declared here
33 |
34 | /*! The accessibility identifier. */
35 | @property (readonly) NSString *identifier;
| `- note: property declared here
36 |
37 | /*! The frame of the element in the screen coordinate space. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/NSPredicate+Description.swift:48:22: warning: main actor-isolated property 'label' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
46 | attributes.append("identifier=\(snapshot.identifier.debugDescription)")
47 | }
48 | if !snapshot.label.isEmpty {
| `- warning: main actor-isolated property 'label' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
49 | attributes.append("label=\(snapshot.label.debugDescription)")
50 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:47:38: note: property declared here
45 |
46 | /*! The label attribute of the element. */
47 | @property (readonly, copy) NSString *label;
| `- note: property declared here
48 |
49 | /*! The type of the element. /seealso XCUIElementType. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/NSPredicate+Description.swift:49:49: warning: main actor-isolated property 'label' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
47 | }
48 | if !snapshot.label.isEmpty {
49 | attributes.append("label=\(snapshot.label.debugDescription)")
| `- warning: main actor-isolated property 'label' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 | if let value = snapshot.value as? String {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:47:38: note: property declared here
45 |
46 | /*! The label attribute of the element. */
47 | @property (readonly, copy) NSString *label;
| `- note: property declared here
48 |
49 | /*! The type of the element. /seealso XCUIElementType. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/NSPredicate+Description.swift:51:33: warning: main actor-isolated property 'value' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
49 | attributes.append("label=\(snapshot.label.debugDescription)")
50 | }
51 | if let value = snapshot.value as? String {
| `- warning: main actor-isolated property 'value' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
52 | attributes.append("value=\(value.debugDescription)")
53 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:41:35: note: property declared here
39 |
40 | /*! The raw value attribute of the element. Depending on the element, the actual type can vary. */
41 | @property (readonly, nullable) id value;
| `- note: property declared here
42 |
43 | /*! The title attribute of the element. */
[38/38] Compiling Sisyphos String+Localized.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/NSPredicate+Description.swift:20:13: warning: var 'snapshotByPredicate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 | /// snapshot that is used for matching in the predicate. This is needed so we can provide useful output in the test
19 | /// reports.
20 | private var snapshotByPredicate: NSMapTable<NSPredicate, XCUIElementSnapshot> = NSMapTable.weakToStrongObjects()
| |- warning: var 'snapshotByPredicate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'snapshotByPredicate' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'snapshotByPredicate' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/NSPredicate+Description.swift:10:29: warning: call to main actor-isolated instance method 'matches(snapshot:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
8 | self.init(block: { element, _ in
9 | guard let elementSnapshot = element as? XCUIElementSnapshot else { return false }
10 | return snapshot.matches(snapshot: elementSnapshot)
| `- warning: call to main actor-isolated instance method 'matches(snapshot:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
11 | })
12 |
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/XCUIElementSnapshot+Matching.swift:24:10: note: calls to instance method 'matches(snapshot:)' from outside of its actor context are implicitly asynchronous
22 |
23 | /// Checks if the given snapshot matches this element snapshot, so both snapshots are snapshots of the same element.
24 | func matches(snapshot: XCUIElementSnapshot) -> Bool {
| `- note: calls to instance method 'matches(snapshot:)' from outside of its actor context are implicitly asynchronous
25 | // The private Apple API crashes if elements have different types. That's why we check upfront.
26 | guard snapshot.elementType == self.elementType else { return false }
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/NSPredicate+Description.swift:43:33: warning: main actor-isolated property 'elementType' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
41 | guard let snapshot = snapshotByPredicate.object(forKey: self) else { return super.description }
42 | var attributes: [String] = [
43 | "element=\(snapshot.elementType)",
| `- warning: main actor-isolated property 'elementType' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
44 | ]
45 | if !snapshot.identifier.isEmpty {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:50:38: note: property declared here
48 |
49 | /*! The type of the element. /seealso XCUIElementType. */
50 | @property (readonly) XCUIElementType elementType;
| `- note: property declared here
51 |
52 | /*! Whether or not the element is enabled for user interaction. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/NSPredicate+Description.swift:45:22: warning: main actor-isolated property 'identifier' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
43 | "element=\(snapshot.elementType)",
44 | ]
45 | if !snapshot.identifier.isEmpty {
| `- warning: main actor-isolated property 'identifier' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
46 | attributes.append("identifier=\(snapshot.identifier.debugDescription)")
47 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:35:32: note: property declared here
33 |
34 | /*! The accessibility identifier. */
35 | @property (readonly) NSString *identifier;
| `- note: property declared here
36 |
37 | /*! The frame of the element in the screen coordinate space. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/NSPredicate+Description.swift:46:54: warning: main actor-isolated property 'identifier' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
44 | ]
45 | if !snapshot.identifier.isEmpty {
46 | attributes.append("identifier=\(snapshot.identifier.debugDescription)")
| `- warning: main actor-isolated property 'identifier' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
47 | }
48 | if !snapshot.label.isEmpty {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:35:32: note: property declared here
33 |
34 | /*! The accessibility identifier. */
35 | @property (readonly) NSString *identifier;
| `- note: property declared here
36 |
37 | /*! The frame of the element in the screen coordinate space. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/NSPredicate+Description.swift:48:22: warning: main actor-isolated property 'label' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
46 | attributes.append("identifier=\(snapshot.identifier.debugDescription)")
47 | }
48 | if !snapshot.label.isEmpty {
| `- warning: main actor-isolated property 'label' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
49 | attributes.append("label=\(snapshot.label.debugDescription)")
50 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:47:38: note: property declared here
45 |
46 | /*! The label attribute of the element. */
47 | @property (readonly, copy) NSString *label;
| `- note: property declared here
48 |
49 | /*! The type of the element. /seealso XCUIElementType. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/NSPredicate+Description.swift:49:49: warning: main actor-isolated property 'label' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
47 | }
48 | if !snapshot.label.isEmpty {
49 | attributes.append("label=\(snapshot.label.debugDescription)")
| `- warning: main actor-isolated property 'label' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 | if let value = snapshot.value as? String {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:47:38: note: property declared here
45 |
46 | /*! The label attribute of the element. */
47 | @property (readonly, copy) NSString *label;
| `- note: property declared here
48 |
49 | /*! The type of the element. /seealso XCUIElementType. */
/Users/admin/builder/spi-builder-workspace/Sources/Sisyphos/Extensions/NSPredicate+Description.swift:51:33: warning: main actor-isolated property 'value' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
49 | attributes.append("label=\(snapshot.label.debugDescription)")
50 | }
51 | if let value = snapshot.value as? String {
| `- warning: main actor-isolated property 'value' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
52 | attributes.append("value=\(value.debugDescription)")
53 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIElementAttributes.h:41:35: note: property declared here
39 |
40 | /*! The raw value attribute of the element. Depending on the element, the actual type can vary. */
41 | @property (readonly, nullable) id value;
| `- note: property declared here
42 |
43 | /*! The title attribute of the element. */
Build complete! (10.51s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Sisyphos",
"name" : "Sisyphos",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "ios",
"version" : "14.0"
}
],
"products" : [
{
"name" : "Sisyphos",
"targets" : [
"Sisyphos"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SisyphosTests",
"module_type" : "SwiftTarget",
"name" : "SisyphosTests",
"path" : "Tests/SisyphosTests",
"sources" : [
"Internal/MatchesSearchedLabelTests.swift",
"Internal/NSPredicateTests.swift",
"PageBuilderTests.swift",
"SisyphosTests.swift"
],
"target_dependencies" : [
"Sisyphos"
],
"type" : "test"
},
{
"c99name" : "Sisyphos",
"module_type" : "SwiftTarget",
"name" : "Sisyphos",
"path" : "Sources/Sisyphos",
"product_memberships" : [
"Sisyphos"
],
"sources" : [
"DefaultAlert.swift",
"DefaultPermissionAlert.swift",
"Extensions/NSPredicate+Description.swift",
"Extensions/String+Localized.swift",
"Extensions/XCUIApplication+CurrentPage.swift",
"Extensions/XCUIApplication+dismissKeyboard.swift",
"Extensions/XCUIElement+Extensions.swift",
"Extensions/XCUIElementSnapshot+Matching.swift",
"Extensions/XCUIElementType+BetterCustomDebugString.swift",
"Extensions/XCUITestCase+CodeGeneration.swift",
"Extensions/XCUITestCase+InterruptionMonitor.swift",
"Internal/ElementFinder.swift",
"Internal/Snapshot.swift",
"Internal/UIInterruptionsObserver.swift",
"InterruptionMonitor.swift",
"Page Elements/Alert.swift",
"Page Elements/Button.swift",
"Page Elements/Cell.swift",
"Page Elements/CollectionView.swift",
"Page Elements/NavigationBar.swift",
"Page Elements/Other.swift",
"Page Elements/SecureTextField.swift",
"Page Elements/StaticText.swift",
"Page Elements/Switch.swift",
"Page Elements/TabBar.swift",
"Page Elements/TextField.swift",
"Page.swift",
"PageBuilder.swift",
"PageDescription.swift",
"PageElement.swift",
"PageElementIdentifier.swift",
"PageExistsResults.swift",
"QueryIdentifier.swift",
"TestData.swift",
"UniversalLink.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Done.