Build Information
Failed to build HealthKitCombine, reference master (19207c
), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 04:26:22 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/CombineHarvesters/HealthKitCombine.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/CombineHarvesters/HealthKitCombine
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 19207c2 Add a fix for request(_:) being called multiple times
Cloned https://github.com/CombineHarvesters/HealthKitCombine.git
Revision (git rev-parse @):
19207c2d5d91c0290c5a1333f9f5e7cddd55d0c3
SUCCESS checkout https://github.com/CombineHarvesters/HealthKitCombine.git at master
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "healthkitcombine",
"name": "HealthKitCombine",
"url": "https://github.com/CombineHarvesters/HealthKitCombine.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/HealthKitCombine",
"dependencies": [
]
}
]
}
Fetching https://github.com/CombineHarvesters/HealthKitCombine.git
[1/77] Fetching healthkitcombine
Fetched https://github.com/CombineHarvesters/HealthKitCombine.git from cache (0.63s)
Creating working copy for https://github.com/CombineHarvesters/HealthKitCombine.git
Working copy of https://github.com/CombineHarvesters/HealthKitCombine.git resolved at master (19207c2)
warning: '.resolve-product-dependencies': dependency 'healthkitcombine' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/CombineHarvesters/HealthKitCombine.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/6] Emitting module HealthKitCombine
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/AuthorizationRequest.swift:8:20: error: 'HKSampleType' is only available in macOS 13.0 or newer
3 | import HealthKit
4 |
5 | extension HKHealthStore {
| `- note: add @available attribute to enclosing extension
6 |
7 | public func requestAuthorization(
| `- note: add @available attribute to enclosing instance method
8 | share: Set<HKSampleType>? = nil,
| `- error: 'HKSampleType' is only available in macOS 13.0 or newer
9 | read: Set<HKSampleType>? = nil
10 | ) -> AuthorizationRequest {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/AuthorizationRequest.swift:9:19: error: 'HKSampleType' is only available in macOS 13.0 or newer
3 | import HealthKit
4 |
5 | extension HKHealthStore {
| `- note: add @available attribute to enclosing extension
6 |
7 | public func requestAuthorization(
| `- note: add @available attribute to enclosing instance method
8 | share: Set<HKSampleType>? = nil,
9 | read: Set<HKSampleType>? = nil
| `- error: 'HKSampleType' is only available in macOS 13.0 or newer
10 | ) -> AuthorizationRequest {
11 | AuthorizationRequest(store: self, share: share, read: read)
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/AuthorizationRequest.swift:5:11: error: 'HKHealthStore' is only available in macOS 13.0 or newer
3 | import HealthKit
4 |
5 | extension HKHealthStore {
| | `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing extension
6 |
7 | public func requestAuthorization(
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/AuthorizationRequest.swift:16:28: error: 'HKHealthStore' is only available in macOS 13.0 or newer
13 | }
14 |
15 | public struct AuthorizationRequest {
| `- note: add @available attribute to enclosing struct
16 | fileprivate let store: HKHealthStore
| `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
17 | fileprivate let share: Set<HKSampleType>?
18 | fileprivate let read: Set<HKSampleType>?
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/AuthorizationRequest.swift:17:32: error: 'HKSampleType' is only available in macOS 13.0 or newer
13 | }
14 |
15 | public struct AuthorizationRequest {
| `- note: add @available attribute to enclosing struct
16 | fileprivate let store: HKHealthStore
17 | fileprivate let share: Set<HKSampleType>?
| `- error: 'HKSampleType' is only available in macOS 13.0 or newer
18 | fileprivate let read: Set<HKSampleType>?
19 | }
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/AuthorizationRequest.swift:18:31: error: 'HKSampleType' is only available in macOS 13.0 or newer
13 | }
14 |
15 | public struct AuthorizationRequest {
| `- note: add @available attribute to enclosing struct
16 | fileprivate let store: HKHealthStore
17 | fileprivate let share: Set<HKSampleType>?
18 | fileprivate let read: Set<HKSampleType>?
| `- error: 'HKSampleType' is only available in macOS 13.0 or newer
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/AuthorizationRequest.swift:28:29: error: 'Subscriber' is only available in macOS 10.15 or newer
19 | }
20 |
21 | extension AuthorizationRequest: Publisher {
| `- note: add @available attribute to enclosing extension
22 |
23 | public typealias Output = Void
24 | public typealias Failure = Error
25 |
26 | public func receive<Subscriber>(subscriber: Subscriber)
| `- note: add @available attribute to enclosing instance method
27 | where
28 | Subscriber: Combine.Subscriber,
| `- error: 'Subscriber' is only available in macOS 10.15 or newer
29 | Subscriber.Failure == Failure,
30 | Subscriber.Input == Output
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/AuthorizationRequest.swift:49:28: error: 'HKHealthStore' is only available in macOS 13.0 or newer
40 | extension AuthorizationRequest {
41 |
42 | fileprivate final class Subscription<Subscriber>
| `- note: add @available attribute to enclosing generic class
43 | where
44 | Subscriber: Combine.Subscriber,
:
47 | {
48 | private let subscriber: Subscriber
49 | private let store: HKHealthStore
| `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
50 | private let share: Set<HKSampleType>?
51 | private let read: Set<HKSampleType>?
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/AuthorizationRequest.swift:50:32: error: 'HKSampleType' is only available in macOS 13.0 or newer
40 | extension AuthorizationRequest {
41 |
42 | fileprivate final class Subscription<Subscriber>
| `- note: add @available attribute to enclosing generic class
43 | where
44 | Subscriber: Combine.Subscriber,
:
48 | private let subscriber: Subscriber
49 | private let store: HKHealthStore
50 | private let share: Set<HKSampleType>?
| `- error: 'HKSampleType' is only available in macOS 13.0 or newer
51 | private let read: Set<HKSampleType>?
52 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/AuthorizationRequest.swift:51:31: error: 'HKSampleType' is only available in macOS 13.0 or newer
40 | extension AuthorizationRequest {
41 |
42 | fileprivate final class Subscription<Subscriber>
| `- note: add @available attribute to enclosing generic class
43 | where
44 | Subscriber: Combine.Subscriber,
:
49 | private let store: HKHealthStore
50 | private let share: Set<HKSampleType>?
51 | private let read: Set<HKSampleType>?
| `- error: 'HKSampleType' is only available in macOS 13.0 or newer
52 |
53 | fileprivate init(subscriber: Subscriber,
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/AuthorizationRequest.swift:54:33: error: 'HKHealthStore' is only available in macOS 13.0 or newer
40 | extension AuthorizationRequest {
41 |
42 | fileprivate final class Subscription<Subscriber>
| `- note: add @available attribute to enclosing generic class
43 | where
44 | Subscriber: Combine.Subscriber,
:
51 | private let read: Set<HKSampleType>?
52 |
53 | fileprivate init(subscriber: Subscriber,
| `- note: add @available attribute to enclosing initializer
54 | store: HKHealthStore,
| `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
55 | share: Set<HKSampleType>?,
56 | read: Set<HKSampleType>?) {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/AuthorizationRequest.swift:55:37: error: 'HKSampleType' is only available in macOS 13.0 or newer
40 | extension AuthorizationRequest {
41 |
42 | fileprivate final class Subscription<Subscriber>
| `- note: add @available attribute to enclosing generic class
43 | where
44 | Subscriber: Combine.Subscriber,
:
51 | private let read: Set<HKSampleType>?
52 |
53 | fileprivate init(subscriber: Subscriber,
| `- note: add @available attribute to enclosing initializer
54 | store: HKHealthStore,
55 | share: Set<HKSampleType>?,
| `- error: 'HKSampleType' is only available in macOS 13.0 or newer
56 | read: Set<HKSampleType>?) {
57 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/AuthorizationRequest.swift:56:36: error: 'HKSampleType' is only available in macOS 13.0 or newer
40 | extension AuthorizationRequest {
41 |
42 | fileprivate final class Subscription<Subscriber>
| `- note: add @available attribute to enclosing generic class
43 | where
44 | Subscriber: Combine.Subscriber,
:
51 | private let read: Set<HKSampleType>?
52 |
53 | fileprivate init(subscriber: Subscriber,
| `- note: add @available attribute to enclosing initializer
54 | store: HKHealthStore,
55 | share: Set<HKSampleType>?,
56 | read: Set<HKSampleType>?) {
| `- error: 'HKSampleType' is only available in macOS 13.0 or newer
57 |
58 | self.subscriber = subscriber
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/AuthorizationRequest.swift:44:29: error: 'Subscriber' is only available in macOS 10.15 or newer
40 | extension AuthorizationRequest {
41 |
42 | fileprivate final class Subscription<Subscriber>
| |- note: add @available attribute to enclosing generic class
| `- note: add @available attribute to enclosing generic class
43 | where
44 | Subscriber: Combine.Subscriber,
| `- error: 'Subscriber' is only available in macOS 10.15 or newer
45 | Subscriber.Failure == Failure,
46 | Subscriber.Input == Output
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/AuthorizationRequest.swift:68:28: error: 'Subscribers' is only available in macOS 10.15 or newer
64 | }
65 |
66 | extension AuthorizationRequest.Subscription: Subscription {
| `- note: add @available attribute to enclosing extension
67 |
68 | func request(_ demand: Subscribers.Demand) {
| | `- error: 'Subscribers' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
69 |
70 | store.requestAuthorization(toShare: share, read: read) { success, error in
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:9:50: error: 'HKActivitySummary' is only available in macOS 13.0 or newer
3 | import HealthKit
4 |
5 | extension HKHealthStore {
| `- note: add @available attribute to enclosing extension
6 |
7 | public func activitySummaryPublisher(
| `- note: add @available attribute to enclosing instance method
8 | predicate: NSPredicate?
9 | ) -> QueryPublisher<HKActivitySummaryQuery, [HKActivitySummary], Error> {
| `- error: 'HKActivitySummary' is only available in macOS 13.0 or newer
10 |
11 | publisher(for: {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:5:11: error: 'HKHealthStore' is only available in macOS 13.0 or newer
3 | import HealthKit
4 |
5 | extension HKHealthStore {
| | `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing extension
6 |
7 | public func activitySummaryPublisher(
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:22:15: error: 'HKCorrelationType' is only available in macOS 13.0 or newer
17 | }
18 |
19 | extension HKHealthStore {
| `- note: add @available attribute to enclosing extension
20 |
21 | public func correlationPublisher(
| `- note: add @available attribute to enclosing instance method
22 | type: HKCorrelationType,
| `- error: 'HKCorrelationType' is only available in macOS 13.0 or newer
23 | predicate: NSPredicate?,
24 | samplePredicates: [HKSampleType : NSPredicate]?
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:24:28: error: 'HKSampleType' is only available in macOS 13.0 or newer
17 | }
18 |
19 | extension HKHealthStore {
| `- note: add @available attribute to enclosing extension
20 |
21 | public func correlationPublisher(
| `- note: add @available attribute to enclosing instance method
22 | type: HKCorrelationType,
23 | predicate: NSPredicate?,
24 | samplePredicates: [HKSampleType : NSPredicate]?
| `- error: 'HKSampleType' is only available in macOS 13.0 or newer
25 | ) -> QueryPublisher<HKCorrelationQuery, [HKCorrelation], Error> {
26 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:25:25: error: 'HKCorrelationQuery' is only available in macOS 13.0 or newer
17 | }
18 |
19 | extension HKHealthStore {
| `- note: add @available attribute to enclosing extension
20 |
21 | public func correlationPublisher(
| `- note: add @available attribute to enclosing instance method
22 | type: HKCorrelationType,
23 | predicate: NSPredicate?,
24 | samplePredicates: [HKSampleType : NSPredicate]?
25 | ) -> QueryPublisher<HKCorrelationQuery, [HKCorrelation], Error> {
| `- error: 'HKCorrelationQuery' is only available in macOS 13.0 or newer
26 |
27 | publisher(for: {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:25:46: error: 'HKCorrelation' is only available in macOS 13.0 or newer
17 | }
18 |
19 | extension HKHealthStore {
| `- note: add @available attribute to enclosing extension
20 |
21 | public func correlationPublisher(
| `- note: add @available attribute to enclosing instance method
22 | type: HKCorrelationType,
23 | predicate: NSPredicate?,
24 | samplePredicates: [HKSampleType : NSPredicate]?
25 | ) -> QueryPublisher<HKCorrelationQuery, [HKCorrelation], Error> {
| `- error: 'HKCorrelation' is only available in macOS 13.0 or newer
26 |
27 | publisher(for: {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:19:11: error: 'HKHealthStore' is only available in macOS 13.0 or newer
17 | }
18 |
19 | extension HKHealthStore {
| | `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing extension
20 |
21 | public func correlationPublisher(
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:40:21: error: 'HKSampleType' is only available in macOS 13.0 or newer
35 | }
36 |
37 | extension HKHealthStore {
| `- note: add @available attribute to enclosing extension
38 |
39 | public func samplePublisher(
| `- note: add @available attribute to enclosing instance method
40 | sampleType: HKSampleType,
| `- error: 'HKSampleType' is only available in macOS 13.0 or newer
41 | predicate: NSPredicate?,
42 | limit: Int,
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:44:41: error: 'HKSample' is only available in macOS 13.0 or newer
35 | }
36 |
37 | extension HKHealthStore {
| `- note: add @available attribute to enclosing extension
38 |
39 | public func samplePublisher(
| `- note: add @available attribute to enclosing instance method
40 | sampleType: HKSampleType,
41 | predicate: NSPredicate?,
42 | limit: Int,
43 | sortDescriptors: [NSSortDescriptor]?
44 | ) -> QueryPublisher<HKSampleQuery, [HKSample], Error> {
| `- error: 'HKSample' is only available in macOS 13.0 or newer
45 |
46 | publisher(for: {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:37:11: error: 'HKHealthStore' is only available in macOS 13.0 or newer
35 | }
36 |
37 | extension HKHealthStore {
| | `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing extension
38 |
39 | public func samplePublisher(
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:60:21: error: 'HKSampleType' is only available in macOS 13.0 or newer
55 | }
56 |
57 | extension HKHealthStore {
| `- note: add @available attribute to enclosing extension
58 |
59 | public func sourcePublisher(
| `- note: add @available attribute to enclosing instance method
60 | sampleType: HKSampleType,
| `- error: 'HKSampleType' is only available in macOS 13.0 or newer
61 | samplePredicate: NSPredicate?
62 | ) -> QueryPublisher<HKSourceQuery, Set<HKSource>, Error> {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:62:44: error: 'HKSource' is only available in macOS 13.0 or newer
55 | }
56 |
57 | extension HKHealthStore {
| `- note: add @available attribute to enclosing extension
58 |
59 | public func sourcePublisher(
| `- note: add @available attribute to enclosing instance method
60 | sampleType: HKSampleType,
61 | samplePredicate: NSPredicate?
62 | ) -> QueryPublisher<HKSourceQuery, Set<HKSource>, Error> {
| `- error: 'HKSource' is only available in macOS 13.0 or newer
63 |
64 | publisher(for: {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:57:11: error: 'HKHealthStore' is only available in macOS 13.0 or newer
55 | }
56 |
57 | extension HKHealthStore {
| | `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing extension
58 |
59 | public func sourcePublisher(
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:76:23: error: 'HKQuantityType' is only available in macOS 13.0 or newer
71 | }
72 |
73 | extension HKHealthStore {
| `- note: add @available attribute to enclosing extension
74 |
75 | public func statisticsPublisher(
| `- note: add @available attribute to enclosing instance method
76 | quantityType: HKQuantityType,
| `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
77 | quantitySamplePredicate: NSPredicate?,
78 | options: HKStatisticsOptions
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:78:18: error: 'HKStatisticsOptions' is only available in macOS 13.0 or newer
71 | }
72 |
73 | extension HKHealthStore {
| `- note: add @available attribute to enclosing extension
74 |
75 | public func statisticsPublisher(
| `- note: add @available attribute to enclosing instance method
76 | quantityType: HKQuantityType,
77 | quantitySamplePredicate: NSPredicate?,
78 | options: HKStatisticsOptions
| `- error: 'HKStatisticsOptions' is only available in macOS 13.0 or newer
79 | ) -> QueryPublisher<HKStatisticsQuery, HKStatistics, Error> {
80 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:79:44: error: 'HKStatistics' is only available in macOS 13.0 or newer
71 | }
72 |
73 | extension HKHealthStore {
| `- note: add @available attribute to enclosing extension
74 |
75 | public func statisticsPublisher(
| `- note: add @available attribute to enclosing instance method
76 | quantityType: HKQuantityType,
77 | quantitySamplePredicate: NSPredicate?,
78 | options: HKStatisticsOptions
79 | ) -> QueryPublisher<HKStatisticsQuery, HKStatistics, Error> {
| `- error: 'HKStatistics' is only available in macOS 13.0 or newer
80 |
81 | publisher(for: {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:73:11: error: 'HKHealthStore' is only available in macOS 13.0 or newer
71 | }
72 |
73 | extension HKHealthStore {
| | `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing extension
74 |
75 | public func statisticsPublisher(
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/QueryPublisher.swift:7:34: error: 'HKQuery' is only available in macOS 13.0 or newer
3 | import HealthKit
4 |
5 | extension HKHealthStore {
| `- note: add @available attribute to enclosing extension
6 |
7 | public func publisher<Query: HKQuery, Output, Failure: Error>(
| | `- error: 'HKQuery' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing instance method
8 | for query: @escaping (@escaping (Query, Output?, Failure?) -> ()) -> Query
9 | ) -> QueryPublisher<Query, Output, Failure> {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/QueryPublisher.swift:5:11: error: 'HKHealthStore' is only available in macOS 13.0 or newer
3 | import HealthKit
4 |
5 | extension HKHealthStore {
| | `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing extension
6 |
7 | public func publisher<Query: HKQuery, Output, Failure: Error>(
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/QueryPublisher.swift:18:28: error: 'HKHealthStore' is only available in macOS 13.0 or newer
12 | }
13 |
14 | public struct QueryPublisher<Query: HKQuery, Output, Failure: Error> {
| `- note: add @available attribute to enclosing generic struct
15 |
16 | typealias Completion = (Query, Output?, Failure?) -> ()
17 |
18 | fileprivate let store: HKHealthStore
| `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
19 | fileprivate let query: (@escaping Completion) -> Query
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/QueryPublisher.swift:14:37: error: 'HKQuery' is only available in macOS 13.0 or newer
12 | }
13 |
14 | public struct QueryPublisher<Query: HKQuery, Output, Failure: Error> {
| | `- error: 'HKQuery' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing generic struct
15 |
16 | typealias Completion = (Query, Output?, Failure?) -> ()
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/QueryPublisher.swift:26:29: error: 'Subscriber' is only available in macOS 10.15 or newer
20 | }
21 |
22 | extension QueryPublisher: Publisher {
| `- note: add @available attribute to enclosing extension
23 |
24 | public func receive<Subscriber>(subscriber: Subscriber)
| `- note: add @available attribute to enclosing instance method
25 | where
26 | Subscriber: Combine.Subscriber,
| `- error: 'Subscriber' is only available in macOS 10.15 or newer
27 | Subscriber.Failure == Failure,
28 | Subscriber.Input == Output
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/QueryPublisher.swift:43:28: error: 'HKHealthStore' is only available in macOS 13.0 or newer
35 | extension QueryPublisher {
36 |
37 | fileprivate final class Subscription<Subscriber>
| `- note: add @available attribute to enclosing generic class
38 | where
39 | Subscriber: Combine.Subscriber,
:
41 | Subscriber.Input == Output
42 | {
43 | private let store: HKHealthStore
| `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
44 | private let query: Query
45 | private var hasExecuted = false
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/QueryPublisher.swift:47:33: error: 'HKHealthStore' is only available in macOS 13.0 or newer
35 | extension QueryPublisher {
36 |
37 | fileprivate final class Subscription<Subscriber>
| `- note: add @available attribute to enclosing generic class
38 | where
39 | Subscriber: Combine.Subscriber,
:
44 | private let query: Query
45 | private var hasExecuted = false
46 | fileprivate init(subscriber: Subscriber,
| `- note: add @available attribute to enclosing initializer
47 | store: HKHealthStore,
| `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
48 | query: (@escaping Completion) -> Query) {
49 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/QueryPublisher.swift:39:29: error: 'Subscriber' is only available in macOS 10.15 or newer
35 | extension QueryPublisher {
36 |
37 | fileprivate final class Subscription<Subscriber>
| |- note: add @available attribute to enclosing generic class
| `- note: add @available attribute to enclosing generic class
38 | where
39 | Subscriber: Combine.Subscriber,
| `- error: 'Subscriber' is only available in macOS 10.15 or newer
40 | Subscriber.Failure == Failure,
41 | Subscriber.Input == Output
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/QueryPublisher.swift:66:28: error: 'Subscribers' is only available in macOS 10.15 or newer
62 | }
63 |
64 | extension QueryPublisher.Subscription: Subscription {
| `- note: add @available attribute to enclosing extension
65 |
66 | func request(_ demand: Subscribers.Demand) {
| | `- error: 'Subscribers' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
67 | // If the store is asked to execute the same query more than once an
68 | // exception will be thrown. This can happen when this publisher is in
[4/6] Compiling HealthKitCombine HealthStore+Publishers.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:9:50: error: 'HKActivitySummary' is only available in macOS 13.0 or newer
3 | import HealthKit
4 |
5 | extension HKHealthStore {
| `- note: add @available attribute to enclosing extension
6 |
7 | public func activitySummaryPublisher(
| `- note: add @available attribute to enclosing instance method
8 | predicate: NSPredicate?
9 | ) -> QueryPublisher<HKActivitySummaryQuery, [HKActivitySummary], Error> {
| `- error: 'HKActivitySummary' is only available in macOS 13.0 or newer
10 |
11 | publisher(for: {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:5:11: error: 'HKHealthStore' is only available in macOS 13.0 or newer
3 | import HealthKit
4 |
5 | extension HKHealthStore {
| | `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing extension
6 |
7 | public func activitySummaryPublisher(
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:22:15: error: 'HKCorrelationType' is only available in macOS 13.0 or newer
17 | }
18 |
19 | extension HKHealthStore {
| `- note: add @available attribute to enclosing extension
20 |
21 | public func correlationPublisher(
| `- note: add @available attribute to enclosing instance method
22 | type: HKCorrelationType,
| `- error: 'HKCorrelationType' is only available in macOS 13.0 or newer
23 | predicate: NSPredicate?,
24 | samplePredicates: [HKSampleType : NSPredicate]?
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:24:28: error: 'HKSampleType' is only available in macOS 13.0 or newer
17 | }
18 |
19 | extension HKHealthStore {
| `- note: add @available attribute to enclosing extension
20 |
21 | public func correlationPublisher(
| `- note: add @available attribute to enclosing instance method
22 | type: HKCorrelationType,
23 | predicate: NSPredicate?,
24 | samplePredicates: [HKSampleType : NSPredicate]?
| `- error: 'HKSampleType' is only available in macOS 13.0 or newer
25 | ) -> QueryPublisher<HKCorrelationQuery, [HKCorrelation], Error> {
26 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:25:25: error: 'HKCorrelationQuery' is only available in macOS 13.0 or newer
17 | }
18 |
19 | extension HKHealthStore {
| `- note: add @available attribute to enclosing extension
20 |
21 | public func correlationPublisher(
| `- note: add @available attribute to enclosing instance method
22 | type: HKCorrelationType,
23 | predicate: NSPredicate?,
24 | samplePredicates: [HKSampleType : NSPredicate]?
25 | ) -> QueryPublisher<HKCorrelationQuery, [HKCorrelation], Error> {
| `- error: 'HKCorrelationQuery' is only available in macOS 13.0 or newer
26 |
27 | publisher(for: {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:25:46: error: 'HKCorrelation' is only available in macOS 13.0 or newer
17 | }
18 |
19 | extension HKHealthStore {
| `- note: add @available attribute to enclosing extension
20 |
21 | public func correlationPublisher(
| `- note: add @available attribute to enclosing instance method
22 | type: HKCorrelationType,
23 | predicate: NSPredicate?,
24 | samplePredicates: [HKSampleType : NSPredicate]?
25 | ) -> QueryPublisher<HKCorrelationQuery, [HKCorrelation], Error> {
| `- error: 'HKCorrelation' is only available in macOS 13.0 or newer
26 |
27 | publisher(for: {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:19:11: error: 'HKHealthStore' is only available in macOS 13.0 or newer
17 | }
18 |
19 | extension HKHealthStore {
| | `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing extension
20 |
21 | public func correlationPublisher(
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:40:21: error: 'HKSampleType' is only available in macOS 13.0 or newer
35 | }
36 |
37 | extension HKHealthStore {
| `- note: add @available attribute to enclosing extension
38 |
39 | public func samplePublisher(
| `- note: add @available attribute to enclosing instance method
40 | sampleType: HKSampleType,
| `- error: 'HKSampleType' is only available in macOS 13.0 or newer
41 | predicate: NSPredicate?,
42 | limit: Int,
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:44:41: error: 'HKSample' is only available in macOS 13.0 or newer
35 | }
36 |
37 | extension HKHealthStore {
| `- note: add @available attribute to enclosing extension
38 |
39 | public func samplePublisher(
| `- note: add @available attribute to enclosing instance method
40 | sampleType: HKSampleType,
41 | predicate: NSPredicate?,
42 | limit: Int,
43 | sortDescriptors: [NSSortDescriptor]?
44 | ) -> QueryPublisher<HKSampleQuery, [HKSample], Error> {
| `- error: 'HKSample' is only available in macOS 13.0 or newer
45 |
46 | publisher(for: {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:37:11: error: 'HKHealthStore' is only available in macOS 13.0 or newer
35 | }
36 |
37 | extension HKHealthStore {
| | `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing extension
38 |
39 | public func samplePublisher(
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:60:21: error: 'HKSampleType' is only available in macOS 13.0 or newer
55 | }
56 |
57 | extension HKHealthStore {
| `- note: add @available attribute to enclosing extension
58 |
59 | public func sourcePublisher(
| `- note: add @available attribute to enclosing instance method
60 | sampleType: HKSampleType,
| `- error: 'HKSampleType' is only available in macOS 13.0 or newer
61 | samplePredicate: NSPredicate?
62 | ) -> QueryPublisher<HKSourceQuery, Set<HKSource>, Error> {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:62:44: error: 'HKSource' is only available in macOS 13.0 or newer
55 | }
56 |
57 | extension HKHealthStore {
| `- note: add @available attribute to enclosing extension
58 |
59 | public func sourcePublisher(
| `- note: add @available attribute to enclosing instance method
60 | sampleType: HKSampleType,
61 | samplePredicate: NSPredicate?
62 | ) -> QueryPublisher<HKSourceQuery, Set<HKSource>, Error> {
| `- error: 'HKSource' is only available in macOS 13.0 or newer
63 |
64 | publisher(for: {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:57:11: error: 'HKHealthStore' is only available in macOS 13.0 or newer
55 | }
56 |
57 | extension HKHealthStore {
| | `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing extension
58 |
59 | public func sourcePublisher(
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:76:23: error: 'HKQuantityType' is only available in macOS 13.0 or newer
71 | }
72 |
73 | extension HKHealthStore {
| `- note: add @available attribute to enclosing extension
74 |
75 | public func statisticsPublisher(
| `- note: add @available attribute to enclosing instance method
76 | quantityType: HKQuantityType,
| `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
77 | quantitySamplePredicate: NSPredicate?,
78 | options: HKStatisticsOptions
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:78:18: error: 'HKStatisticsOptions' is only available in macOS 13.0 or newer
71 | }
72 |
73 | extension HKHealthStore {
| `- note: add @available attribute to enclosing extension
74 |
75 | public func statisticsPublisher(
| `- note: add @available attribute to enclosing instance method
76 | quantityType: HKQuantityType,
77 | quantitySamplePredicate: NSPredicate?,
78 | options: HKStatisticsOptions
| `- error: 'HKStatisticsOptions' is only available in macOS 13.0 or newer
79 | ) -> QueryPublisher<HKStatisticsQuery, HKStatistics, Error> {
80 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:79:44: error: 'HKStatistics' is only available in macOS 13.0 or newer
71 | }
72 |
73 | extension HKHealthStore {
| `- note: add @available attribute to enclosing extension
74 |
75 | public func statisticsPublisher(
| `- note: add @available attribute to enclosing instance method
76 | quantityType: HKQuantityType,
77 | quantitySamplePredicate: NSPredicate?,
78 | options: HKStatisticsOptions
79 | ) -> QueryPublisher<HKStatisticsQuery, HKStatistics, Error> {
| `- error: 'HKStatistics' is only available in macOS 13.0 or newer
80 |
81 | publisher(for: {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:73:11: error: 'HKHealthStore' is only available in macOS 13.0 or newer
71 | }
72 |
73 | extension HKHealthStore {
| | `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing extension
74 |
75 | public func statisticsPublisher(
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:14:52: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
9 | ) -> QueryPublisher<HKActivitySummaryQuery, [HKActivitySummary], Error> {
10 |
11 | publisher(for: {
| `- note: parameter '$0' is implicitly non-sendable
12 |
13 | HKActivitySummaryQuery(predicate: predicate,
14 | resultsHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
15 | })
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:32:44: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
25 | ) -> QueryPublisher<HKCorrelationQuery, [HKCorrelation], Error> {
26 |
27 | publisher(for: {
| `- note: parameter '$0' is implicitly non-sendable
28 |
29 | HKCorrelationQuery(type: type,
30 | predicate: predicate,
31 | samplePredicates: samplePredicates,
32 | completion: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
33 | })
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:29:13: error: 'HKCorrelationQuery' is only available in macOS 13.0 or newer
17 | }
18 |
19 | extension HKHealthStore {
| `- note: add @available attribute to enclosing extension
20 |
21 | public func correlationPublisher(
| `- note: add @available attribute to enclosing instance method
22 | type: HKCorrelationType,
23 | predicate: NSPredicate?,
:
27 | publisher(for: {
28 |
29 | HKCorrelationQuery(type: type,
| |- error: 'HKCorrelationQuery' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
30 | predicate: predicate,
31 | samplePredicates: samplePredicates,
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:52:43: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
44 | ) -> QueryPublisher<HKSampleQuery, [HKSample], Error> {
45 |
46 | publisher(for: {
| `- note: parameter '$0' is implicitly non-sendable
47 |
48 | HKSampleQuery(sampleType: sampleType,
:
50 | limit: limit,
51 | sortDescriptors: sortDescriptors,
52 | resultsHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
53 | })
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:68:46: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
62 | ) -> QueryPublisher<HKSourceQuery, Set<HKSource>, Error> {
63 |
64 | publisher(for: {
| `- note: parameter '$0' is implicitly non-sendable
65 |
66 | HKSourceQuery(sampleType: sampleType,
67 | samplePredicate: samplePredicate,
68 | completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
69 | })
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/HealthStore+Publishers.swift:86:50: warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
79 | ) -> QueryPublisher<HKStatisticsQuery, HKStatistics, Error> {
80 |
81 | publisher(for: {
| `- note: parameter '$0' is implicitly non-sendable
82 |
83 | HKStatisticsQuery(quantityType: quantityType,
84 | quantitySamplePredicate: quantitySamplePredicate,
85 | options: options,
86 | completionHandler: $0)
| `- warning: passing non-sendable parameter '$0' to function expecting a @Sendable closure
87 | })
88 | }
[5/6] Compiling HealthKitCombine AuthorizationRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/AuthorizationRequest.swift:8:20: error: 'HKSampleType' is only available in macOS 13.0 or newer
3 | import HealthKit
4 |
5 | extension HKHealthStore {
| `- note: add @available attribute to enclosing extension
6 |
7 | public func requestAuthorization(
| `- note: add @available attribute to enclosing instance method
8 | share: Set<HKSampleType>? = nil,
| `- error: 'HKSampleType' is only available in macOS 13.0 or newer
9 | read: Set<HKSampleType>? = nil
10 | ) -> AuthorizationRequest {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/AuthorizationRequest.swift:9:19: error: 'HKSampleType' is only available in macOS 13.0 or newer
3 | import HealthKit
4 |
5 | extension HKHealthStore {
| `- note: add @available attribute to enclosing extension
6 |
7 | public func requestAuthorization(
| `- note: add @available attribute to enclosing instance method
8 | share: Set<HKSampleType>? = nil,
9 | read: Set<HKSampleType>? = nil
| `- error: 'HKSampleType' is only available in macOS 13.0 or newer
10 | ) -> AuthorizationRequest {
11 | AuthorizationRequest(store: self, share: share, read: read)
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/AuthorizationRequest.swift:5:11: error: 'HKHealthStore' is only available in macOS 13.0 or newer
3 | import HealthKit
4 |
5 | extension HKHealthStore {
| | `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing extension
6 |
7 | public func requestAuthorization(
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/AuthorizationRequest.swift:16:28: error: 'HKHealthStore' is only available in macOS 13.0 or newer
13 | }
14 |
15 | public struct AuthorizationRequest {
| `- note: add @available attribute to enclosing struct
16 | fileprivate let store: HKHealthStore
| `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
17 | fileprivate let share: Set<HKSampleType>?
18 | fileprivate let read: Set<HKSampleType>?
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/AuthorizationRequest.swift:17:32: error: 'HKSampleType' is only available in macOS 13.0 or newer
13 | }
14 |
15 | public struct AuthorizationRequest {
| `- note: add @available attribute to enclosing struct
16 | fileprivate let store: HKHealthStore
17 | fileprivate let share: Set<HKSampleType>?
| `- error: 'HKSampleType' is only available in macOS 13.0 or newer
18 | fileprivate let read: Set<HKSampleType>?
19 | }
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/AuthorizationRequest.swift:18:31: error: 'HKSampleType' is only available in macOS 13.0 or newer
13 | }
14 |
15 | public struct AuthorizationRequest {
| `- note: add @available attribute to enclosing struct
16 | fileprivate let store: HKHealthStore
17 | fileprivate let share: Set<HKSampleType>?
18 | fileprivate let read: Set<HKSampleType>?
| `- error: 'HKSampleType' is only available in macOS 13.0 or newer
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/AuthorizationRequest.swift:28:29: error: 'Subscriber' is only available in macOS 10.15 or newer
19 | }
20 |
21 | extension AuthorizationRequest: Publisher {
| `- note: add @available attribute to enclosing extension
22 |
23 | public typealias Output = Void
24 | public typealias Failure = Error
25 |
26 | public func receive<Subscriber>(subscriber: Subscriber)
| `- note: add @available attribute to enclosing instance method
27 | where
28 | Subscriber: Combine.Subscriber,
| `- error: 'Subscriber' is only available in macOS 10.15 or newer
29 | Subscriber.Failure == Failure,
30 | Subscriber.Input == Output
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/AuthorizationRequest.swift:49:28: error: 'HKHealthStore' is only available in macOS 13.0 or newer
40 | extension AuthorizationRequest {
41 |
42 | fileprivate final class Subscription<Subscriber>
| `- note: add @available attribute to enclosing generic class
43 | where
44 | Subscriber: Combine.Subscriber,
:
47 | {
48 | private let subscriber: Subscriber
49 | private let store: HKHealthStore
| `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
50 | private let share: Set<HKSampleType>?
51 | private let read: Set<HKSampleType>?
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/AuthorizationRequest.swift:50:32: error: 'HKSampleType' is only available in macOS 13.0 or newer
40 | extension AuthorizationRequest {
41 |
42 | fileprivate final class Subscription<Subscriber>
| `- note: add @available attribute to enclosing generic class
43 | where
44 | Subscriber: Combine.Subscriber,
:
48 | private let subscriber: Subscriber
49 | private let store: HKHealthStore
50 | private let share: Set<HKSampleType>?
| `- error: 'HKSampleType' is only available in macOS 13.0 or newer
51 | private let read: Set<HKSampleType>?
52 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/AuthorizationRequest.swift:51:31: error: 'HKSampleType' is only available in macOS 13.0 or newer
40 | extension AuthorizationRequest {
41 |
42 | fileprivate final class Subscription<Subscriber>
| `- note: add @available attribute to enclosing generic class
43 | where
44 | Subscriber: Combine.Subscriber,
:
49 | private let store: HKHealthStore
50 | private let share: Set<HKSampleType>?
51 | private let read: Set<HKSampleType>?
| `- error: 'HKSampleType' is only available in macOS 13.0 or newer
52 |
53 | fileprivate init(subscriber: Subscriber,
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/AuthorizationRequest.swift:54:33: error: 'HKHealthStore' is only available in macOS 13.0 or newer
40 | extension AuthorizationRequest {
41 |
42 | fileprivate final class Subscription<Subscriber>
| `- note: add @available attribute to enclosing generic class
43 | where
44 | Subscriber: Combine.Subscriber,
:
51 | private let read: Set<HKSampleType>?
52 |
53 | fileprivate init(subscriber: Subscriber,
| `- note: add @available attribute to enclosing initializer
54 | store: HKHealthStore,
| `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
55 | share: Set<HKSampleType>?,
56 | read: Set<HKSampleType>?) {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/AuthorizationRequest.swift:55:37: error: 'HKSampleType' is only available in macOS 13.0 or newer
40 | extension AuthorizationRequest {
41 |
42 | fileprivate final class Subscription<Subscriber>
| `- note: add @available attribute to enclosing generic class
43 | where
44 | Subscriber: Combine.Subscriber,
:
51 | private let read: Set<HKSampleType>?
52 |
53 | fileprivate init(subscriber: Subscriber,
| `- note: add @available attribute to enclosing initializer
54 | store: HKHealthStore,
55 | share: Set<HKSampleType>?,
| `- error: 'HKSampleType' is only available in macOS 13.0 or newer
56 | read: Set<HKSampleType>?) {
57 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/AuthorizationRequest.swift:56:36: error: 'HKSampleType' is only available in macOS 13.0 or newer
40 | extension AuthorizationRequest {
41 |
42 | fileprivate final class Subscription<Subscriber>
| `- note: add @available attribute to enclosing generic class
43 | where
44 | Subscriber: Combine.Subscriber,
:
51 | private let read: Set<HKSampleType>?
52 |
53 | fileprivate init(subscriber: Subscriber,
| `- note: add @available attribute to enclosing initializer
54 | store: HKHealthStore,
55 | share: Set<HKSampleType>?,
56 | read: Set<HKSampleType>?) {
| `- error: 'HKSampleType' is only available in macOS 13.0 or newer
57 |
58 | self.subscriber = subscriber
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/AuthorizationRequest.swift:44:29: error: 'Subscriber' is only available in macOS 10.15 or newer
40 | extension AuthorizationRequest {
41 |
42 | fileprivate final class Subscription<Subscriber>
| |- note: add @available attribute to enclosing generic class
| `- note: add @available attribute to enclosing generic class
43 | where
44 | Subscriber: Combine.Subscriber,
| `- error: 'Subscriber' is only available in macOS 10.15 or newer
45 | Subscriber.Failure == Failure,
46 | Subscriber.Input == Output
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/AuthorizationRequest.swift:68:28: error: 'Subscribers' is only available in macOS 10.15 or newer
64 | }
65 |
66 | extension AuthorizationRequest.Subscription: Subscription {
| `- note: add @available attribute to enclosing extension
67 |
68 | func request(_ demand: Subscribers.Demand) {
| | `- error: 'Subscribers' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
69 |
70 | store.requestAuthorization(toShare: share, read: read) { success, error in
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/AuthorizationRequest.swift:73:21: warning: capture of 'self' with non-sendable type 'AuthorizationRequest.Subscription<Subscriber>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
40 | extension AuthorizationRequest {
41 |
42 | fileprivate final class Subscription<Subscriber>
| `- note: generic class 'Subscription' does not conform to the 'Sendable' protocol
43 | where
44 | Subscriber: Combine.Subscriber,
:
71 |
72 | if success {
73 | _ = self.subscriber.receive(())
| `- warning: capture of 'self' with non-sendable type 'AuthorizationRequest.Subscription<Subscriber>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
74 | self.subscriber.receive(completion: .finished)
75 | } else {
[6/6] Compiling HealthKitCombine QueryPublisher.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/QueryPublisher.swift:7:34: error: 'HKQuery' is only available in macOS 13.0 or newer
3 | import HealthKit
4 |
5 | extension HKHealthStore {
| `- note: add @available attribute to enclosing extension
6 |
7 | public func publisher<Query: HKQuery, Output, Failure: Error>(
| | `- error: 'HKQuery' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing instance method
8 | for query: @escaping (@escaping (Query, Output?, Failure?) -> ()) -> Query
9 | ) -> QueryPublisher<Query, Output, Failure> {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/QueryPublisher.swift:5:11: error: 'HKHealthStore' is only available in macOS 13.0 or newer
3 | import HealthKit
4 |
5 | extension HKHealthStore {
| | `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing extension
6 |
7 | public func publisher<Query: HKQuery, Output, Failure: Error>(
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/QueryPublisher.swift:18:28: error: 'HKHealthStore' is only available in macOS 13.0 or newer
12 | }
13 |
14 | public struct QueryPublisher<Query: HKQuery, Output, Failure: Error> {
| `- note: add @available attribute to enclosing generic struct
15 |
16 | typealias Completion = (Query, Output?, Failure?) -> ()
17 |
18 | fileprivate let store: HKHealthStore
| `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
19 | fileprivate let query: (@escaping Completion) -> Query
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/QueryPublisher.swift:14:37: error: 'HKQuery' is only available in macOS 13.0 or newer
12 | }
13 |
14 | public struct QueryPublisher<Query: HKQuery, Output, Failure: Error> {
| | `- error: 'HKQuery' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing generic struct
15 |
16 | typealias Completion = (Query, Output?, Failure?) -> ()
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/QueryPublisher.swift:26:29: error: 'Subscriber' is only available in macOS 10.15 or newer
20 | }
21 |
22 | extension QueryPublisher: Publisher {
| `- note: add @available attribute to enclosing extension
23 |
24 | public func receive<Subscriber>(subscriber: Subscriber)
| `- note: add @available attribute to enclosing instance method
25 | where
26 | Subscriber: Combine.Subscriber,
| `- error: 'Subscriber' is only available in macOS 10.15 or newer
27 | Subscriber.Failure == Failure,
28 | Subscriber.Input == Output
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/QueryPublisher.swift:43:28: error: 'HKHealthStore' is only available in macOS 13.0 or newer
35 | extension QueryPublisher {
36 |
37 | fileprivate final class Subscription<Subscriber>
| `- note: add @available attribute to enclosing generic class
38 | where
39 | Subscriber: Combine.Subscriber,
:
41 | Subscriber.Input == Output
42 | {
43 | private let store: HKHealthStore
| `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
44 | private let query: Query
45 | private var hasExecuted = false
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/QueryPublisher.swift:47:33: error: 'HKHealthStore' is only available in macOS 13.0 or newer
35 | extension QueryPublisher {
36 |
37 | fileprivate final class Subscription<Subscriber>
| `- note: add @available attribute to enclosing generic class
38 | where
39 | Subscriber: Combine.Subscriber,
:
44 | private let query: Query
45 | private var hasExecuted = false
46 | fileprivate init(subscriber: Subscriber,
| `- note: add @available attribute to enclosing initializer
47 | store: HKHealthStore,
| `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
48 | query: (@escaping Completion) -> Query) {
49 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/QueryPublisher.swift:39:29: error: 'Subscriber' is only available in macOS 10.15 or newer
35 | extension QueryPublisher {
36 |
37 | fileprivate final class Subscription<Subscriber>
| |- note: add @available attribute to enclosing generic class
| `- note: add @available attribute to enclosing generic class
38 | where
39 | Subscriber: Combine.Subscriber,
| `- error: 'Subscriber' is only available in macOS 10.15 or newer
40 | Subscriber.Failure == Failure,
41 | Subscriber.Input == Output
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitCombine/QueryPublisher.swift:66:28: error: 'Subscribers' is only available in macOS 10.15 or newer
62 | }
63 |
64 | extension QueryPublisher.Subscription: Subscription {
| `- note: add @available attribute to enclosing extension
65 |
66 | func request(_ demand: Subscribers.Demand) {
| | `- error: 'Subscribers' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
67 | // If the store is asked to execute the same query more than once an
68 | // exception will be thrown. This can happen when this publisher is in
BUILD FAILURE 6.0 macosSpm