Build Information
Failed to build SoundCloud, reference 1.1.0 (7e729d
), with Swift 6.0 for macOS (SPM) on 6 Nov 2024 06:41:07 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/superturboryan/SoundCloud-Swift.git
Reference: 1.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/superturboryan/SoundCloud-Swift
* tag 1.1.0 -> FETCH_HEAD
HEAD is now at 7e729d8 Readme: update to mention OAuth 2.1
Cloned https://github.com/superturboryan/SoundCloud-Swift.git
Revision (git rev-parse @):
7e729d8ff738536644bdf60380fbcb3b8a1d4296
SUCCESS checkout https://github.com/superturboryan/SoundCloud-Swift.git at 1.1.0
Fetching https://github.com/evgenyneu/keychain-swift
[1/2196] Fetching keychain-swift
Fetched https://github.com/evgenyneu/keychain-swift from cache (1.00s)
Computing version for https://github.com/evgenyneu/keychain-swift
Computed https://github.com/evgenyneu/keychain-swift at 20.0.0 (3.39s)
Creating working copy for https://github.com/evgenyneu/keychain-swift
Working copy of https://github.com/evgenyneu/keychain-swift resolved at 20.0.0
========================================
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": "soundcloud-swift",
"name": "SoundCloud",
"url": "https://github.com/superturboryan/SoundCloud-Swift.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SoundCloud-Swift",
"dependencies": [
{
"identity": "keychain-swift",
"name": "KeychainSwift",
"url": "https://github.com/evgenyneu/keychain-swift",
"version": "20.0.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/keychain-swift",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/superturboryan/SoundCloud-Swift.git
[1/1369] Fetching soundcloud-swift
Fetched https://github.com/superturboryan/SoundCloud-Swift.git from cache (0.88s)
Fetching https://github.com/evgenyneu/keychain-swift from cache
Fetched https://github.com/evgenyneu/keychain-swift from cache (0.45s)
Computing version for https://github.com/evgenyneu/keychain-swift
Computed https://github.com/evgenyneu/keychain-swift at 20.0.0 (0.03s)
Creating working copy for https://github.com/evgenyneu/keychain-swift
Working copy of https://github.com/evgenyneu/keychain-swift resolved at 20.0.0
Creating working copy for https://github.com/superturboryan/SoundCloud-Swift.git
Working copy of https://github.com/superturboryan/SoundCloud-Swift.git resolved at 1.1.0 (7e729d8)
warning: '.resolve-product-dependencies': dependency 'soundcloud-swift' is not used by any target
Found 1 product dependencies
- KeychainSwift
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/superturboryan/SoundCloud-Swift.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/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/7] Emitting module KeychainSwift
[5/7] Compiling KeychainSwift KeychainSwiftAccessOptions.swift
[6/7] Compiling KeychainSwift TegKeychainConstants.swift
[7/7] Compiling KeychainSwift KeychainSwift.swift
[8/32] Compiling SoundCloud StreamInfo.swift
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Models/Test Models.swift:108:12: warning: let 'testFreeSubscription' is not concurrency-safe because non-'Sendable' type 'User.Subscription' may have shared mutable state; this is an error in the Swift 6 language mode
106 | }
107 |
108 | public let testFreeSubscription = User.Subscription(product: User.Subscription.Product(id: "free", name: "Free"))
| |- warning: let 'testFreeSubscription' is not concurrency-safe because non-'Sendable' type 'User.Subscription' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'testFreeSubscription' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
109 | public let testNextProSubscription = User.Subscription(product: User.Subscription.Product(id: "next_pro", name: "Next Pro"))
110 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Models/User.swift:95:12: note: consider making struct 'Subscription' conform to the 'Sendable' protocol
93 |
94 | public extension User {
95 | struct Subscription: Codable, Equatable {
| `- note: consider making struct 'Subscription' conform to the 'Sendable' protocol
96 | public let product: Product
97 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Models/Test Models.swift:109:12: warning: let 'testNextProSubscription' is not concurrency-safe because non-'Sendable' type 'User.Subscription' may have shared mutable state; this is an error in the Swift 6 language mode
107 |
108 | public let testFreeSubscription = User.Subscription(product: User.Subscription.Product(id: "free", name: "Free"))
109 | public let testNextProSubscription = User.Subscription(product: User.Subscription.Product(id: "next_pro", name: "Next Pro"))
| |- warning: let 'testNextProSubscription' is not concurrency-safe because non-'Sendable' type 'User.Subscription' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'testNextProSubscription' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
110 |
111 | public var testSC = SoundCloud(SoundCloud.Config(clientId: "", clientSecret: "", redirectURI: ""))
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Models/User.swift:95:12: note: consider making struct 'Subscription' conform to the 'Sendable' protocol
93 |
94 | public extension User {
95 | struct Subscription: Codable, Equatable {
| `- note: consider making struct 'Subscription' conform to the 'Sendable' protocol
96 | public let product: Product
97 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Models/Test Models.swift:111:12: warning: var 'testSC' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
109 | public let testNextProSubscription = User.Subscription(product: User.Subscription.Product(id: "next_pro", name: "Next Pro"))
110 |
111 | public var testSC = SoundCloud(SoundCloud.Config(clientId: "", clientSecret: "", redirectURI: ""))
| |- warning: var 'testSC' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'testSC' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'testSC' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
112 |
113 | public let testStreamInfo = StreamInfo(httpMp3128URL: "", hlsMp3128URL: "")
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Models/Test Models.swift:113:12: warning: let 'testStreamInfo' is not concurrency-safe because non-'Sendable' type 'StreamInfo' may have shared mutable state; this is an error in the Swift 6 language mode
111 | public var testSC = SoundCloud(SoundCloud.Config(clientId: "", clientSecret: "", redirectURI: ""))
112 |
113 | public let testStreamInfo = StreamInfo(httpMp3128URL: "", hlsMp3128URL: "")
| |- warning: let 'testStreamInfo' is not concurrency-safe because non-'Sendable' type 'StreamInfo' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'testStreamInfo' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
114 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Models/StreamInfo.swift:8:15: note: consider making struct 'StreamInfo' conform to the 'Sendable' protocol
6 | //
7 |
8 | public struct StreamInfo: Decodable {
| `- note: consider making struct 'StreamInfo' conform to the 'Sendable' protocol
9 | public let httpMp3128URL: String
10 | public let hlsMp3128URL: String
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/SoundCloud.swift:29:36: error: 'AnyCancellable' is only available in macOS 10.15 or newer
21 | /// - Important: OAuth tokens are stored in the `Keychain` by default.
22 | /// - SeeAlso: Visit the [SoundCloud API Explorer](https://developers.soundcloud.com/docs/api/explorer/open-api#/) for more information.
23 | public final class SoundCloud {
| `- note: add @available attribute to enclosing class
24 |
25 | private let config: Config
:
27 | private let decoder = JSONDecoder()
28 | private let urlSession = URLSession(configuration: .default)
29 | public var subscriptions = Set<AnyCancellable>()
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
30 |
31 | public init(
[9/32] Compiling SoundCloud Test Models.swift
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Models/Test Models.swift:108:12: warning: let 'testFreeSubscription' is not concurrency-safe because non-'Sendable' type 'User.Subscription' may have shared mutable state; this is an error in the Swift 6 language mode
106 | }
107 |
108 | public let testFreeSubscription = User.Subscription(product: User.Subscription.Product(id: "free", name: "Free"))
| |- warning: let 'testFreeSubscription' is not concurrency-safe because non-'Sendable' type 'User.Subscription' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'testFreeSubscription' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
109 | public let testNextProSubscription = User.Subscription(product: User.Subscription.Product(id: "next_pro", name: "Next Pro"))
110 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Models/User.swift:95:12: note: consider making struct 'Subscription' conform to the 'Sendable' protocol
93 |
94 | public extension User {
95 | struct Subscription: Codable, Equatable {
| `- note: consider making struct 'Subscription' conform to the 'Sendable' protocol
96 | public let product: Product
97 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Models/Test Models.swift:109:12: warning: let 'testNextProSubscription' is not concurrency-safe because non-'Sendable' type 'User.Subscription' may have shared mutable state; this is an error in the Swift 6 language mode
107 |
108 | public let testFreeSubscription = User.Subscription(product: User.Subscription.Product(id: "free", name: "Free"))
109 | public let testNextProSubscription = User.Subscription(product: User.Subscription.Product(id: "next_pro", name: "Next Pro"))
| |- warning: let 'testNextProSubscription' is not concurrency-safe because non-'Sendable' type 'User.Subscription' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'testNextProSubscription' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
110 |
111 | public var testSC = SoundCloud(SoundCloud.Config(clientId: "", clientSecret: "", redirectURI: ""))
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Models/User.swift:95:12: note: consider making struct 'Subscription' conform to the 'Sendable' protocol
93 |
94 | public extension User {
95 | struct Subscription: Codable, Equatable {
| `- note: consider making struct 'Subscription' conform to the 'Sendable' protocol
96 | public let product: Product
97 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Models/Test Models.swift:111:12: warning: var 'testSC' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
109 | public let testNextProSubscription = User.Subscription(product: User.Subscription.Product(id: "next_pro", name: "Next Pro"))
110 |
111 | public var testSC = SoundCloud(SoundCloud.Config(clientId: "", clientSecret: "", redirectURI: ""))
| |- warning: var 'testSC' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'testSC' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'testSC' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
112 |
113 | public let testStreamInfo = StreamInfo(httpMp3128URL: "", hlsMp3128URL: "")
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Models/Test Models.swift:113:12: warning: let 'testStreamInfo' is not concurrency-safe because non-'Sendable' type 'StreamInfo' may have shared mutable state; this is an error in the Swift 6 language mode
111 | public var testSC = SoundCloud(SoundCloud.Config(clientId: "", clientSecret: "", redirectURI: ""))
112 |
113 | public let testStreamInfo = StreamInfo(httpMp3128URL: "", hlsMp3128URL: "")
| |- warning: let 'testStreamInfo' is not concurrency-safe because non-'Sendable' type 'StreamInfo' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'testStreamInfo' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
114 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Models/StreamInfo.swift:8:15: note: consider making struct 'StreamInfo' conform to the 'Sendable' protocol
6 | //
7 |
8 | public struct StreamInfo: Decodable {
| `- note: consider making struct 'StreamInfo' conform to the 'Sendable' protocol
9 | public let httpMp3128URL: String
10 | public let hlsMp3128URL: String
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/SoundCloud.swift:29:36: error: 'AnyCancellable' is only available in macOS 10.15 or newer
21 | /// - Important: OAuth tokens are stored in the `Keychain` by default.
22 | /// - SeeAlso: Visit the [SoundCloud API Explorer](https://developers.soundcloud.com/docs/api/explorer/open-api#/) for more information.
23 | public final class SoundCloud {
| `- note: add @available attribute to enclosing class
24 |
25 | private let config: Config
:
27 | private let decoder = JSONDecoder()
28 | private let urlSession = URLSession(configuration: .default)
29 | public var subscriptions = Set<AnyCancellable>()
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
30 |
31 | public init(
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/34] Compiling SoundCloud TokenResponse.swift
[11/34] Compiling SoundCloud Track.swift
[12/34] Emitting module SoundCloud
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Error.swift:15:14: warning: associated value 'network' of 'Sendable'-conforming enum 'Error' has non-sendable type 'SoundCloud.StatusCode'; this is an error in the Swift 6 language mode
13 | case cancelledLogin
14 | case userNotAuthorized
15 | case network(StatusCode)
| `- warning: associated value 'network' of 'Sendable'-conforming enum 'Error' has non-sendable type 'SoundCloud.StatusCode'; this is an error in the Swift 6 language mode
16 | case decoding
17 | case invalidURL
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Models/StatusCode.swift:9:10: note: consider making enum 'StatusCode' conform to the 'Sendable' protocol
7 |
8 | public extension SoundCloud {
9 | enum StatusCode: Int {
| `- note: consider making enum 'StatusCode' conform to the 'Sendable' protocol
10 | case success = 200
11 | case created = 201
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/ASWebAuthenticationSession.swift:95:18: error: 'ASWebAuthenticationSession' is only available in macOS 10.15 or newer
93 | #endif
94 |
95 | public extension ASWebAuthenticationSession {
| | `- error: 'ASWebAuthenticationSession' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
96 | enum Error: LocalizedError {
97 | case noCode
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Color.swift:11:55: error: type 'Bundle?' has no member 'module'
9 |
10 | public extension Color {
11 | static let scOrange = Color("sc_orange", bundle: .module)
| `- error: type 'Bundle?' has no member 'module'
12 | static let scOrangeLight = Color("sc_orange_light", bundle: .module)
13 | static let scOrangeDark = Color("sc_orange_dark", bundle: .module)
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Color.swift:12:66: error: type 'Bundle?' has no member 'module'
10 | public extension Color {
11 | static let scOrange = Color("sc_orange", bundle: .module)
12 | static let scOrangeLight = Color("sc_orange_light", bundle: .module)
| `- error: type 'Bundle?' has no member 'module'
13 | static let scOrangeDark = Color("sc_orange_dark", bundle: .module)
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Color.swift:13:64: error: type 'Bundle?' has no member 'module'
11 | static let scOrange = Color("sc_orange", bundle: .module)
12 | static let scOrangeLight = Color("sc_orange_light", bundle: .module)
13 | static let scOrangeDark = Color("sc_orange_dark", bundle: .module)
| `- error: type 'Bundle?' has no member 'module'
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Color.swift:10:18: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | static let scOrange = Color("sc_orange", bundle: .module)
12 | static let scOrangeLight = Color("sc_orange_light", bundle: .module)
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:12:37: error: 'Image' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension Image {
| `- note: add @available attribute to enclosing extension
11 |
12 | static var poweredBySoundCloud: Image {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
13 | Image("powered_by_sc", bundle: .module)
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:16:27: error: 'Image' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension Image {
| `- note: add @available attribute to enclosing extension
11 |
12 | static var poweredBySoundCloud: Image {
:
14 | }
15 |
16 | static var connectSC: Image {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
17 | Image("connect_sc", bundle: .module)
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:20:29: error: 'Image' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension Image {
| `- note: add @available attribute to enclosing extension
11 |
12 | static var poweredBySoundCloud: Image {
:
18 | }
19 |
20 | static var diconnectSC: Image {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
21 | Image("disconnect_sc", bundle: .module)
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:24:32: error: 'Image' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension Image {
| `- note: add @available attribute to enclosing extension
11 |
12 | static var poweredBySoundCloud: Image {
:
22 | }
23 |
24 | static var scLogoVertical: Image {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
25 | Image("sc_logo_vertical", bundle: .module)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:28:39: error: 'Image' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension Image {
| `- note: add @available attribute to enclosing extension
11 |
12 | static var poweredBySoundCloud: Image {
:
26 | }
27 |
28 | internal static var testWaveForm: Image {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
29 | Image("test_waveform", bundle: .module)
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:10:18: error: 'Image' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension Image {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 |
12 | static var poweredBySoundCloud: Image {
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:20:10: error: 'LinearGradient' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension LinearGradient {
| `- note: add @available attribute to enclosing extension
11 | enum GradientDirection {
12 | case horizontal
:
15 |
16 | @ViewBuilder
17 | static func scOrange(
| `- note: add @available attribute to enclosing static method
18 | _ direction: GradientDirection = .vertical,
19 | reversed: Bool = false
20 | ) -> LinearGradient {
| `- error: 'LinearGradient' is only available in macOS 10.15 or newer
21 | let stops = [
22 | Gradient.Stop.init(color: .scOrangeLight, location: direction == .vertical ? 0 : 1),
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:16:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension LinearGradient {
| `- note: add @available attribute to enclosing extension
11 | enum GradientDirection {
12 | case horizontal
:
14 | }
15 |
16 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
17 | static func scOrange(
| `- note: add @available attribute to enclosing static method
18 | _ direction: GradientDirection = .vertical,
19 | reversed: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:32:23: error: 'LinearGradient' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension LinearGradient {
| `- note: add @available attribute to enclosing extension
11 | enum GradientDirection {
12 | case horizontal
:
30 | }
31 |
32 | static var empty: LinearGradient {
| | `- error: 'LinearGradient' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
33 | LinearGradient(stops: [], startPoint: .top, endPoint: .top)
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:10:18: error: 'LinearGradient' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension LinearGradient {
| | `- error: 'LinearGradient' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | enum GradientDirection {
12 | case horizontal
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:38:31: error: 'View' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
40 | Image(systemName: "playpause.fill")
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Logger.swift:14:23: error: 'Logger' is only available in macOS 11.0 or newer
8 | import OSLog
9 |
10 | extension Logger {
| `- note: add @available attribute to enclosing extension
11 |
12 | private static let subsystem = "SoundCloud"
13 |
14 | static let auth = Logger(subsystem: subsystem, category: "Authentication")
| | `- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing static property
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Logger.swift:10:11: error: 'Logger' is only available in macOS 11.0 or newer
8 | import OSLog
9 |
10 | extension Logger {
| | `- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing extension
11 |
12 | private static let subsystem = "SoundCloud"
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Models/Test Models.swift:108:12: warning: let 'testFreeSubscription' is not concurrency-safe because non-'Sendable' type 'User.Subscription' may have shared mutable state; this is an error in the Swift 6 language mode
106 | }
107 |
108 | public let testFreeSubscription = User.Subscription(product: User.Subscription.Product(id: "free", name: "Free"))
| |- warning: let 'testFreeSubscription' is not concurrency-safe because non-'Sendable' type 'User.Subscription' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'testFreeSubscription' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
109 | public let testNextProSubscription = User.Subscription(product: User.Subscription.Product(id: "next_pro", name: "Next Pro"))
110 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Models/User.swift:95:12: note: consider making struct 'Subscription' conform to the 'Sendable' protocol
93 |
94 | public extension User {
95 | struct Subscription: Codable, Equatable {
| `- note: consider making struct 'Subscription' conform to the 'Sendable' protocol
96 | public let product: Product
97 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Models/Test Models.swift:109:12: warning: let 'testNextProSubscription' is not concurrency-safe because non-'Sendable' type 'User.Subscription' may have shared mutable state; this is an error in the Swift 6 language mode
107 |
108 | public let testFreeSubscription = User.Subscription(product: User.Subscription.Product(id: "free", name: "Free"))
109 | public let testNextProSubscription = User.Subscription(product: User.Subscription.Product(id: "next_pro", name: "Next Pro"))
| |- warning: let 'testNextProSubscription' is not concurrency-safe because non-'Sendable' type 'User.Subscription' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'testNextProSubscription' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
110 |
111 | public var testSC = SoundCloud(SoundCloud.Config(clientId: "", clientSecret: "", redirectURI: ""))
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Models/User.swift:95:12: note: consider making struct 'Subscription' conform to the 'Sendable' protocol
93 |
94 | public extension User {
95 | struct Subscription: Codable, Equatable {
| `- note: consider making struct 'Subscription' conform to the 'Sendable' protocol
96 | public let product: Product
97 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Models/Test Models.swift:111:12: warning: var 'testSC' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
109 | public let testNextProSubscription = User.Subscription(product: User.Subscription.Product(id: "next_pro", name: "Next Pro"))
110 |
111 | public var testSC = SoundCloud(SoundCloud.Config(clientId: "", clientSecret: "", redirectURI: ""))
| |- warning: var 'testSC' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'testSC' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'testSC' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
112 |
113 | public let testStreamInfo = StreamInfo(httpMp3128URL: "", hlsMp3128URL: "")
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Models/Test Models.swift:113:12: warning: let 'testStreamInfo' is not concurrency-safe because non-'Sendable' type 'StreamInfo' may have shared mutable state; this is an error in the Swift 6 language mode
111 | public var testSC = SoundCloud(SoundCloud.Config(clientId: "", clientSecret: "", redirectURI: ""))
112 |
113 | public let testStreamInfo = StreamInfo(httpMp3128URL: "", hlsMp3128URL: "")
| |- warning: let 'testStreamInfo' is not concurrency-safe because non-'Sendable' type 'StreamInfo' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'testStreamInfo' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
114 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Models/StreamInfo.swift:8:15: note: consider making struct 'StreamInfo' conform to the 'Sendable' protocol
6 | //
7 |
8 | public struct StreamInfo: Decodable {
| `- note: consider making struct 'StreamInfo' conform to the 'Sendable' protocol
9 | public let httpMp3128URL: String
10 | public let hlsMp3128URL: String
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/SoundCloud.swift:29:36: error: 'AnyCancellable' is only available in macOS 10.15 or newer
21 | /// - Important: OAuth tokens are stored in the `Keychain` by default.
22 | /// - SeeAlso: Visit the [SoundCloud API Explorer](https://developers.soundcloud.com/docs/api/explorer/open-api#/) for more information.
23 | public final class SoundCloud {
| `- note: add @available attribute to enclosing class
24 |
25 | private let config: Config
:
27 | private let decoder = JSONDecoder()
28 | private let urlSession = URLSession(configuration: .default)
29 | public var subscriptions = Set<AnyCancellable>()
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
30 |
31 | public init(
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/UI/WaveformView.swift:13:28: error: cannot find type 'UIImage' in scope
11 |
12 | @Binding var progress: CGFloat
13 | @Binding var waveform: UIImage
| `- error: cannot find type 'UIImage' in scope
14 |
15 | public var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/UI/WaveformView.swift:12:6: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WaveformView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Binding var progress: CGFloat
| `- error: 'Binding' is only available in macOS 10.15 or newer
13 | @Binding var waveform: UIImage
14 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/UI/WaveformView.swift:13:6: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WaveformView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Binding var progress: CGFloat
13 | @Binding var waveform: UIImage
| `- error: 'Binding' is only available in macOS 10.15 or newer
14 |
15 | public var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/UI/WaveformView.swift:15:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WaveformView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Binding var progress: CGFloat
13 | @Binding var waveform: UIImage
14 |
15 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
16 | GeometryReader { geo in
17 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/UI/WaveformView.swift:56:6: error: 'State' is only available in macOS 10.15 or newer
53 | }
54 |
55 | struct SwiftUIView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
56 | @State static var progress: CGFloat = 0.5
| `- error: 'State' is only available in macOS 10.15 or newer
57 | @State static var waveform: UIImage = UIImage(named: "test_waveform", in: .module, with: nil)!
58 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/UI/WaveformView.swift:57:33: error: cannot find type 'UIImage' in scope
55 | struct SwiftUIView_Previews: PreviewProvider {
56 | @State static var progress: CGFloat = 0.5
57 | @State static var waveform: UIImage = UIImage(named: "test_waveform", in: .module, with: nil)!
| `- error: cannot find type 'UIImage' in scope
58 |
59 | static var previews: some View {
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/UI/WaveformView.swift:57:6: error: 'State' is only available in macOS 10.15 or newer
53 | }
54 |
55 | struct SwiftUIView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
56 | @State static var progress: CGFloat = 0.5
57 | @State static var waveform: UIImage = UIImage(named: "test_waveform", in: .module, with: nil)!
| `- error: 'State' is only available in macOS 10.15 or newer
58 |
59 | static var previews: some View {
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/UI/WaveformView.swift:59:31: error: 'View' is only available in macOS 10.15 or newer
53 | }
54 |
55 | struct SwiftUIView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
56 | @State static var progress: CGFloat = 0.5
57 | @State static var waveform: UIImage = UIImage(named: "test_waveform", in: .module, with: nil)!
58 |
59 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
60 | WaveformView(progress: $progress, waveform: $waveform)
61 | .previewLayout(.sizeThatFits)
[13/34] Compiling SoundCloud Config.swift
[14/34] Compiling SoundCloud DAO.swift
[15/34] Compiling SoundCloud KeychainDAO.swift
[16/34] Compiling SoundCloud UserDefaultsDAO.swift
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Error.swift:15:14: warning: associated value 'network' of 'Sendable'-conforming enum 'Error' has non-sendable type 'SoundCloud.StatusCode'; this is an error in the Swift 6 language mode
13 | case cancelledLogin
14 | case userNotAuthorized
15 | case network(StatusCode)
| `- warning: associated value 'network' of 'Sendable'-conforming enum 'Error' has non-sendable type 'SoundCloud.StatusCode'; this is an error in the Swift 6 language mode
16 | case decoding
17 | case invalidURL
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Models/StatusCode.swift:9:10: note: consider making enum 'StatusCode' conform to the 'Sendable' protocol
7 |
8 | public extension SoundCloud {
9 | enum StatusCode: Int {
| `- note: consider making enum 'StatusCode' conform to the 'Sendable' protocol
10 | case success = 200
11 | case created = 201
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/ASWebAuthenticationSession.swift:95:18: error: 'ASWebAuthenticationSession' is only available in macOS 10.15 or newer
93 | #endif
94 |
95 | public extension ASWebAuthenticationSession {
| | `- error: 'ASWebAuthenticationSession' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
96 | enum Error: LocalizedError {
97 | case noCode
[17/34] Compiling SoundCloud Error.swift
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Error.swift:15:14: warning: associated value 'network' of 'Sendable'-conforming enum 'Error' has non-sendable type 'SoundCloud.StatusCode'; this is an error in the Swift 6 language mode
13 | case cancelledLogin
14 | case userNotAuthorized
15 | case network(StatusCode)
| `- warning: associated value 'network' of 'Sendable'-conforming enum 'Error' has non-sendable type 'SoundCloud.StatusCode'; this is an error in the Swift 6 language mode
16 | case decoding
17 | case invalidURL
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Models/StatusCode.swift:9:10: note: consider making enum 'StatusCode' conform to the 'Sendable' protocol
7 |
8 | public extension SoundCloud {
9 | enum StatusCode: Int {
| `- note: consider making enum 'StatusCode' conform to the 'Sendable' protocol
10 | case success = 200
11 | case created = 201
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/ASWebAuthenticationSession.swift:95:18: error: 'ASWebAuthenticationSession' is only available in macOS 10.15 or newer
93 | #endif
94 |
95 | public extension ASWebAuthenticationSession {
| | `- error: 'ASWebAuthenticationSession' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
96 | enum Error: LocalizedError {
97 | case noCode
[18/34] Compiling SoundCloud ASWebAuthenticationSession.swift
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Error.swift:15:14: warning: associated value 'network' of 'Sendable'-conforming enum 'Error' has non-sendable type 'SoundCloud.StatusCode'; this is an error in the Swift 6 language mode
13 | case cancelledLogin
14 | case userNotAuthorized
15 | case network(StatusCode)
| `- warning: associated value 'network' of 'Sendable'-conforming enum 'Error' has non-sendable type 'SoundCloud.StatusCode'; this is an error in the Swift 6 language mode
16 | case decoding
17 | case invalidURL
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Models/StatusCode.swift:9:10: note: consider making enum 'StatusCode' conform to the 'Sendable' protocol
7 |
8 | public extension SoundCloud {
9 | enum StatusCode: Int {
| `- note: consider making enum 'StatusCode' conform to the 'Sendable' protocol
10 | case success = 200
11 | case created = 201
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/ASWebAuthenticationSession.swift:95:18: error: 'ASWebAuthenticationSession' is only available in macOS 10.15 or newer
93 | #endif
94 |
95 | public extension ASWebAuthenticationSession {
| | `- error: 'ASWebAuthenticationSession' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
96 | enum Error: LocalizedError {
97 | case noCode
[19/34] Compiling SoundCloud User.swift
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Models/User.swift:80:49: error: 'init(localized:table:bundle:locale:comment:)' is only available in macOS 12 or newer
76 | }
77 |
78 | public extension User {
| `- note: add @available attribute to enclosing extension
79 | var subscription: String {
| `- note: add @available attribute to enclosing property
80 | (subscriptions.first?.product.name) ?? String(localized: "Free", comment: "Adjective")
| |- error: 'init(localized:table:bundle:locale:comment:)' is only available in macOS 12 or newer
| `- note: add 'if #available' version check
81 | }
82 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Models/User.swift:80:67: error: 'LocalizationValue' is only available in macOS 12 or newer
76 | }
77 |
78 | public extension User {
| `- note: add @available attribute to enclosing extension
79 | var subscription: String {
| `- note: add @available attribute to enclosing property
80 | (subscriptions.first?.product.name) ?? String(localized: "Free", comment: "Adjective")
| |- error: 'LocalizationValue' is only available in macOS 12 or newer
| `- note: add 'if #available' version check
81 | }
82 |
[20/34] Compiling SoundCloud Request.swift
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Models/User.swift:80:49: error: 'init(localized:table:bundle:locale:comment:)' is only available in macOS 12 or newer
76 | }
77 |
78 | public extension User {
| `- note: add @available attribute to enclosing extension
79 | var subscription: String {
| `- note: add @available attribute to enclosing property
80 | (subscriptions.first?.product.name) ?? String(localized: "Free", comment: "Adjective")
| |- error: 'init(localized:table:bundle:locale:comment:)' is only available in macOS 12 or newer
| `- note: add 'if #available' version check
81 | }
82 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Models/User.swift:80:67: error: 'LocalizationValue' is only available in macOS 12 or newer
76 | }
77 |
78 | public extension User {
| `- note: add @available attribute to enclosing extension
79 | var subscription: String {
| `- note: add @available attribute to enclosing property
80 | (subscriptions.first?.product.name) ?? String(localized: "Free", comment: "Adjective")
| |- error: 'LocalizationValue' is only available in macOS 12 or newer
| `- note: add 'if #available' version check
81 | }
82 |
[21/34] Compiling SoundCloud Collection.swift
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Color.swift:11:55: error: type 'Bundle?' has no member 'module'
9 |
10 | public extension Color {
11 | static let scOrange = Color("sc_orange", bundle: .module)
| `- error: type 'Bundle?' has no member 'module'
12 | static let scOrangeLight = Color("sc_orange_light", bundle: .module)
13 | static let scOrangeDark = Color("sc_orange_dark", bundle: .module)
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Color.swift:12:66: error: type 'Bundle?' has no member 'module'
10 | public extension Color {
11 | static let scOrange = Color("sc_orange", bundle: .module)
12 | static let scOrangeLight = Color("sc_orange_light", bundle: .module)
| `- error: type 'Bundle?' has no member 'module'
13 | static let scOrangeDark = Color("sc_orange_dark", bundle: .module)
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Color.swift:13:64: error: type 'Bundle?' has no member 'module'
11 | static let scOrange = Color("sc_orange", bundle: .module)
12 | static let scOrangeLight = Color("sc_orange_light", bundle: .module)
13 | static let scOrangeDark = Color("sc_orange_dark", bundle: .module)
| `- error: type 'Bundle?' has no member 'module'
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Color.swift:10:18: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | static let scOrange = Color("sc_orange", bundle: .module)
12 | static let scOrangeLight = Color("sc_orange_light", bundle: .module)
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:12:37: error: 'Image' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension Image {
| `- note: add @available attribute to enclosing extension
11 |
12 | static var poweredBySoundCloud: Image {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
13 | Image("powered_by_sc", bundle: .module)
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:16:27: error: 'Image' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension Image {
| `- note: add @available attribute to enclosing extension
11 |
12 | static var poweredBySoundCloud: Image {
:
14 | }
15 |
16 | static var connectSC: Image {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
17 | Image("connect_sc", bundle: .module)
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:20:29: error: 'Image' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension Image {
| `- note: add @available attribute to enclosing extension
11 |
12 | static var poweredBySoundCloud: Image {
:
18 | }
19 |
20 | static var diconnectSC: Image {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
21 | Image("disconnect_sc", bundle: .module)
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:24:32: error: 'Image' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension Image {
| `- note: add @available attribute to enclosing extension
11 |
12 | static var poweredBySoundCloud: Image {
:
22 | }
23 |
24 | static var scLogoVertical: Image {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
25 | Image("sc_logo_vertical", bundle: .module)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:28:39: error: 'Image' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension Image {
| `- note: add @available attribute to enclosing extension
11 |
12 | static var poweredBySoundCloud: Image {
:
26 | }
27 |
28 | internal static var testWaveForm: Image {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
29 | Image("test_waveform", bundle: .module)
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:10:18: error: 'Image' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension Image {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 |
12 | static var poweredBySoundCloud: Image {
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:13:41: error: type 'Bundle?' has no member 'module'
11 |
12 | static var poweredBySoundCloud: Image {
13 | Image("powered_by_sc", bundle: .module)
| `- error: type 'Bundle?' has no member 'module'
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:17:38: error: type 'Bundle?' has no member 'module'
15 |
16 | static var connectSC: Image {
17 | Image("connect_sc", bundle: .module)
| `- error: type 'Bundle?' has no member 'module'
18 | }
19 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:21:41: error: type 'Bundle?' has no member 'module'
19 |
20 | static var diconnectSC: Image {
21 | Image("disconnect_sc", bundle: .module)
| `- error: type 'Bundle?' has no member 'module'
22 | }
23 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:25:44: error: type 'Bundle?' has no member 'module'
23 |
24 | static var scLogoVertical: Image {
25 | Image("sc_logo_vertical", bundle: .module)
| `- error: type 'Bundle?' has no member 'module'
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:29:41: error: type 'Bundle?' has no member 'module'
27 |
28 | internal static var testWaveForm: Image {
29 | Image("test_waveform", bundle: .module)
| `- error: type 'Bundle?' has no member 'module'
30 | }
31 | }
[22/34] Compiling SoundCloud Color.swift
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Color.swift:11:55: error: type 'Bundle?' has no member 'module'
9 |
10 | public extension Color {
11 | static let scOrange = Color("sc_orange", bundle: .module)
| `- error: type 'Bundle?' has no member 'module'
12 | static let scOrangeLight = Color("sc_orange_light", bundle: .module)
13 | static let scOrangeDark = Color("sc_orange_dark", bundle: .module)
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Color.swift:12:66: error: type 'Bundle?' has no member 'module'
10 | public extension Color {
11 | static let scOrange = Color("sc_orange", bundle: .module)
12 | static let scOrangeLight = Color("sc_orange_light", bundle: .module)
| `- error: type 'Bundle?' has no member 'module'
13 | static let scOrangeDark = Color("sc_orange_dark", bundle: .module)
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Color.swift:13:64: error: type 'Bundle?' has no member 'module'
11 | static let scOrange = Color("sc_orange", bundle: .module)
12 | static let scOrangeLight = Color("sc_orange_light", bundle: .module)
13 | static let scOrangeDark = Color("sc_orange_dark", bundle: .module)
| `- error: type 'Bundle?' has no member 'module'
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Color.swift:10:18: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | static let scOrange = Color("sc_orange", bundle: .module)
12 | static let scOrangeLight = Color("sc_orange_light", bundle: .module)
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:12:37: error: 'Image' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension Image {
| `- note: add @available attribute to enclosing extension
11 |
12 | static var poweredBySoundCloud: Image {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
13 | Image("powered_by_sc", bundle: .module)
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:16:27: error: 'Image' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension Image {
| `- note: add @available attribute to enclosing extension
11 |
12 | static var poweredBySoundCloud: Image {
:
14 | }
15 |
16 | static var connectSC: Image {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
17 | Image("connect_sc", bundle: .module)
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:20:29: error: 'Image' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension Image {
| `- note: add @available attribute to enclosing extension
11 |
12 | static var poweredBySoundCloud: Image {
:
18 | }
19 |
20 | static var diconnectSC: Image {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
21 | Image("disconnect_sc", bundle: .module)
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:24:32: error: 'Image' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension Image {
| `- note: add @available attribute to enclosing extension
11 |
12 | static var poweredBySoundCloud: Image {
:
22 | }
23 |
24 | static var scLogoVertical: Image {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
25 | Image("sc_logo_vertical", bundle: .module)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:28:39: error: 'Image' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension Image {
| `- note: add @available attribute to enclosing extension
11 |
12 | static var poweredBySoundCloud: Image {
:
26 | }
27 |
28 | internal static var testWaveForm: Image {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
29 | Image("test_waveform", bundle: .module)
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:10:18: error: 'Image' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension Image {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 |
12 | static var poweredBySoundCloud: Image {
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:13:41: error: type 'Bundle?' has no member 'module'
11 |
12 | static var poweredBySoundCloud: Image {
13 | Image("powered_by_sc", bundle: .module)
| `- error: type 'Bundle?' has no member 'module'
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:17:38: error: type 'Bundle?' has no member 'module'
15 |
16 | static var connectSC: Image {
17 | Image("connect_sc", bundle: .module)
| `- error: type 'Bundle?' has no member 'module'
18 | }
19 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:21:41: error: type 'Bundle?' has no member 'module'
19 |
20 | static var diconnectSC: Image {
21 | Image("disconnect_sc", bundle: .module)
| `- error: type 'Bundle?' has no member 'module'
22 | }
23 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:25:44: error: type 'Bundle?' has no member 'module'
23 |
24 | static var scLogoVertical: Image {
25 | Image("sc_logo_vertical", bundle: .module)
| `- error: type 'Bundle?' has no member 'module'
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:29:41: error: type 'Bundle?' has no member 'module'
27 |
28 | internal static var testWaveForm: Image {
29 | Image("test_waveform", bundle: .module)
| `- error: type 'Bundle?' has no member 'module'
30 | }
31 | }
[23/34] Compiling SoundCloud Image.swift
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Color.swift:11:55: error: type 'Bundle?' has no member 'module'
9 |
10 | public extension Color {
11 | static let scOrange = Color("sc_orange", bundle: .module)
| `- error: type 'Bundle?' has no member 'module'
12 | static let scOrangeLight = Color("sc_orange_light", bundle: .module)
13 | static let scOrangeDark = Color("sc_orange_dark", bundle: .module)
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Color.swift:12:66: error: type 'Bundle?' has no member 'module'
10 | public extension Color {
11 | static let scOrange = Color("sc_orange", bundle: .module)
12 | static let scOrangeLight = Color("sc_orange_light", bundle: .module)
| `- error: type 'Bundle?' has no member 'module'
13 | static let scOrangeDark = Color("sc_orange_dark", bundle: .module)
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Color.swift:13:64: error: type 'Bundle?' has no member 'module'
11 | static let scOrange = Color("sc_orange", bundle: .module)
12 | static let scOrangeLight = Color("sc_orange_light", bundle: .module)
13 | static let scOrangeDark = Color("sc_orange_dark", bundle: .module)
| `- error: type 'Bundle?' has no member 'module'
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Color.swift:10:18: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | static let scOrange = Color("sc_orange", bundle: .module)
12 | static let scOrangeLight = Color("sc_orange_light", bundle: .module)
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:12:37: error: 'Image' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension Image {
| `- note: add @available attribute to enclosing extension
11 |
12 | static var poweredBySoundCloud: Image {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
13 | Image("powered_by_sc", bundle: .module)
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:16:27: error: 'Image' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension Image {
| `- note: add @available attribute to enclosing extension
11 |
12 | static var poweredBySoundCloud: Image {
:
14 | }
15 |
16 | static var connectSC: Image {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
17 | Image("connect_sc", bundle: .module)
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:20:29: error: 'Image' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension Image {
| `- note: add @available attribute to enclosing extension
11 |
12 | static var poweredBySoundCloud: Image {
:
18 | }
19 |
20 | static var diconnectSC: Image {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
21 | Image("disconnect_sc", bundle: .module)
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:24:32: error: 'Image' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension Image {
| `- note: add @available attribute to enclosing extension
11 |
12 | static var poweredBySoundCloud: Image {
:
22 | }
23 |
24 | static var scLogoVertical: Image {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
25 | Image("sc_logo_vertical", bundle: .module)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:28:39: error: 'Image' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension Image {
| `- note: add @available attribute to enclosing extension
11 |
12 | static var poweredBySoundCloud: Image {
:
26 | }
27 |
28 | internal static var testWaveForm: Image {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
29 | Image("test_waveform", bundle: .module)
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:10:18: error: 'Image' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension Image {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 |
12 | static var poweredBySoundCloud: Image {
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:13:41: error: type 'Bundle?' has no member 'module'
11 |
12 | static var poweredBySoundCloud: Image {
13 | Image("powered_by_sc", bundle: .module)
| `- error: type 'Bundle?' has no member 'module'
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:17:38: error: type 'Bundle?' has no member 'module'
15 |
16 | static var connectSC: Image {
17 | Image("connect_sc", bundle: .module)
| `- error: type 'Bundle?' has no member 'module'
18 | }
19 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:21:41: error: type 'Bundle?' has no member 'module'
19 |
20 | static var diconnectSC: Image {
21 | Image("disconnect_sc", bundle: .module)
| `- error: type 'Bundle?' has no member 'module'
22 | }
23 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:25:44: error: type 'Bundle?' has no member 'module'
23 |
24 | static var scLogoVertical: Image {
25 | Image("sc_logo_vertical", bundle: .module)
| `- error: type 'Bundle?' has no member 'module'
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Image.swift:29:41: error: type 'Bundle?' has no member 'module'
27 |
28 | internal static var testWaveForm: Image {
29 | Image("test_waveform", bundle: .module)
| `- error: type 'Bundle?' has no member 'module'
30 | }
31 | }
[24/34] Compiling SoundCloud Playlist.swift
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Models/Playlist.swift:114:69: error: type 'Bundle?' has no member 'module'
112 | public var title: String {
113 | switch self {
114 | case .nowPlaying: String(localized: "Now Playing", bundle: .module, comment: "Noun")
| `- error: type 'Bundle?' has no member 'module'
115 | case .downloads: String(localized:"Downloads", bundle: .module, comment: "Plural noun")
116 | case .likes: String(localized:"Likes", bundle: .module, comment: "Plural noun")
[25/34] Compiling SoundCloud Status.swift
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Models/Playlist.swift:114:69: error: type 'Bundle?' has no member 'module'
112 | public var title: String {
113 | switch self {
114 | case .nowPlaying: String(localized: "Now Playing", bundle: .module, comment: "Noun")
| `- error: type 'Bundle?' has no member 'module'
115 | case .downloads: String(localized:"Downloads", bundle: .module, comment: "Plural noun")
116 | case .likes: String(localized:"Likes", bundle: .module, comment: "Plural noun")
[26/34] Compiling SoundCloud StatusCode.swift
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Models/Playlist.swift:114:69: error: type 'Bundle?' has no member 'module'
112 | public var title: String {
113 | switch self {
114 | case .nowPlaying: String(localized: "Now Playing", bundle: .module, comment: "Noun")
| `- error: type 'Bundle?' has no member 'module'
115 | case .downloads: String(localized:"Downloads", bundle: .module, comment: "Plural noun")
116 | case .likes: String(localized:"Likes", bundle: .module, comment: "Plural noun")
[27/34] Compiling SoundCloud Int.swift
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:20:10: error: 'LinearGradient' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension LinearGradient {
| `- note: add @available attribute to enclosing extension
11 | enum GradientDirection {
12 | case horizontal
:
15 |
16 | @ViewBuilder
17 | static func scOrange(
| `- note: add @available attribute to enclosing static method
18 | _ direction: GradientDirection = .vertical,
19 | reversed: Bool = false
20 | ) -> LinearGradient {
| `- error: 'LinearGradient' is only available in macOS 10.15 or newer
21 | let stops = [
22 | Gradient.Stop.init(color: .scOrangeLight, location: direction == .vertical ? 0 : 1),
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:16:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension LinearGradient {
| `- note: add @available attribute to enclosing extension
11 | enum GradientDirection {
12 | case horizontal
:
14 | }
15 |
16 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
17 | static func scOrange(
| `- note: add @available attribute to enclosing static method
18 | _ direction: GradientDirection = .vertical,
19 | reversed: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:32:23: error: 'LinearGradient' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension LinearGradient {
| `- note: add @available attribute to enclosing extension
11 | enum GradientDirection {
12 | case horizontal
:
30 | }
31 |
32 | static var empty: LinearGradient {
| | `- error: 'LinearGradient' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
33 | LinearGradient(stops: [], startPoint: .top, endPoint: .top)
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:10:18: error: 'LinearGradient' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension LinearGradient {
| | `- error: 'LinearGradient' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | enum GradientDirection {
12 | case horizontal
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:38:31: error: 'View' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
40 | Image(systemName: "playpause.fill")
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Color.swift:13:64: error: type 'Bundle?' has no member 'module'
11 | static let scOrange = Color("sc_orange", bundle: .module)
12 | static let scOrangeLight = Color("sc_orange_light", bundle: .module)
13 | static let scOrangeDark = Color("sc_orange_dark", bundle: .module)
| `- error: type 'Bundle?' has no member 'module'
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Color.swift:12:66: error: type 'Bundle?' has no member 'module'
10 | public extension Color {
11 | static let scOrange = Color("sc_orange", bundle: .module)
12 | static let scOrangeLight = Color("sc_orange_light", bundle: .module)
| `- error: type 'Bundle?' has no member 'module'
13 | static let scOrangeDark = Color("sc_orange_dark", bundle: .module)
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:33:9: error: 'LinearGradient' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension LinearGradient {
| `- note: add @available attribute to enclosing extension
11 | enum GradientDirection {
12 | case horizontal
:
30 | }
31 |
32 | static var empty: LinearGradient {
| `- note: add @available attribute to enclosing static property
33 | LinearGradient(stops: [], startPoint: .top, endPoint: .top)
| |- error: 'LinearGradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:39:9: error: 'VStack' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | Image(systemName: "playpause.fill")
41 | .resizable()
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:40:13: error: 'Image' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
40 | Image(systemName: "playpause.fill")
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | .resizable()
42 | .scaledToFit()
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:40:13: error: 'init(systemName:)' is only available in macOS 11.0 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
40 | Image(systemName: "playpause.fill")
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
41 | .resizable()
42 | .scaledToFit()
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:41:18: error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
40 | Image(systemName: "playpause.fill")
41 | .resizable()
| |- error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | .scaledToFit()
43 | .foregroundStyle(LinearGradient.scOrange(.vertical))
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:42:18: error: 'scaledToFit()' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
40 | Image(systemName: "playpause.fill")
41 | .resizable()
42 | .scaledToFit()
| |- error: 'scaledToFit()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | .foregroundStyle(LinearGradient.scOrange(.vertical))
44 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:43:18: error: 'foregroundStyle' is only available in macOS 12.0 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
40 | Image(systemName: "playpause.fill")
41 | .resizable()
42 | .scaledToFit()
43 | .foregroundStyle(LinearGradient.scOrange(.vertical))
| |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
44 |
45 | RoundedRectangle(cornerRadius: 8)
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:43:34: error: 'LinearGradient' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
40 | Image(systemName: "playpause.fill")
41 | .resizable()
42 | .scaledToFit()
43 | .foregroundStyle(LinearGradient.scOrange(.vertical))
| |- error: 'LinearGradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 |
45 | RoundedRectangle(cornerRadius: 8)
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:45:13: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
40 | Image(systemName: "playpause.fill")
:
43 | .foregroundStyle(LinearGradient.scOrange(.vertical))
44 |
45 | RoundedRectangle(cornerRadius: 8)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | .foregroundStyle(LinearGradient.scOrange(.horizontal))
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:46:18: error: 'foregroundStyle' is only available in macOS 12.0 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
40 | Image(systemName: "playpause.fill")
:
44 |
45 | RoundedRectangle(cornerRadius: 8)
46 | .foregroundStyle(LinearGradient.scOrange(.horizontal))
| |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
47 | }
48 | .padding(10)
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:46:34: error: 'LinearGradient' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
40 | Image(systemName: "playpause.fill")
:
44 |
45 | RoundedRectangle(cornerRadius: 8)
46 | .foregroundStyle(LinearGradient.scOrange(.horizontal))
| |- error: 'LinearGradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | }
48 | .padding(10)
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:48:10: error: 'padding' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
40 | Image(systemName: "playpause.fill")
:
46 | .foregroundStyle(LinearGradient.scOrange(.horizontal))
47 | }
48 | .padding(10)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | }
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Logger.swift:14:23: error: 'Logger' is only available in macOS 11.0 or newer
8 | import OSLog
9 |
10 | extension Logger {
| `- note: add @available attribute to enclosing extension
11 |
12 | private static let subsystem = "SoundCloud"
13 |
14 | static let auth = Logger(subsystem: subsystem, category: "Authentication")
| | `- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing static property
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Logger.swift:10:11: error: 'Logger' is only available in macOS 11.0 or newer
8 | import OSLog
9 |
10 | extension Logger {
| | `- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing extension
11 |
12 | private static let subsystem = "SoundCloud"
[28/34] Compiling SoundCloud LinearGradient.swift
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:20:10: error: 'LinearGradient' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension LinearGradient {
| `- note: add @available attribute to enclosing extension
11 | enum GradientDirection {
12 | case horizontal
:
15 |
16 | @ViewBuilder
17 | static func scOrange(
| `- note: add @available attribute to enclosing static method
18 | _ direction: GradientDirection = .vertical,
19 | reversed: Bool = false
20 | ) -> LinearGradient {
| `- error: 'LinearGradient' is only available in macOS 10.15 or newer
21 | let stops = [
22 | Gradient.Stop.init(color: .scOrangeLight, location: direction == .vertical ? 0 : 1),
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:16:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension LinearGradient {
| `- note: add @available attribute to enclosing extension
11 | enum GradientDirection {
12 | case horizontal
:
14 | }
15 |
16 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
17 | static func scOrange(
| `- note: add @available attribute to enclosing static method
18 | _ direction: GradientDirection = .vertical,
19 | reversed: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:32:23: error: 'LinearGradient' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension LinearGradient {
| `- note: add @available attribute to enclosing extension
11 | enum GradientDirection {
12 | case horizontal
:
30 | }
31 |
32 | static var empty: LinearGradient {
| | `- error: 'LinearGradient' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
33 | LinearGradient(stops: [], startPoint: .top, endPoint: .top)
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:10:18: error: 'LinearGradient' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension LinearGradient {
| | `- error: 'LinearGradient' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | enum GradientDirection {
12 | case horizontal
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:38:31: error: 'View' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
40 | Image(systemName: "playpause.fill")
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Color.swift:13:64: error: type 'Bundle?' has no member 'module'
11 | static let scOrange = Color("sc_orange", bundle: .module)
12 | static let scOrangeLight = Color("sc_orange_light", bundle: .module)
13 | static let scOrangeDark = Color("sc_orange_dark", bundle: .module)
| `- error: type 'Bundle?' has no member 'module'
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Color.swift:12:66: error: type 'Bundle?' has no member 'module'
10 | public extension Color {
11 | static let scOrange = Color("sc_orange", bundle: .module)
12 | static let scOrangeLight = Color("sc_orange_light", bundle: .module)
| `- error: type 'Bundle?' has no member 'module'
13 | static let scOrangeDark = Color("sc_orange_dark", bundle: .module)
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:33:9: error: 'LinearGradient' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension LinearGradient {
| `- note: add @available attribute to enclosing extension
11 | enum GradientDirection {
12 | case horizontal
:
30 | }
31 |
32 | static var empty: LinearGradient {
| `- note: add @available attribute to enclosing static property
33 | LinearGradient(stops: [], startPoint: .top, endPoint: .top)
| |- error: 'LinearGradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:39:9: error: 'VStack' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | Image(systemName: "playpause.fill")
41 | .resizable()
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:40:13: error: 'Image' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
40 | Image(systemName: "playpause.fill")
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | .resizable()
42 | .scaledToFit()
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:40:13: error: 'init(systemName:)' is only available in macOS 11.0 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
40 | Image(systemName: "playpause.fill")
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
41 | .resizable()
42 | .scaledToFit()
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:41:18: error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
40 | Image(systemName: "playpause.fill")
41 | .resizable()
| |- error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | .scaledToFit()
43 | .foregroundStyle(LinearGradient.scOrange(.vertical))
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:42:18: error: 'scaledToFit()' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
40 | Image(systemName: "playpause.fill")
41 | .resizable()
42 | .scaledToFit()
| |- error: 'scaledToFit()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | .foregroundStyle(LinearGradient.scOrange(.vertical))
44 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:43:18: error: 'foregroundStyle' is only available in macOS 12.0 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
40 | Image(systemName: "playpause.fill")
41 | .resizable()
42 | .scaledToFit()
43 | .foregroundStyle(LinearGradient.scOrange(.vertical))
| |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
44 |
45 | RoundedRectangle(cornerRadius: 8)
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:43:34: error: 'LinearGradient' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
40 | Image(systemName: "playpause.fill")
41 | .resizable()
42 | .scaledToFit()
43 | .foregroundStyle(LinearGradient.scOrange(.vertical))
| |- error: 'LinearGradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 |
45 | RoundedRectangle(cornerRadius: 8)
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:45:13: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
40 | Image(systemName: "playpause.fill")
:
43 | .foregroundStyle(LinearGradient.scOrange(.vertical))
44 |
45 | RoundedRectangle(cornerRadius: 8)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | .foregroundStyle(LinearGradient.scOrange(.horizontal))
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:46:18: error: 'foregroundStyle' is only available in macOS 12.0 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
40 | Image(systemName: "playpause.fill")
:
44 |
45 | RoundedRectangle(cornerRadius: 8)
46 | .foregroundStyle(LinearGradient.scOrange(.horizontal))
| |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
47 | }
48 | .padding(10)
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:46:34: error: 'LinearGradient' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
40 | Image(systemName: "playpause.fill")
:
44 |
45 | RoundedRectangle(cornerRadius: 8)
46 | .foregroundStyle(LinearGradient.scOrange(.horizontal))
| |- error: 'LinearGradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | }
48 | .padding(10)
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:48:10: error: 'padding' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
40 | Image(systemName: "playpause.fill")
:
46 | .foregroundStyle(LinearGradient.scOrange(.horizontal))
47 | }
48 | .padding(10)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | }
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Logger.swift:14:23: error: 'Logger' is only available in macOS 11.0 or newer
8 | import OSLog
9 |
10 | extension Logger {
| `- note: add @available attribute to enclosing extension
11 |
12 | private static let subsystem = "SoundCloud"
13 |
14 | static let auth = Logger(subsystem: subsystem, category: "Authentication")
| | `- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing static property
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Logger.swift:10:11: error: 'Logger' is only available in macOS 11.0 or newer
8 | import OSLog
9 |
10 | extension Logger {
| | `- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing extension
11 |
12 | private static let subsystem = "SoundCloud"
[29/34] Compiling SoundCloud Logger.swift
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:20:10: error: 'LinearGradient' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension LinearGradient {
| `- note: add @available attribute to enclosing extension
11 | enum GradientDirection {
12 | case horizontal
:
15 |
16 | @ViewBuilder
17 | static func scOrange(
| `- note: add @available attribute to enclosing static method
18 | _ direction: GradientDirection = .vertical,
19 | reversed: Bool = false
20 | ) -> LinearGradient {
| `- error: 'LinearGradient' is only available in macOS 10.15 or newer
21 | let stops = [
22 | Gradient.Stop.init(color: .scOrangeLight, location: direction == .vertical ? 0 : 1),
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:16:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension LinearGradient {
| `- note: add @available attribute to enclosing extension
11 | enum GradientDirection {
12 | case horizontal
:
14 | }
15 |
16 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
17 | static func scOrange(
| `- note: add @available attribute to enclosing static method
18 | _ direction: GradientDirection = .vertical,
19 | reversed: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:32:23: error: 'LinearGradient' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension LinearGradient {
| `- note: add @available attribute to enclosing extension
11 | enum GradientDirection {
12 | case horizontal
:
30 | }
31 |
32 | static var empty: LinearGradient {
| | `- error: 'LinearGradient' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
33 | LinearGradient(stops: [], startPoint: .top, endPoint: .top)
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:10:18: error: 'LinearGradient' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension LinearGradient {
| | `- error: 'LinearGradient' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | enum GradientDirection {
12 | case horizontal
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:38:31: error: 'View' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
40 | Image(systemName: "playpause.fill")
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Color.swift:13:64: error: type 'Bundle?' has no member 'module'
11 | static let scOrange = Color("sc_orange", bundle: .module)
12 | static let scOrangeLight = Color("sc_orange_light", bundle: .module)
13 | static let scOrangeDark = Color("sc_orange_dark", bundle: .module)
| `- error: type 'Bundle?' has no member 'module'
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Color.swift:12:66: error: type 'Bundle?' has no member 'module'
10 | public extension Color {
11 | static let scOrange = Color("sc_orange", bundle: .module)
12 | static let scOrangeLight = Color("sc_orange_light", bundle: .module)
| `- error: type 'Bundle?' has no member 'module'
13 | static let scOrangeDark = Color("sc_orange_dark", bundle: .module)
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:33:9: error: 'LinearGradient' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension LinearGradient {
| `- note: add @available attribute to enclosing extension
11 | enum GradientDirection {
12 | case horizontal
:
30 | }
31 |
32 | static var empty: LinearGradient {
| `- note: add @available attribute to enclosing static property
33 | LinearGradient(stops: [], startPoint: .top, endPoint: .top)
| |- error: 'LinearGradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:39:9: error: 'VStack' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | Image(systemName: "playpause.fill")
41 | .resizable()
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:40:13: error: 'Image' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
40 | Image(systemName: "playpause.fill")
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | .resizable()
42 | .scaledToFit()
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:40:13: error: 'init(systemName:)' is only available in macOS 11.0 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
40 | Image(systemName: "playpause.fill")
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
41 | .resizable()
42 | .scaledToFit()
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:41:18: error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
40 | Image(systemName: "playpause.fill")
41 | .resizable()
| |- error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | .scaledToFit()
43 | .foregroundStyle(LinearGradient.scOrange(.vertical))
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:42:18: error: 'scaledToFit()' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
40 | Image(systemName: "playpause.fill")
41 | .resizable()
42 | .scaledToFit()
| |- error: 'scaledToFit()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | .foregroundStyle(LinearGradient.scOrange(.vertical))
44 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:43:18: error: 'foregroundStyle' is only available in macOS 12.0 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
40 | Image(systemName: "playpause.fill")
41 | .resizable()
42 | .scaledToFit()
43 | .foregroundStyle(LinearGradient.scOrange(.vertical))
| |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
44 |
45 | RoundedRectangle(cornerRadius: 8)
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:43:34: error: 'LinearGradient' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
40 | Image(systemName: "playpause.fill")
41 | .resizable()
42 | .scaledToFit()
43 | .foregroundStyle(LinearGradient.scOrange(.vertical))
| |- error: 'LinearGradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 |
45 | RoundedRectangle(cornerRadius: 8)
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:45:13: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
40 | Image(systemName: "playpause.fill")
:
43 | .foregroundStyle(LinearGradient.scOrange(.vertical))
44 |
45 | RoundedRectangle(cornerRadius: 8)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | .foregroundStyle(LinearGradient.scOrange(.horizontal))
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:46:18: error: 'foregroundStyle' is only available in macOS 12.0 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
40 | Image(systemName: "playpause.fill")
:
44 |
45 | RoundedRectangle(cornerRadius: 8)
46 | .foregroundStyle(LinearGradient.scOrange(.horizontal))
| |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
47 | }
48 | .padding(10)
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:46:34: error: 'LinearGradient' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
40 | Image(systemName: "playpause.fill")
:
44 |
45 | RoundedRectangle(cornerRadius: 8)
46 | .foregroundStyle(LinearGradient.scOrange(.horizontal))
| |- error: 'LinearGradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | }
48 | .padding(10)
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/LinearGradient.swift:48:10: error: 'padding' is only available in macOS 10.15 or newer
35 | }
36 |
37 | struct LinearGradient_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
38 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
39 | VStack(spacing: 20) {
40 | Image(systemName: "playpause.fill")
:
46 | .foregroundStyle(LinearGradient.scOrange(.horizontal))
47 | }
48 | .padding(10)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | }
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Logger.swift:14:23: error: 'Logger' is only available in macOS 11.0 or newer
8 | import OSLog
9 |
10 | extension Logger {
| `- note: add @available attribute to enclosing extension
11 |
12 | private static let subsystem = "SoundCloud"
13 |
14 | static let auth = Logger(subsystem: subsystem, category: "Authentication")
| | `- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing static property
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Logger.swift:10:11: error: 'Logger' is only available in macOS 11.0 or newer
8 | import OSLog
9 |
10 | extension Logger {
| | `- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing extension
11 |
12 | private static let subsystem = "SoundCloud"
[30/34] Compiling SoundCloud PKCE.swift
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/PKCE.swift:23:24: error: 'SHA256' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | enum PKCE {
| `- note: add @available attribute to enclosing enum
12 |
13 | static func generateCodeVerifier() -> String {
:
17 | }
18 |
19 | static func generateCodeChallenge(using codeVerifier: String) throws -> String {
| `- note: add @available attribute to enclosing static method
20 | guard let data = codeVerifier.data(using: .utf8) else {
21 | throw Error.generatingCodeChallenge
22 | }
23 | let dataHash = SHA256.hash(data: data)
| |- error: 'SHA256' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | return Data(dataHash).base64URLEncodedString()
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/PKCE.swift:23:31: error: 'hash(data:)' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | enum PKCE {
| `- note: add @available attribute to enclosing enum
12 |
13 | static func generateCodeVerifier() -> String {
:
17 | }
18 |
19 | static func generateCodeChallenge(using codeVerifier: String) throws -> String {
| `- note: add @available attribute to enclosing static method
20 | guard let data = codeVerifier.data(using: .utf8) else {
21 | throw Error.generatingCodeChallenge
22 | }
23 | let dataHash = SHA256.hash(data: data)
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | return Data(dataHash).base64URLEncodedString()
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/PKCE.swift:24:16: warning: conformance of 'SHA256Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | enum PKCE {
| `- note: add @available attribute to enclosing enum
12 |
13 | static func generateCodeVerifier() -> String {
:
17 | }
18 |
19 | static func generateCodeChallenge(using codeVerifier: String) throws -> String {
| `- note: add @available attribute to enclosing static method
20 | guard let data = codeVerifier.data(using: .utf8) else {
21 | throw Error.generatingCodeChallenge
22 | }
23 | let dataHash = SHA256.hash(data: data)
24 | return Data(dataHash).base64URLEncodedString()
| |- warning: conformance of 'SHA256Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
25 | }
26 | }
[31/34] Compiling SoundCloud URL.swift
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/PKCE.swift:23:24: error: 'SHA256' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | enum PKCE {
| `- note: add @available attribute to enclosing enum
12 |
13 | static func generateCodeVerifier() -> String {
:
17 | }
18 |
19 | static func generateCodeChallenge(using codeVerifier: String) throws -> String {
| `- note: add @available attribute to enclosing static method
20 | guard let data = codeVerifier.data(using: .utf8) else {
21 | throw Error.generatingCodeChallenge
22 | }
23 | let dataHash = SHA256.hash(data: data)
| |- error: 'SHA256' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | return Data(dataHash).base64URLEncodedString()
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/PKCE.swift:23:31: error: 'hash(data:)' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | enum PKCE {
| `- note: add @available attribute to enclosing enum
12 |
13 | static func generateCodeVerifier() -> String {
:
17 | }
18 |
19 | static func generateCodeChallenge(using codeVerifier: String) throws -> String {
| `- note: add @available attribute to enclosing static method
20 | guard let data = codeVerifier.data(using: .utf8) else {
21 | throw Error.generatingCodeChallenge
22 | }
23 | let dataHash = SHA256.hash(data: data)
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | return Data(dataHash).base64URLEncodedString()
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/PKCE.swift:24:16: warning: conformance of 'SHA256Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | enum PKCE {
| `- note: add @available attribute to enclosing enum
12 |
13 | static func generateCodeVerifier() -> String {
:
17 | }
18 |
19 | static func generateCodeChallenge(using codeVerifier: String) throws -> String {
| `- note: add @available attribute to enclosing static method
20 | guard let data = codeVerifier.data(using: .utf8) else {
21 | throw Error.generatingCodeChallenge
22 | }
23 | let dataHash = SHA256.hash(data: data)
24 | return Data(dataHash).base64URLEncodedString()
| |- warning: conformance of 'SHA256Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
25 | }
26 | }
[32/34] Compiling SoundCloud Page.swift
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/PKCE.swift:23:24: error: 'SHA256' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | enum PKCE {
| `- note: add @available attribute to enclosing enum
12 |
13 | static func generateCodeVerifier() -> String {
:
17 | }
18 |
19 | static func generateCodeChallenge(using codeVerifier: String) throws -> String {
| `- note: add @available attribute to enclosing static method
20 | guard let data = codeVerifier.data(using: .utf8) else {
21 | throw Error.generatingCodeChallenge
22 | }
23 | let dataHash = SHA256.hash(data: data)
| |- error: 'SHA256' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | return Data(dataHash).base64URLEncodedString()
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/PKCE.swift:23:31: error: 'hash(data:)' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | enum PKCE {
| `- note: add @available attribute to enclosing enum
12 |
13 | static func generateCodeVerifier() -> String {
:
17 | }
18 |
19 | static func generateCodeChallenge(using codeVerifier: String) throws -> String {
| `- note: add @available attribute to enclosing static method
20 | guard let data = codeVerifier.data(using: .utf8) else {
21 | throw Error.generatingCodeChallenge
22 | }
23 | let dataHash = SHA256.hash(data: data)
| |- error: 'hash(data:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | return Data(dataHash).base64URLEncodedString()
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/PKCE.swift:24:16: warning: conformance of 'SHA256Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | enum PKCE {
| `- note: add @available attribute to enclosing enum
12 |
13 | static func generateCodeVerifier() -> String {
:
17 | }
18 |
19 | static func generateCodeChallenge(using codeVerifier: String) throws -> String {
| `- note: add @available attribute to enclosing static method
20 | guard let data = codeVerifier.data(using: .utf8) else {
21 | throw Error.generatingCodeChallenge
22 | }
23 | let dataHash = SHA256.hash(data: data)
24 | return Data(dataHash).base64URLEncodedString()
| |- warning: conformance of 'SHA256Digest' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
25 | }
26 | }
[33/34] Compiling SoundCloud SoundCloud.swift
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/SoundCloud.swift:29:36: error: 'AnyCancellable' is only available in macOS 10.15 or newer
21 | /// - Important: OAuth tokens are stored in the `Keychain` by default.
22 | /// - SeeAlso: Visit the [SoundCloud API Explorer](https://developers.soundcloud.com/docs/api/explorer/open-api#/) for more information.
23 | public final class SoundCloud {
| `- note: add @available attribute to enclosing class
24 |
25 | private let config: Config
:
27 | private let decoder = JSONDecoder()
28 | private let urlSession = URLSession(configuration: .default)
29 | public var subscriptions = Set<AnyCancellable>()
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
30 |
31 | public init(
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/SoundCloud.swift:65:17: error: 'ASWebAuthenticationSession' is only available in macOS 10.15 or newer
41 |
42 | // MARK: - Public 👀
43 | public extension SoundCloud {
| `- note: add @available attribute to enclosing extension
44 |
45 | // MARK: - Auth 🔐
:
53 | /// - Throws: **`.loggingIn`** if an error occurred while fetching the authorization code or authentication tokens.
54 | @discardableResult
55 | func login() async throws -> TokenResponse {
| `- note: add @available attribute to enclosing instance method
56 | do {
57 | let codeVerifier = PKCE.generateCodeVerifier()
:
63 | saveTokensWithCreationDate(newAuthTokens)
64 | return newAuthTokens
65 | } catch(ASWebAuthenticationSession.Error.cancelledLogin) {
| |- error: 'ASWebAuthenticationSession' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | throw Error.cancelledLogin
67 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/SoundCloud.swift:209:53: error: type 'ASWebAuthenticationSession' has no member 'getAuthorizationCode'
207 | )
208 | #else
209 | return try await ASWebAuthenticationSession.getAuthorizationCode(
| `- error: type 'ASWebAuthenticationSession' has no member 'getAuthorizationCode'
210 | from: url,
211 | with: config.redirectURI
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/SoundCloud.swift:244:60: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
196 |
197 | // MARK: - Private 🚫👀
198 | private extension SoundCloud {
| `- note: add @available attribute to enclosing extension
199 |
200 | // MARK: - Auth 🔐
:
241 | }
242 |
243 | func fetchData<T: Decodable>(using request: URLRequest) async throws -> T {
| `- note: add @available attribute to enclosing instance method
244 | guard let (data, response) = try? await urlSession.data(for: request) else {
| |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
245 | throw Error.noInternet // Is no internet the only case here?
246 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Logger.swift:14:23: error: 'Logger' is only available in macOS 11.0 or newer
8 | import OSLog
9 |
10 | extension Logger {
| `- note: add @available attribute to enclosing extension
11 |
12 | private static let subsystem = "SoundCloud"
13 |
14 | static let auth = Logger(subsystem: subsystem, category: "Authentication")
| | `- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing static property
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/SoundCloud.swift:288:9: error: 'Logger' is only available in macOS 11.0 or newer
196 |
197 | // MARK: - Private 🚫👀
198 | private extension SoundCloud {
| `- note: add @available attribute to enclosing extension
199 |
200 | // MARK: - Auth 🔐
:
284 |
285 | // MARK: - Debug logging 📝
286 | func logCurrentAuthToken() {
| `- note: add @available attribute to enclosing instance method
287 | let token = try? tokenDAO.get().accessToken
288 | Logger.auth.info("💾 Current access token: \(token ?? "None", privacy: .private)")
| |- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
289 | }
290 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/SoundCloud.swift:288:26: error: 'OSLogMessage' is only available in macOS 11.0 or newer
196 |
197 | // MARK: - Private 🚫👀
198 | private extension SoundCloud {
| `- note: add @available attribute to enclosing extension
199 |
200 | // MARK: - Auth 🔐
:
284 |
285 | // MARK: - Debug logging 📝
286 | func logCurrentAuthToken() {
| `- note: add @available attribute to enclosing instance method
287 | let token = try? tokenDAO.get().accessToken
288 | Logger.auth.info("💾 Current access token: \(token ?? "None", privacy: .private)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
289 | }
290 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/SoundCloud.swift:288:55: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
196 |
197 | // MARK: - Private 🚫👀
198 | private extension SoundCloud {
| `- note: add @available attribute to enclosing extension
199 |
200 | // MARK: - Auth 🔐
:
284 |
285 | // MARK: - Debug logging 📝
286 | func logCurrentAuthToken() {
| `- note: add @available attribute to enclosing instance method
287 | let token = try? tokenDAO.get().accessToken
288 | Logger.auth.info("💾 Current access token: \(token ?? "None", privacy: .private)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
289 | }
290 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/SoundCloud.swift:292:9: error: 'Logger' is only available in macOS 11.0 or newer
196 |
197 | // MARK: - Private 🚫👀
198 | private extension SoundCloud {
| `- note: add @available attribute to enclosing extension
199 |
200 | // MARK: - Auth 🔐
:
289 | }
290 |
291 | func logNewAuthToken(_ token: String) {
| `- note: add @available attribute to enclosing instance method
292 | Logger.auth.info("🌟 Received new access token: \(token, privacy: .private)")
| |- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
293 | }
294 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/SoundCloud.swift:292:26: error: 'OSLogMessage' is only available in macOS 11.0 or newer
196 |
197 | // MARK: - Private 🚫👀
198 | private extension SoundCloud {
| `- note: add @available attribute to enclosing extension
199 |
200 | // MARK: - Auth 🔐
:
289 | }
290 |
291 | func logNewAuthToken(_ token: String) {
| `- note: add @available attribute to enclosing instance method
292 | Logger.auth.info("🌟 Received new access token: \(token, privacy: .private)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
293 | }
294 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/SoundCloud.swift:292:60: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
196 |
197 | // MARK: - Private 🚫👀
198 | private extension SoundCloud {
| `- note: add @available attribute to enclosing extension
199 |
200 | // MARK: - Auth 🔐
:
289 | }
290 |
291 | func logNewAuthToken(_ token: String) {
| `- note: add @available attribute to enclosing instance method
292 | Logger.auth.info("🌟 Received new access token: \(token, privacy: .private)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
293 | }
294 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/SoundCloud.swift:296:9: error: 'Logger' is only available in macOS 11.0 or newer
196 |
197 | // MARK: - Private 🚫👀
198 | private extension SoundCloud {
| `- note: add @available attribute to enclosing extension
199 |
200 | // MARK: - Auth 🔐
:
293 | }
294 |
295 | func logAuthTokenExpired(_ date: Date) {
| `- note: add @available attribute to enclosing instance method
296 | Logger.auth.warning("⏰ Access token expired at: \(date)")
| |- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
297 | }
298 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/SoundCloud.swift:296:29: error: 'OSLogMessage' is only available in macOS 11.0 or newer
196 |
197 | // MARK: - Private 🚫👀
198 | private extension SoundCloud {
| `- note: add @available attribute to enclosing extension
199 |
200 | // MARK: - Auth 🔐
:
293 | }
294 |
295 | func logAuthTokenExpired(_ date: Date) {
| `- note: add @available attribute to enclosing instance method
296 | Logger.auth.warning("⏰ Access token expired at: \(date)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
297 | }
298 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/SoundCloud.swift:296:60: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
196 |
197 | // MARK: - Private 🚫👀
198 | private extension SoundCloud {
| `- note: add @available attribute to enclosing extension
199 |
200 | // MARK: - Auth 🔐
:
293 | }
294 |
295 | func logAuthTokenExpired(_ date: Date) {
| `- note: add @available attribute to enclosing instance method
296 | Logger.auth.warning("⏰ Access token expired at: \(date)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
297 | }
298 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/UI/WaveformView.swift:13:28: error: cannot find type 'UIImage' in scope
11 |
12 | @Binding var progress: CGFloat
13 | @Binding var waveform: UIImage
| `- error: cannot find type 'UIImage' in scope
14 |
15 | public var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/UI/WaveformView.swift:12:6: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WaveformView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Binding var progress: CGFloat
| `- error: 'Binding' is only available in macOS 10.15 or newer
13 | @Binding var waveform: UIImage
14 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/UI/WaveformView.swift:13:6: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WaveformView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Binding var progress: CGFloat
13 | @Binding var waveform: UIImage
| `- error: 'Binding' is only available in macOS 10.15 or newer
14 |
15 | public var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/UI/WaveformView.swift:15:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WaveformView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Binding var progress: CGFloat
13 | @Binding var waveform: UIImage
14 |
15 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
16 | GeometryReader { geo in
17 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/UI/WaveformView.swift:56:6: error: 'State' is only available in macOS 10.15 or newer
53 | }
54 |
55 | struct SwiftUIView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
56 | @State static var progress: CGFloat = 0.5
| `- error: 'State' is only available in macOS 10.15 or newer
57 | @State static var waveform: UIImage = UIImage(named: "test_waveform", in: .module, with: nil)!
58 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/UI/WaveformView.swift:57:33: error: cannot find type 'UIImage' in scope
55 | struct SwiftUIView_Previews: PreviewProvider {
56 | @State static var progress: CGFloat = 0.5
57 | @State static var waveform: UIImage = UIImage(named: "test_waveform", in: .module, with: nil)!
| `- error: cannot find type 'UIImage' in scope
58 |
59 | static var previews: some View {
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/UI/WaveformView.swift:57:6: error: 'State' is only available in macOS 10.15 or newer
53 | }
54 |
55 | struct SwiftUIView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
56 | @State static var progress: CGFloat = 0.5
57 | @State static var waveform: UIImage = UIImage(named: "test_waveform", in: .module, with: nil)!
| `- error: 'State' is only available in macOS 10.15 or newer
58 |
59 | static var previews: some View {
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/UI/WaveformView.swift:59:31: error: 'View' is only available in macOS 10.15 or newer
53 | }
54 |
55 | struct SwiftUIView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
56 | @State static var progress: CGFloat = 0.5
57 | @State static var waveform: UIImage = UIImage(named: "test_waveform", in: .module, with: nil)!
58 |
59 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
60 | WaveformView(progress: $progress, waveform: $waveform)
61 | .previewLayout(.sizeThatFits)
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/UI/WaveformView.swift:20:26: error: extraneous argument label 'uiImage:' in call
18 | ZStack {
19 | Color.secondary.opacity(0.3)
20 | Image(uiImage: waveform)
| `- error: extraneous argument label 'uiImage:' in call
21 | .resizable()
22 | .renderingMode(.template)
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/UI/WaveformView.swift:61:29: error: cannot infer contextual base in reference to member 'sizeThatFits'
59 | static var previews: some View {
60 | WaveformView(progress: $progress, waveform: $waveform)
61 | .previewLayout(.sizeThatFits)
| `- error: cannot infer contextual base in reference to member 'sizeThatFits'
62 | .frame(width: 100, height: 30)
63 | }
[34/34] Compiling SoundCloud WaveformView.swift
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/SoundCloud.swift:29:36: error: 'AnyCancellable' is only available in macOS 10.15 or newer
21 | /// - Important: OAuth tokens are stored in the `Keychain` by default.
22 | /// - SeeAlso: Visit the [SoundCloud API Explorer](https://developers.soundcloud.com/docs/api/explorer/open-api#/) for more information.
23 | public final class SoundCloud {
| `- note: add @available attribute to enclosing class
24 |
25 | private let config: Config
:
27 | private let decoder = JSONDecoder()
28 | private let urlSession = URLSession(configuration: .default)
29 | public var subscriptions = Set<AnyCancellable>()
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
30 |
31 | public init(
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/SoundCloud.swift:65:17: error: 'ASWebAuthenticationSession' is only available in macOS 10.15 or newer
41 |
42 | // MARK: - Public 👀
43 | public extension SoundCloud {
| `- note: add @available attribute to enclosing extension
44 |
45 | // MARK: - Auth 🔐
:
53 | /// - Throws: **`.loggingIn`** if an error occurred while fetching the authorization code or authentication tokens.
54 | @discardableResult
55 | func login() async throws -> TokenResponse {
| `- note: add @available attribute to enclosing instance method
56 | do {
57 | let codeVerifier = PKCE.generateCodeVerifier()
:
63 | saveTokensWithCreationDate(newAuthTokens)
64 | return newAuthTokens
65 | } catch(ASWebAuthenticationSession.Error.cancelledLogin) {
| |- error: 'ASWebAuthenticationSession' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | throw Error.cancelledLogin
67 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/SoundCloud.swift:209:53: error: type 'ASWebAuthenticationSession' has no member 'getAuthorizationCode'
207 | )
208 | #else
209 | return try await ASWebAuthenticationSession.getAuthorizationCode(
| `- error: type 'ASWebAuthenticationSession' has no member 'getAuthorizationCode'
210 | from: url,
211 | with: config.redirectURI
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/SoundCloud.swift:244:60: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
196 |
197 | // MARK: - Private 🚫👀
198 | private extension SoundCloud {
| `- note: add @available attribute to enclosing extension
199 |
200 | // MARK: - Auth 🔐
:
241 | }
242 |
243 | func fetchData<T: Decodable>(using request: URLRequest) async throws -> T {
| `- note: add @available attribute to enclosing instance method
244 | guard let (data, response) = try? await urlSession.data(for: request) else {
| |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
245 | throw Error.noInternet // Is no internet the only case here?
246 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Extension/Logger.swift:14:23: error: 'Logger' is only available in macOS 11.0 or newer
8 | import OSLog
9 |
10 | extension Logger {
| `- note: add @available attribute to enclosing extension
11 |
12 | private static let subsystem = "SoundCloud"
13 |
14 | static let auth = Logger(subsystem: subsystem, category: "Authentication")
| | `- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing static property
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/SoundCloud.swift:288:9: error: 'Logger' is only available in macOS 11.0 or newer
196 |
197 | // MARK: - Private 🚫👀
198 | private extension SoundCloud {
| `- note: add @available attribute to enclosing extension
199 |
200 | // MARK: - Auth 🔐
:
284 |
285 | // MARK: - Debug logging 📝
286 | func logCurrentAuthToken() {
| `- note: add @available attribute to enclosing instance method
287 | let token = try? tokenDAO.get().accessToken
288 | Logger.auth.info("💾 Current access token: \(token ?? "None", privacy: .private)")
| |- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
289 | }
290 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/SoundCloud.swift:288:26: error: 'OSLogMessage' is only available in macOS 11.0 or newer
196 |
197 | // MARK: - Private 🚫👀
198 | private extension SoundCloud {
| `- note: add @available attribute to enclosing extension
199 |
200 | // MARK: - Auth 🔐
:
284 |
285 | // MARK: - Debug logging 📝
286 | func logCurrentAuthToken() {
| `- note: add @available attribute to enclosing instance method
287 | let token = try? tokenDAO.get().accessToken
288 | Logger.auth.info("💾 Current access token: \(token ?? "None", privacy: .private)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
289 | }
290 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/SoundCloud.swift:288:55: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
196 |
197 | // MARK: - Private 🚫👀
198 | private extension SoundCloud {
| `- note: add @available attribute to enclosing extension
199 |
200 | // MARK: - Auth 🔐
:
284 |
285 | // MARK: - Debug logging 📝
286 | func logCurrentAuthToken() {
| `- note: add @available attribute to enclosing instance method
287 | let token = try? tokenDAO.get().accessToken
288 | Logger.auth.info("💾 Current access token: \(token ?? "None", privacy: .private)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
289 | }
290 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/SoundCloud.swift:292:9: error: 'Logger' is only available in macOS 11.0 or newer
196 |
197 | // MARK: - Private 🚫👀
198 | private extension SoundCloud {
| `- note: add @available attribute to enclosing extension
199 |
200 | // MARK: - Auth 🔐
:
289 | }
290 |
291 | func logNewAuthToken(_ token: String) {
| `- note: add @available attribute to enclosing instance method
292 | Logger.auth.info("🌟 Received new access token: \(token, privacy: .private)")
| |- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
293 | }
294 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/SoundCloud.swift:292:26: error: 'OSLogMessage' is only available in macOS 11.0 or newer
196 |
197 | // MARK: - Private 🚫👀
198 | private extension SoundCloud {
| `- note: add @available attribute to enclosing extension
199 |
200 | // MARK: - Auth 🔐
:
289 | }
290 |
291 | func logNewAuthToken(_ token: String) {
| `- note: add @available attribute to enclosing instance method
292 | Logger.auth.info("🌟 Received new access token: \(token, privacy: .private)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
293 | }
294 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/SoundCloud.swift:292:60: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
196 |
197 | // MARK: - Private 🚫👀
198 | private extension SoundCloud {
| `- note: add @available attribute to enclosing extension
199 |
200 | // MARK: - Auth 🔐
:
289 | }
290 |
291 | func logNewAuthToken(_ token: String) {
| `- note: add @available attribute to enclosing instance method
292 | Logger.auth.info("🌟 Received new access token: \(token, privacy: .private)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
293 | }
294 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/SoundCloud.swift:296:9: error: 'Logger' is only available in macOS 11.0 or newer
196 |
197 | // MARK: - Private 🚫👀
198 | private extension SoundCloud {
| `- note: add @available attribute to enclosing extension
199 |
200 | // MARK: - Auth 🔐
:
293 | }
294 |
295 | func logAuthTokenExpired(_ date: Date) {
| `- note: add @available attribute to enclosing instance method
296 | Logger.auth.warning("⏰ Access token expired at: \(date)")
| |- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
297 | }
298 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/SoundCloud.swift:296:29: error: 'OSLogMessage' is only available in macOS 11.0 or newer
196 |
197 | // MARK: - Private 🚫👀
198 | private extension SoundCloud {
| `- note: add @available attribute to enclosing extension
199 |
200 | // MARK: - Auth 🔐
:
293 | }
294 |
295 | func logAuthTokenExpired(_ date: Date) {
| `- note: add @available attribute to enclosing instance method
296 | Logger.auth.warning("⏰ Access token expired at: \(date)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
297 | }
298 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/SoundCloud.swift:296:60: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
196 |
197 | // MARK: - Private 🚫👀
198 | private extension SoundCloud {
| `- note: add @available attribute to enclosing extension
199 |
200 | // MARK: - Auth 🔐
:
293 | }
294 |
295 | func logAuthTokenExpired(_ date: Date) {
| `- note: add @available attribute to enclosing instance method
296 | Logger.auth.warning("⏰ Access token expired at: \(date)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
297 | }
298 | }
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/UI/WaveformView.swift:13:28: error: cannot find type 'UIImage' in scope
11 |
12 | @Binding var progress: CGFloat
13 | @Binding var waveform: UIImage
| `- error: cannot find type 'UIImage' in scope
14 |
15 | public var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/UI/WaveformView.swift:12:6: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WaveformView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Binding var progress: CGFloat
| `- error: 'Binding' is only available in macOS 10.15 or newer
13 | @Binding var waveform: UIImage
14 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/UI/WaveformView.swift:13:6: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WaveformView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Binding var progress: CGFloat
13 | @Binding var waveform: UIImage
| `- error: 'Binding' is only available in macOS 10.15 or newer
14 |
15 | public var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/UI/WaveformView.swift:15:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WaveformView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Binding var progress: CGFloat
13 | @Binding var waveform: UIImage
14 |
15 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
16 | GeometryReader { geo in
17 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/UI/WaveformView.swift:56:6: error: 'State' is only available in macOS 10.15 or newer
53 | }
54 |
55 | struct SwiftUIView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
56 | @State static var progress: CGFloat = 0.5
| `- error: 'State' is only available in macOS 10.15 or newer
57 | @State static var waveform: UIImage = UIImage(named: "test_waveform", in: .module, with: nil)!
58 |
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/UI/WaveformView.swift:57:33: error: cannot find type 'UIImage' in scope
55 | struct SwiftUIView_Previews: PreviewProvider {
56 | @State static var progress: CGFloat = 0.5
57 | @State static var waveform: UIImage = UIImage(named: "test_waveform", in: .module, with: nil)!
| `- error: cannot find type 'UIImage' in scope
58 |
59 | static var previews: some View {
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/UI/WaveformView.swift:57:6: error: 'State' is only available in macOS 10.15 or newer
53 | }
54 |
55 | struct SwiftUIView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
56 | @State static var progress: CGFloat = 0.5
57 | @State static var waveform: UIImage = UIImage(named: "test_waveform", in: .module, with: nil)!
| `- error: 'State' is only available in macOS 10.15 or newer
58 |
59 | static var previews: some View {
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/UI/WaveformView.swift:59:31: error: 'View' is only available in macOS 10.15 or newer
53 | }
54 |
55 | struct SwiftUIView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
56 | @State static var progress: CGFloat = 0.5
57 | @State static var waveform: UIImage = UIImage(named: "test_waveform", in: .module, with: nil)!
58 |
59 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
60 | WaveformView(progress: $progress, waveform: $waveform)
61 | .previewLayout(.sizeThatFits)
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/UI/WaveformView.swift:20:26: error: extraneous argument label 'uiImage:' in call
18 | ZStack {
19 | Color.secondary.opacity(0.3)
20 | Image(uiImage: waveform)
| `- error: extraneous argument label 'uiImage:' in call
21 | .resizable()
22 | .renderingMode(.template)
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/UI/WaveformView.swift:61:29: error: cannot infer contextual base in reference to member 'sizeThatFits'
59 | static var previews: some View {
60 | WaveformView(progress: $progress, waveform: $waveform)
61 | .previewLayout(.sizeThatFits)
| `- error: cannot infer contextual base in reference to member 'sizeThatFits'
62 | .frame(width: 100, height: 30)
63 | }
warning: 'spi-builder-workspace': found 2 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Assets.xcassets
/Users/admin/builder/spi-builder-workspace/Sources/SoundCloud/Localizable.xcstrings
BUILD FAILURE 6.0 macosSpm