Build Information
Failed to build Billboard, reference 1.0.2 (c6c74e
), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 15:23:45 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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:65:36: error: 'OSLogMessage' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
37 | }
38 |
39 | public static func fetchRandomAd(excludedIDs: [String] = []) async throws -> BillboardAd? {
| `- note: add @available attribute to enclosing static method
40 | guard let url = BillboardConfiguration().adsJSONURL else {
41 | return nil
:
63 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to type mismatch – \(context.debugDescription)")
64 | } catch DecodingError.valueNotFound(let type, let context) {
65 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing \(type) value – \(context.debugDescription)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
66 | } catch DecodingError.dataCorrupted(_) {
67 | Logger.billboard.error("❌ Failed to decode Billboard Ad because it appears to be invalid JSON")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:65:87: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
37 | }
38 |
39 | public static func fetchRandomAd(excludedIDs: [String] = []) async throws -> BillboardAd? {
| `- note: add @available attribute to enclosing static method
40 | guard let url = BillboardConfiguration().adsJSONURL else {
41 | return nil
:
63 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to type mismatch – \(context.debugDescription)")
64 | } catch DecodingError.valueNotFound(let type, let context) {
65 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing \(type) value – \(context.debugDescription)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
66 | } catch DecodingError.dataCorrupted(_) {
67 | Logger.billboard.error("❌ Failed to decode Billboard Ad because it appears to be invalid JSON")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:65:105: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
37 | }
38 |
39 | public static func fetchRandomAd(excludedIDs: [String] = []) async throws -> BillboardAd? {
| `- note: add @available attribute to enclosing static method
40 | guard let url = BillboardConfiguration().adsJSONURL else {
41 | return nil
:
63 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to type mismatch – \(context.debugDescription)")
64 | } catch DecodingError.valueNotFound(let type, let context) {
65 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing \(type) value – \(context.debugDescription)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
66 | } catch DecodingError.dataCorrupted(_) {
67 | Logger.billboard.error("❌ Failed to decode Billboard Ad because it appears to be invalid JSON")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:67:13: error: 'Logger' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
37 | }
38 |
39 | public static func fetchRandomAd(excludedIDs: [String] = []) async throws -> BillboardAd? {
| `- note: add @available attribute to enclosing static method
40 | guard let url = BillboardConfiguration().adsJSONURL else {
41 | return nil
:
65 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing \(type) value – \(context.debugDescription)")
66 | } catch DecodingError.dataCorrupted(_) {
67 | Logger.billboard.error("❌ Failed to decode Billboard Ad because it appears to be invalid JSON")
| |- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
68 | } catch {
69 | Logger.billboard.error("❌ Failed to decode Billboard Ad: \(error.localizedDescription)")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:67:36: error: 'OSLogMessage' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
37 | }
38 |
39 | public static func fetchRandomAd(excludedIDs: [String] = []) async throws -> BillboardAd? {
| `- note: add @available attribute to enclosing static method
40 | guard let url = BillboardConfiguration().adsJSONURL else {
41 | return nil
:
65 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing \(type) value – \(context.debugDescription)")
66 | } catch DecodingError.dataCorrupted(_) {
67 | Logger.billboard.error("❌ Failed to decode Billboard Ad because it appears to be invalid JSON")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
68 | } catch {
69 | Logger.billboard.error("❌ Failed to decode Billboard Ad: \(error.localizedDescription)")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:69:13: error: 'Logger' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
37 | }
38 |
39 | public static func fetchRandomAd(excludedIDs: [String] = []) async throws -> BillboardAd? {
| `- note: add @available attribute to enclosing static method
40 | guard let url = BillboardConfiguration().adsJSONURL else {
41 | return nil
:
67 | Logger.billboard.error("❌ Failed to decode Billboard Ad because it appears to be invalid JSON")
68 | } catch {
69 | Logger.billboard.error("❌ Failed to decode Billboard Ad: \(error.localizedDescription)")
| |- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
70 | }
71 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:69:36: error: 'OSLogMessage' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
37 | }
38 |
39 | public static func fetchRandomAd(excludedIDs: [String] = []) async throws -> BillboardAd? {
| `- note: add @available attribute to enclosing static method
40 | guard let url = BillboardConfiguration().adsJSONURL else {
41 | return nil
:
67 | Logger.billboard.error("❌ Failed to decode Billboard Ad because it appears to be invalid JSON")
68 | } catch {
69 | Logger.billboard.error("❌ Failed to decode Billboard Ad: \(error.localizedDescription)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
70 | }
71 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:69:73: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
37 | }
38 |
39 | public static func fetchRandomAd(excludedIDs: [String] = []) async throws -> BillboardAd? {
| `- note: add @available attribute to enclosing static method
40 | guard let url = BillboardConfiguration().adsJSONURL else {
41 | return nil
:
67 | Logger.billboard.error("❌ Failed to decode Billboard Ad because it appears to be invalid JSON")
68 | } catch {
69 | Logger.billboard.error("❌ Failed to decode Billboard Ad: \(error.localizedDescription)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
70 | }
71 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:80:47: error: 'data(from:delegate:)' is only available in macOS 12.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
73 | }
74 |
75 | public static func fetchRandomAd(from url: URL, excludedIDs: [String] = []) async throws -> BillboardAd? {
| `- note: add @available attribute to enclosing static method
76 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
77 | session.sessionDescription = "Fetching Billboard Ad"
78 |
79 | do {
80 | let (data, _) = try await session.data(from: url)
| |- error: 'data(from:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
81 | let decoder = JSONDecoder()
82 | let response = try decoder.decode(BillboardAdResponse.self, from: data)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:87:17: error: 'Logger' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
73 | }
74 |
75 | public static func fetchRandomAd(from url: URL, excludedIDs: [String] = []) async throws -> BillboardAd? {
| `- note: add @available attribute to enclosing static method
76 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
77 | session.sessionDescription = "Fetching Billboard Ad"
:
85 |
86 | if let adToShow {
87 | Logger.billboard.debug("✨ Billboard Ad presented: \(adToShow.name)")
| |- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
88 | }
89 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:87:40: error: 'OSLogMessage' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
73 | }
74 |
75 | public static func fetchRandomAd(from url: URL, excludedIDs: [String] = []) async throws -> BillboardAd? {
| `- note: add @available attribute to enclosing static method
76 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
77 | session.sessionDescription = "Fetching Billboard Ad"
:
85 |
86 | if let adToShow {
87 | Logger.billboard.debug("✨ Billboard Ad presented: \(adToShow.name)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
88 | }
89 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:87:70: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
73 | }
74 |
75 | public static func fetchRandomAd(from url: URL, excludedIDs: [String] = []) async throws -> BillboardAd? {
| `- note: add @available attribute to enclosing static method
76 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
77 | session.sessionDescription = "Fetching Billboard Ad"
:
85 |
86 | if let adToShow {
87 | Logger.billboard.debug("✨ Billboard Ad presented: \(adToShow.name)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
88 | }
89 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:93:13: error: 'Logger' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
73 | }
74 |
75 | public static func fetchRandomAd(from url: URL, excludedIDs: [String] = []) async throws -> BillboardAd? {
| `- note: add @available attribute to enclosing static method
76 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
77 | session.sessionDescription = "Fetching Billboard Ad"
:
91 |
92 | } catch DecodingError.keyNotFound(let key, let context) {
93 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing key '\(key.stringValue)' not found – \(context.debugDescription)")
| |- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
94 | } catch DecodingError.typeMismatch(_, let context) {
95 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to type mismatch – \(context.debugDescription)")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:93:36: error: 'OSLogMessage' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
73 | }
74 |
75 | public static func fetchRandomAd(from url: URL, excludedIDs: [String] = []) async throws -> BillboardAd? {
| `- note: add @available attribute to enclosing static method
76 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
77 | session.sessionDescription = "Fetching Billboard Ad"
:
91 |
92 | } catch DecodingError.keyNotFound(let key, let context) {
93 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing key '\(key.stringValue)' not found – \(context.debugDescription)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
94 | } catch DecodingError.typeMismatch(_, let context) {
95 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to type mismatch – \(context.debugDescription)")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:93:92: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
73 | }
74 |
75 | public static func fetchRandomAd(from url: URL, excludedIDs: [String] = []) async throws -> BillboardAd? {
| `- note: add @available attribute to enclosing static method
76 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
77 | session.sessionDescription = "Fetching Billboard Ad"
:
91 |
92 | } catch DecodingError.keyNotFound(let key, let context) {
93 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing key '\(key.stringValue)' not found – \(context.debugDescription)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
94 | } catch DecodingError.typeMismatch(_, let context) {
95 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to type mismatch – \(context.debugDescription)")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:93:126: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
73 | }
74 |
75 | public static func fetchRandomAd(from url: URL, excludedIDs: [String] = []) async throws -> BillboardAd? {
| `- note: add @available attribute to enclosing static method
76 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
77 | session.sessionDescription = "Fetching Billboard Ad"
:
91 |
92 | } catch DecodingError.keyNotFound(let key, let context) {
93 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing key '\(key.stringValue)' not found – \(context.debugDescription)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
94 | } catch DecodingError.typeMismatch(_, let context) {
95 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to type mismatch – \(context.debugDescription)")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:95:13: error: 'Logger' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
73 | }
74 |
75 | public static func fetchRandomAd(from url: URL, excludedIDs: [String] = []) async throws -> BillboardAd? {
| `- note: add @available attribute to enclosing static method
76 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
77 | session.sessionDescription = "Fetching Billboard Ad"
:
93 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing key '\(key.stringValue)' not found – \(context.debugDescription)")
94 | } catch DecodingError.typeMismatch(_, let context) {
95 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to type mismatch – \(context.debugDescription)")
| |- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
96 | } catch DecodingError.valueNotFound(let type, let context) {
97 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing \(type) value – \(context.debugDescription)")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:95:36: error: 'OSLogMessage' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
73 | }
74 |
75 | public static func fetchRandomAd(from url: URL, excludedIDs: [String] = []) async throws -> BillboardAd? {
| `- note: add @available attribute to enclosing static method
76 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
77 | session.sessionDescription = "Fetching Billboard Ad"
:
93 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing key '\(key.stringValue)' not found – \(context.debugDescription)")
94 | } catch DecodingError.typeMismatch(_, let context) {
95 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to type mismatch – \(context.debugDescription)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
96 | } catch DecodingError.valueNotFound(let type, let context) {
97 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing \(type) value – \(context.debugDescription)")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:95:97: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
73 | }
74 |
75 | public static func fetchRandomAd(from url: URL, excludedIDs: [String] = []) async throws -> BillboardAd? {
| `- note: add @available attribute to enclosing static method
76 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
77 | session.sessionDescription = "Fetching Billboard Ad"
:
93 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing key '\(key.stringValue)' not found – \(context.debugDescription)")
94 | } catch DecodingError.typeMismatch(_, let context) {
95 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to type mismatch – \(context.debugDescription)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
96 | } catch DecodingError.valueNotFound(let type, let context) {
97 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing \(type) value – \(context.debugDescription)")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:97:13: error: 'Logger' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
73 | }
74 |
75 | public static func fetchRandomAd(from url: URL, excludedIDs: [String] = []) async throws -> BillboardAd? {
| `- note: add @available attribute to enclosing static method
76 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
77 | session.sessionDescription = "Fetching Billboard Ad"
:
95 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to type mismatch – \(context.debugDescription)")
96 | } catch DecodingError.valueNotFound(let type, let context) {
97 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing \(type) value – \(context.debugDescription)")
| |- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
98 | } catch DecodingError.dataCorrupted(_) {
99 | Logger.billboard.error("❌ Failed to decode Billboard Ad because it appears to be invalid JSON")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:97:36: error: 'OSLogMessage' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
73 | }
74 |
75 | public static func fetchRandomAd(from url: URL, excludedIDs: [String] = []) async throws -> BillboardAd? {
| `- note: add @available attribute to enclosing static method
76 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
77 | session.sessionDescription = "Fetching Billboard Ad"
:
95 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to type mismatch – \(context.debugDescription)")
96 | } catch DecodingError.valueNotFound(let type, let context) {
97 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing \(type) value – \(context.debugDescription)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
98 | } catch DecodingError.dataCorrupted(_) {
99 | Logger.billboard.error("❌ Failed to decode Billboard Ad because it appears to be invalid JSON")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:97:87: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
73 | }
74 |
75 | public static func fetchRandomAd(from url: URL, excludedIDs: [String] = []) async throws -> BillboardAd? {
| `- note: add @available attribute to enclosing static method
76 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
77 | session.sessionDescription = "Fetching Billboard Ad"
:
95 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to type mismatch – \(context.debugDescription)")
96 | } catch DecodingError.valueNotFound(let type, let context) {
97 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing \(type) value – \(context.debugDescription)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
98 | } catch DecodingError.dataCorrupted(_) {
99 | Logger.billboard.error("❌ Failed to decode Billboard Ad because it appears to be invalid JSON")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:97:105: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
73 | }
74 |
75 | public static func fetchRandomAd(from url: URL, excludedIDs: [String] = []) async throws -> BillboardAd? {
| `- note: add @available attribute to enclosing static method
76 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
77 | session.sessionDescription = "Fetching Billboard Ad"
:
95 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to type mismatch – \(context.debugDescription)")
96 | } catch DecodingError.valueNotFound(let type, let context) {
97 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing \(type) value – \(context.debugDescription)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
98 | } catch DecodingError.dataCorrupted(_) {
99 | Logger.billboard.error("❌ Failed to decode Billboard Ad because it appears to be invalid JSON")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:99:13: error: 'Logger' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
73 | }
74 |
75 | public static func fetchRandomAd(from url: URL, excludedIDs: [String] = []) async throws -> BillboardAd? {
| `- note: add @available attribute to enclosing static method
76 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
77 | session.sessionDescription = "Fetching Billboard Ad"
:
97 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing \(type) value – \(context.debugDescription)")
98 | } catch DecodingError.dataCorrupted(_) {
99 | Logger.billboard.error("❌ Failed to decode Billboard Ad because it appears to be invalid JSON")
| |- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
100 | } catch {
101 | Logger.billboard.error("❌ Failed to decode Billboard Ad: \(error.localizedDescription)")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:99:36: error: 'OSLogMessage' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
73 | }
74 |
75 | public static func fetchRandomAd(from url: URL, excludedIDs: [String] = []) async throws -> BillboardAd? {
| `- note: add @available attribute to enclosing static method
76 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
77 | session.sessionDescription = "Fetching Billboard Ad"
:
97 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing \(type) value – \(context.debugDescription)")
98 | } catch DecodingError.dataCorrupted(_) {
99 | Logger.billboard.error("❌ Failed to decode Billboard Ad because it appears to be invalid JSON")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
100 | } catch {
101 | Logger.billboard.error("❌ Failed to decode Billboard Ad: \(error.localizedDescription)")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:101:13: error: 'Logger' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
73 | }
74 |
75 | public static func fetchRandomAd(from url: URL, excludedIDs: [String] = []) async throws -> BillboardAd? {
| `- note: add @available attribute to enclosing static method
76 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
77 | session.sessionDescription = "Fetching Billboard Ad"
:
99 | Logger.billboard.error("❌ Failed to decode Billboard Ad because it appears to be invalid JSON")
100 | } catch {
101 | Logger.billboard.error("❌ Failed to decode Billboard Ad: \(error.localizedDescription)")
| |- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
102 | }
103 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:101:36: error: 'OSLogMessage' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
73 | }
74 |
75 | public static func fetchRandomAd(from url: URL, excludedIDs: [String] = []) async throws -> BillboardAd? {
| `- note: add @available attribute to enclosing static method
76 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
77 | session.sessionDescription = "Fetching Billboard Ad"
:
99 | Logger.billboard.error("❌ Failed to decode Billboard Ad because it appears to be invalid JSON")
100 | } catch {
101 | Logger.billboard.error("❌ Failed to decode Billboard Ad: \(error.localizedDescription)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
102 | }
103 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:101:73: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
73 | }
74 |
75 | public static func fetchRandomAd(from url: URL, excludedIDs: [String] = []) async throws -> BillboardAd? {
| `- note: add @available attribute to enclosing static method
76 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
77 | session.sessionDescription = "Fetching Billboard Ad"
:
99 | Logger.billboard.error("❌ Failed to decode Billboard Ad because it appears to be invalid JSON")
100 | } catch {
101 | Logger.billboard.error("❌ Failed to decode Billboard Ad: \(error.localizedDescription)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
102 | }
103 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:112:47: error: 'data(from:delegate:)' is only available in macOS 12.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
105 | }
106 |
107 | public static func fetchAllAds(from url: URL) async throws -> [BillboardAd] {
| `- note: add @available attribute to enclosing static method
108 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
109 | session.sessionDescription = "Fetching All Billboard Ads"
110 |
111 | do {
112 | let (data, _) = try await session.data(from: url)
| |- error: 'data(from:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
113 | let decoder = JSONDecoder()
114 | let response = try decoder.decode(BillboardAdResponse.self, from: data)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:118:13: error: 'Logger' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
105 | }
106 |
107 | public static func fetchAllAds(from url: URL) async throws -> [BillboardAd] {
| `- note: add @available attribute to enclosing static method
108 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
109 | session.sessionDescription = "Fetching All Billboard Ads"
:
116 |
117 | } catch DecodingError.keyNotFound(let key, let context) {
118 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing key '\(key.stringValue)' not found – \(context.debugDescription)")
| |- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
119 | } catch DecodingError.typeMismatch(_, let context) {
120 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to type mismatch – \(context.debugDescription)")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:118:36: error: 'OSLogMessage' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
105 | }
106 |
107 | public static func fetchAllAds(from url: URL) async throws -> [BillboardAd] {
| `- note: add @available attribute to enclosing static method
108 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
109 | session.sessionDescription = "Fetching All Billboard Ads"
:
116 |
117 | } catch DecodingError.keyNotFound(let key, let context) {
118 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing key '\(key.stringValue)' not found – \(context.debugDescription)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
119 | } catch DecodingError.typeMismatch(_, let context) {
120 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to type mismatch – \(context.debugDescription)")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:118:92: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
105 | }
106 |
107 | public static func fetchAllAds(from url: URL) async throws -> [BillboardAd] {
| `- note: add @available attribute to enclosing static method
108 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
109 | session.sessionDescription = "Fetching All Billboard Ads"
:
116 |
117 | } catch DecodingError.keyNotFound(let key, let context) {
118 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing key '\(key.stringValue)' not found – \(context.debugDescription)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
119 | } catch DecodingError.typeMismatch(_, let context) {
120 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to type mismatch – \(context.debugDescription)")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:118:126: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
105 | }
106 |
107 | public static func fetchAllAds(from url: URL) async throws -> [BillboardAd] {
| `- note: add @available attribute to enclosing static method
108 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
109 | session.sessionDescription = "Fetching All Billboard Ads"
:
116 |
117 | } catch DecodingError.keyNotFound(let key, let context) {
118 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing key '\(key.stringValue)' not found – \(context.debugDescription)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
119 | } catch DecodingError.typeMismatch(_, let context) {
120 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to type mismatch – \(context.debugDescription)")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:120:13: error: 'Logger' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
105 | }
106 |
107 | public static func fetchAllAds(from url: URL) async throws -> [BillboardAd] {
| `- note: add @available attribute to enclosing static method
108 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
109 | session.sessionDescription = "Fetching All Billboard Ads"
:
118 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing key '\(key.stringValue)' not found – \(context.debugDescription)")
119 | } catch DecodingError.typeMismatch(_, let context) {
120 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to type mismatch – \(context.debugDescription)")
| |- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
121 | } catch DecodingError.valueNotFound(let type, let context) {
122 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing \(type) value – \(context.debugDescription)")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:120:36: error: 'OSLogMessage' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
105 | }
106 |
107 | public static func fetchAllAds(from url: URL) async throws -> [BillboardAd] {
| `- note: add @available attribute to enclosing static method
108 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
109 | session.sessionDescription = "Fetching All Billboard Ads"
:
118 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing key '\(key.stringValue)' not found – \(context.debugDescription)")
119 | } catch DecodingError.typeMismatch(_, let context) {
120 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to type mismatch – \(context.debugDescription)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
121 | } catch DecodingError.valueNotFound(let type, let context) {
122 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing \(type) value – \(context.debugDescription)")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:120:97: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
105 | }
106 |
107 | public static func fetchAllAds(from url: URL) async throws -> [BillboardAd] {
| `- note: add @available attribute to enclosing static method
108 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
109 | session.sessionDescription = "Fetching All Billboard Ads"
:
118 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing key '\(key.stringValue)' not found – \(context.debugDescription)")
119 | } catch DecodingError.typeMismatch(_, let context) {
120 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to type mismatch – \(context.debugDescription)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
121 | } catch DecodingError.valueNotFound(let type, let context) {
122 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing \(type) value – \(context.debugDescription)")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:122:13: error: 'Logger' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
105 | }
106 |
107 | public static func fetchAllAds(from url: URL) async throws -> [BillboardAd] {
| `- note: add @available attribute to enclosing static method
108 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
109 | session.sessionDescription = "Fetching All Billboard Ads"
:
120 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to type mismatch – \(context.debugDescription)")
121 | } catch DecodingError.valueNotFound(let type, let context) {
122 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing \(type) value – \(context.debugDescription)")
| |- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
123 | } catch DecodingError.dataCorrupted(_) {
124 | Logger.billboard.error("❌ Failed to decode Billboard Ad because it appears to be invalid JSON")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:122:36: error: 'OSLogMessage' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
105 | }
106 |
107 | public static func fetchAllAds(from url: URL) async throws -> [BillboardAd] {
| `- note: add @available attribute to enclosing static method
108 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
109 | session.sessionDescription = "Fetching All Billboard Ads"
:
120 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to type mismatch – \(context.debugDescription)")
121 | } catch DecodingError.valueNotFound(let type, let context) {
122 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing \(type) value – \(context.debugDescription)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
123 | } catch DecodingError.dataCorrupted(_) {
124 | Logger.billboard.error("❌ Failed to decode Billboard Ad because it appears to be invalid JSON")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:122:87: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
105 | }
106 |
107 | public static func fetchAllAds(from url: URL) async throws -> [BillboardAd] {
| `- note: add @available attribute to enclosing static method
108 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
109 | session.sessionDescription = "Fetching All Billboard Ads"
:
120 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to type mismatch – \(context.debugDescription)")
121 | } catch DecodingError.valueNotFound(let type, let context) {
122 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing \(type) value – \(context.debugDescription)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
123 | } catch DecodingError.dataCorrupted(_) {
124 | Logger.billboard.error("❌ Failed to decode Billboard Ad because it appears to be invalid JSON")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:122:105: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
105 | }
106 |
107 | public static func fetchAllAds(from url: URL) async throws -> [BillboardAd] {
| `- note: add @available attribute to enclosing static method
108 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
109 | session.sessionDescription = "Fetching All Billboard Ads"
:
120 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to type mismatch – \(context.debugDescription)")
121 | } catch DecodingError.valueNotFound(let type, let context) {
122 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing \(type) value – \(context.debugDescription)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
123 | } catch DecodingError.dataCorrupted(_) {
124 | Logger.billboard.error("❌ Failed to decode Billboard Ad because it appears to be invalid JSON")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:124:13: error: 'Logger' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
105 | }
106 |
107 | public static func fetchAllAds(from url: URL) async throws -> [BillboardAd] {
| `- note: add @available attribute to enclosing static method
108 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
109 | session.sessionDescription = "Fetching All Billboard Ads"
:
122 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing \(type) value – \(context.debugDescription)")
123 | } catch DecodingError.dataCorrupted(_) {
124 | Logger.billboard.error("❌ Failed to decode Billboard Ad because it appears to be invalid JSON")
| |- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
125 | } catch {
126 | Logger.billboard.error("❌ Failed to decode Billboard Ad: \(error.localizedDescription)")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:124:36: error: 'OSLogMessage' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
105 | }
106 |
107 | public static func fetchAllAds(from url: URL) async throws -> [BillboardAd] {
| `- note: add @available attribute to enclosing static method
108 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
109 | session.sessionDescription = "Fetching All Billboard Ads"
:
122 | Logger.billboard.error("❌ Failed to decode Billboard Ad due to missing \(type) value – \(context.debugDescription)")
123 | } catch DecodingError.dataCorrupted(_) {
124 | Logger.billboard.error("❌ Failed to decode Billboard Ad because it appears to be invalid JSON")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
125 | } catch {
126 | Logger.billboard.error("❌ Failed to decode Billboard Ad: \(error.localizedDescription)")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:126:13: error: 'Logger' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
105 | }
106 |
107 | public static func fetchAllAds(from url: URL) async throws -> [BillboardAd] {
| `- note: add @available attribute to enclosing static method
108 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
109 | session.sessionDescription = "Fetching All Billboard Ads"
:
124 | Logger.billboard.error("❌ Failed to decode Billboard Ad because it appears to be invalid JSON")
125 | } catch {
126 | Logger.billboard.error("❌ Failed to decode Billboard Ad: \(error.localizedDescription)")
| |- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
127 | }
128 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:126:36: error: 'OSLogMessage' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
105 | }
106 |
107 | public static func fetchAllAds(from url: URL) async throws -> [BillboardAd] {
| `- note: add @available attribute to enclosing static method
108 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
109 | session.sessionDescription = "Fetching All Billboard Ads"
:
124 | Logger.billboard.error("❌ Failed to decode Billboard Ad because it appears to be invalid JSON")
125 | } catch {
126 | Logger.billboard.error("❌ Failed to decode Billboard Ad: \(error.localizedDescription)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
127 | }
128 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/BillboardViewModel.swift:126:73: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
9 | import OSLog
10 |
11 | public final class BillboardViewModel : ObservableObject {
| `- note: add @available attribute to enclosing class
12 |
13 | let configuration: BillboardConfiguration
:
105 | }
106 |
107 | public static func fetchAllAds(from url: URL) async throws -> [BillboardAd] {
| `- note: add @available attribute to enclosing static method
108 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
109 | session.sessionDescription = "Fetching All Billboard Ads"
:
124 | Logger.billboard.error("❌ Failed to decode Billboard Ad because it appears to be invalid JSON")
125 | } catch {
126 | Logger.billboard.error("❌ Failed to decode Billboard Ad: \(error.localizedDescription)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
127 | }
128 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/CachedImage.swift:12:6: error: 'StateObject' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct CachedImage<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @StateObject private var manager = CachedImageManager()
| `- error: 'StateObject' is only available in macOS 11.0 or newer
13 | let url: String
14 | let animation: Animation?
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/CachedImage.swift:14:20: error: 'Animation' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct CachedImage<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @StateObject private var manager = CachedImageManager()
13 | let url: String
14 | let animation: Animation?
| `- error: 'Animation' is only available in macOS 10.15 or newer
15 | let transition: AnyTransition
16 | let content: (AsyncImagePhase) -> Content
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/CachedImage.swift:15:21: error: 'AnyTransition' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct CachedImage<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @StateObject private var manager = CachedImageManager()
13 | let url: String
14 | let animation: Animation?
15 | let transition: AnyTransition
| `- error: 'AnyTransition' is only available in macOS 10.15 or newer
16 | let content: (AsyncImagePhase) -> Content
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/CachedImage.swift:16:19: error: 'AsyncImagePhase' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct CachedImage<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @StateObject private var manager = CachedImageManager()
:
14 | let animation: Animation?
15 | let transition: AnyTransition
16 | let content: (AsyncImagePhase) -> Content
| `- error: 'AsyncImagePhase' is only available in macOS 12.0 or newer
17 |
18 | init(url: String,
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/CachedImage.swift:19:21: error: 'Animation' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct CachedImage<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @StateObject private var manager = CachedImageManager()
:
16 | let content: (AsyncImagePhase) -> Content
17 |
18 | init(url: String,
| `- note: add @available attribute to enclosing initializer
19 | animation: Animation? = nil,
| `- error: 'Animation' is only available in macOS 10.15 or newer
20 | transition: AnyTransition = .identity,
21 | @ViewBuilder content: @escaping (AsyncImagePhase) -> Content) {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/CachedImage.swift:20:22: error: 'AnyTransition' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct CachedImage<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @StateObject private var manager = CachedImageManager()
:
16 | let content: (AsyncImagePhase) -> Content
17 |
18 | init(url: String,
| `- note: add @available attribute to enclosing initializer
19 | animation: Animation? = nil,
20 | transition: AnyTransition = .identity,
| `- error: 'AnyTransition' is only available in macOS 10.15 or newer
21 | @ViewBuilder content: @escaping (AsyncImagePhase) -> Content) {
22 | self.url = url
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/CachedImage.swift:21:11: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct CachedImage<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @StateObject private var manager = CachedImageManager()
:
16 | let content: (AsyncImagePhase) -> Content
17 |
18 | init(url: String,
| `- note: add @available attribute to enclosing initializer
19 | animation: Animation? = nil,
20 | transition: AnyTransition = .identity,
21 | @ViewBuilder content: @escaping (AsyncImagePhase) -> Content) {
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
22 | self.url = url
23 | self.animation = animation
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/CachedImage.swift:21:43: error: 'AsyncImagePhase' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct CachedImage<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @StateObject private var manager = CachedImageManager()
:
16 | let content: (AsyncImagePhase) -> Content
17 |
18 | init(url: String,
| `- note: add @available attribute to enclosing initializer
19 | animation: Animation? = nil,
20 | transition: AnyTransition = .identity,
21 | @ViewBuilder content: @escaping (AsyncImagePhase) -> Content) {
| `- error: 'AsyncImagePhase' is only available in macOS 12.0 or newer
22 | self.url = url
23 | self.animation = animation
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/CachedImage.swift:20:39: error: 'identity' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct CachedImage<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @StateObject private var manager = CachedImageManager()
:
16 | let content: (AsyncImagePhase) -> Content
17 |
18 | init(url: String,
| `- note: add @available attribute to enclosing initializer
19 | animation: Animation? = nil,
20 | transition: AnyTransition = .identity,
| `- error: 'identity' is only available in macOS 10.15 or newer
21 | @ViewBuilder content: @escaping (AsyncImagePhase) -> Content) {
22 | self.url = url
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/CachedImage.swift:29:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct CachedImage<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @StateObject private var manager = CachedImageManager()
:
27 |
28 |
29 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
30 | ZStack {
31 | switch manager.currentState {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/CachedImage.swift:10:29: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct CachedImage<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @StateObject private var manager = CachedImageManager()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/CachedImage.swift:59:31: error: 'View' is only available in macOS 10.15 or newer
56 | }
57 |
58 | struct CachedImage_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
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 | CachedImage(url: "https://upload.wikimedia.org/wikipedia/commons/thumb/0/0b/RedDot_Burger.jpg/600px-RedDot_Burger.jpg") { _ in EmptyView() }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/CachedImage.swift:36:32: error: cannot find 'UIImage' in scope
34 | .transition(transition)
35 | case .success(let data):
36 | if let image = UIImage(data: data) {
| `- error: cannot find 'UIImage' in scope
37 | content(.success(Image(uiImage: image)))
38 | .transition(transition)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/CachedImage.swift:60:136: error: 'EmptyView' is only available in macOS 10.15 or newer
56 | }
57 |
58 | struct CachedImage_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
59 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
60 | CachedImage(url: "https://upload.wikimedia.org/wikipedia/commons/thumb/0/0b/RedDot_Burger.jpg/600px-RedDot_Burger.jpg") { _ in EmptyView() }
| |- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | }
62 | }
[25/26] Compiling Billboard BillboardTextView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:13:20: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardTextView : View {
| `- note: add @available attribute to enclosing struct
11 | let advert: BillboardAd
12 |
13 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
14 | VStack(spacing: 10) {
15 | BillboardAdInfoLabel(advert: advert)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:33:31: error: 'View' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct BillboardTextView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
33 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
34 | DefaultAdView(advert: BillboardSamples.sampleDefaultAd)
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:14:9: error: 'VStack' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardTextView : View {
| `- note: add @available attribute to enclosing struct
11 | let advert: BillboardAd
12 |
13 | var body: some View {
| `- note: add @available attribute to enclosing property
14 | VStack(spacing: 10) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | BillboardAdInfoLabel(advert: advert)
16 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:17:13: error: 'VStack' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardTextView : View {
| `- note: add @available attribute to enclosing struct
11 | let advert: BillboardAd
12 |
13 | var body: some View {
| `- note: add @available attribute to enclosing property
14 | VStack(spacing: 10) {
15 | BillboardAdInfoLabel(advert: advert)
16 |
17 | VStack(spacing: 6) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | Text(advert.title)
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .heavy))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:18:17: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct BillboardTextView : View {
| `- note: add @available attribute to enclosing struct
11 | let advert: BillboardAd
12 |
13 | var body: some View {
| `- note: add @available attribute to enclosing property
14 | VStack(spacing: 10) {
15 | BillboardAdInfoLabel(advert: advert)
16 |
17 | VStack(spacing: 6) {
18 | Text(advert.title)
| |- warning: conformance of 'Text' to 'View' 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
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .heavy))
20 | Text(advert.description)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:18:17: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardTextView : View {
| `- note: add @available attribute to enclosing struct
11 | let advert: BillboardAd
12 |
13 | var body: some View {
| `- note: add @available attribute to enclosing property
14 | VStack(spacing: 10) {
15 | BillboardAdInfoLabel(advert: advert)
16 |
17 | VStack(spacing: 6) {
18 | Text(advert.title)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .heavy))
20 | Text(advert.description)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:19:22: error: 'font' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardTextView : View {
| `- note: add @available attribute to enclosing struct
11 | let advert: BillboardAd
12 |
13 | var body: some View {
| `- note: add @available attribute to enclosing property
14 | VStack(spacing: 10) {
15 | BillboardAdInfoLabel(advert: advert)
:
17 | VStack(spacing: 6) {
18 | Text(advert.title)
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .heavy))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | Text(advert.description)
21 | .font(.system(.body, design: .rounded))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:19:46: error: 'title2' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardTextView : View {
| `- note: add @available attribute to enclosing struct
11 | let advert: BillboardAd
12 |
13 | var body: some View {
| `- note: add @available attribute to enclosing property
14 | VStack(spacing: 10) {
15 | BillboardAdInfoLabel(advert: advert)
:
17 | VStack(spacing: 6) {
18 | Text(advert.title)
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .heavy))
| |- error: 'title2' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
20 | Text(advert.description)
21 | .font(.system(.body, design: .rounded))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:20:17: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct BillboardTextView : View {
| `- note: add @available attribute to enclosing struct
11 | let advert: BillboardAd
12 |
13 | var body: some View {
| `- note: add @available attribute to enclosing property
14 | VStack(spacing: 10) {
15 | BillboardAdInfoLabel(advert: advert)
:
18 | Text(advert.title)
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .heavy))
20 | Text(advert.description)
| |- warning: conformance of 'Text' to 'View' 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
21 | .font(.system(.body, design: .rounded))
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:20:17: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardTextView : View {
| `- note: add @available attribute to enclosing struct
11 | let advert: BillboardAd
12 |
13 | var body: some View {
| `- note: add @available attribute to enclosing property
14 | VStack(spacing: 10) {
15 | BillboardAdInfoLabel(advert: advert)
:
18 | Text(advert.title)
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .heavy))
20 | Text(advert.description)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | .font(.system(.body, design: .rounded))
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:21:22: error: 'font' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardTextView : View {
| `- note: add @available attribute to enclosing struct
11 | let advert: BillboardAd
12 |
13 | var body: some View {
| `- note: add @available attribute to enclosing property
14 | VStack(spacing: 10) {
15 | BillboardAdInfoLabel(advert: advert)
:
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .heavy))
20 | Text(advert.description)
21 | .font(.system(.body, design: .rounded))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | }
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:21:28: error: 'system(_:design:weight:)' is only available in macOS 13.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardTextView : View {
| `- note: add @available attribute to enclosing struct
11 | let advert: BillboardAd
12 |
13 | var body: some View {
| `- note: add @available attribute to enclosing property
14 | VStack(spacing: 10) {
15 | BillboardAdInfoLabel(advert: advert)
:
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .heavy))
20 | Text(advert.description)
21 | .font(.system(.body, design: .rounded))
| |- error: 'system(_:design:weight:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
22 | }
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:17:32: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct BillboardTextView : View {
| `- note: add @available attribute to enclosing struct
11 | let advert: BillboardAd
12 |
13 | var body: some View {
| `- note: add @available attribute to enclosing property
14 | VStack(spacing: 10) {
15 | BillboardAdInfoLabel(advert: advert)
16 |
17 | VStack(spacing: 6) {
| |- warning: conformance of 'Text' to 'View' 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
18 | Text(advert.title)
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .heavy))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:17:32: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct BillboardTextView : View {
| `- note: add @available attribute to enclosing struct
11 | let advert: BillboardAd
12 |
13 | var body: some View {
| `- note: add @available attribute to enclosing property
14 | VStack(spacing: 10) {
15 | BillboardAdInfoLabel(advert: advert)
16 |
17 | VStack(spacing: 6) {
| |- warning: conformance of 'Text' to 'View' 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
18 | Text(advert.title)
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .heavy))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:24:10: error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardTextView : View {
| `- note: add @available attribute to enclosing struct
11 | let advert: BillboardAd
12 |
13 | var body: some View {
| `- note: add @available attribute to enclosing property
14 | VStack(spacing: 10) {
15 | BillboardAdInfoLabel(advert: advert)
:
22 | }
23 | }
24 | .multilineTextAlignment(.center)
| |- error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .foregroundColor(advert.text)
26 | .frame(maxWidth: 640)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:25:10: error: 'foregroundColor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardTextView : View {
| `- note: add @available attribute to enclosing struct
11 | let advert: BillboardAd
12 |
13 | var body: some View {
| `- note: add @available attribute to enclosing property
14 | VStack(spacing: 10) {
15 | BillboardAdInfoLabel(advert: advert)
:
23 | }
24 | .multilineTextAlignment(.center)
25 | .foregroundColor(advert.text)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | .frame(maxWidth: 640)
27 | .padding(.horizontal, 24)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:26:10: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardTextView : View {
| `- note: add @available attribute to enclosing struct
11 | let advert: BillboardAd
12 |
13 | var body: some View {
| `- note: add @available attribute to enclosing property
14 | VStack(spacing: 10) {
15 | BillboardAdInfoLabel(advert: advert)
:
24 | .multilineTextAlignment(.center)
25 | .foregroundColor(advert.text)
26 | .frame(maxWidth: 640)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | .padding(.horizontal, 24)
28 | .padding(.bottom, 64)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:27:10: error: 'padding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardTextView : View {
| `- note: add @available attribute to enclosing struct
11 | let advert: BillboardAd
12 |
13 | var body: some View {
| `- note: add @available attribute to enclosing property
14 | VStack(spacing: 10) {
15 | BillboardAdInfoLabel(advert: advert)
:
25 | .foregroundColor(advert.text)
26 | .frame(maxWidth: 640)
27 | .padding(.horizontal, 24)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | .padding(.bottom, 64)
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:28:10: error: 'padding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardTextView : View {
| `- note: add @available attribute to enclosing struct
11 | let advert: BillboardAd
12 |
13 | var body: some View {
| `- note: add @available attribute to enclosing property
14 | VStack(spacing: 10) {
15 | BillboardAdInfoLabel(advert: advert)
:
26 | .frame(maxWidth: 640)
27 | .padding(.horizontal, 24)
28 | .padding(.bottom, 64)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | }
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/BillboardSamples.swift:13:16: warning: static property 'sampleDefaultAd' is not concurrency-safe because non-'Sendable' type 'BillboardAd' may have shared mutable state; this is an error in the Swift 6 language mode
11 | public struct BillboardSamples {
12 |
13 | static let sampleDefaultAd : BillboardAd = BillboardAd(appStoreID: "1596487035",
| |- warning: static property 'sampleDefaultAd' is not concurrency-safe because non-'Sendable' type 'BillboardAd' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sampleDefaultAd' 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
14 | name: "NowPlaying",
15 | title: "Learn everything about any song",
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Models/BillboardAd.swift:12:15: note: consider making struct 'BillboardAd' conform to the 'Sendable' protocol
10 |
11 |
12 | public struct BillboardAd : Codable, Identifiable, Equatable {
| `- note: consider making struct 'BillboardAd' conform to the 'Sendable' protocol
13 |
14 | public static func == (lhs: BillboardAd, rhs: BillboardAd) -> Bool {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:14:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
13 |
14 | @ViewBuilder var paywall: () -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
15 |
16 | @State private var showPaywall : Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:16:6: error: 'State' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
14 | @ViewBuilder var paywall: () -> Content
15 |
16 | @State private var showPaywall : Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
17 | @State private var canDismiss = false
18 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:17:6: error: 'State' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
15 |
16 | @State private var showPaywall : Bool = false
17 | @State private var canDismiss = false
| `- error: 'State' is only available in macOS 10.15 or newer
18 |
19 | public init(advert: BillboardAd, config: BillboardConfiguration = BillboardConfiguration(), paywall: @escaping () -> Content) {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:25:27: error: 'View' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:83:32: error: 'SKOverlay' is unavailable in macOS
81 | //MARK: - App Store Overlay
82 |
83 | private var storeOverlay : SKOverlay {
| `- error: 'SKOverlay' is unavailable in macOS
84 | let config = SKOverlay.AppConfiguration(appIdentifier: advert.appStoreID, position: .bottom)
85 | let overlay = SKOverlay(configuration: config)
StoreKit.SKOverlay:2:14: note: 'SKOverlay' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | public class SKOverlay : NSObject {
| `- note: 'SKOverlay' has been explicitly marked unavailable here
3 | @available(*, unavailable)
4 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:89:25: error: cannot find 'UIApplication' in scope
87 | }
88 |
89 | private let scene = UIApplication.shared.connectedScenes
| `- error: cannot find 'UIApplication' in scope
90 | .compactMap({ scene -> UIWindow? in
91 | (scene as? UIWindowScene)?.keyWindow
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:90:32: error: cannot find type 'UIWindow' in scope
88 |
89 | private let scene = UIApplication.shared.connectedScenes
90 | .compactMap({ scene -> UIWindow? in
| `- error: cannot find type 'UIWindow' in scope
91 | (scene as? UIWindowScene)?.keyWindow
92 | })
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:91:24: error: cannot find type 'UIWindowScene' in scope
89 | private let scene = UIApplication.shared.connectedScenes
90 | .compactMap({ scene -> UIWindow? in
91 | (scene as? UIWindowScene)?.keyWindow
| `- error: cannot find type 'UIWindowScene' in scope
92 | })
93 | .first?
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:10:37: error: 'View' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardDismissButton.swift:11:20: error: 'dismiss' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardDismissButton : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.dismiss) var dismiss
| `- error: 'dismiss' is only available in macOS 12.0 or newer
12 |
13 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:20:31: error: 'publish(every:tolerance:on:in:options:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
18 | @State private var timerProgress : CGFloat = 0.0
19 |
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
| `- error: 'publish(every:tolerance:on:in:options:)' is only available in macOS 10.15 or newer
21 |
22 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:20:73: error: 'autoconnect()' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
18 | @State private var timerProgress : CGFloat = 0.0
19 |
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
| `- error: 'autoconnect()' is only available in macOS 10.15 or newer
21 |
22 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:26:9: error: 'ZStack' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | advert.background.ignoresSafeArea()
28 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:26:28: error: 'top' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
| |- error: 'top' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | advert.background.ignoresSafeArea()
28 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:26:33: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
| |- warning: conformance of 'Text' to 'View' 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
27 | advert.background.ignoresSafeArea()
28 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:27:31: error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
| |- error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
28 |
29 | if advert.fullscreen {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:29:34: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
28 |
29 | if advert.fullscreen {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | FullScreenAdView(advert: advert)
31 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:31:20: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
29 | if advert.fullscreen {
30 | FullScreenAdView(advert: advert)
31 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | DefaultAdView(advert: advert)
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:35:13: error: 'HStack' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
33 | }
34 |
35 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | Button {
37 | showPaywall.toggle()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:35:20: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
33 | }
34 |
35 | HStack {
| |- warning: conformance of 'Text' to 'View' 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
36 | Button {
37 | showPaywall.toggle()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:36:17: error: 'Button' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
34 |
35 | HStack {
36 | Button {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | showPaywall.toggle()
38 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:36:17: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
34 |
35 | HStack {
36 | Button {
| |- warning: conformance of 'Text' to 'View' 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
37 | showPaywall.toggle()
38 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:37:21: error: cannot pass as inout because setter for 'showPaywall' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
35 | HStack {
36 | Button {
37 | showPaywall.toggle()
| |- error: cannot pass as inout because setter for 'showPaywall' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | } label: {
39 | Text("Remove Ads")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:39:21: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
37 | showPaywall.toggle()
38 | } label: {
39 | Text("Remove Ads")
| |- warning: conformance of 'Text' to 'View' 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
40 | .font(.system(.footnote, design: .rounded))
41 | .bold()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:39:21: error: 'Text' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
37 | showPaywall.toggle()
38 | } label: {
39 | Text("Remove Ads")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | .font(.system(.footnote, design: .rounded))
41 | .bold()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:40:26: error: 'font' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
38 | } label: {
39 | Text("Remove Ads")
40 | .font(.system(.footnote, design: .rounded))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | .bold()
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:40:32: error: 'system(_:design:weight:)' is only available in macOS 13.0 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
38 | } label: {
39 | Text("Remove Ads")
40 | .font(.system(.footnote, design: .rounded))
| |- error: 'system(_:design:weight:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
41 | .bold()
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:41:26: error: 'bold()' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
39 | Text("Remove Ads")
40 | .font(.system(.footnote, design: .rounded))
41 | .bold()
| |- error: 'bold()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | }
43 | .buttonStyle(.bordered)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:38:26: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
36 | Button {
37 | showPaywall.toggle()
38 | } label: {
| |- warning: conformance of 'Text' to 'View' 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
39 | Text("Remove Ads")
40 | .font(.system(.footnote, design: .rounded))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:43:18: error: 'buttonStyle' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
41 | .bold()
42 | }
43 | .buttonStyle(.bordered)
| |- error: 'buttonStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | .controlSize(.small)
45 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:43:31: error: 'bordered' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
41 | .bold()
42 | }
43 | .buttonStyle(.bordered)
| |- error: 'bordered' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | .controlSize(.small)
45 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:44:18: error: 'controlSize' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
42 | }
43 | .buttonStyle(.bordered)
44 | .controlSize(.small)
| |- error: 'controlSize' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 |
46 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:46:17: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
44 | .controlSize(.small)
45 |
46 | Spacer()
| |- warning: conformance of 'Spacer' to 'View' 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
47 |
48 | // TimerView
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:46:17: error: 'Spacer' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
44 | .controlSize(.small)
45 |
46 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 |
48 | // TimerView
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:51:26: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
49 | if canDismiss {
50 | BillboardDismissButton()
51 | .onAppear {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | #if os(iOS)
53 | if config.allowHaptics {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:49:31: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
47 |
48 | // TimerView
49 | if canDismiss {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | BillboardDismissButton()
51 | .onAppear {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:58:24: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
56 | #endif
57 | }
58 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | BillboardCountdownView(advert:advert,
60 | totalDuration: config.duration,
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:35:20: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
33 | }
34 |
35 | HStack {
| |- warning: conformance of 'Spacer' to 'View' 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
36 | Button {
37 | showPaywall.toggle()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:35:20: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
33 | }
34 |
35 | HStack {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' 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
36 | Button {
37 | showPaywall.toggle()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:64:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
62 | }
63 | }
64 | .frame(height: 40)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | .tint(advert.tint)
66 | .padding()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:65:14: error: 'tint' is only available in macOS 12.0 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
63 | }
64 | .frame(height: 40)
65 | .tint(advert.tint)
| |- error: 'tint' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
66 | .padding()
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:66:14: error: 'padding' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
64 | .frame(height: 40)
65 | .tint(advert.tint)
66 | .padding()
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | }
68 | .sheet(isPresented: $showPaywall) { paywall() }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:26:33: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' 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
27 | advert.background.ignoresSafeArea()
28 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:68:10: error: 'sheet(isPresented:onDismiss:content:)' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
66 | .padding()
67 | }
68 | .sheet(isPresented: $showPaywall) { paywall() }
| |- error: 'sheet(isPresented:onDismiss:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .onAppear(perform: displayOverlay)
70 | .onDisappear(perform: dismissOverlay)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:69:10: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
67 | }
68 | .sheet(isPresented: $showPaywall) { paywall() }
69 | .onAppear(perform: displayOverlay)
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .onDisappear(perform: dismissOverlay)
71 | .onChange(of: showPaywall) { newValue in
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:70:10: error: 'onDisappear(perform:)' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
68 | .sheet(isPresented: $showPaywall) { paywall() }
69 | .onAppear(perform: displayOverlay)
70 | .onDisappear(perform: dismissOverlay)
| |- error: 'onDisappear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .onChange(of: showPaywall) { newValue in
72 | if newValue {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:71:10: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
69 | .onAppear(perform: displayOverlay)
70 | .onDisappear(perform: dismissOverlay)
71 | .onChange(of: showPaywall) { newValue in
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
72 | if newValue {
73 | dismissOverlay()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:78:10: error: 'statusBarHidden' is unavailable in macOS
76 | }
77 | }
78 | .statusBarHidden(true)
| `- error: 'statusBarHidden' is unavailable in macOS
79 | }
80 |
SwiftUI.View:6:29: note: 'statusBarHidden' has been explicitly marked unavailable here
4 | @available(tvOS, unavailable)
5 | @available(watchOS, unavailable)
6 | nonisolated public func statusBarHidden(_ hidden: Bool = true) -> some View
| `- note: 'statusBarHidden' has been explicitly marked unavailable here
7 |
8 | @available(iOS 13.0, watchOS 6.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:84:22: error: 'SKOverlay' is unavailable in macOS
82 |
83 | private var storeOverlay : SKOverlay {
84 | let config = SKOverlay.AppConfiguration(appIdentifier: advert.appStoreID, position: .bottom)
| `- error: 'SKOverlay' is unavailable in macOS
85 | let overlay = SKOverlay(configuration: config)
86 | return overlay
StoreKit.SKOverlay:2:14: note: 'SKOverlay' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | public class SKOverlay : NSObject {
| `- note: 'SKOverlay' has been explicitly marked unavailable here
3 | @available(*, unavailable)
4 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:85:23: error: 'SKOverlay' is unavailable in macOS
83 | private var storeOverlay : SKOverlay {
84 | let config = SKOverlay.AppConfiguration(appIdentifier: advert.appStoreID, position: .bottom)
85 | let overlay = SKOverlay(configuration: config)
| `- error: 'SKOverlay' is unavailable in macOS
86 | return overlay
87 | }
StoreKit.SKOverlay:2:14: note: 'SKOverlay' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | public class SKOverlay : NSObject {
| `- note: 'SKOverlay' has been explicitly marked unavailable here
3 | @available(*, unavailable)
4 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:98:19: error: type 'SKOverlay' has no member 'dismiss'
96 | private func dismissOverlay() {
97 | guard let scene else { return }
98 | SKOverlay.dismiss(in: scene)
| `- error: type 'SKOverlay' has no member 'dismiss'
99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:103:22: error: value of type 'SKOverlay' has no member 'present'
101 | private func displayOverlay() {
102 | guard let scene else { return }
103 | storeOverlay.present(in: scene)
| `- error: value of type 'SKOverlay' has no member 'present'
104 |
105 | #if os(iOS)
[26/26] Compiling Billboard BillboardView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:13:20: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardTextView : View {
| `- note: add @available attribute to enclosing struct
11 | let advert: BillboardAd
12 |
13 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
14 | VStack(spacing: 10) {
15 | BillboardAdInfoLabel(advert: advert)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:33:31: error: 'View' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct BillboardTextView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
33 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
34 | DefaultAdView(advert: BillboardSamples.sampleDefaultAd)
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:14:9: error: 'VStack' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardTextView : View {
| `- note: add @available attribute to enclosing struct
11 | let advert: BillboardAd
12 |
13 | var body: some View {
| `- note: add @available attribute to enclosing property
14 | VStack(spacing: 10) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | BillboardAdInfoLabel(advert: advert)
16 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:17:13: error: 'VStack' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardTextView : View {
| `- note: add @available attribute to enclosing struct
11 | let advert: BillboardAd
12 |
13 | var body: some View {
| `- note: add @available attribute to enclosing property
14 | VStack(spacing: 10) {
15 | BillboardAdInfoLabel(advert: advert)
16 |
17 | VStack(spacing: 6) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | Text(advert.title)
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .heavy))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:18:17: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct BillboardTextView : View {
| `- note: add @available attribute to enclosing struct
11 | let advert: BillboardAd
12 |
13 | var body: some View {
| `- note: add @available attribute to enclosing property
14 | VStack(spacing: 10) {
15 | BillboardAdInfoLabel(advert: advert)
16 |
17 | VStack(spacing: 6) {
18 | Text(advert.title)
| |- warning: conformance of 'Text' to 'View' 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
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .heavy))
20 | Text(advert.description)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:18:17: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardTextView : View {
| `- note: add @available attribute to enclosing struct
11 | let advert: BillboardAd
12 |
13 | var body: some View {
| `- note: add @available attribute to enclosing property
14 | VStack(spacing: 10) {
15 | BillboardAdInfoLabel(advert: advert)
16 |
17 | VStack(spacing: 6) {
18 | Text(advert.title)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .heavy))
20 | Text(advert.description)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:19:22: error: 'font' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardTextView : View {
| `- note: add @available attribute to enclosing struct
11 | let advert: BillboardAd
12 |
13 | var body: some View {
| `- note: add @available attribute to enclosing property
14 | VStack(spacing: 10) {
15 | BillboardAdInfoLabel(advert: advert)
:
17 | VStack(spacing: 6) {
18 | Text(advert.title)
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .heavy))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | Text(advert.description)
21 | .font(.system(.body, design: .rounded))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:19:46: error: 'title2' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardTextView : View {
| `- note: add @available attribute to enclosing struct
11 | let advert: BillboardAd
12 |
13 | var body: some View {
| `- note: add @available attribute to enclosing property
14 | VStack(spacing: 10) {
15 | BillboardAdInfoLabel(advert: advert)
:
17 | VStack(spacing: 6) {
18 | Text(advert.title)
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .heavy))
| |- error: 'title2' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
20 | Text(advert.description)
21 | .font(.system(.body, design: .rounded))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:20:17: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct BillboardTextView : View {
| `- note: add @available attribute to enclosing struct
11 | let advert: BillboardAd
12 |
13 | var body: some View {
| `- note: add @available attribute to enclosing property
14 | VStack(spacing: 10) {
15 | BillboardAdInfoLabel(advert: advert)
:
18 | Text(advert.title)
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .heavy))
20 | Text(advert.description)
| |- warning: conformance of 'Text' to 'View' 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
21 | .font(.system(.body, design: .rounded))
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:20:17: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardTextView : View {
| `- note: add @available attribute to enclosing struct
11 | let advert: BillboardAd
12 |
13 | var body: some View {
| `- note: add @available attribute to enclosing property
14 | VStack(spacing: 10) {
15 | BillboardAdInfoLabel(advert: advert)
:
18 | Text(advert.title)
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .heavy))
20 | Text(advert.description)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | .font(.system(.body, design: .rounded))
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:21:22: error: 'font' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardTextView : View {
| `- note: add @available attribute to enclosing struct
11 | let advert: BillboardAd
12 |
13 | var body: some View {
| `- note: add @available attribute to enclosing property
14 | VStack(spacing: 10) {
15 | BillboardAdInfoLabel(advert: advert)
:
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .heavy))
20 | Text(advert.description)
21 | .font(.system(.body, design: .rounded))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | }
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:21:28: error: 'system(_:design:weight:)' is only available in macOS 13.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardTextView : View {
| `- note: add @available attribute to enclosing struct
11 | let advert: BillboardAd
12 |
13 | var body: some View {
| `- note: add @available attribute to enclosing property
14 | VStack(spacing: 10) {
15 | BillboardAdInfoLabel(advert: advert)
:
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .heavy))
20 | Text(advert.description)
21 | .font(.system(.body, design: .rounded))
| |- error: 'system(_:design:weight:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
22 | }
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:17:32: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct BillboardTextView : View {
| `- note: add @available attribute to enclosing struct
11 | let advert: BillboardAd
12 |
13 | var body: some View {
| `- note: add @available attribute to enclosing property
14 | VStack(spacing: 10) {
15 | BillboardAdInfoLabel(advert: advert)
16 |
17 | VStack(spacing: 6) {
| |- warning: conformance of 'Text' to 'View' 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
18 | Text(advert.title)
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .heavy))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:17:32: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct BillboardTextView : View {
| `- note: add @available attribute to enclosing struct
11 | let advert: BillboardAd
12 |
13 | var body: some View {
| `- note: add @available attribute to enclosing property
14 | VStack(spacing: 10) {
15 | BillboardAdInfoLabel(advert: advert)
16 |
17 | VStack(spacing: 6) {
| |- warning: conformance of 'Text' to 'View' 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
18 | Text(advert.title)
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .heavy))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:24:10: error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardTextView : View {
| `- note: add @available attribute to enclosing struct
11 | let advert: BillboardAd
12 |
13 | var body: some View {
| `- note: add @available attribute to enclosing property
14 | VStack(spacing: 10) {
15 | BillboardAdInfoLabel(advert: advert)
:
22 | }
23 | }
24 | .multilineTextAlignment(.center)
| |- error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .foregroundColor(advert.text)
26 | .frame(maxWidth: 640)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:25:10: error: 'foregroundColor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardTextView : View {
| `- note: add @available attribute to enclosing struct
11 | let advert: BillboardAd
12 |
13 | var body: some View {
| `- note: add @available attribute to enclosing property
14 | VStack(spacing: 10) {
15 | BillboardAdInfoLabel(advert: advert)
:
23 | }
24 | .multilineTextAlignment(.center)
25 | .foregroundColor(advert.text)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | .frame(maxWidth: 640)
27 | .padding(.horizontal, 24)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:26:10: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardTextView : View {
| `- note: add @available attribute to enclosing struct
11 | let advert: BillboardAd
12 |
13 | var body: some View {
| `- note: add @available attribute to enclosing property
14 | VStack(spacing: 10) {
15 | BillboardAdInfoLabel(advert: advert)
:
24 | .multilineTextAlignment(.center)
25 | .foregroundColor(advert.text)
26 | .frame(maxWidth: 640)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | .padding(.horizontal, 24)
28 | .padding(.bottom, 64)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:27:10: error: 'padding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardTextView : View {
| `- note: add @available attribute to enclosing struct
11 | let advert: BillboardAd
12 |
13 | var body: some View {
| `- note: add @available attribute to enclosing property
14 | VStack(spacing: 10) {
15 | BillboardAdInfoLabel(advert: advert)
:
25 | .foregroundColor(advert.text)
26 | .frame(maxWidth: 640)
27 | .padding(.horizontal, 24)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | .padding(.bottom, 64)
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardTextView.swift:28:10: error: 'padding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardTextView : View {
| `- note: add @available attribute to enclosing struct
11 | let advert: BillboardAd
12 |
13 | var body: some View {
| `- note: add @available attribute to enclosing property
14 | VStack(spacing: 10) {
15 | BillboardAdInfoLabel(advert: advert)
:
26 | .frame(maxWidth: 640)
27 | .padding(.horizontal, 24)
28 | .padding(.bottom, 64)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | }
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/BillboardSamples.swift:13:16: warning: static property 'sampleDefaultAd' is not concurrency-safe because non-'Sendable' type 'BillboardAd' may have shared mutable state; this is an error in the Swift 6 language mode
11 | public struct BillboardSamples {
12 |
13 | static let sampleDefaultAd : BillboardAd = BillboardAd(appStoreID: "1596487035",
| |- warning: static property 'sampleDefaultAd' is not concurrency-safe because non-'Sendable' type 'BillboardAd' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sampleDefaultAd' 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
14 | name: "NowPlaying",
15 | title: "Learn everything about any song",
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Models/BillboardAd.swift:12:15: note: consider making struct 'BillboardAd' conform to the 'Sendable' protocol
10 |
11 |
12 | public struct BillboardAd : Codable, Identifiable, Equatable {
| `- note: consider making struct 'BillboardAd' conform to the 'Sendable' protocol
13 |
14 | public static func == (lhs: BillboardAd, rhs: BillboardAd) -> Bool {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:14:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
13 |
14 | @ViewBuilder var paywall: () -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
15 |
16 | @State private var showPaywall : Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:16:6: error: 'State' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
14 | @ViewBuilder var paywall: () -> Content
15 |
16 | @State private var showPaywall : Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
17 | @State private var canDismiss = false
18 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:17:6: error: 'State' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
15 |
16 | @State private var showPaywall : Bool = false
17 | @State private var canDismiss = false
| `- error: 'State' is only available in macOS 10.15 or newer
18 |
19 | public init(advert: BillboardAd, config: BillboardConfiguration = BillboardConfiguration(), paywall: @escaping () -> Content) {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:25:27: error: 'View' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:83:32: error: 'SKOverlay' is unavailable in macOS
81 | //MARK: - App Store Overlay
82 |
83 | private var storeOverlay : SKOverlay {
| `- error: 'SKOverlay' is unavailable in macOS
84 | let config = SKOverlay.AppConfiguration(appIdentifier: advert.appStoreID, position: .bottom)
85 | let overlay = SKOverlay(configuration: config)
StoreKit.SKOverlay:2:14: note: 'SKOverlay' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | public class SKOverlay : NSObject {
| `- note: 'SKOverlay' has been explicitly marked unavailable here
3 | @available(*, unavailable)
4 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:89:25: error: cannot find 'UIApplication' in scope
87 | }
88 |
89 | private let scene = UIApplication.shared.connectedScenes
| `- error: cannot find 'UIApplication' in scope
90 | .compactMap({ scene -> UIWindow? in
91 | (scene as? UIWindowScene)?.keyWindow
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:90:32: error: cannot find type 'UIWindow' in scope
88 |
89 | private let scene = UIApplication.shared.connectedScenes
90 | .compactMap({ scene -> UIWindow? in
| `- error: cannot find type 'UIWindow' in scope
91 | (scene as? UIWindowScene)?.keyWindow
92 | })
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:91:24: error: cannot find type 'UIWindowScene' in scope
89 | private let scene = UIApplication.shared.connectedScenes
90 | .compactMap({ scene -> UIWindow? in
91 | (scene as? UIWindowScene)?.keyWindow
| `- error: cannot find type 'UIWindowScene' in scope
92 | })
93 | .first?
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:10:37: error: 'View' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardDismissButton.swift:11:20: error: 'dismiss' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardDismissButton : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.dismiss) var dismiss
| `- error: 'dismiss' is only available in macOS 12.0 or newer
12 |
13 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:20:31: error: 'publish(every:tolerance:on:in:options:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
18 | @State private var timerProgress : CGFloat = 0.0
19 |
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
| `- error: 'publish(every:tolerance:on:in:options:)' is only available in macOS 10.15 or newer
21 |
22 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:20:73: error: 'autoconnect()' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
18 | @State private var timerProgress : CGFloat = 0.0
19 |
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
| `- error: 'autoconnect()' is only available in macOS 10.15 or newer
21 |
22 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:26:9: error: 'ZStack' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | advert.background.ignoresSafeArea()
28 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:26:28: error: 'top' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
| |- error: 'top' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | advert.background.ignoresSafeArea()
28 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:26:33: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
| |- warning: conformance of 'Text' to 'View' 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
27 | advert.background.ignoresSafeArea()
28 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:27:31: error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
| |- error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
28 |
29 | if advert.fullscreen {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:29:34: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
28 |
29 | if advert.fullscreen {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | FullScreenAdView(advert: advert)
31 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:31:20: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
29 | if advert.fullscreen {
30 | FullScreenAdView(advert: advert)
31 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | DefaultAdView(advert: advert)
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:35:13: error: 'HStack' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
33 | }
34 |
35 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | Button {
37 | showPaywall.toggle()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:35:20: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
33 | }
34 |
35 | HStack {
| |- warning: conformance of 'Text' to 'View' 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
36 | Button {
37 | showPaywall.toggle()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:36:17: error: 'Button' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
34 |
35 | HStack {
36 | Button {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | showPaywall.toggle()
38 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:36:17: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
34 |
35 | HStack {
36 | Button {
| |- warning: conformance of 'Text' to 'View' 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
37 | showPaywall.toggle()
38 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:37:21: error: cannot pass as inout because setter for 'showPaywall' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
35 | HStack {
36 | Button {
37 | showPaywall.toggle()
| |- error: cannot pass as inout because setter for 'showPaywall' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | } label: {
39 | Text("Remove Ads")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:39:21: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
37 | showPaywall.toggle()
38 | } label: {
39 | Text("Remove Ads")
| |- warning: conformance of 'Text' to 'View' 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
40 | .font(.system(.footnote, design: .rounded))
41 | .bold()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:39:21: error: 'Text' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
37 | showPaywall.toggle()
38 | } label: {
39 | Text("Remove Ads")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | .font(.system(.footnote, design: .rounded))
41 | .bold()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:40:26: error: 'font' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
38 | } label: {
39 | Text("Remove Ads")
40 | .font(.system(.footnote, design: .rounded))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | .bold()
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:40:32: error: 'system(_:design:weight:)' is only available in macOS 13.0 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
38 | } label: {
39 | Text("Remove Ads")
40 | .font(.system(.footnote, design: .rounded))
| |- error: 'system(_:design:weight:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
41 | .bold()
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:41:26: error: 'bold()' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
39 | Text("Remove Ads")
40 | .font(.system(.footnote, design: .rounded))
41 | .bold()
| |- error: 'bold()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | }
43 | .buttonStyle(.bordered)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:38:26: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
36 | Button {
37 | showPaywall.toggle()
38 | } label: {
| |- warning: conformance of 'Text' to 'View' 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
39 | Text("Remove Ads")
40 | .font(.system(.footnote, design: .rounded))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:43:18: error: 'buttonStyle' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
41 | .bold()
42 | }
43 | .buttonStyle(.bordered)
| |- error: 'buttonStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | .controlSize(.small)
45 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:43:31: error: 'bordered' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
41 | .bold()
42 | }
43 | .buttonStyle(.bordered)
| |- error: 'bordered' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | .controlSize(.small)
45 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:44:18: error: 'controlSize' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
42 | }
43 | .buttonStyle(.bordered)
44 | .controlSize(.small)
| |- error: 'controlSize' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 |
46 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:46:17: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
44 | .controlSize(.small)
45 |
46 | Spacer()
| |- warning: conformance of 'Spacer' to 'View' 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
47 |
48 | // TimerView
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:46:17: error: 'Spacer' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
44 | .controlSize(.small)
45 |
46 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 |
48 | // TimerView
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:51:26: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
49 | if canDismiss {
50 | BillboardDismissButton()
51 | .onAppear {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | #if os(iOS)
53 | if config.allowHaptics {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:49:31: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
47 |
48 | // TimerView
49 | if canDismiss {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | BillboardDismissButton()
51 | .onAppear {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:58:24: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
56 | #endif
57 | }
58 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | BillboardCountdownView(advert:advert,
60 | totalDuration: config.duration,
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:35:20: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
33 | }
34 |
35 | HStack {
| |- warning: conformance of 'Spacer' to 'View' 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
36 | Button {
37 | showPaywall.toggle()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:35:20: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
33 | }
34 |
35 | HStack {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' 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
36 | Button {
37 | showPaywall.toggle()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:64:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
62 | }
63 | }
64 | .frame(height: 40)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | .tint(advert.tint)
66 | .padding()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:65:14: error: 'tint' is only available in macOS 12.0 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
63 | }
64 | .frame(height: 40)
65 | .tint(advert.tint)
| |- error: 'tint' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
66 | .padding()
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:66:14: error: 'padding' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
64 | .frame(height: 40)
65 | .tint(advert.tint)
66 | .padding()
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | }
68 | .sheet(isPresented: $showPaywall) { paywall() }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:26:33: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' 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
27 | advert.background.ignoresSafeArea()
28 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:68:10: error: 'sheet(isPresented:onDismiss:content:)' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
66 | .padding()
67 | }
68 | .sheet(isPresented: $showPaywall) { paywall() }
| |- error: 'sheet(isPresented:onDismiss:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .onAppear(perform: displayOverlay)
70 | .onDisappear(perform: dismissOverlay)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:69:10: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
67 | }
68 | .sheet(isPresented: $showPaywall) { paywall() }
69 | .onAppear(perform: displayOverlay)
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .onDisappear(perform: dismissOverlay)
71 | .onChange(of: showPaywall) { newValue in
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:70:10: error: 'onDisappear(perform:)' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
68 | .sheet(isPresented: $showPaywall) { paywall() }
69 | .onAppear(perform: displayOverlay)
70 | .onDisappear(perform: dismissOverlay)
| |- error: 'onDisappear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .onChange(of: showPaywall) { newValue in
72 | if newValue {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:71:10: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
69 | .onAppear(perform: displayOverlay)
70 | .onDisappear(perform: dismissOverlay)
71 | .onChange(of: showPaywall) { newValue in
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
72 | if newValue {
73 | dismissOverlay()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:78:10: error: 'statusBarHidden' is unavailable in macOS
76 | }
77 | }
78 | .statusBarHidden(true)
| `- error: 'statusBarHidden' is unavailable in macOS
79 | }
80 |
SwiftUI.View:6:29: note: 'statusBarHidden' has been explicitly marked unavailable here
4 | @available(tvOS, unavailable)
5 | @available(watchOS, unavailable)
6 | nonisolated public func statusBarHidden(_ hidden: Bool = true) -> some View
| `- note: 'statusBarHidden' has been explicitly marked unavailable here
7 |
8 | @available(iOS 13.0, watchOS 6.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:84:22: error: 'SKOverlay' is unavailable in macOS
82 |
83 | private var storeOverlay : SKOverlay {
84 | let config = SKOverlay.AppConfiguration(appIdentifier: advert.appStoreID, position: .bottom)
| `- error: 'SKOverlay' is unavailable in macOS
85 | let overlay = SKOverlay(configuration: config)
86 | return overlay
StoreKit.SKOverlay:2:14: note: 'SKOverlay' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | public class SKOverlay : NSObject {
| `- note: 'SKOverlay' has been explicitly marked unavailable here
3 | @available(*, unavailable)
4 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:85:23: error: 'SKOverlay' is unavailable in macOS
83 | private var storeOverlay : SKOverlay {
84 | let config = SKOverlay.AppConfiguration(appIdentifier: advert.appStoreID, position: .bottom)
85 | let overlay = SKOverlay(configuration: config)
| `- error: 'SKOverlay' is unavailable in macOS
86 | return overlay
87 | }
StoreKit.SKOverlay:2:14: note: 'SKOverlay' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | public class SKOverlay : NSObject {
| `- note: 'SKOverlay' has been explicitly marked unavailable here
3 | @available(*, unavailable)
4 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:98:19: error: type 'SKOverlay' has no member 'dismiss'
96 | private func dismissOverlay() {
97 | guard let scene else { return }
98 | SKOverlay.dismiss(in: scene)
| `- error: type 'SKOverlay' has no member 'dismiss'
99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:103:22: error: value of type 'SKOverlay' has no member 'present'
101 | private func displayOverlay() {
102 | guard let scene else { return }
103 | storeOverlay.present(in: scene)
| `- error: value of type 'SKOverlay' has no member 'present'
104 |
105 | #if os(iOS)
BUILD FAILURE 6.0 macosSpm