Build Information
Failed to build XCTHealthKit with Swift 6.0 for macOS (SPM).
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
:
133 |
134 | // Try to turn off the Health Notifications Trends Switch:
135 | let trendsSwitch = healthApp.switches.firstMatch
| `- warning: main actor-isolated property 'firstMatch' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
136 | if trendsSwitch.waitForExistence(timeout: 5) && trendsSwitch.isHittable {
137 | trendsSwitch.tap()
XCTest.XCUIElementQuery:133:14: note: property declared here
131 | @NSCopying open var otherElements: XCUIElementQuery { get }
132 | @NSCopying open var statusItems: XCUIElementQuery { get }
133 | open var firstMatch: XCUIElement { get }
| `- note: property declared here
134 | }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/XCTestCase+HealthApp.swift:135:42: warning: main actor-isolated property 'switches' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
82 | }
83 |
84 | private func handleWelcomeToHealth(alreadyRecursive: Bool = false) {
| `- note: add '@MainActor' to make instance method 'handleWelcomeToHealth(alreadyRecursive:)' part of global actor 'MainActor'
85 | addUIInterruptionMonitor(withDescription: "System Dialog") { alert in
86 | guard alert.buttons["Allow"].exists else {
:
133 |
134 | // Try to turn off the Health Notifications Trends Switch:
135 | let trendsSwitch = healthApp.switches.firstMatch
| `- warning: main actor-isolated property 'switches' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
136 | if trendsSwitch.waitForExistence(timeout: 5) && trendsSwitch.isHittable {
137 | trendsSwitch.tap()
XCTest.XCUIElement:73:25: note: property declared here
71 | @NSCopying open var pickers: XCUIElementQuery { get }
72 | @NSCopying open var pickerWheels: XCUIElementQuery { get }
73 | @NSCopying open var switches: XCUIElementQuery { get }
| `- note: property declared here
74 | @NSCopying open var toggles: XCUIElementQuery { get }
75 | @NSCopying open var links: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/XCTestCase+HealthApp.swift:136:29: warning: call to main actor-isolated instance method 'waitForExistence(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
82 | }
83 |
84 | private func handleWelcomeToHealth(alreadyRecursive: Bool = false) {
| `- note: add '@MainActor' to make instance method 'handleWelcomeToHealth(alreadyRecursive:)' part of global actor 'MainActor'
85 | addUIInterruptionMonitor(withDescription: "System Dialog") { alert in
86 | guard alert.buttons["Allow"].exists else {
:
134 | // Try to turn off the Health Notifications Trends Switch:
135 | let trendsSwitch = healthApp.switches.firstMatch
136 | if trendsSwitch.waitForExistence(timeout: 5) && trendsSwitch.isHittable {
| `- warning: call to main actor-isolated instance method 'waitForExistence(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | trendsSwitch.tap()
138 | }
XCTest.XCUIElement:7:26: note: calls to instance method 'waitForExistence(timeout:)' from outside of its actor context are implicitly asynchronous
5 | public init()
6 | open var exists: Bool { get }
7 | @MainActor open func waitForExistence(timeout: TimeInterval) -> Bool
| `- note: calls to instance method 'waitForExistence(timeout:)' from outside of its actor context are implicitly asynchronous
8 | @available(swift, obsoleted: 3, renamed: "waitForExistence(timeout:)")
9 | open func waitForExistenceWithTimeout(_ timeout: TimeInterval) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/XCTestCase+HealthApp.swift:136:74: warning: main actor-isolated property 'isHittable' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
134 | // Try to turn off the Health Notifications Trends Switch:
135 | let trendsSwitch = healthApp.switches.firstMatch
136 | if trendsSwitch.waitForExistence(timeout: 5) && trendsSwitch.isHittable {
| `- warning: main actor-isolated property 'isHittable' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
137 | trendsSwitch.tap()
138 | }
XCTest.XCUIElement:10:14: note: property declared here
8 | @available(swift, obsoleted: 3, renamed: "waitForExistence(timeout:)")
9 | open func waitForExistenceWithTimeout(_ timeout: TimeInterval) -> Bool
10 | open var isHittable: Bool { get }
| `- note: property declared here
11 | @available(swift, obsoleted: 3, renamed: "isHittable")
12 | open var hittable: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/XCTestCase+HealthApp.swift:137:30: 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 |
84 | private func handleWelcomeToHealth(alreadyRecursive: Bool = false) {
| `- note: add '@MainActor' to make instance method 'handleWelcomeToHealth(alreadyRecursive:)' part of global actor 'MainActor'
85 | addUIInterruptionMonitor(withDescription: "System Dialog") { alert in
86 | guard alert.buttons["Allow"].exists else {
:
135 | let trendsSwitch = healthApp.switches.firstMatch
136 | if trendsSwitch.waitForExistence(timeout: 5) && trendsSwitch.isHittable {
137 | trendsSwitch.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
138 | }
139 |
XCTest.XCUIElement:2:26: note: calls to instance method 'tap()' from outside of its actor context are implicitly asynchronous
1 | extension XCUIElement {
2 | @MainActor open func tap()
| `- note: calls to instance method 'tap()' from outside of its actor context are implicitly asynchronous
3 | open func doubleTap()
4 | open func press(forDuration duration: TimeInterval)
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/XCTestCase+HealthApp.swift:140:61: warning: call to main actor-isolated instance method 'waitForExistence(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
138 | }
139 |
140 | XCTAssertTrue(healthApp.staticTexts["Continue"].waitForExistence(timeout: 5))
| `- warning: call to main actor-isolated instance method 'waitForExistence(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
141 | healthApp.staticTexts["Continue"].tap()
142 | }
XCTest.XCUIElement:7:26: note: calls to instance method 'waitForExistence(timeout:)' from outside of its actor context are implicitly asynchronous
5 | public init()
6 | open var exists: Bool { get }
7 | @MainActor open func waitForExistence(timeout: TimeInterval) -> Bool
| `- note: calls to instance method 'waitForExistence(timeout:)' from outside of its actor context are implicitly asynchronous
8 | @available(swift, obsoleted: 3, renamed: "waitForExistence(timeout:)")
9 | open func waitForExistenceWithTimeout(_ timeout: TimeInterval) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/XCTestCase+HealthApp.swift:140:48: warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
138 | }
139 |
140 | XCTAssertTrue(healthApp.staticTexts["Continue"].waitForExistence(timeout: 5))
| `- warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
141 | healthApp.staticTexts["Continue"].tap()
142 | }
XCTest.XCUIElementQuery:24:21: note: subscript declared here
22 | @available(swift, obsoleted: 3, renamed: "element(matching:identifier:)")
23 | open func elementMatchingType(_ elementType: XCUIElement.ElementType, identifier: String?) -> XCUIElement
24 | @MainActor open subscript(key: String) -> XCUIElement { get }
| `- note: subscript declared here
25 | @available(*, unavailable, message: "use subscripting")
26 | open func objectForKeyedSubscript(_ key: String) -> XCUIElement
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/XCTestCase+HealthApp.swift:140:37: warning: main actor-isolated property 'staticTexts' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
138 | }
139 |
140 | XCTAssertTrue(healthApp.staticTexts["Continue"].waitForExistence(timeout: 5))
| `- warning: main actor-isolated property 'staticTexts' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
141 | healthApp.staticTexts["Continue"].tap()
142 | }
XCTest.XCUIElement:81:25: note: property declared here
79 | @NSCopying open var scrollViews: XCUIElementQuery { get }
80 | @NSCopying open var scrollBars: XCUIElementQuery { get }
81 | @NSCopying open var staticTexts: XCUIElementQuery { get }
| `- note: property declared here
82 | @NSCopying open var textFields: XCUIElementQuery { get }
83 | @NSCopying open var secureTextFields: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/XCTestCase+HealthApp.swift:141:47: 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 |
84 | private func handleWelcomeToHealth(alreadyRecursive: Bool = false) {
| `- note: add '@MainActor' to make instance method 'handleWelcomeToHealth(alreadyRecursive:)' part of global actor 'MainActor'
85 | addUIInterruptionMonitor(withDescription: "System Dialog") { alert in
86 | guard alert.buttons["Allow"].exists else {
:
139 |
140 | XCTAssertTrue(healthApp.staticTexts["Continue"].waitForExistence(timeout: 5))
141 | healthApp.staticTexts["Continue"].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
142 | }
143 | }
XCTest.XCUIElement:2:26: note: calls to instance method 'tap()' from outside of its actor context are implicitly asynchronous
1 | extension XCUIElement {
2 | @MainActor open func tap()
| `- note: calls to instance method 'tap()' from outside of its actor context are implicitly asynchronous
3 | open func doubleTap()
4 | open func press(forDuration duration: TimeInterval)
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/XCTestCase+HealthApp.swift:141:34: warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
82 | }
83 |
84 | private func handleWelcomeToHealth(alreadyRecursive: Bool = false) {
| `- note: add '@MainActor' to make instance method 'handleWelcomeToHealth(alreadyRecursive:)' part of global actor 'MainActor'
85 | addUIInterruptionMonitor(withDescription: "System Dialog") { alert in
86 | guard alert.buttons["Allow"].exists else {
:
139 |
140 | XCTAssertTrue(healthApp.staticTexts["Continue"].waitForExistence(timeout: 5))
141 | healthApp.staticTexts["Continue"].tap()
| `- warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
142 | }
143 | }
XCTest.XCUIElementQuery:24:21: note: subscript declared here
22 | @available(swift, obsoleted: 3, renamed: "element(matching:identifier:)")
23 | open func elementMatchingType(_ elementType: XCUIElement.ElementType, identifier: String?) -> XCUIElement
24 | @MainActor open subscript(key: String) -> XCUIElement { get }
| `- note: subscript declared here
25 | @available(*, unavailable, message: "use subscripting")
26 | open func objectForKeyedSubscript(_ key: String) -> XCUIElement
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/XCTestCase+HealthApp.swift:141:23: warning: main actor-isolated property 'staticTexts' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
82 | }
83 |
84 | private func handleWelcomeToHealth(alreadyRecursive: Bool = false) {
| `- note: add '@MainActor' to make instance method 'handleWelcomeToHealth(alreadyRecursive:)' part of global actor 'MainActor'
85 | addUIInterruptionMonitor(withDescription: "System Dialog") { alert in
86 | guard alert.buttons["Allow"].exists else {
:
139 |
140 | XCTAssertTrue(healthApp.staticTexts["Continue"].waitForExistence(timeout: 5))
141 | healthApp.staticTexts["Continue"].tap()
| `- warning: main actor-isolated property 'staticTexts' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
142 | }
143 | }
XCTest.XCUIElement:81:25: note: property declared here
79 | @NSCopying open var scrollViews: XCUIElementQuery { get }
80 | @NSCopying open var scrollBars: XCUIElementQuery { get }
81 | @NSCopying open var staticTexts: XCUIElementQuery { get }
| `- note: property declared here
82 | @NSCopying open var textFields: XCUIElementQuery { get }
83 | @NSCopying open var secureTextFields: XCUIElementQuery { get }
[5/6] Emitting module XCTHealthKit
[6/6] Compiling XCTHealthKit HealthAppDataType.swift
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:35:20: error: 'HKQuantityType' is only available in macOS 13.0 or newer
16 | /// Use the ``HealthAppDataType/navigateToElement()`` and ``HealthAppDataType/addData()`` methods to navigate to the respective part of the
17 | /// Apple Health app and enter a new mock data element that can, e.g., be observed in the system under test.
18 | public enum HealthAppDataType: String, CaseIterable {
| `- note: add @available attribute to enclosing enum
19 | /// The active energy subpage of the Apple Health app. Corresponds to `HKQuantityType(.activeEnergyBurned)` samples.
20 | case activeEnergy = "Active Energy"
:
30 |
31 | /// The string value of the corresponding sample type.
32 | public var hkTypeName: String {
| `- note: add @available attribute to enclosing property
33 | switch self {
34 | case .activeEnergy:
35 | return HKQuantityType(.activeEnergyBurned).identifier
| |- error: 'HKQuantityType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
36 | case .restingHeartRate:
37 | return HKQuantityType(.restingHeartRate).identifier
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:35:20: error: 'init(_:)' is only available in macOS 13.0 or newer
16 | /// Use the ``HealthAppDataType/navigateToElement()`` and ``HealthAppDataType/addData()`` methods to navigate to the respective part of the
17 | /// Apple Health app and enter a new mock data element that can, e.g., be observed in the system under test.
18 | public enum HealthAppDataType: String, CaseIterable {
| `- note: add @available attribute to enclosing enum
19 | /// The active energy subpage of the Apple Health app. Corresponds to `HKQuantityType(.activeEnergyBurned)` samples.
20 | case activeEnergy = "Active Energy"
:
30 |
31 | /// The string value of the corresponding sample type.
32 | public var hkTypeName: String {
| `- note: add @available attribute to enclosing property
33 | switch self {
34 | case .activeEnergy:
35 | return HKQuantityType(.activeEnergyBurned).identifier
| |- error: 'init(_:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
36 | case .restingHeartRate:
37 | return HKQuantityType(.restingHeartRate).identifier
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:35:36: error: 'activeEnergyBurned' is only available in macOS 13.0 or newer
16 | /// Use the ``HealthAppDataType/navigateToElement()`` and ``HealthAppDataType/addData()`` methods to navigate to the respective part of the
17 | /// Apple Health app and enter a new mock data element that can, e.g., be observed in the system under test.
18 | public enum HealthAppDataType: String, CaseIterable {
| `- note: add @available attribute to enclosing enum
19 | /// The active energy subpage of the Apple Health app. Corresponds to `HKQuantityType(.activeEnergyBurned)` samples.
20 | case activeEnergy = "Active Energy"
:
30 |
31 | /// The string value of the corresponding sample type.
32 | public var hkTypeName: String {
| `- note: add @available attribute to enclosing property
33 | switch self {
34 | case .activeEnergy:
35 | return HKQuantityType(.activeEnergyBurned).identifier
| |- error: 'activeEnergyBurned' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
36 | case .restingHeartRate:
37 | return HKQuantityType(.restingHeartRate).identifier
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:37:20: error: 'HKQuantityType' is only available in macOS 13.0 or newer
16 | /// Use the ``HealthAppDataType/navigateToElement()`` and ``HealthAppDataType/addData()`` methods to navigate to the respective part of the
17 | /// Apple Health app and enter a new mock data element that can, e.g., be observed in the system under test.
18 | public enum HealthAppDataType: String, CaseIterable {
| `- note: add @available attribute to enclosing enum
19 | /// The active energy subpage of the Apple Health app. Corresponds to `HKQuantityType(.activeEnergyBurned)` samples.
20 | case activeEnergy = "Active Energy"
:
30 |
31 | /// The string value of the corresponding sample type.
32 | public var hkTypeName: String {
| `- note: add @available attribute to enclosing property
33 | switch self {
34 | case .activeEnergy:
35 | return HKQuantityType(.activeEnergyBurned).identifier
36 | case .restingHeartRate:
37 | return HKQuantityType(.restingHeartRate).identifier
| |- error: 'HKQuantityType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
38 | case .electrocardiograms:
39 | return HKQuantityType.electrocardiogramType().identifier
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:37:20: error: 'init(_:)' is only available in macOS 13.0 or newer
16 | /// Use the ``HealthAppDataType/navigateToElement()`` and ``HealthAppDataType/addData()`` methods to navigate to the respective part of the
17 | /// Apple Health app and enter a new mock data element that can, e.g., be observed in the system under test.
18 | public enum HealthAppDataType: String, CaseIterable {
| `- note: add @available attribute to enclosing enum
19 | /// The active energy subpage of the Apple Health app. Corresponds to `HKQuantityType(.activeEnergyBurned)` samples.
20 | case activeEnergy = "Active Energy"
:
30 |
31 | /// The string value of the corresponding sample type.
32 | public var hkTypeName: String {
| `- note: add @available attribute to enclosing property
33 | switch self {
34 | case .activeEnergy:
35 | return HKQuantityType(.activeEnergyBurned).identifier
36 | case .restingHeartRate:
37 | return HKQuantityType(.restingHeartRate).identifier
| |- error: 'init(_:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
38 | case .electrocardiograms:
39 | return HKQuantityType.electrocardiogramType().identifier
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:37:36: error: 'restingHeartRate' is only available in macOS 13.0 or newer
16 | /// Use the ``HealthAppDataType/navigateToElement()`` and ``HealthAppDataType/addData()`` methods to navigate to the respective part of the
17 | /// Apple Health app and enter a new mock data element that can, e.g., be observed in the system under test.
18 | public enum HealthAppDataType: String, CaseIterable {
| `- note: add @available attribute to enclosing enum
19 | /// The active energy subpage of the Apple Health app. Corresponds to `HKQuantityType(.activeEnergyBurned)` samples.
20 | case activeEnergy = "Active Energy"
:
30 |
31 | /// The string value of the corresponding sample type.
32 | public var hkTypeName: String {
| `- note: add @available attribute to enclosing property
33 | switch self {
34 | case .activeEnergy:
35 | return HKQuantityType(.activeEnergyBurned).identifier
36 | case .restingHeartRate:
37 | return HKQuantityType(.restingHeartRate).identifier
| |- error: 'restingHeartRate' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
38 | case .electrocardiograms:
39 | return HKQuantityType.electrocardiogramType().identifier
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:39:20: error: 'HKQuantityType' is only available in macOS 13.0 or newer
16 | /// Use the ``HealthAppDataType/navigateToElement()`` and ``HealthAppDataType/addData()`` methods to navigate to the respective part of the
17 | /// Apple Health app and enter a new mock data element that can, e.g., be observed in the system under test.
18 | public enum HealthAppDataType: String, CaseIterable {
| `- note: add @available attribute to enclosing enum
19 | /// The active energy subpage of the Apple Health app. Corresponds to `HKQuantityType(.activeEnergyBurned)` samples.
20 | case activeEnergy = "Active Energy"
:
30 |
31 | /// The string value of the corresponding sample type.
32 | public var hkTypeName: String {
| `- note: add @available attribute to enclosing property
33 | switch self {
34 | case .activeEnergy:
:
37 | return HKQuantityType(.restingHeartRate).identifier
38 | case .electrocardiograms:
39 | return HKQuantityType.electrocardiogramType().identifier
| |- error: 'HKQuantityType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
40 | case .steps:
41 | return HKQuantityType(.stepCount).identifier
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:39:35: error: 'electrocardiogramType()' is only available in macOS 13.0 or newer
16 | /// Use the ``HealthAppDataType/navigateToElement()`` and ``HealthAppDataType/addData()`` methods to navigate to the respective part of the
17 | /// Apple Health app and enter a new mock data element that can, e.g., be observed in the system under test.
18 | public enum HealthAppDataType: String, CaseIterable {
| `- note: add @available attribute to enclosing enum
19 | /// The active energy subpage of the Apple Health app. Corresponds to `HKQuantityType(.activeEnergyBurned)` samples.
20 | case activeEnergy = "Active Energy"
:
30 |
31 | /// The string value of the corresponding sample type.
32 | public var hkTypeName: String {
| `- note: add @available attribute to enclosing property
33 | switch self {
34 | case .activeEnergy:
:
37 | return HKQuantityType(.restingHeartRate).identifier
38 | case .electrocardiograms:
39 | return HKQuantityType.electrocardiogramType().identifier
| |- error: 'electrocardiogramType()' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
40 | case .steps:
41 | return HKQuantityType(.stepCount).identifier
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:41:20: error: 'HKQuantityType' is only available in macOS 13.0 or newer
16 | /// Use the ``HealthAppDataType/navigateToElement()`` and ``HealthAppDataType/addData()`` methods to navigate to the respective part of the
17 | /// Apple Health app and enter a new mock data element that can, e.g., be observed in the system under test.
18 | public enum HealthAppDataType: String, CaseIterable {
| `- note: add @available attribute to enclosing enum
19 | /// The active energy subpage of the Apple Health app. Corresponds to `HKQuantityType(.activeEnergyBurned)` samples.
20 | case activeEnergy = "Active Energy"
:
30 |
31 | /// The string value of the corresponding sample type.
32 | public var hkTypeName: String {
| `- note: add @available attribute to enclosing property
33 | switch self {
34 | case .activeEnergy:
:
39 | return HKQuantityType.electrocardiogramType().identifier
40 | case .steps:
41 | return HKQuantityType(.stepCount).identifier
| |- error: 'HKQuantityType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
42 | case .pushes:
43 | return HKQuantityType(.pushCount).identifier
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:41:20: error: 'init(_:)' is only available in macOS 13.0 or newer
16 | /// Use the ``HealthAppDataType/navigateToElement()`` and ``HealthAppDataType/addData()`` methods to navigate to the respective part of the
17 | /// Apple Health app and enter a new mock data element that can, e.g., be observed in the system under test.
18 | public enum HealthAppDataType: String, CaseIterable {
| `- note: add @available attribute to enclosing enum
19 | /// The active energy subpage of the Apple Health app. Corresponds to `HKQuantityType(.activeEnergyBurned)` samples.
20 | case activeEnergy = "Active Energy"
:
30 |
31 | /// The string value of the corresponding sample type.
32 | public var hkTypeName: String {
| `- note: add @available attribute to enclosing property
33 | switch self {
34 | case .activeEnergy:
:
39 | return HKQuantityType.electrocardiogramType().identifier
40 | case .steps:
41 | return HKQuantityType(.stepCount).identifier
| |- error: 'init(_:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
42 | case .pushes:
43 | return HKQuantityType(.pushCount).identifier
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:41:36: error: 'stepCount' is only available in macOS 13.0 or newer
16 | /// Use the ``HealthAppDataType/navigateToElement()`` and ``HealthAppDataType/addData()`` methods to navigate to the respective part of the
17 | /// Apple Health app and enter a new mock data element that can, e.g., be observed in the system under test.
18 | public enum HealthAppDataType: String, CaseIterable {
| `- note: add @available attribute to enclosing enum
19 | /// The active energy subpage of the Apple Health app. Corresponds to `HKQuantityType(.activeEnergyBurned)` samples.
20 | case activeEnergy = "Active Energy"
:
30 |
31 | /// The string value of the corresponding sample type.
32 | public var hkTypeName: String {
| `- note: add @available attribute to enclosing property
33 | switch self {
34 | case .activeEnergy:
:
39 | return HKQuantityType.electrocardiogramType().identifier
40 | case .steps:
41 | return HKQuantityType(.stepCount).identifier
| |- error: 'stepCount' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
42 | case .pushes:
43 | return HKQuantityType(.pushCount).identifier
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:43:20: error: 'HKQuantityType' is only available in macOS 13.0 or newer
16 | /// Use the ``HealthAppDataType/navigateToElement()`` and ``HealthAppDataType/addData()`` methods to navigate to the respective part of the
17 | /// Apple Health app and enter a new mock data element that can, e.g., be observed in the system under test.
18 | public enum HealthAppDataType: String, CaseIterable {
| `- note: add @available attribute to enclosing enum
19 | /// The active energy subpage of the Apple Health app. Corresponds to `HKQuantityType(.activeEnergyBurned)` samples.
20 | case activeEnergy = "Active Energy"
:
30 |
31 | /// The string value of the corresponding sample type.
32 | public var hkTypeName: String {
| `- note: add @available attribute to enclosing property
33 | switch self {
34 | case .activeEnergy:
:
41 | return HKQuantityType(.stepCount).identifier
42 | case .pushes:
43 | return HKQuantityType(.pushCount).identifier
| |- error: 'HKQuantityType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
44 | }
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:43:20: error: 'init(_:)' is only available in macOS 13.0 or newer
16 | /// Use the ``HealthAppDataType/navigateToElement()`` and ``HealthAppDataType/addData()`` methods to navigate to the respective part of the
17 | /// Apple Health app and enter a new mock data element that can, e.g., be observed in the system under test.
18 | public enum HealthAppDataType: String, CaseIterable {
| `- note: add @available attribute to enclosing enum
19 | /// The active energy subpage of the Apple Health app. Corresponds to `HKQuantityType(.activeEnergyBurned)` samples.
20 | case activeEnergy = "Active Energy"
:
30 |
31 | /// The string value of the corresponding sample type.
32 | public var hkTypeName: String {
| `- note: add @available attribute to enclosing property
33 | switch self {
34 | case .activeEnergy:
:
41 | return HKQuantityType(.stepCount).identifier
42 | case .pushes:
43 | return HKQuantityType(.pushCount).identifier
| |- error: 'init(_:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
44 | }
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:43:36: error: 'pushCount' is only available in macOS 13.0 or newer
16 | /// Use the ``HealthAppDataType/navigateToElement()`` and ``HealthAppDataType/addData()`` methods to navigate to the respective part of the
17 | /// Apple Health app and enter a new mock data element that can, e.g., be observed in the system under test.
18 | public enum HealthAppDataType: String, CaseIterable {
| `- note: add @available attribute to enclosing enum
19 | /// The active energy subpage of the Apple Health app. Corresponds to `HKQuantityType(.activeEnergyBurned)` samples.
20 | case activeEnergy = "Active Energy"
:
30 |
31 | /// The string value of the corresponding sample type.
32 | public var hkTypeName: String {
| `- note: add @available attribute to enclosing property
33 | switch self {
34 | case .activeEnergy:
:
41 | return HKQuantityType(.stepCount).identifier
42 | case .pushes:
43 | return HKQuantityType(.pushCount).identifier
| |- error: 'pushCount' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
44 | }
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:60:25: warning: call to main actor-isolated initializer 'init(bundleIdentifier:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
57 |
58 | /// Navigates to the element in the Apple Health app
59 | public func navigateToElement() throws {
| `- note: add '@MainActor' to make instance method 'navigateToElement()' part of global actor 'MainActor'
60 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
| `- warning: call to main actor-isolated initializer 'init(bundleIdentifier:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
61 |
62 | if healthApp.navigationBars["Browse"].buttons["Cancel"].exists {
XCTest.XCUIApplication:5:23: note: calls to initializer 'init(bundleIdentifier:)' from outside of its actor context are implicitly asynchronous
3 | @available(*, unavailable, message: "use object initializers instead")
4 | open class func new() -> Self
5 | @MainActor public init(bundleIdentifier: String)
| `- note: calls to initializer 'init(bundleIdentifier:)' from outside of its actor context are implicitly asynchronous
6 | public init(url: URL)
7 | @available(swift, obsoleted: 3, renamed: "init(url:)")
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:62:65: warning: main actor-isolated property 'exists' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
57 |
58 | /// Navigates to the element in the Apple Health app
59 | public func navigateToElement() throws {
| `- note: add '@MainActor' to make instance method 'navigateToElement()' part of global actor 'MainActor'
60 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
61 |
62 | if healthApp.navigationBars["Browse"].buttons["Cancel"].exists {
| `- warning: main actor-isolated property 'exists' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
63 | healthApp.navigationBars["Browse"].buttons["Cancel"].tap()
64 | }
XCTest.XCUIElement:6:25: note: property declared here
4 | @available(*, unavailable, message: "Use XCUIElementQuery to create XCUIElement instances.")
5 | public init()
6 | @MainActor open var exists: Bool { get }
| `- note: property declared here
7 | open func waitForExistence(timeout: TimeInterval) -> Bool
8 | @available(swift, obsoleted: 3, renamed: "waitForExistence(timeout:)")
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:62:54: warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
57 |
58 | /// Navigates to the element in the Apple Health app
59 | public func navigateToElement() throws {
| `- note: add '@MainActor' to make instance method 'navigateToElement()' part of global actor 'MainActor'
60 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
61 |
62 | if healthApp.navigationBars["Browse"].buttons["Cancel"].exists {
| `- warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
63 | healthApp.navigationBars["Browse"].buttons["Cancel"].tap()
64 | }
XCTest.XCUIElementQuery:24:21: note: subscript declared here
22 | @available(swift, obsoleted: 3, renamed: "element(matching:identifier:)")
23 | open func elementMatchingType(_ elementType: XCUIElement.ElementType, identifier: String?) -> XCUIElement
24 | @MainActor open subscript(key: String) -> XCUIElement { get }
| `- note: subscript declared here
25 | @available(*, unavailable, message: "use subscripting")
26 | open func objectForKeyedSubscript(_ key: String) -> XCUIElement
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:62:47: warning: main actor-isolated property 'buttons' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
57 |
58 | /// Navigates to the element in the Apple Health app
59 | public func navigateToElement() throws {
| `- note: add '@MainActor' to make instance method 'navigateToElement()' part of global actor 'MainActor'
60 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
61 |
62 | if healthApp.navigationBars["Browse"].buttons["Cancel"].exists {
| `- warning: main actor-isolated property 'buttons' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
63 | healthApp.navigationBars["Browse"].buttons["Cancel"].tap()
64 | }
XCTest.XCUIElement:41:25: note: property declared here
39 | @NSCopying open var alerts: XCUIElementQuery { get }
40 | @NSCopying open var dialogs: XCUIElementQuery { get }
41 | @NSCopying open var buttons: XCUIElementQuery { get }
| `- note: property declared here
42 | @NSCopying open var radioButtons: XCUIElementQuery { get }
43 | @NSCopying open var radioGroups: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:62:36: warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
57 |
58 | /// Navigates to the element in the Apple Health app
59 | public func navigateToElement() throws {
| `- note: add '@MainActor' to make instance method 'navigateToElement()' part of global actor 'MainActor'
60 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
61 |
62 | if healthApp.navigationBars["Browse"].buttons["Cancel"].exists {
| `- warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
63 | healthApp.navigationBars["Browse"].buttons["Cancel"].tap()
64 | }
XCTest.XCUIElementQuery:24:21: note: subscript declared here
22 | @available(swift, obsoleted: 3, renamed: "element(matching:identifier:)")
23 | open func elementMatchingType(_ elementType: XCUIElement.ElementType, identifier: String?) -> XCUIElement
24 | @MainActor open subscript(key: String) -> XCUIElement { get }
| `- note: subscript declared here
25 | @available(*, unavailable, message: "use subscripting")
26 | open func objectForKeyedSubscript(_ key: String) -> XCUIElement
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:62:22: warning: main actor-isolated property 'navigationBars' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
57 |
58 | /// Navigates to the element in the Apple Health app
59 | public func navigateToElement() throws {
| `- note: add '@MainActor' to make instance method 'navigateToElement()' part of global actor 'MainActor'
60 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
61 |
62 | if healthApp.navigationBars["Browse"].buttons["Cancel"].exists {
| `- warning: main actor-isolated property 'navigationBars' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
63 | healthApp.navigationBars["Browse"].buttons["Cancel"].tap()
64 | }
XCTest.XCUIElement:53:25: note: property declared here
51 | @NSCopying open var keyboards: XCUIElementQuery { get }
52 | @NSCopying open var keys: XCUIElementQuery { get }
53 | @NSCopying open var navigationBars: XCUIElementQuery { get }
| `- note: property declared here
54 | @NSCopying open var tabBars: XCUIElementQuery { get }
55 | @NSCopying open var tabGroups: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:63:66: warning: call to main actor-isolated instance method 'tap()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
57 |
58 | /// Navigates to the element in the Apple Health app
59 | public func navigateToElement() throws {
| `- note: add '@MainActor' to make instance method 'navigateToElement()' part of global actor 'MainActor'
60 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
61 |
62 | if healthApp.navigationBars["Browse"].buttons["Cancel"].exists {
63 | healthApp.navigationBars["Browse"].buttons["Cancel"].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
64 | }
65 | try findCategoryAndElement(in: healthApp)
XCTest.XCUIElement:2:26: note: calls to instance method 'tap()' from outside of its actor context are implicitly asynchronous
1 | extension XCUIElement {
2 | @MainActor open func tap()
| `- note: calls to instance method 'tap()' from outside of its actor context are implicitly asynchronous
3 | open func doubleTap()
4 | open func press(forDuration duration: TimeInterval)
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:63:55: warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
57 |
58 | /// Navigates to the element in the Apple Health app
59 | public func navigateToElement() throws {
| `- note: add '@MainActor' to make instance method 'navigateToElement()' part of global actor 'MainActor'
60 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
61 |
62 | if healthApp.navigationBars["Browse"].buttons["Cancel"].exists {
63 | healthApp.navigationBars["Browse"].buttons["Cancel"].tap()
| `- warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
64 | }
65 | try findCategoryAndElement(in: healthApp)
XCTest.XCUIElementQuery:24:21: note: subscript declared here
22 | @available(swift, obsoleted: 3, renamed: "element(matching:identifier:)")
23 | open func elementMatchingType(_ elementType: XCUIElement.ElementType, identifier: String?) -> XCUIElement
24 | @MainActor open subscript(key: String) -> XCUIElement { get }
| `- note: subscript declared here
25 | @available(*, unavailable, message: "use subscripting")
26 | open func objectForKeyedSubscript(_ key: String) -> XCUIElement
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:63:48: warning: main actor-isolated property 'buttons' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
57 |
58 | /// Navigates to the element in the Apple Health app
59 | public func navigateToElement() throws {
| `- note: add '@MainActor' to make instance method 'navigateToElement()' part of global actor 'MainActor'
60 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
61 |
62 | if healthApp.navigationBars["Browse"].buttons["Cancel"].exists {
63 | healthApp.navigationBars["Browse"].buttons["Cancel"].tap()
| `- warning: main actor-isolated property 'buttons' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
64 | }
65 | try findCategoryAndElement(in: healthApp)
XCTest.XCUIElement:41:25: note: property declared here
39 | @NSCopying open var alerts: XCUIElementQuery { get }
40 | @NSCopying open var dialogs: XCUIElementQuery { get }
41 | @NSCopying open var buttons: XCUIElementQuery { get }
| `- note: property declared here
42 | @NSCopying open var radioButtons: XCUIElementQuery { get }
43 | @NSCopying open var radioGroups: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:63:37: warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
57 |
58 | /// Navigates to the element in the Apple Health app
59 | public func navigateToElement() throws {
| `- note: add '@MainActor' to make instance method 'navigateToElement()' part of global actor 'MainActor'
60 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
61 |
62 | if healthApp.navigationBars["Browse"].buttons["Cancel"].exists {
63 | healthApp.navigationBars["Browse"].buttons["Cancel"].tap()
| `- warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
64 | }
65 | try findCategoryAndElement(in: healthApp)
XCTest.XCUIElementQuery:24:21: note: subscript declared here
22 | @available(swift, obsoleted: 3, renamed: "element(matching:identifier:)")
23 | open func elementMatchingType(_ elementType: XCUIElement.ElementType, identifier: String?) -> XCUIElement
24 | @MainActor open subscript(key: String) -> XCUIElement { get }
| `- note: subscript declared here
25 | @available(*, unavailable, message: "use subscripting")
26 | open func objectForKeyedSubscript(_ key: String) -> XCUIElement
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:63:23: warning: main actor-isolated property 'navigationBars' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
57 |
58 | /// Navigates to the element in the Apple Health app
59 | public func navigateToElement() throws {
| `- note: add '@MainActor' to make instance method 'navigateToElement()' part of global actor 'MainActor'
60 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
61 |
62 | if healthApp.navigationBars["Browse"].buttons["Cancel"].exists {
63 | healthApp.navigationBars["Browse"].buttons["Cancel"].tap()
| `- warning: main actor-isolated property 'navigationBars' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
64 | }
65 | try findCategoryAndElement(in: healthApp)
XCTest.XCUIElement:53:25: note: property declared here
51 | @NSCopying open var keyboards: XCUIElementQuery { get }
52 | @NSCopying open var keys: XCUIElementQuery { get }
53 | @NSCopying open var navigationBars: XCUIElementQuery { get }
| `- note: property declared here
54 | @NSCopying open var tabBars: XCUIElementQuery { get }
55 | @NSCopying open var tabGroups: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:89:13: error: 'os_log' is only available in macOS 11.0 or newer
16 | /// Use the ``HealthAppDataType/navigateToElement()`` and ``HealthAppDataType/addData()`` methods to navigate to the respective part of the
17 | /// Apple Health app and enter a new mock data element that can, e.g., be observed in the system under test.
18 | public enum HealthAppDataType: String, CaseIterable {
| `- note: add @available attribute to enclosing enum
19 | /// The active energy subpage of the Apple Health app. Corresponds to `HKQuantityType(.activeEnergyBurned)` samples.
20 | case activeEnergy = "Active Energy"
:
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add @available attribute to enclosing instance method
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
:
87 |
88 | guard healthApp.navigationBars.staticTexts[hkCategory].waitForExistence(timeout: 20) else {
89 | os_log("Failed to find category: \(healthApp.staticTexts.allElementsBoundByIndex)")
| |- error: 'os_log' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
90 | throw XCTestError(.failureWhileWaiting)
91 | }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:89:20: error: 'OSLogMessage' is only available in macOS 11.0 or newer
16 | /// Use the ``HealthAppDataType/navigateToElement()`` and ``HealthAppDataType/addData()`` methods to navigate to the respective part of the
17 | /// Apple Health app and enter a new mock data element that can, e.g., be observed in the system under test.
18 | public enum HealthAppDataType: String, CaseIterable {
| `- note: add @available attribute to enclosing enum
19 | /// The active energy subpage of the Apple Health app. Corresponds to `HKQuantityType(.activeEnergyBurned)` samples.
20 | case activeEnergy = "Active Energy"
:
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add @available attribute to enclosing instance method
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
:
87 |
88 | guard healthApp.navigationBars.staticTexts[hkCategory].waitForExistence(timeout: 20) else {
89 | os_log("Failed to find category: \(healthApp.staticTexts.allElementsBoundByIndex)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
90 | throw XCTestError(.failureWhileWaiting)
91 | }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:89:47: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
16 | /// Use the ``HealthAppDataType/navigateToElement()`` and ``HealthAppDataType/addData()`` methods to navigate to the respective part of the
17 | /// Apple Health app and enter a new mock data element that can, e.g., be observed in the system under test.
18 | public enum HealthAppDataType: String, CaseIterable {
| `- note: add @available attribute to enclosing enum
19 | /// The active energy subpage of the Apple Health app. Corresponds to `HKQuantityType(.activeEnergyBurned)` samples.
20 | case activeEnergy = "Active Energy"
:
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add @available attribute to enclosing instance method
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
:
87 |
88 | guard healthApp.navigationBars.staticTexts[hkCategory].waitForExistence(timeout: 20) else {
89 | os_log("Failed to find category: \(healthApp.staticTexts.allElementsBoundByIndex)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
90 | throw XCTestError(.failureWhileWaiting)
91 | }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:111:13: error: 'os_log' is only available in macOS 11.0 or newer
16 | /// Use the ``HealthAppDataType/navigateToElement()`` and ``HealthAppDataType/addData()`` methods to navigate to the respective part of the
17 | /// Apple Health app and enter a new mock data element that can, e.g., be observed in the system under test.
18 | public enum HealthAppDataType: String, CaseIterable {
| `- note: add @available attribute to enclosing enum
19 | /// The active energy subpage of the Apple Health app. Corresponds to `HKQuantityType(.activeEnergyBurned)` samples.
20 | case activeEnergy = "Active Energy"
:
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add @available attribute to enclosing instance method
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
:
109 | }
110 |
111 | os_log("Failed to find element in category: \(healthApp.staticTexts.allElementsBoundByIndex)")
| |- error: 'os_log' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
112 | throw XCTestError(.failureWhileWaiting)
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:111:20: error: 'OSLogMessage' is only available in macOS 11.0 or newer
16 | /// Use the ``HealthAppDataType/navigateToElement()`` and ``HealthAppDataType/addData()`` methods to navigate to the respective part of the
17 | /// Apple Health app and enter a new mock data element that can, e.g., be observed in the system under test.
18 | public enum HealthAppDataType: String, CaseIterable {
| `- note: add @available attribute to enclosing enum
19 | /// The active energy subpage of the Apple Health app. Corresponds to `HKQuantityType(.activeEnergyBurned)` samples.
20 | case activeEnergy = "Active Energy"
:
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add @available attribute to enclosing instance method
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
:
109 | }
110 |
111 | os_log("Failed to find element in category: \(healthApp.staticTexts.allElementsBoundByIndex)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
112 | throw XCTestError(.failureWhileWaiting)
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:111:58: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
16 | /// Use the ``HealthAppDataType/navigateToElement()`` and ``HealthAppDataType/addData()`` methods to navigate to the respective part of the
17 | /// Apple Health app and enter a new mock data element that can, e.g., be observed in the system under test.
18 | public enum HealthAppDataType: String, CaseIterable {
| `- note: add @available attribute to enclosing enum
19 | /// The active energy subpage of the Apple Health app. Corresponds to `HKQuantityType(.activeEnergyBurned)` samples.
20 | case activeEnergy = "Active Energy"
:
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add @available attribute to enclosing instance method
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
:
109 | }
110 |
111 | os_log("Failed to find element in category: \(healthApp.staticTexts.allElementsBoundByIndex)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
112 | throw XCTestError(.failureWhileWaiting)
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:71:103: warning: main actor-isolated property 'firstMatch' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add '@MainActor' to make instance method 'findCategoryAndElement(in:)' part of global actor 'MainActor'
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
71 | let categoryStaticText = healthApp.staticTexts.element(matching: categoryStaticTextPredicate).firstMatch
| `- warning: main actor-isolated property 'firstMatch' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
72 |
73 | if categoryStaticText.waitForExistence(timeout: 30), !categoryStaticText.isHittable {
XCTest.XCUIElement:116:14: note: property declared here
114 | @NSCopying open var otherElements: XCUIElementQuery { get }
115 | @NSCopying open var statusItems: XCUIElementQuery { get }
116 | open var firstMatch: XCUIElement { get }
| `- note: property declared here
117 | }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:71:56: warning: call to main actor-isolated instance method 'element(matching:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add '@MainActor' to make instance method 'findCategoryAndElement(in:)' part of global actor 'MainActor'
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
71 | let categoryStaticText = healthApp.staticTexts.element(matching: categoryStaticTextPredicate).firstMatch
| `- warning: call to main actor-isolated instance method 'element(matching:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
72 |
73 | if categoryStaticText.waitForExistence(timeout: 30), !categoryStaticText.isHittable {
XCTest.XCUIElementQuery:18:15: note: calls to instance method 'element(matching:)' from outside of its actor context are implicitly asynchronous
16 | @available(swift, obsoleted: 3, renamed: "element(boundBy:)")
17 | open func elementBoundByIndex(_ index: Int) -> XCUIElement
18 | open func element(matching predicate: NSPredicate) -> XCUIElement
| `- note: calls to instance method 'element(matching:)' from outside of its actor context are implicitly asynchronous
19 | @available(swift, obsoleted: 3, renamed: "element(matching:)")
20 | open func elementMatchingPredicate(_ predicate: NSPredicate) -> XCUIElement
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:71:44: warning: main actor-isolated property 'staticTexts' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add '@MainActor' to make instance method 'findCategoryAndElement(in:)' part of global actor 'MainActor'
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
71 | let categoryStaticText = healthApp.staticTexts.element(matching: categoryStaticTextPredicate).firstMatch
| `- warning: main actor-isolated property 'staticTexts' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
72 |
73 | if categoryStaticText.waitForExistence(timeout: 30), !categoryStaticText.isHittable {
XCTest.XCUIElement:81:25: note: property declared here
79 | @NSCopying open var scrollViews: XCUIElementQuery { get }
80 | @NSCopying open var scrollBars: XCUIElementQuery { get }
81 | @NSCopying open var staticTexts: XCUIElementQuery { get }
| `- note: property declared here
82 | @NSCopying open var textFields: XCUIElementQuery { get }
83 | @NSCopying open var secureTextFields: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:73:31: warning: call to main actor-isolated instance method 'waitForExistence(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add '@MainActor' to make instance method 'findCategoryAndElement(in:)' part of global actor 'MainActor'
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
71 | let categoryStaticText = healthApp.staticTexts.element(matching: categoryStaticTextPredicate).firstMatch
72 |
73 | if categoryStaticText.waitForExistence(timeout: 30), !categoryStaticText.isHittable {
| `- warning: call to main actor-isolated instance method 'waitForExistence(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
74 | healthApp.swipeUp()
75 |
XCTest.XCUIElement:7:15: note: calls to instance method 'waitForExistence(timeout:)' from outside of its actor context are implicitly asynchronous
5 | public init()
6 | @MainActor open var exists: Bool { get }
7 | open func waitForExistence(timeout: TimeInterval) -> Bool
| `- note: calls to instance method 'waitForExistence(timeout:)' from outside of its actor context are implicitly asynchronous
8 | @available(swift, obsoleted: 3, renamed: "waitForExistence(timeout:)")
9 | open func waitForExistenceWithTimeout(_ timeout: TimeInterval) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:73:82: warning: main actor-isolated property 'isHittable' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add '@MainActor' to make instance method 'findCategoryAndElement(in:)' part of global actor 'MainActor'
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
71 | let categoryStaticText = healthApp.staticTexts.element(matching: categoryStaticTextPredicate).firstMatch
72 |
73 | if categoryStaticText.waitForExistence(timeout: 30), !categoryStaticText.isHittable {
| `- warning: main actor-isolated property 'isHittable' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
74 | healthApp.swipeUp()
75 |
XCTest.XCUIElement:10:14: note: property declared here
8 | @available(swift, obsoleted: 3, renamed: "waitForExistence(timeout:)")
9 | open func waitForExistenceWithTimeout(_ timeout: TimeInterval) -> Bool
10 | open var isHittable: Bool { get }
| `- note: property declared here
11 | @available(swift, obsoleted: 3, renamed: "isHittable")
12 | open var hittable: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:74:23: warning: call to main actor-isolated instance method 'swipeUp()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add '@MainActor' to make instance method 'findCategoryAndElement(in:)' part of global actor 'MainActor'
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
:
72 |
73 | if categoryStaticText.waitForExistence(timeout: 30), !categoryStaticText.isHittable {
74 | healthApp.swipeUp()
| `- warning: call to main actor-isolated instance method 'swipeUp()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
75 |
76 | if !categoryStaticText.isHittable {
XCTest.XCUIElement:13:15: note: calls to instance method 'swipeUp()' from outside of its actor context are implicitly asynchronous
11 | @available(swift, obsoleted: 3, renamed: "press(forDuration:thenDragTo:withVelocity:thenHoldForDuration:)")
12 | open func pressForDuration(_ duration: TimeInterval, thenDragToElement otherElement: XCUIElement, withVelocity velocity: XCUIGestureVelocity, thenHoldForDuration holdDuration: TimeInterval)
13 | open func swipeUp()
| `- note: calls to instance method 'swipeUp()' from outside of its actor context are implicitly asynchronous
14 | open func swipeDown()
15 | open func swipeLeft()
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:76:36: warning: main actor-isolated property 'isHittable' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add '@MainActor' to make instance method 'findCategoryAndElement(in:)' part of global actor 'MainActor'
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
:
74 | healthApp.swipeUp()
75 |
76 | if !categoryStaticText.isHittable {
| `- warning: main actor-isolated property 'isHittable' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
77 | healthApp.swipeUp()
78 | }
XCTest.XCUIElement:10:14: note: property declared here
8 | @available(swift, obsoleted: 3, renamed: "waitForExistence(timeout:)")
9 | open func waitForExistenceWithTimeout(_ timeout: TimeInterval) -> Bool
10 | open var isHittable: Bool { get }
| `- note: property declared here
11 | @available(swift, obsoleted: 3, renamed: "isHittable")
12 | open var hittable: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:77:27: warning: call to main actor-isolated instance method 'swipeUp()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add '@MainActor' to make instance method 'findCategoryAndElement(in:)' part of global actor 'MainActor'
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
:
75 |
76 | if !categoryStaticText.isHittable {
77 | healthApp.swipeUp()
| `- warning: call to main actor-isolated instance method 'swipeUp()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
78 | }
79 | }
XCTest.XCUIElement:13:15: note: calls to instance method 'swipeUp()' from outside of its actor context are implicitly asynchronous
11 | @available(swift, obsoleted: 3, renamed: "press(forDuration:thenDragTo:withVelocity:thenHoldForDuration:)")
12 | open func pressForDuration(_ duration: TimeInterval, thenDragToElement otherElement: XCUIElement, withVelocity velocity: XCUIGestureVelocity, thenHoldForDuration holdDuration: TimeInterval)
13 | open func swipeUp()
| `- note: calls to instance method 'swipeUp()' from outside of its actor context are implicitly asynchronous
14 | open func swipeDown()
15 | open func swipeLeft()
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:81:28: warning: call to main actor-isolated instance method 'tap()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add '@MainActor' to make instance method 'findCategoryAndElement(in:)' part of global actor 'MainActor'
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
:
79 | }
80 |
81 | categoryStaticText.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 | // Retry ...
XCTest.XCUIElement:2:26: note: calls to instance method 'tap()' from outside of its actor context are implicitly asynchronous
1 | extension XCUIElement {
2 | @MainActor open func tap()
| `- note: calls to instance method 'tap()' from outside of its actor context are implicitly asynchronous
3 | open func doubleTap()
4 | open func press(forDuration duration: TimeInterval)
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:84:62: warning: call to main actor-isolated instance method 'waitForExistence(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add '@MainActor' to make instance method 'findCategoryAndElement(in:)' part of global actor 'MainActor'
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
:
82 |
83 | // Retry ...
84 | if !healthApp.navigationBars.staticTexts[hkCategory].waitForExistence(timeout: 20) {
| `- warning: call to main actor-isolated instance method 'waitForExistence(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
85 | categoryStaticText.tap()
86 | }
XCTest.XCUIElement:7:15: note: calls to instance method 'waitForExistence(timeout:)' from outside of its actor context are implicitly asynchronous
5 | public init()
6 | @MainActor open var exists: Bool { get }
7 | open func waitForExistence(timeout: TimeInterval) -> Bool
| `- note: calls to instance method 'waitForExistence(timeout:)' from outside of its actor context are implicitly asynchronous
8 | @available(swift, obsoleted: 3, renamed: "waitForExistence(timeout:)")
9 | open func waitForExistenceWithTimeout(_ timeout: TimeInterval) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:84:49: warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add '@MainActor' to make instance method 'findCategoryAndElement(in:)' part of global actor 'MainActor'
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
:
82 |
83 | // Retry ...
84 | if !healthApp.navigationBars.staticTexts[hkCategory].waitForExistence(timeout: 20) {
| `- warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
85 | categoryStaticText.tap()
86 | }
XCTest.XCUIElementQuery:24:21: note: subscript declared here
22 | @available(swift, obsoleted: 3, renamed: "element(matching:identifier:)")
23 | open func elementMatchingType(_ elementType: XCUIElement.ElementType, identifier: String?) -> XCUIElement
24 | @MainActor open subscript(key: String) -> XCUIElement { get }
| `- note: subscript declared here
25 | @available(*, unavailable, message: "use subscripting")
26 | open func objectForKeyedSubscript(_ key: String) -> XCUIElement
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:84:38: warning: main actor-isolated property 'staticTexts' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add '@MainActor' to make instance method 'findCategoryAndElement(in:)' part of global actor 'MainActor'
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
:
82 |
83 | // Retry ...
84 | if !healthApp.navigationBars.staticTexts[hkCategory].waitForExistence(timeout: 20) {
| `- warning: main actor-isolated property 'staticTexts' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
85 | categoryStaticText.tap()
86 | }
XCTest.XCUIElementQuery:98:25: note: property declared here
96 | @NSCopying open var scrollViews: XCUIElementQuery { get }
97 | @NSCopying open var scrollBars: XCUIElementQuery { get }
98 | @NSCopying open var staticTexts: XCUIElementQuery { get }
| `- note: property declared here
99 | @NSCopying open var textFields: XCUIElementQuery { get }
100 | @NSCopying open var secureTextFields: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:84:23: warning: main actor-isolated property 'navigationBars' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add '@MainActor' to make instance method 'findCategoryAndElement(in:)' part of global actor 'MainActor'
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
:
82 |
83 | // Retry ...
84 | if !healthApp.navigationBars.staticTexts[hkCategory].waitForExistence(timeout: 20) {
| `- warning: main actor-isolated property 'navigationBars' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
85 | categoryStaticText.tap()
86 | }
XCTest.XCUIElement:53:25: note: property declared here
51 | @NSCopying open var keyboards: XCUIElementQuery { get }
52 | @NSCopying open var keys: XCUIElementQuery { get }
53 | @NSCopying open var navigationBars: XCUIElementQuery { get }
| `- note: property declared here
54 | @NSCopying open var tabBars: XCUIElementQuery { get }
55 | @NSCopying open var tabGroups: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:85:32: warning: call to main actor-isolated instance method 'tap()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add '@MainActor' to make instance method 'findCategoryAndElement(in:)' part of global actor 'MainActor'
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
:
83 | // Retry ...
84 | if !healthApp.navigationBars.staticTexts[hkCategory].waitForExistence(timeout: 20) {
85 | categoryStaticText.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
86 | }
87 |
XCTest.XCUIElement:2:26: note: calls to instance method 'tap()' from outside of its actor context are implicitly asynchronous
1 | extension XCUIElement {
2 | @MainActor open func tap()
| `- note: calls to instance method 'tap()' from outside of its actor context are implicitly asynchronous
3 | open func doubleTap()
4 | open func press(forDuration duration: TimeInterval)
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:88:64: warning: call to main actor-isolated instance method 'waitForExistence(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add '@MainActor' to make instance method 'findCategoryAndElement(in:)' part of global actor 'MainActor'
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
:
86 | }
87 |
88 | guard healthApp.navigationBars.staticTexts[hkCategory].waitForExistence(timeout: 20) else {
| `- warning: call to main actor-isolated instance method 'waitForExistence(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
89 | os_log("Failed to find category: \(healthApp.staticTexts.allElementsBoundByIndex)")
90 | throw XCTestError(.failureWhileWaiting)
XCTest.XCUIElement:7:15: note: calls to instance method 'waitForExistence(timeout:)' from outside of its actor context are implicitly asynchronous
5 | public init()
6 | @MainActor open var exists: Bool { get }
7 | open func waitForExistence(timeout: TimeInterval) -> Bool
| `- note: calls to instance method 'waitForExistence(timeout:)' from outside of its actor context are implicitly asynchronous
8 | @available(swift, obsoleted: 3, renamed: "waitForExistence(timeout:)")
9 | open func waitForExistenceWithTimeout(_ timeout: TimeInterval) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:88:51: warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add '@MainActor' to make instance method 'findCategoryAndElement(in:)' part of global actor 'MainActor'
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
:
86 | }
87 |
88 | guard healthApp.navigationBars.staticTexts[hkCategory].waitForExistence(timeout: 20) else {
| `- warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
89 | os_log("Failed to find category: \(healthApp.staticTexts.allElementsBoundByIndex)")
90 | throw XCTestError(.failureWhileWaiting)
XCTest.XCUIElementQuery:24:21: note: subscript declared here
22 | @available(swift, obsoleted: 3, renamed: "element(matching:identifier:)")
23 | open func elementMatchingType(_ elementType: XCUIElement.ElementType, identifier: String?) -> XCUIElement
24 | @MainActor open subscript(key: String) -> XCUIElement { get }
| `- note: subscript declared here
25 | @available(*, unavailable, message: "use subscripting")
26 | open func objectForKeyedSubscript(_ key: String) -> XCUIElement
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:88:40: warning: main actor-isolated property 'staticTexts' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add '@MainActor' to make instance method 'findCategoryAndElement(in:)' part of global actor 'MainActor'
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
:
86 | }
87 |
88 | guard healthApp.navigationBars.staticTexts[hkCategory].waitForExistence(timeout: 20) else {
| `- warning: main actor-isolated property 'staticTexts' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
89 | os_log("Failed to find category: \(healthApp.staticTexts.allElementsBoundByIndex)")
90 | throw XCTestError(.failureWhileWaiting)
XCTest.XCUIElementQuery:98:25: note: property declared here
96 | @NSCopying open var scrollViews: XCUIElementQuery { get }
97 | @NSCopying open var scrollBars: XCUIElementQuery { get }
98 | @NSCopying open var staticTexts: XCUIElementQuery { get }
| `- note: property declared here
99 | @NSCopying open var textFields: XCUIElementQuery { get }
100 | @NSCopying open var secureTextFields: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:88:25: warning: main actor-isolated property 'navigationBars' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add '@MainActor' to make instance method 'findCategoryAndElement(in:)' part of global actor 'MainActor'
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
:
86 | }
87 |
88 | guard healthApp.navigationBars.staticTexts[hkCategory].waitForExistence(timeout: 20) else {
| `- warning: main actor-isolated property 'navigationBars' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
89 | os_log("Failed to find category: \(healthApp.staticTexts.allElementsBoundByIndex)")
90 | throw XCTestError(.failureWhileWaiting)
XCTest.XCUIElement:53:25: note: property declared here
51 | @NSCopying open var keyboards: XCUIElementQuery { get }
52 | @NSCopying open var keys: XCUIElementQuery { get }
53 | @NSCopying open var navigationBars: XCUIElementQuery { get }
| `- note: property declared here
54 | @NSCopying open var tabBars: XCUIElementQuery { get }
55 | @NSCopying open var tabGroups: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:89:70: warning: main actor-isolated property 'allElementsBoundByIndex' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
87 |
88 | guard healthApp.navigationBars.staticTexts[hkCategory].waitForExistence(timeout: 20) else {
89 | os_log("Failed to find category: \(healthApp.staticTexts.allElementsBoundByIndex)")
| `- warning: main actor-isolated property 'allElementsBoundByIndex' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
90 | throw XCTestError(.failureWhileWaiting)
91 | }
XCTest.XCUIElementQuery:28:14: note: property declared here
26 | open func objectForKeyedSubscript(_ key: String) -> XCUIElement
27 | open var allElementsBoundByAccessibilityElement: [XCUIElement] { get }
28 | open var allElementsBoundByIndex: [XCUIElement] { get }
| `- note: property declared here
29 | open func descendants(matching type: XCUIElement.ElementType) -> XCUIElementQuery
30 | @available(swift, obsoleted: 3, renamed: "descendants(matching:)")
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:89:58: warning: main actor-isolated property 'staticTexts' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
87 |
88 | guard healthApp.navigationBars.staticTexts[hkCategory].waitForExistence(timeout: 20) else {
89 | os_log("Failed to find category: \(healthApp.staticTexts.allElementsBoundByIndex)")
| `- warning: main actor-isolated property 'staticTexts' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
90 | throw XCTestError(.failureWhileWaiting)
91 | }
XCTest.XCUIElement:81:25: note: property declared here
79 | @NSCopying open var scrollViews: XCUIElementQuery { get }
80 | @NSCopying open var scrollBars: XCUIElementQuery { get }
81 | @NSCopying open var staticTexts: XCUIElementQuery { get }
| `- note: property declared here
82 | @NSCopying open var textFields: XCUIElementQuery { get }
83 | @NSCopying open var secureTextFields: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:96:101: warning: main actor-isolated property 'firstMatch' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add '@MainActor' to make instance method 'findCategoryAndElement(in:)' part of global actor 'MainActor'
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
:
94 | // Find element:
95 | let elementStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", rawValue)
96 | let elementStaticText = healthApp.staticTexts.element(matching: elementStaticTextPredicate).firstMatch
| `- warning: main actor-isolated property 'firstMatch' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
97 |
98 | guard elementStaticText.waitForExistence(timeout: 30), elementStaticText.isHittable else {
XCTest.XCUIElement:116:14: note: property declared here
114 | @NSCopying open var otherElements: XCUIElementQuery { get }
115 | @NSCopying open var statusItems: XCUIElementQuery { get }
116 | open var firstMatch: XCUIElement { get }
| `- note: property declared here
117 | }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:96:55: warning: call to main actor-isolated instance method 'element(matching:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add '@MainActor' to make instance method 'findCategoryAndElement(in:)' part of global actor 'MainActor'
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
:
94 | // Find element:
95 | let elementStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", rawValue)
96 | let elementStaticText = healthApp.staticTexts.element(matching: elementStaticTextPredicate).firstMatch
| `- warning: call to main actor-isolated instance method 'element(matching:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
97 |
98 | guard elementStaticText.waitForExistence(timeout: 30), elementStaticText.isHittable else {
XCTest.XCUIElementQuery:18:15: note: calls to instance method 'element(matching:)' from outside of its actor context are implicitly asynchronous
16 | @available(swift, obsoleted: 3, renamed: "element(boundBy:)")
17 | open func elementBoundByIndex(_ index: Int) -> XCUIElement
18 | open func element(matching predicate: NSPredicate) -> XCUIElement
| `- note: calls to instance method 'element(matching:)' from outside of its actor context are implicitly asynchronous
19 | @available(swift, obsoleted: 3, renamed: "element(matching:)")
20 | open func elementMatchingPredicate(_ predicate: NSPredicate) -> XCUIElement
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:96:43: warning: main actor-isolated property 'staticTexts' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add '@MainActor' to make instance method 'findCategoryAndElement(in:)' part of global actor 'MainActor'
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
:
94 | // Find element:
95 | let elementStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", rawValue)
96 | let elementStaticText = healthApp.staticTexts.element(matching: elementStaticTextPredicate).firstMatch
| `- warning: main actor-isolated property 'staticTexts' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
97 |
98 | guard elementStaticText.waitForExistence(timeout: 30), elementStaticText.isHittable else {
XCTest.XCUIElement:81:25: note: property declared here
79 | @NSCopying open var scrollViews: XCUIElementQuery { get }
80 | @NSCopying open var scrollBars: XCUIElementQuery { get }
81 | @NSCopying open var staticTexts: XCUIElementQuery { get }
| `- note: property declared here
82 | @NSCopying open var textFields: XCUIElementQuery { get }
83 | @NSCopying open var secureTextFields: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:98:33: warning: call to main actor-isolated instance method 'waitForExistence(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add '@MainActor' to make instance method 'findCategoryAndElement(in:)' part of global actor 'MainActor'
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
:
96 | let elementStaticText = healthApp.staticTexts.element(matching: elementStaticTextPredicate).firstMatch
97 |
98 | guard elementStaticText.waitForExistence(timeout: 30), elementStaticText.isHittable else {
| `- warning: call to main actor-isolated instance method 'waitForExistence(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
99 | healthApp.swipeUp()
100 | if elementStaticText.waitForExistence(timeout: 10), elementStaticText.isHittable {
XCTest.XCUIElement:7:15: note: calls to instance method 'waitForExistence(timeout:)' from outside of its actor context are implicitly asynchronous
5 | public init()
6 | @MainActor open var exists: Bool { get }
7 | open func waitForExistence(timeout: TimeInterval) -> Bool
| `- note: calls to instance method 'waitForExistence(timeout:)' from outside of its actor context are implicitly asynchronous
8 | @available(swift, obsoleted: 3, renamed: "waitForExistence(timeout:)")
9 | open func waitForExistenceWithTimeout(_ timeout: TimeInterval) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:98:82: warning: main actor-isolated property 'isHittable' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add '@MainActor' to make instance method 'findCategoryAndElement(in:)' part of global actor 'MainActor'
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
:
96 | let elementStaticText = healthApp.staticTexts.element(matching: elementStaticTextPredicate).firstMatch
97 |
98 | guard elementStaticText.waitForExistence(timeout: 30), elementStaticText.isHittable else {
| `- warning: main actor-isolated property 'isHittable' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
99 | healthApp.swipeUp()
100 | if elementStaticText.waitForExistence(timeout: 10), elementStaticText.isHittable {
XCTest.XCUIElement:10:14: note: property declared here
8 | @available(swift, obsoleted: 3, renamed: "waitForExistence(timeout:)")
9 | open func waitForExistenceWithTimeout(_ timeout: TimeInterval) -> Bool
10 | open var isHittable: Bool { get }
| `- note: property declared here
11 | @available(swift, obsoleted: 3, renamed: "isHittable")
12 | open var hittable: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:99:23: warning: call to main actor-isolated instance method 'swipeUp()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add '@MainActor' to make instance method 'findCategoryAndElement(in:)' part of global actor 'MainActor'
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
:
97 |
98 | guard elementStaticText.waitForExistence(timeout: 30), elementStaticText.isHittable else {
99 | healthApp.swipeUp()
| `- warning: call to main actor-isolated instance method 'swipeUp()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
100 | if elementStaticText.waitForExistence(timeout: 10), elementStaticText.isHittable {
101 | elementStaticText.tap()
XCTest.XCUIElement:13:15: note: calls to instance method 'swipeUp()' from outside of its actor context are implicitly asynchronous
11 | @available(swift, obsoleted: 3, renamed: "press(forDuration:thenDragTo:withVelocity:thenHoldForDuration:)")
12 | open func pressForDuration(_ duration: TimeInterval, thenDragToElement otherElement: XCUIElement, withVelocity velocity: XCUIGestureVelocity, thenHoldForDuration holdDuration: TimeInterval)
13 | open func swipeUp()
| `- note: calls to instance method 'swipeUp()' from outside of its actor context are implicitly asynchronous
14 | open func swipeDown()
15 | open func swipeLeft()
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:100:34: warning: call to main actor-isolated instance method 'waitForExistence(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add '@MainActor' to make instance method 'findCategoryAndElement(in:)' part of global actor 'MainActor'
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
:
98 | guard elementStaticText.waitForExistence(timeout: 30), elementStaticText.isHittable else {
99 | healthApp.swipeUp()
100 | if elementStaticText.waitForExistence(timeout: 10), elementStaticText.isHittable {
| `- warning: call to main actor-isolated instance method 'waitForExistence(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
101 | elementStaticText.tap()
102 | return
XCTest.XCUIElement:7:15: note: calls to instance method 'waitForExistence(timeout:)' from outside of its actor context are implicitly asynchronous
5 | public init()
6 | @MainActor open var exists: Bool { get }
7 | open func waitForExistence(timeout: TimeInterval) -> Bool
| `- note: calls to instance method 'waitForExistence(timeout:)' from outside of its actor context are implicitly asynchronous
8 | @available(swift, obsoleted: 3, renamed: "waitForExistence(timeout:)")
9 | open func waitForExistenceWithTimeout(_ timeout: TimeInterval) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:100:83: warning: main actor-isolated property 'isHittable' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add '@MainActor' to make instance method 'findCategoryAndElement(in:)' part of global actor 'MainActor'
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
:
98 | guard elementStaticText.waitForExistence(timeout: 30), elementStaticText.isHittable else {
99 | healthApp.swipeUp()
100 | if elementStaticText.waitForExistence(timeout: 10), elementStaticText.isHittable {
| `- warning: main actor-isolated property 'isHittable' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
101 | elementStaticText.tap()
102 | return
XCTest.XCUIElement:10:14: note: property declared here
8 | @available(swift, obsoleted: 3, renamed: "waitForExistence(timeout:)")
9 | open func waitForExistenceWithTimeout(_ timeout: TimeInterval) -> Bool
10 | open var isHittable: Bool { get }
| `- note: property declared here
11 | @available(swift, obsoleted: 3, renamed: "isHittable")
12 | open var hittable: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:101:35: warning: call to main actor-isolated instance method 'tap()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add '@MainActor' to make instance method 'findCategoryAndElement(in:)' part of global actor 'MainActor'
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
:
99 | healthApp.swipeUp()
100 | if elementStaticText.waitForExistence(timeout: 10), elementStaticText.isHittable {
101 | elementStaticText.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
102 | return
103 | }
XCTest.XCUIElement:2:26: note: calls to instance method 'tap()' from outside of its actor context are implicitly asynchronous
1 | extension XCUIElement {
2 | @MainActor open func tap()
| `- note: calls to instance method 'tap()' from outside of its actor context are implicitly asynchronous
3 | open func doubleTap()
4 | open func press(forDuration duration: TimeInterval)
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:105:23: warning: call to main actor-isolated instance method 'swipeUp()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add '@MainActor' to make instance method 'findCategoryAndElement(in:)' part of global actor 'MainActor'
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
:
103 | }
104 |
105 | healthApp.swipeUp()
| `- warning: call to main actor-isolated instance method 'swipeUp()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
106 | if elementStaticText.waitForExistence(timeout: 10), elementStaticText.isHittable {
107 | elementStaticText.tap()
XCTest.XCUIElement:13:15: note: calls to instance method 'swipeUp()' from outside of its actor context are implicitly asynchronous
11 | @available(swift, obsoleted: 3, renamed: "press(forDuration:thenDragTo:withVelocity:thenHoldForDuration:)")
12 | open func pressForDuration(_ duration: TimeInterval, thenDragToElement otherElement: XCUIElement, withVelocity velocity: XCUIGestureVelocity, thenHoldForDuration holdDuration: TimeInterval)
13 | open func swipeUp()
| `- note: calls to instance method 'swipeUp()' from outside of its actor context are implicitly asynchronous
14 | open func swipeDown()
15 | open func swipeLeft()
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:106:34: warning: call to main actor-isolated instance method 'waitForExistence(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add '@MainActor' to make instance method 'findCategoryAndElement(in:)' part of global actor 'MainActor'
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
:
104 |
105 | healthApp.swipeUp()
106 | if elementStaticText.waitForExistence(timeout: 10), elementStaticText.isHittable {
| `- warning: call to main actor-isolated instance method 'waitForExistence(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
107 | elementStaticText.tap()
108 | return
XCTest.XCUIElement:7:15: note: calls to instance method 'waitForExistence(timeout:)' from outside of its actor context are implicitly asynchronous
5 | public init()
6 | @MainActor open var exists: Bool { get }
7 | open func waitForExistence(timeout: TimeInterval) -> Bool
| `- note: calls to instance method 'waitForExistence(timeout:)' from outside of its actor context are implicitly asynchronous
8 | @available(swift, obsoleted: 3, renamed: "waitForExistence(timeout:)")
9 | open func waitForExistenceWithTimeout(_ timeout: TimeInterval) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:106:83: warning: main actor-isolated property 'isHittable' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add '@MainActor' to make instance method 'findCategoryAndElement(in:)' part of global actor 'MainActor'
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
:
104 |
105 | healthApp.swipeUp()
106 | if elementStaticText.waitForExistence(timeout: 10), elementStaticText.isHittable {
| `- warning: main actor-isolated property 'isHittable' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
107 | elementStaticText.tap()
108 | return
XCTest.XCUIElement:10:14: note: property declared here
8 | @available(swift, obsoleted: 3, renamed: "waitForExistence(timeout:)")
9 | open func waitForExistenceWithTimeout(_ timeout: TimeInterval) -> Bool
10 | open var isHittable: Bool { get }
| `- note: property declared here
11 | @available(swift, obsoleted: 3, renamed: "isHittable")
12 | open var hittable: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:107:35: warning: call to main actor-isolated instance method 'tap()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add '@MainActor' to make instance method 'findCategoryAndElement(in:)' part of global actor 'MainActor'
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
:
105 | healthApp.swipeUp()
106 | if elementStaticText.waitForExistence(timeout: 10), elementStaticText.isHittable {
107 | elementStaticText.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
108 | return
109 | }
XCTest.XCUIElement:2:26: note: calls to instance method 'tap()' from outside of its actor context are implicitly asynchronous
1 | extension XCUIElement {
2 | @MainActor open func tap()
| `- note: calls to instance method 'tap()' from outside of its actor context are implicitly asynchronous
3 | open func doubleTap()
4 | open func press(forDuration duration: TimeInterval)
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:111:81: warning: main actor-isolated property 'allElementsBoundByIndex' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
109 | }
110 |
111 | os_log("Failed to find element in category: \(healthApp.staticTexts.allElementsBoundByIndex)")
| `- warning: main actor-isolated property 'allElementsBoundByIndex' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
112 | throw XCTestError(.failureWhileWaiting)
113 | }
XCTest.XCUIElementQuery:28:14: note: property declared here
26 | open func objectForKeyedSubscript(_ key: String) -> XCUIElement
27 | open var allElementsBoundByAccessibilityElement: [XCUIElement] { get }
28 | open var allElementsBoundByIndex: [XCUIElement] { get }
| `- note: property declared here
29 | open func descendants(matching type: XCUIElement.ElementType) -> XCUIElementQuery
30 | @available(swift, obsoleted: 3, renamed: "descendants(matching:)")
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:111:69: warning: main actor-isolated property 'staticTexts' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
109 | }
110 |
111 | os_log("Failed to find element in category: \(healthApp.staticTexts.allElementsBoundByIndex)")
| `- warning: main actor-isolated property 'staticTexts' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
112 | throw XCTestError(.failureWhileWaiting)
113 | }
XCTest.XCUIElement:81:25: note: property declared here
79 | @NSCopying open var scrollViews: XCUIElementQuery { get }
80 | @NSCopying open var scrollBars: XCUIElementQuery { get }
81 | @NSCopying open var staticTexts: XCUIElementQuery { get }
| `- note: property declared here
82 | @NSCopying open var textFields: XCUIElementQuery { get }
83 | @NSCopying open var secureTextFields: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:115:27: warning: call to main actor-isolated instance method 'tap()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
66 | }
67 |
68 | func findCategoryAndElement(in healthApp: XCUIApplication) throws {
| `- note: add '@MainActor' to make instance method 'findCategoryAndElement(in:)' part of global actor 'MainActor'
69 | // Find category:
70 | let categoryStaticTextPredicate = NSPredicate(format: "label CONTAINS[cd] %@", hkCategory)
:
113 | }
114 |
115 | elementStaticText.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
116 | }
117 |
XCTest.XCUIElement:2:26: note: calls to instance method 'tap()' from outside of its actor context are implicitly asynchronous
1 | extension XCUIElement {
2 | @MainActor open func tap()
| `- note: calls to instance method 'tap()' from outside of its actor context are implicitly asynchronous
3 | open func doubleTap()
4 | open func press(forDuration duration: TimeInterval)
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:120:25: warning: call to main actor-isolated initializer 'init(bundleIdentifier:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
| `- warning: call to main actor-isolated initializer 'init(bundleIdentifier:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
121 |
122 | switch self {
XCTest.XCUIApplication:5:23: note: calls to initializer 'init(bundleIdentifier:)' from outside of its actor context are implicitly asynchronous
3 | @available(*, unavailable, message: "use object initializers instead")
4 | open class func new() -> Self
5 | @MainActor public init(bundleIdentifier: String)
| `- note: calls to initializer 'init(bundleIdentifier:)' from outside of its actor context are implicitly asynchronous
6 | public init(url: URL)
7 | @available(swift, obsoleted: 3, renamed: "init(url:)")
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:124:58: warning: call to main actor-isolated instance method 'waitForExistence(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
122 | switch self {
123 | case .activeEnergy:
124 | XCTAssert(healthApp.tables.textFields["cal"].waitForExistence(timeout: 2))
| `- warning: call to main actor-isolated instance method 'waitForExistence(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
125 | healthApp.tables.textFields["cal"].tap()
126 | healthApp.tables.textFields["cal"].typeText("42")
XCTest.XCUIElement:7:15: note: calls to instance method 'waitForExistence(timeout:)' from outside of its actor context are implicitly asynchronous
5 | public init()
6 | @MainActor open var exists: Bool { get }
7 | open func waitForExistence(timeout: TimeInterval) -> Bool
| `- note: calls to instance method 'waitForExistence(timeout:)' from outside of its actor context are implicitly asynchronous
8 | @available(swift, obsoleted: 3, renamed: "waitForExistence(timeout:)")
9 | open func waitForExistenceWithTimeout(_ timeout: TimeInterval) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:124:50: warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
122 | switch self {
123 | case .activeEnergy:
124 | XCTAssert(healthApp.tables.textFields["cal"].waitForExistence(timeout: 2))
| `- warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
125 | healthApp.tables.textFields["cal"].tap()
126 | healthApp.tables.textFields["cal"].typeText("42")
XCTest.XCUIElementQuery:24:21: note: subscript declared here
22 | @available(swift, obsoleted: 3, renamed: "element(matching:identifier:)")
23 | open func elementMatchingType(_ elementType: XCUIElement.ElementType, identifier: String?) -> XCUIElement
24 | @MainActor open subscript(key: String) -> XCUIElement { get }
| `- note: subscript declared here
25 | @available(*, unavailable, message: "use subscripting")
26 | open func objectForKeyedSubscript(_ key: String) -> XCUIElement
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:124:40: warning: main actor-isolated property 'textFields' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
122 | switch self {
123 | case .activeEnergy:
124 | XCTAssert(healthApp.tables.textFields["cal"].waitForExistence(timeout: 2))
| `- warning: main actor-isolated property 'textFields' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
125 | healthApp.tables.textFields["cal"].tap()
126 | healthApp.tables.textFields["cal"].typeText("42")
XCTest.XCUIElementQuery:99:25: note: property declared here
97 | @NSCopying open var scrollBars: XCUIElementQuery { get }
98 | @NSCopying open var staticTexts: XCUIElementQuery { get }
99 | @NSCopying open var textFields: XCUIElementQuery { get }
| `- note: property declared here
100 | @NSCopying open var secureTextFields: XCUIElementQuery { get }
101 | @NSCopying open var datePickers: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:124:33: warning: main actor-isolated property 'tables' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
122 | switch self {
123 | case .activeEnergy:
124 | XCTAssert(healthApp.tables.textFields["cal"].waitForExistence(timeout: 2))
| `- warning: main actor-isolated property 'tables' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
125 | healthApp.tables.textFields["cal"].tap()
126 | healthApp.tables.textFields["cal"].typeText("42")
XCTest.XCUIElement:58:25: note: property declared here
56 | @NSCopying open var toolbars: XCUIElementQuery { get }
57 | @NSCopying open var statusBars: XCUIElementQuery { get }
58 | @NSCopying open var tables: XCUIElementQuery { get }
| `- note: property declared here
59 | @NSCopying open var tableRows: XCUIElementQuery { get }
60 | @NSCopying open var tableColumns: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:125:48: warning: call to main actor-isolated instance method 'tap()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
123 | case .activeEnergy:
124 | XCTAssert(healthApp.tables.textFields["cal"].waitForExistence(timeout: 2))
125 | healthApp.tables.textFields["cal"].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
126 | healthApp.tables.textFields["cal"].typeText("42")
127 | case .restingHeartRate:
XCTest.XCUIElement:2:26: note: calls to instance method 'tap()' from outside of its actor context are implicitly asynchronous
1 | extension XCUIElement {
2 | @MainActor open func tap()
| `- note: calls to instance method 'tap()' from outside of its actor context are implicitly asynchronous
3 | open func doubleTap()
4 | open func press(forDuration duration: TimeInterval)
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:125:40: warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
123 | case .activeEnergy:
124 | XCTAssert(healthApp.tables.textFields["cal"].waitForExistence(timeout: 2))
125 | healthApp.tables.textFields["cal"].tap()
| `- warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
126 | healthApp.tables.textFields["cal"].typeText("42")
127 | case .restingHeartRate:
XCTest.XCUIElementQuery:24:21: note: subscript declared here
22 | @available(swift, obsoleted: 3, renamed: "element(matching:identifier:)")
23 | open func elementMatchingType(_ elementType: XCUIElement.ElementType, identifier: String?) -> XCUIElement
24 | @MainActor open subscript(key: String) -> XCUIElement { get }
| `- note: subscript declared here
25 | @available(*, unavailable, message: "use subscripting")
26 | open func objectForKeyedSubscript(_ key: String) -> XCUIElement
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:125:30: warning: main actor-isolated property 'textFields' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
123 | case .activeEnergy:
124 | XCTAssert(healthApp.tables.textFields["cal"].waitForExistence(timeout: 2))
125 | healthApp.tables.textFields["cal"].tap()
| `- warning: main actor-isolated property 'textFields' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
126 | healthApp.tables.textFields["cal"].typeText("42")
127 | case .restingHeartRate:
XCTest.XCUIElementQuery:99:25: note: property declared here
97 | @NSCopying open var scrollBars: XCUIElementQuery { get }
98 | @NSCopying open var staticTexts: XCUIElementQuery { get }
99 | @NSCopying open var textFields: XCUIElementQuery { get }
| `- note: property declared here
100 | @NSCopying open var secureTextFields: XCUIElementQuery { get }
101 | @NSCopying open var datePickers: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:125:23: warning: main actor-isolated property 'tables' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
123 | case .activeEnergy:
124 | XCTAssert(healthApp.tables.textFields["cal"].waitForExistence(timeout: 2))
125 | healthApp.tables.textFields["cal"].tap()
| `- warning: main actor-isolated property 'tables' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
126 | healthApp.tables.textFields["cal"].typeText("42")
127 | case .restingHeartRate:
XCTest.XCUIElement:58:25: note: property declared here
56 | @NSCopying open var toolbars: XCUIElementQuery { get }
57 | @NSCopying open var statusBars: XCUIElementQuery { get }
58 | @NSCopying open var tables: XCUIElementQuery { get }
| `- note: property declared here
59 | @NSCopying open var tableRows: XCUIElementQuery { get }
60 | @NSCopying open var tableColumns: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:126:48: warning: call to main actor-isolated instance method 'typeText' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
124 | XCTAssert(healthApp.tables.textFields["cal"].waitForExistence(timeout: 2))
125 | healthApp.tables.textFields["cal"].tap()
126 | healthApp.tables.textFields["cal"].typeText("42")
| `- warning: call to main actor-isolated instance method 'typeText' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 | case .restingHeartRate:
128 | XCTAssert(healthApp.tables.textFields["BPM"].waitForExistence(timeout: 2))
XCTest.XCUIElement:2:26: note: calls to instance method 'typeText' from outside of its actor context are implicitly asynchronous
1 | extension XCUIElement {
2 | @MainActor open func typeText(_ text: String)
| `- note: calls to instance method 'typeText' from outside of its actor context are implicitly asynchronous
3 | open class func perform(withKeyModifiers flags: XCUIElement.KeyModifierFlags, block: () -> Void)
4 | @available(swift, obsoleted: 3, renamed: "perform(withKeyModifiers:block:)")
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:126:40: warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
124 | XCTAssert(healthApp.tables.textFields["cal"].waitForExistence(timeout: 2))
125 | healthApp.tables.textFields["cal"].tap()
126 | healthApp.tables.textFields["cal"].typeText("42")
| `- warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
127 | case .restingHeartRate:
128 | XCTAssert(healthApp.tables.textFields["BPM"].waitForExistence(timeout: 2))
XCTest.XCUIElementQuery:24:21: note: subscript declared here
22 | @available(swift, obsoleted: 3, renamed: "element(matching:identifier:)")
23 | open func elementMatchingType(_ elementType: XCUIElement.ElementType, identifier: String?) -> XCUIElement
24 | @MainActor open subscript(key: String) -> XCUIElement { get }
| `- note: subscript declared here
25 | @available(*, unavailable, message: "use subscripting")
26 | open func objectForKeyedSubscript(_ key: String) -> XCUIElement
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:126:30: warning: main actor-isolated property 'textFields' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
124 | XCTAssert(healthApp.tables.textFields["cal"].waitForExistence(timeout: 2))
125 | healthApp.tables.textFields["cal"].tap()
126 | healthApp.tables.textFields["cal"].typeText("42")
| `- warning: main actor-isolated property 'textFields' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
127 | case .restingHeartRate:
128 | XCTAssert(healthApp.tables.textFields["BPM"].waitForExistence(timeout: 2))
XCTest.XCUIElementQuery:99:25: note: property declared here
97 | @NSCopying open var scrollBars: XCUIElementQuery { get }
98 | @NSCopying open var staticTexts: XCUIElementQuery { get }
99 | @NSCopying open var textFields: XCUIElementQuery { get }
| `- note: property declared here
100 | @NSCopying open var secureTextFields: XCUIElementQuery { get }
101 | @NSCopying open var datePickers: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:126:23: warning: main actor-isolated property 'tables' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
124 | XCTAssert(healthApp.tables.textFields["cal"].waitForExistence(timeout: 2))
125 | healthApp.tables.textFields["cal"].tap()
126 | healthApp.tables.textFields["cal"].typeText("42")
| `- warning: main actor-isolated property 'tables' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
127 | case .restingHeartRate:
128 | XCTAssert(healthApp.tables.textFields["BPM"].waitForExistence(timeout: 2))
XCTest.XCUIElement:58:25: note: property declared here
56 | @NSCopying open var toolbars: XCUIElementQuery { get }
57 | @NSCopying open var statusBars: XCUIElementQuery { get }
58 | @NSCopying open var tables: XCUIElementQuery { get }
| `- note: property declared here
59 | @NSCopying open var tableRows: XCUIElementQuery { get }
60 | @NSCopying open var tableColumns: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:128:58: warning: call to main actor-isolated instance method 'waitForExistence(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
126 | healthApp.tables.textFields["cal"].typeText("42")
127 | case .restingHeartRate:
128 | XCTAssert(healthApp.tables.textFields["BPM"].waitForExistence(timeout: 2))
| `- warning: call to main actor-isolated instance method 'waitForExistence(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
129 | healthApp.tables.textFields["BPM"].tap()
130 | healthApp.tables.textFields["BPM"].typeText("80")
XCTest.XCUIElement:7:15: note: calls to instance method 'waitForExistence(timeout:)' from outside of its actor context are implicitly asynchronous
5 | public init()
6 | @MainActor open var exists: Bool { get }
7 | open func waitForExistence(timeout: TimeInterval) -> Bool
| `- note: calls to instance method 'waitForExistence(timeout:)' from outside of its actor context are implicitly asynchronous
8 | @available(swift, obsoleted: 3, renamed: "waitForExistence(timeout:)")
9 | open func waitForExistenceWithTimeout(_ timeout: TimeInterval) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:128:50: warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
126 | healthApp.tables.textFields["cal"].typeText("42")
127 | case .restingHeartRate:
128 | XCTAssert(healthApp.tables.textFields["BPM"].waitForExistence(timeout: 2))
| `- warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
129 | healthApp.tables.textFields["BPM"].tap()
130 | healthApp.tables.textFields["BPM"].typeText("80")
XCTest.XCUIElementQuery:24:21: note: subscript declared here
22 | @available(swift, obsoleted: 3, renamed: "element(matching:identifier:)")
23 | open func elementMatchingType(_ elementType: XCUIElement.ElementType, identifier: String?) -> XCUIElement
24 | @MainActor open subscript(key: String) -> XCUIElement { get }
| `- note: subscript declared here
25 | @available(*, unavailable, message: "use subscripting")
26 | open func objectForKeyedSubscript(_ key: String) -> XCUIElement
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:128:40: warning: main actor-isolated property 'textFields' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
126 | healthApp.tables.textFields["cal"].typeText("42")
127 | case .restingHeartRate:
128 | XCTAssert(healthApp.tables.textFields["BPM"].waitForExistence(timeout: 2))
| `- warning: main actor-isolated property 'textFields' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
129 | healthApp.tables.textFields["BPM"].tap()
130 | healthApp.tables.textFields["BPM"].typeText("80")
XCTest.XCUIElementQuery:99:25: note: property declared here
97 | @NSCopying open var scrollBars: XCUIElementQuery { get }
98 | @NSCopying open var staticTexts: XCUIElementQuery { get }
99 | @NSCopying open var textFields: XCUIElementQuery { get }
| `- note: property declared here
100 | @NSCopying open var secureTextFields: XCUIElementQuery { get }
101 | @NSCopying open var datePickers: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:128:33: warning: main actor-isolated property 'tables' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
126 | healthApp.tables.textFields["cal"].typeText("42")
127 | case .restingHeartRate:
128 | XCTAssert(healthApp.tables.textFields["BPM"].waitForExistence(timeout: 2))
| `- warning: main actor-isolated property 'tables' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
129 | healthApp.tables.textFields["BPM"].tap()
130 | healthApp.tables.textFields["BPM"].typeText("80")
XCTest.XCUIElement:58:25: note: property declared here
56 | @NSCopying open var toolbars: XCUIElementQuery { get }
57 | @NSCopying open var statusBars: XCUIElementQuery { get }
58 | @NSCopying open var tables: XCUIElementQuery { get }
| `- note: property declared here
59 | @NSCopying open var tableRows: XCUIElementQuery { get }
60 | @NSCopying open var tableColumns: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:129:48: warning: call to main actor-isolated instance method 'tap()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
127 | case .restingHeartRate:
128 | XCTAssert(healthApp.tables.textFields["BPM"].waitForExistence(timeout: 2))
129 | healthApp.tables.textFields["BPM"].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
130 | healthApp.tables.textFields["BPM"].typeText("80")
131 | case .electrocardiograms:
XCTest.XCUIElement:2:26: note: calls to instance method 'tap()' from outside of its actor context are implicitly asynchronous
1 | extension XCUIElement {
2 | @MainActor open func tap()
| `- note: calls to instance method 'tap()' from outside of its actor context are implicitly asynchronous
3 | open func doubleTap()
4 | open func press(forDuration duration: TimeInterval)
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:129:40: warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
127 | case .restingHeartRate:
128 | XCTAssert(healthApp.tables.textFields["BPM"].waitForExistence(timeout: 2))
129 | healthApp.tables.textFields["BPM"].tap()
| `- warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
130 | healthApp.tables.textFields["BPM"].typeText("80")
131 | case .electrocardiograms:
XCTest.XCUIElementQuery:24:21: note: subscript declared here
22 | @available(swift, obsoleted: 3, renamed: "element(matching:identifier:)")
23 | open func elementMatchingType(_ elementType: XCUIElement.ElementType, identifier: String?) -> XCUIElement
24 | @MainActor open subscript(key: String) -> XCUIElement { get }
| `- note: subscript declared here
25 | @available(*, unavailable, message: "use subscripting")
26 | open func objectForKeyedSubscript(_ key: String) -> XCUIElement
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:129:30: warning: main actor-isolated property 'textFields' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
127 | case .restingHeartRate:
128 | XCTAssert(healthApp.tables.textFields["BPM"].waitForExistence(timeout: 2))
129 | healthApp.tables.textFields["BPM"].tap()
| `- warning: main actor-isolated property 'textFields' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
130 | healthApp.tables.textFields["BPM"].typeText("80")
131 | case .electrocardiograms:
XCTest.XCUIElementQuery:99:25: note: property declared here
97 | @NSCopying open var scrollBars: XCUIElementQuery { get }
98 | @NSCopying open var staticTexts: XCUIElementQuery { get }
99 | @NSCopying open var textFields: XCUIElementQuery { get }
| `- note: property declared here
100 | @NSCopying open var secureTextFields: XCUIElementQuery { get }
101 | @NSCopying open var datePickers: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:129:23: warning: main actor-isolated property 'tables' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
127 | case .restingHeartRate:
128 | XCTAssert(healthApp.tables.textFields["BPM"].waitForExistence(timeout: 2))
129 | healthApp.tables.textFields["BPM"].tap()
| `- warning: main actor-isolated property 'tables' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
130 | healthApp.tables.textFields["BPM"].typeText("80")
131 | case .electrocardiograms:
XCTest.XCUIElement:58:25: note: property declared here
56 | @NSCopying open var toolbars: XCUIElementQuery { get }
57 | @NSCopying open var statusBars: XCUIElementQuery { get }
58 | @NSCopying open var tables: XCUIElementQuery { get }
| `- note: property declared here
59 | @NSCopying open var tableRows: XCUIElementQuery { get }
60 | @NSCopying open var tableColumns: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:130:48: warning: call to main actor-isolated instance method 'typeText' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
128 | XCTAssert(healthApp.tables.textFields["BPM"].waitForExistence(timeout: 2))
129 | healthApp.tables.textFields["BPM"].tap()
130 | healthApp.tables.textFields["BPM"].typeText("80")
| `- warning: call to main actor-isolated instance method 'typeText' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
131 | case .electrocardiograms:
132 | XCTAssert(healthApp.tables.staticTexts["High Heart Rate"].firstMatch.waitForExistence(timeout: 2))
XCTest.XCUIElement:2:26: note: calls to instance method 'typeText' from outside of its actor context are implicitly asynchronous
1 | extension XCUIElement {
2 | @MainActor open func typeText(_ text: String)
| `- note: calls to instance method 'typeText' from outside of its actor context are implicitly asynchronous
3 | open class func perform(withKeyModifiers flags: XCUIElement.KeyModifierFlags, block: () -> Void)
4 | @available(swift, obsoleted: 3, renamed: "perform(withKeyModifiers:block:)")
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:130:40: warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
128 | XCTAssert(healthApp.tables.textFields["BPM"].waitForExistence(timeout: 2))
129 | healthApp.tables.textFields["BPM"].tap()
130 | healthApp.tables.textFields["BPM"].typeText("80")
| `- warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
131 | case .electrocardiograms:
132 | XCTAssert(healthApp.tables.staticTexts["High Heart Rate"].firstMatch.waitForExistence(timeout: 2))
XCTest.XCUIElementQuery:24:21: note: subscript declared here
22 | @available(swift, obsoleted: 3, renamed: "element(matching:identifier:)")
23 | open func elementMatchingType(_ elementType: XCUIElement.ElementType, identifier: String?) -> XCUIElement
24 | @MainActor open subscript(key: String) -> XCUIElement { get }
| `- note: subscript declared here
25 | @available(*, unavailable, message: "use subscripting")
26 | open func objectForKeyedSubscript(_ key: String) -> XCUIElement
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:130:30: warning: main actor-isolated property 'textFields' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
128 | XCTAssert(healthApp.tables.textFields["BPM"].waitForExistence(timeout: 2))
129 | healthApp.tables.textFields["BPM"].tap()
130 | healthApp.tables.textFields["BPM"].typeText("80")
| `- warning: main actor-isolated property 'textFields' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
131 | case .electrocardiograms:
132 | XCTAssert(healthApp.tables.staticTexts["High Heart Rate"].firstMatch.waitForExistence(timeout: 2))
XCTest.XCUIElementQuery:99:25: note: property declared here
97 | @NSCopying open var scrollBars: XCUIElementQuery { get }
98 | @NSCopying open var staticTexts: XCUIElementQuery { get }
99 | @NSCopying open var textFields: XCUIElementQuery { get }
| `- note: property declared here
100 | @NSCopying open var secureTextFields: XCUIElementQuery { get }
101 | @NSCopying open var datePickers: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:130:23: warning: main actor-isolated property 'tables' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
128 | XCTAssert(healthApp.tables.textFields["BPM"].waitForExistence(timeout: 2))
129 | healthApp.tables.textFields["BPM"].tap()
130 | healthApp.tables.textFields["BPM"].typeText("80")
| `- warning: main actor-isolated property 'tables' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
131 | case .electrocardiograms:
132 | XCTAssert(healthApp.tables.staticTexts["High Heart Rate"].firstMatch.waitForExistence(timeout: 2))
XCTest.XCUIElement:58:25: note: property declared here
56 | @NSCopying open var toolbars: XCUIElementQuery { get }
57 | @NSCopying open var statusBars: XCUIElementQuery { get }
58 | @NSCopying open var tables: XCUIElementQuery { get }
| `- note: property declared here
59 | @NSCopying open var tableRows: XCUIElementQuery { get }
60 | @NSCopying open var tableColumns: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:132:82: warning: call to main actor-isolated instance method 'waitForExistence(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
130 | healthApp.tables.textFields["BPM"].typeText("80")
131 | case .electrocardiograms:
132 | XCTAssert(healthApp.tables.staticTexts["High Heart Rate"].firstMatch.waitForExistence(timeout: 2))
| `- warning: call to main actor-isolated instance method 'waitForExistence(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
133 | healthApp.tables.staticTexts["High Heart Rate"].firstMatch.tap()
134 | case .steps:
XCTest.XCUIElement:7:15: note: calls to instance method 'waitForExistence(timeout:)' from outside of its actor context are implicitly asynchronous
5 | public init()
6 | @MainActor open var exists: Bool { get }
7 | open func waitForExistence(timeout: TimeInterval) -> Bool
| `- note: calls to instance method 'waitForExistence(timeout:)' from outside of its actor context are implicitly asynchronous
8 | @available(swift, obsoleted: 3, renamed: "waitForExistence(timeout:)")
9 | open func waitForExistenceWithTimeout(_ timeout: TimeInterval) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:132:71: warning: main actor-isolated property 'firstMatch' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
130 | healthApp.tables.textFields["BPM"].typeText("80")
131 | case .electrocardiograms:
132 | XCTAssert(healthApp.tables.staticTexts["High Heart Rate"].firstMatch.waitForExistence(timeout: 2))
| `- warning: main actor-isolated property 'firstMatch' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
133 | healthApp.tables.staticTexts["High Heart Rate"].firstMatch.tap()
134 | case .steps:
XCTest.XCUIElement:116:14: note: property declared here
114 | @NSCopying open var otherElements: XCUIElementQuery { get }
115 | @NSCopying open var statusItems: XCUIElementQuery { get }
116 | open var firstMatch: XCUIElement { get }
| `- note: property declared here
117 | }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:132:51: warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
130 | healthApp.tables.textFields["BPM"].typeText("80")
131 | case .electrocardiograms:
132 | XCTAssert(healthApp.tables.staticTexts["High Heart Rate"].firstMatch.waitForExistence(timeout: 2))
| `- warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
133 | healthApp.tables.staticTexts["High Heart Rate"].firstMatch.tap()
134 | case .steps:
XCTest.XCUIElementQuery:24:21: note: subscript declared here
22 | @available(swift, obsoleted: 3, renamed: "element(matching:identifier:)")
23 | open func elementMatchingType(_ elementType: XCUIElement.ElementType, identifier: String?) -> XCUIElement
24 | @MainActor open subscript(key: String) -> XCUIElement { get }
| `- note: subscript declared here
25 | @available(*, unavailable, message: "use subscripting")
26 | open func objectForKeyedSubscript(_ key: String) -> XCUIElement
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:132:40: warning: main actor-isolated property 'staticTexts' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
130 | healthApp.tables.textFields["BPM"].typeText("80")
131 | case .electrocardiograms:
132 | XCTAssert(healthApp.tables.staticTexts["High Heart Rate"].firstMatch.waitForExistence(timeout: 2))
| `- warning: main actor-isolated property 'staticTexts' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
133 | healthApp.tables.staticTexts["High Heart Rate"].firstMatch.tap()
134 | case .steps:
XCTest.XCUIElementQuery:98:25: note: property declared here
96 | @NSCopying open var scrollViews: XCUIElementQuery { get }
97 | @NSCopying open var scrollBars: XCUIElementQuery { get }
98 | @NSCopying open var staticTexts: XCUIElementQuery { get }
| `- note: property declared here
99 | @NSCopying open var textFields: XCUIElementQuery { get }
100 | @NSCopying open var secureTextFields: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:132:33: warning: main actor-isolated property 'tables' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
130 | healthApp.tables.textFields["BPM"].typeText("80")
131 | case .electrocardiograms:
132 | XCTAssert(healthApp.tables.staticTexts["High Heart Rate"].firstMatch.waitForExistence(timeout: 2))
| `- warning: main actor-isolated property 'tables' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
133 | healthApp.tables.staticTexts["High Heart Rate"].firstMatch.tap()
134 | case .steps:
XCTest.XCUIElement:58:25: note: property declared here
56 | @NSCopying open var toolbars: XCUIElementQuery { get }
57 | @NSCopying open var statusBars: XCUIElementQuery { get }
58 | @NSCopying open var tables: XCUIElementQuery { get }
| `- note: property declared here
59 | @NSCopying open var tableRows: XCUIElementQuery { get }
60 | @NSCopying open var tableColumns: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:133:72: warning: call to main actor-isolated instance method 'tap()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
131 | case .electrocardiograms:
132 | XCTAssert(healthApp.tables.staticTexts["High Heart Rate"].firstMatch.waitForExistence(timeout: 2))
133 | healthApp.tables.staticTexts["High Heart Rate"].firstMatch.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
134 | case .steps:
135 | XCTAssert(healthApp.tables.textFields["Steps"].waitForExistence(timeout: 2))
XCTest.XCUIElement:2:26: note: calls to instance method 'tap()' from outside of its actor context are implicitly asynchronous
1 | extension XCUIElement {
2 | @MainActor open func tap()
| `- note: calls to instance method 'tap()' from outside of its actor context are implicitly asynchronous
3 | open func doubleTap()
4 | open func press(forDuration duration: TimeInterval)
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:133:61: warning: main actor-isolated property 'firstMatch' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
131 | case .electrocardiograms:
132 | XCTAssert(healthApp.tables.staticTexts["High Heart Rate"].firstMatch.waitForExistence(timeout: 2))
133 | healthApp.tables.staticTexts["High Heart Rate"].firstMatch.tap()
| `- warning: main actor-isolated property 'firstMatch' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
134 | case .steps:
135 | XCTAssert(healthApp.tables.textFields["Steps"].waitForExistence(timeout: 2))
XCTest.XCUIElement:116:14: note: property declared here
114 | @NSCopying open var otherElements: XCUIElementQuery { get }
115 | @NSCopying open var statusItems: XCUIElementQuery { get }
116 | open var firstMatch: XCUIElement { get }
| `- note: property declared here
117 | }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:133:41: warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
131 | case .electrocardiograms:
132 | XCTAssert(healthApp.tables.staticTexts["High Heart Rate"].firstMatch.waitForExistence(timeout: 2))
133 | healthApp.tables.staticTexts["High Heart Rate"].firstMatch.tap()
| `- warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
134 | case .steps:
135 | XCTAssert(healthApp.tables.textFields["Steps"].waitForExistence(timeout: 2))
XCTest.XCUIElementQuery:24:21: note: subscript declared here
22 | @available(swift, obsoleted: 3, renamed: "element(matching:identifier:)")
23 | open func elementMatchingType(_ elementType: XCUIElement.ElementType, identifier: String?) -> XCUIElement
24 | @MainActor open subscript(key: String) -> XCUIElement { get }
| `- note: subscript declared here
25 | @available(*, unavailable, message: "use subscripting")
26 | open func objectForKeyedSubscript(_ key: String) -> XCUIElement
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:133:30: warning: main actor-isolated property 'staticTexts' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
131 | case .electrocardiograms:
132 | XCTAssert(healthApp.tables.staticTexts["High Heart Rate"].firstMatch.waitForExistence(timeout: 2))
133 | healthApp.tables.staticTexts["High Heart Rate"].firstMatch.tap()
| `- warning: main actor-isolated property 'staticTexts' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
134 | case .steps:
135 | XCTAssert(healthApp.tables.textFields["Steps"].waitForExistence(timeout: 2))
XCTest.XCUIElementQuery:98:25: note: property declared here
96 | @NSCopying open var scrollViews: XCUIElementQuery { get }
97 | @NSCopying open var scrollBars: XCUIElementQuery { get }
98 | @NSCopying open var staticTexts: XCUIElementQuery { get }
| `- note: property declared here
99 | @NSCopying open var textFields: XCUIElementQuery { get }
100 | @NSCopying open var secureTextFields: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:133:23: warning: main actor-isolated property 'tables' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
131 | case .electrocardiograms:
132 | XCTAssert(healthApp.tables.staticTexts["High Heart Rate"].firstMatch.waitForExistence(timeout: 2))
133 | healthApp.tables.staticTexts["High Heart Rate"].firstMatch.tap()
| `- warning: main actor-isolated property 'tables' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
134 | case .steps:
135 | XCTAssert(healthApp.tables.textFields["Steps"].waitForExistence(timeout: 2))
XCTest.XCUIElement:58:25: note: property declared here
56 | @NSCopying open var toolbars: XCUIElementQuery { get }
57 | @NSCopying open var statusBars: XCUIElementQuery { get }
58 | @NSCopying open var tables: XCUIElementQuery { get }
| `- note: property declared here
59 | @NSCopying open var tableRows: XCUIElementQuery { get }
60 | @NSCopying open var tableColumns: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:135:60: warning: call to main actor-isolated instance method 'waitForExistence(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
133 | healthApp.tables.staticTexts["High Heart Rate"].firstMatch.tap()
134 | case .steps:
135 | XCTAssert(healthApp.tables.textFields["Steps"].waitForExistence(timeout: 2))
| `- warning: call to main actor-isolated instance method 'waitForExistence(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
136 | healthApp.tables.textFields["Steps"].tap()
137 | healthApp.tables.textFields["Steps"].typeText("42")
XCTest.XCUIElement:7:15: note: calls to instance method 'waitForExistence(timeout:)' from outside of its actor context are implicitly asynchronous
5 | public init()
6 | @MainActor open var exists: Bool { get }
7 | open func waitForExistence(timeout: TimeInterval) -> Bool
| `- note: calls to instance method 'waitForExistence(timeout:)' from outside of its actor context are implicitly asynchronous
8 | @available(swift, obsoleted: 3, renamed: "waitForExistence(timeout:)")
9 | open func waitForExistenceWithTimeout(_ timeout: TimeInterval) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:135:50: warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
133 | healthApp.tables.staticTexts["High Heart Rate"].firstMatch.tap()
134 | case .steps:
135 | XCTAssert(healthApp.tables.textFields["Steps"].waitForExistence(timeout: 2))
| `- warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
136 | healthApp.tables.textFields["Steps"].tap()
137 | healthApp.tables.textFields["Steps"].typeText("42")
XCTest.XCUIElementQuery:24:21: note: subscript declared here
22 | @available(swift, obsoleted: 3, renamed: "element(matching:identifier:)")
23 | open func elementMatchingType(_ elementType: XCUIElement.ElementType, identifier: String?) -> XCUIElement
24 | @MainActor open subscript(key: String) -> XCUIElement { get }
| `- note: subscript declared here
25 | @available(*, unavailable, message: "use subscripting")
26 | open func objectForKeyedSubscript(_ key: String) -> XCUIElement
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:135:40: warning: main actor-isolated property 'textFields' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
133 | healthApp.tables.staticTexts["High Heart Rate"].firstMatch.tap()
134 | case .steps:
135 | XCTAssert(healthApp.tables.textFields["Steps"].waitForExistence(timeout: 2))
| `- warning: main actor-isolated property 'textFields' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
136 | healthApp.tables.textFields["Steps"].tap()
137 | healthApp.tables.textFields["Steps"].typeText("42")
XCTest.XCUIElementQuery:99:25: note: property declared here
97 | @NSCopying open var scrollBars: XCUIElementQuery { get }
98 | @NSCopying open var staticTexts: XCUIElementQuery { get }
99 | @NSCopying open var textFields: XCUIElementQuery { get }
| `- note: property declared here
100 | @NSCopying open var secureTextFields: XCUIElementQuery { get }
101 | @NSCopying open var datePickers: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:135:33: warning: main actor-isolated property 'tables' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
133 | healthApp.tables.staticTexts["High Heart Rate"].firstMatch.tap()
134 | case .steps:
135 | XCTAssert(healthApp.tables.textFields["Steps"].waitForExistence(timeout: 2))
| `- warning: main actor-isolated property 'tables' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
136 | healthApp.tables.textFields["Steps"].tap()
137 | healthApp.tables.textFields["Steps"].typeText("42")
XCTest.XCUIElement:58:25: note: property declared here
56 | @NSCopying open var toolbars: XCUIElementQuery { get }
57 | @NSCopying open var statusBars: XCUIElementQuery { get }
58 | @NSCopying open var tables: XCUIElementQuery { get }
| `- note: property declared here
59 | @NSCopying open var tableRows: XCUIElementQuery { get }
60 | @NSCopying open var tableColumns: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:136:50: warning: call to main actor-isolated instance method 'tap()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
134 | case .steps:
135 | XCTAssert(healthApp.tables.textFields["Steps"].waitForExistence(timeout: 2))
136 | healthApp.tables.textFields["Steps"].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
137 | healthApp.tables.textFields["Steps"].typeText("42")
138 | case .pushes:
XCTest.XCUIElement:2:26: note: calls to instance method 'tap()' from outside of its actor context are implicitly asynchronous
1 | extension XCUIElement {
2 | @MainActor open func tap()
| `- note: calls to instance method 'tap()' from outside of its actor context are implicitly asynchronous
3 | open func doubleTap()
4 | open func press(forDuration duration: TimeInterval)
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:136:40: warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
134 | case .steps:
135 | XCTAssert(healthApp.tables.textFields["Steps"].waitForExistence(timeout: 2))
136 | healthApp.tables.textFields["Steps"].tap()
| `- warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
137 | healthApp.tables.textFields["Steps"].typeText("42")
138 | case .pushes:
XCTest.XCUIElementQuery:24:21: note: subscript declared here
22 | @available(swift, obsoleted: 3, renamed: "element(matching:identifier:)")
23 | open func elementMatchingType(_ elementType: XCUIElement.ElementType, identifier: String?) -> XCUIElement
24 | @MainActor open subscript(key: String) -> XCUIElement { get }
| `- note: subscript declared here
25 | @available(*, unavailable, message: "use subscripting")
26 | open func objectForKeyedSubscript(_ key: String) -> XCUIElement
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:136:30: warning: main actor-isolated property 'textFields' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
134 | case .steps:
135 | XCTAssert(healthApp.tables.textFields["Steps"].waitForExistence(timeout: 2))
136 | healthApp.tables.textFields["Steps"].tap()
| `- warning: main actor-isolated property 'textFields' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
137 | healthApp.tables.textFields["Steps"].typeText("42")
138 | case .pushes:
XCTest.XCUIElementQuery:99:25: note: property declared here
97 | @NSCopying open var scrollBars: XCUIElementQuery { get }
98 | @NSCopying open var staticTexts: XCUIElementQuery { get }
99 | @NSCopying open var textFields: XCUIElementQuery { get }
| `- note: property declared here
100 | @NSCopying open var secureTextFields: XCUIElementQuery { get }
101 | @NSCopying open var datePickers: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:136:23: warning: main actor-isolated property 'tables' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
134 | case .steps:
135 | XCTAssert(healthApp.tables.textFields["Steps"].waitForExistence(timeout: 2))
136 | healthApp.tables.textFields["Steps"].tap()
| `- warning: main actor-isolated property 'tables' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
137 | healthApp.tables.textFields["Steps"].typeText("42")
138 | case .pushes:
XCTest.XCUIElement:58:25: note: property declared here
56 | @NSCopying open var toolbars: XCUIElementQuery { get }
57 | @NSCopying open var statusBars: XCUIElementQuery { get }
58 | @NSCopying open var tables: XCUIElementQuery { get }
| `- note: property declared here
59 | @NSCopying open var tableRows: XCUIElementQuery { get }
60 | @NSCopying open var tableColumns: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:137:50: warning: call to main actor-isolated instance method 'typeText' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
135 | XCTAssert(healthApp.tables.textFields["Steps"].waitForExistence(timeout: 2))
136 | healthApp.tables.textFields["Steps"].tap()
137 | healthApp.tables.textFields["Steps"].typeText("42")
| `- warning: call to main actor-isolated instance method 'typeText' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
138 | case .pushes:
139 | XCTAssert(healthApp.tables.textFields["Pushes"].waitForExistence(timeout: 2))
XCTest.XCUIElement:2:26: note: calls to instance method 'typeText' from outside of its actor context are implicitly asynchronous
1 | extension XCUIElement {
2 | @MainActor open func typeText(_ text: String)
| `- note: calls to instance method 'typeText' from outside of its actor context are implicitly asynchronous
3 | open class func perform(withKeyModifiers flags: XCUIElement.KeyModifierFlags, block: () -> Void)
4 | @available(swift, obsoleted: 3, renamed: "perform(withKeyModifiers:block:)")
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:137:40: warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
135 | XCTAssert(healthApp.tables.textFields["Steps"].waitForExistence(timeout: 2))
136 | healthApp.tables.textFields["Steps"].tap()
137 | healthApp.tables.textFields["Steps"].typeText("42")
| `- warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
138 | case .pushes:
139 | XCTAssert(healthApp.tables.textFields["Pushes"].waitForExistence(timeout: 2))
XCTest.XCUIElementQuery:24:21: note: subscript declared here
22 | @available(swift, obsoleted: 3, renamed: "element(matching:identifier:)")
23 | open func elementMatchingType(_ elementType: XCUIElement.ElementType, identifier: String?) -> XCUIElement
24 | @MainActor open subscript(key: String) -> XCUIElement { get }
| `- note: subscript declared here
25 | @available(*, unavailable, message: "use subscripting")
26 | open func objectForKeyedSubscript(_ key: String) -> XCUIElement
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:137:30: warning: main actor-isolated property 'textFields' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
135 | XCTAssert(healthApp.tables.textFields["Steps"].waitForExistence(timeout: 2))
136 | healthApp.tables.textFields["Steps"].tap()
137 | healthApp.tables.textFields["Steps"].typeText("42")
| `- warning: main actor-isolated property 'textFields' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
138 | case .pushes:
139 | XCTAssert(healthApp.tables.textFields["Pushes"].waitForExistence(timeout: 2))
XCTest.XCUIElementQuery:99:25: note: property declared here
97 | @NSCopying open var scrollBars: XCUIElementQuery { get }
98 | @NSCopying open var staticTexts: XCUIElementQuery { get }
99 | @NSCopying open var textFields: XCUIElementQuery { get }
| `- note: property declared here
100 | @NSCopying open var secureTextFields: XCUIElementQuery { get }
101 | @NSCopying open var datePickers: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:137:23: warning: main actor-isolated property 'tables' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
135 | XCTAssert(healthApp.tables.textFields["Steps"].waitForExistence(timeout: 2))
136 | healthApp.tables.textFields["Steps"].tap()
137 | healthApp.tables.textFields["Steps"].typeText("42")
| `- warning: main actor-isolated property 'tables' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
138 | case .pushes:
139 | XCTAssert(healthApp.tables.textFields["Pushes"].waitForExistence(timeout: 2))
XCTest.XCUIElement:58:25: note: property declared here
56 | @NSCopying open var toolbars: XCUIElementQuery { get }
57 | @NSCopying open var statusBars: XCUIElementQuery { get }
58 | @NSCopying open var tables: XCUIElementQuery { get }
| `- note: property declared here
59 | @NSCopying open var tableRows: XCUIElementQuery { get }
60 | @NSCopying open var tableColumns: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:139:61: warning: call to main actor-isolated instance method 'waitForExistence(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | healthApp.tables.textFields["Steps"].typeText("42")
138 | case .pushes:
139 | XCTAssert(healthApp.tables.textFields["Pushes"].waitForExistence(timeout: 2))
| `- warning: call to main actor-isolated instance method 'waitForExistence(timeout:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
140 | healthApp.tables.textFields["Pushes"].tap()
141 | healthApp.tables.textFields["Pushes"].typeText("42")
XCTest.XCUIElement:7:15: note: calls to instance method 'waitForExistence(timeout:)' from outside of its actor context are implicitly asynchronous
5 | public init()
6 | @MainActor open var exists: Bool { get }
7 | open func waitForExistence(timeout: TimeInterval) -> Bool
| `- note: calls to instance method 'waitForExistence(timeout:)' from outside of its actor context are implicitly asynchronous
8 | @available(swift, obsoleted: 3, renamed: "waitForExistence(timeout:)")
9 | open func waitForExistenceWithTimeout(_ timeout: TimeInterval) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:139:50: warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
137 | healthApp.tables.textFields["Steps"].typeText("42")
138 | case .pushes:
139 | XCTAssert(healthApp.tables.textFields["Pushes"].waitForExistence(timeout: 2))
| `- warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
140 | healthApp.tables.textFields["Pushes"].tap()
141 | healthApp.tables.textFields["Pushes"].typeText("42")
XCTest.XCUIElementQuery:24:21: note: subscript declared here
22 | @available(swift, obsoleted: 3, renamed: "element(matching:identifier:)")
23 | open func elementMatchingType(_ elementType: XCUIElement.ElementType, identifier: String?) -> XCUIElement
24 | @MainActor open subscript(key: String) -> XCUIElement { get }
| `- note: subscript declared here
25 | @available(*, unavailable, message: "use subscripting")
26 | open func objectForKeyedSubscript(_ key: String) -> XCUIElement
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:139:40: warning: main actor-isolated property 'textFields' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
137 | healthApp.tables.textFields["Steps"].typeText("42")
138 | case .pushes:
139 | XCTAssert(healthApp.tables.textFields["Pushes"].waitForExistence(timeout: 2))
| `- warning: main actor-isolated property 'textFields' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
140 | healthApp.tables.textFields["Pushes"].tap()
141 | healthApp.tables.textFields["Pushes"].typeText("42")
XCTest.XCUIElementQuery:99:25: note: property declared here
97 | @NSCopying open var scrollBars: XCUIElementQuery { get }
98 | @NSCopying open var staticTexts: XCUIElementQuery { get }
99 | @NSCopying open var textFields: XCUIElementQuery { get }
| `- note: property declared here
100 | @NSCopying open var secureTextFields: XCUIElementQuery { get }
101 | @NSCopying open var datePickers: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:139:33: warning: main actor-isolated property 'tables' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
137 | healthApp.tables.textFields["Steps"].typeText("42")
138 | case .pushes:
139 | XCTAssert(healthApp.tables.textFields["Pushes"].waitForExistence(timeout: 2))
| `- warning: main actor-isolated property 'tables' can not be referenced from a non-isolated autoclosure; this is an error in the Swift 6 language mode
140 | healthApp.tables.textFields["Pushes"].tap()
141 | healthApp.tables.textFields["Pushes"].typeText("42")
XCTest.XCUIElement:58:25: note: property declared here
56 | @NSCopying open var toolbars: XCUIElementQuery { get }
57 | @NSCopying open var statusBars: XCUIElementQuery { get }
58 | @NSCopying open var tables: XCUIElementQuery { get }
| `- note: property declared here
59 | @NSCopying open var tableRows: XCUIElementQuery { get }
60 | @NSCopying open var tableColumns: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:140:51: warning: call to main actor-isolated instance method 'tap()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
138 | case .pushes:
139 | XCTAssert(healthApp.tables.textFields["Pushes"].waitForExistence(timeout: 2))
140 | healthApp.tables.textFields["Pushes"].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
141 | healthApp.tables.textFields["Pushes"].typeText("42")
142 | }
XCTest.XCUIElement:2:26: note: calls to instance method 'tap()' from outside of its actor context are implicitly asynchronous
1 | extension XCUIElement {
2 | @MainActor open func tap()
| `- note: calls to instance method 'tap()' from outside of its actor context are implicitly asynchronous
3 | open func doubleTap()
4 | open func press(forDuration duration: TimeInterval)
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:140:40: warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
138 | case .pushes:
139 | XCTAssert(healthApp.tables.textFields["Pushes"].waitForExistence(timeout: 2))
140 | healthApp.tables.textFields["Pushes"].tap()
| `- warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
141 | healthApp.tables.textFields["Pushes"].typeText("42")
142 | }
XCTest.XCUIElementQuery:24:21: note: subscript declared here
22 | @available(swift, obsoleted: 3, renamed: "element(matching:identifier:)")
23 | open func elementMatchingType(_ elementType: XCUIElement.ElementType, identifier: String?) -> XCUIElement
24 | @MainActor open subscript(key: String) -> XCUIElement { get }
| `- note: subscript declared here
25 | @available(*, unavailable, message: "use subscripting")
26 | open func objectForKeyedSubscript(_ key: String) -> XCUIElement
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:140:30: warning: main actor-isolated property 'textFields' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
138 | case .pushes:
139 | XCTAssert(healthApp.tables.textFields["Pushes"].waitForExistence(timeout: 2))
140 | healthApp.tables.textFields["Pushes"].tap()
| `- warning: main actor-isolated property 'textFields' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
141 | healthApp.tables.textFields["Pushes"].typeText("42")
142 | }
XCTest.XCUIElementQuery:99:25: note: property declared here
97 | @NSCopying open var scrollBars: XCUIElementQuery { get }
98 | @NSCopying open var staticTexts: XCUIElementQuery { get }
99 | @NSCopying open var textFields: XCUIElementQuery { get }
| `- note: property declared here
100 | @NSCopying open var secureTextFields: XCUIElementQuery { get }
101 | @NSCopying open var datePickers: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:140:23: warning: main actor-isolated property 'tables' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
138 | case .pushes:
139 | XCTAssert(healthApp.tables.textFields["Pushes"].waitForExistence(timeout: 2))
140 | healthApp.tables.textFields["Pushes"].tap()
| `- warning: main actor-isolated property 'tables' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
141 | healthApp.tables.textFields["Pushes"].typeText("42")
142 | }
XCTest.XCUIElement:58:25: note: property declared here
56 | @NSCopying open var toolbars: XCUIElementQuery { get }
57 | @NSCopying open var statusBars: XCUIElementQuery { get }
58 | @NSCopying open var tables: XCUIElementQuery { get }
| `- note: property declared here
59 | @NSCopying open var tableRows: XCUIElementQuery { get }
60 | @NSCopying open var tableColumns: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:141:51: warning: call to main actor-isolated instance method 'typeText' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
139 | XCTAssert(healthApp.tables.textFields["Pushes"].waitForExistence(timeout: 2))
140 | healthApp.tables.textFields["Pushes"].tap()
141 | healthApp.tables.textFields["Pushes"].typeText("42")
| `- warning: call to main actor-isolated instance method 'typeText' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
142 | }
143 | }
XCTest.XCUIElement:2:26: note: calls to instance method 'typeText' from outside of its actor context are implicitly asynchronous
1 | extension XCUIElement {
2 | @MainActor open func typeText(_ text: String)
| `- note: calls to instance method 'typeText' from outside of its actor context are implicitly asynchronous
3 | open class func perform(withKeyModifiers flags: XCUIElement.KeyModifierFlags, block: () -> Void)
4 | @available(swift, obsoleted: 3, renamed: "perform(withKeyModifiers:block:)")
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:141:40: warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
139 | XCTAssert(healthApp.tables.textFields["Pushes"].waitForExistence(timeout: 2))
140 | healthApp.tables.textFields["Pushes"].tap()
141 | healthApp.tables.textFields["Pushes"].typeText("42")
| `- warning: main actor-isolated subscript 'subscript(_:)' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
142 | }
143 | }
XCTest.XCUIElementQuery:24:21: note: subscript declared here
22 | @available(swift, obsoleted: 3, renamed: "element(matching:identifier:)")
23 | open func elementMatchingType(_ elementType: XCUIElement.ElementType, identifier: String?) -> XCUIElement
24 | @MainActor open subscript(key: String) -> XCUIElement { get }
| `- note: subscript declared here
25 | @available(*, unavailable, message: "use subscripting")
26 | open func objectForKeyedSubscript(_ key: String) -> XCUIElement
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:141:30: warning: main actor-isolated property 'textFields' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
139 | XCTAssert(healthApp.tables.textFields["Pushes"].waitForExistence(timeout: 2))
140 | healthApp.tables.textFields["Pushes"].tap()
141 | healthApp.tables.textFields["Pushes"].typeText("42")
| `- warning: main actor-isolated property 'textFields' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
142 | }
143 | }
XCTest.XCUIElementQuery:99:25: note: property declared here
97 | @NSCopying open var scrollBars: XCUIElementQuery { get }
98 | @NSCopying open var staticTexts: XCUIElementQuery { get }
99 | @NSCopying open var textFields: XCUIElementQuery { get }
| `- note: property declared here
100 | @NSCopying open var secureTextFields: XCUIElementQuery { get }
101 | @NSCopying open var datePickers: XCUIElementQuery { get }
/Users/admin/builder/spi-builder-workspace/Sources/XCTHealthKit/HealthAppDataType.swift:141:23: warning: main actor-isolated property 'tables' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
117 |
118 | /// Enters a new mock value in the Apple Health app
119 | public func addData() {
| `- note: add '@MainActor' to make instance method 'addData()' part of global actor 'MainActor'
120 | let healthApp = XCUIApplication(bundleIdentifier: "com.apple.Health")
121 |
:
139 | XCTAssert(healthApp.tables.textFields["Pushes"].waitForExistence(timeout: 2))
140 | healthApp.tables.textFields["Pushes"].tap()
141 | healthApp.tables.textFields["Pushes"].typeText("42")
| `- warning: main actor-isolated property 'tables' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
142 | }
143 | }
XCTest.XCUIElement:58:25: note: property declared here
56 | @NSCopying open var toolbars: XCUIElementQuery { get }
57 | @NSCopying open var statusBars: XCUIElementQuery { get }
58 | @NSCopying open var tables: XCUIElementQuery { get }
| `- note: property declared here
59 | @NSCopying open var tableRows: XCUIElementQuery { get }
60 | @NSCopying open var tableColumns: XCUIElementQuery { get }
BUILD FAILURE 6.0 macosSpm