Build Information
Failed to build Defines, reference master (b57816
), with Swift 6.0 for Linux on 26 Nov 2024 13:37:18 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -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 2>&1
Build Log
| `- warning: 'public' modifier is redundant for property declared in a public extension
33 | switch self {
34 | case .homePod_1,
/host/spi-builder-workspace/Sources/Defines/Defines+HomePod.swift:50:5: warning: 'public' modifier is redundant for static property declared in a public extension
48 | Returns true if the model is a HomePod.
49 | */
50 | public static let isHomePod: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
51 | return Defines.Device.currentModel.isHomePod
52 | }()
[9/27] Compiling Defines Defines+HomePod.swift
/host/spi-builder-workspace/Sources/Defines/Defines+Device.swift:96:23: warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
94 | The `Defines.Device.Model` currently running your app.
95 | */
96 | public static let currentModel: Defines.Device.Model = {
| |- warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'currentModel' 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
97 | return Defines.Device.Model(rawValue: Sysctl.model)!
98 | }()
/host/spi-builder-workspace/Sources/Defines/Defines.swift:69:21: note: consider making enum 'Model' conform to the 'Sendable' protocol
67 | - [What does 'MM' mean?](//https://apple.stackexchange.com/a/101066)
68 | */
69 | public enum Model: String
| `- note: consider making enum 'Model' conform to the 'Sendable' protocol
70 | {
71 | //MARK: Default
/host/spi-builder-workspace/Sources/Defines/Defines+Device.swift:96:5: warning: 'public' modifier is redundant for static property declared in a public extension
94 | The `Defines.Device.Model` currently running your app.
95 | */
96 | public static let currentModel: Defines.Device.Model = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
97 | return Defines.Device.Model(rawValue: Sysctl.model)!
98 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Device.swift:103:5: warning: 'public' modifier is redundant for static property declared in a public extension
101 | Returns true if your app is running on iOS, watchOS or tvOS and on `i386` or `x86_64` architectures. Otherwise, false.
102 | */
103 | public static let isSimulator: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
104 | #if swift(>=4.1)
105 | #if targetEnvironment(simulator)
/host/spi-builder-workspace/Sources/Defines/Defines+Device.swift:31:35: error: cannot find 'Darwin' in scope
29 | // Preflight the request to get the required data size
30 | var requiredSize = 0
31 | let preFlightResult = Darwin.sysctl(UnsafeMutablePointer<Int32>(mutating: keysPointer.baseAddress), UInt32(keys.count), nil, &requiredSize, nil, 0)
| `- error: cannot find 'Darwin' in scope
32 | if preFlightResult != 0, let error = POSIXErrorCode(rawValue: errno) {
33 | print("\(error)")
/host/spi-builder-workspace/Sources/Defines/Defines+Device.swift:39:24: error: cannot find 'Darwin' in scope
37 | let data = Array<Int8>(repeating: 0, count: requiredSize)
38 | let result = data.withUnsafeBufferPointer() { dataBuffer -> Int32 in
39 | return Darwin.sysctl(UnsafeMutablePointer<Int32>(mutating: keysPointer.baseAddress), UInt32(keys.count), UnsafeMutableRawPointer(mutating: dataBuffer.baseAddress), &requiredSize, nil, 0)
| `- error: cannot find 'Darwin' in scope
40 | }
41 | if result != 0, let error = POSIXErrorCode(rawValue: errno) {
/host/spi-builder-workspace/Sources/Defines/Defines+Device.swift:31:133: error: 'nil' requires a contextual type
29 | // Preflight the request to get the required data size
30 | var requiredSize = 0
31 | let preFlightResult = Darwin.sysctl(UnsafeMutablePointer<Int32>(mutating: keysPointer.baseAddress), UInt32(keys.count), nil, &requiredSize, nil, 0)
| `- error: 'nil' requires a contextual type
32 | if preFlightResult != 0, let error = POSIXErrorCode(rawValue: errno) {
33 | print("\(error)")
/host/spi-builder-workspace/Sources/Defines/Defines+Device.swift:31:153: error: 'nil' requires a contextual type
29 | // Preflight the request to get the required data size
30 | var requiredSize = 0
31 | let preFlightResult = Darwin.sysctl(UnsafeMutablePointer<Int32>(mutating: keysPointer.baseAddress), UInt32(keys.count), nil, &requiredSize, nil, 0)
| `- error: 'nil' requires a contextual type
32 | if preFlightResult != 0, let error = POSIXErrorCode(rawValue: errno) {
33 | print("\(error)")
/host/spi-builder-workspace/Sources/Defines/Defines+Device.swift:63:38: error: cannot find 'CTL_HW' in scope
61 | return Sysctl.stringForKeys([CTL_HW, HW_MACHINE])
62 | #else
63 | return Sysctl.stringForKeys([CTL_HW, HW_MODEL])
| `- error: cannot find 'CTL_HW' in scope
64 | #endif
65 | }
/host/spi-builder-workspace/Sources/Defines/Defines+Device.swift:63:46: error: cannot find 'HW_MODEL' in scope
61 | return Sysctl.stringForKeys([CTL_HW, HW_MACHINE])
62 | #else
63 | return Sysctl.stringForKeys([CTL_HW, HW_MODEL])
| `- error: cannot find 'HW_MODEL' in scope
64 | #endif
65 | }
/host/spi-builder-workspace/Sources/Defines/Defines+Features.swift:32:5: warning: 'public' modifier is redundant for property declared in a public extension
30 | Returns the year the model has been first released in.
31 | */
32 | public var year: Int {
| `- warning: 'public' modifier is redundant for property declared in a public extension
33 | switch self {
34 | case .unknown:
/host/spi-builder-workspace/Sources/Defines/Defines+Features.swift:228:5: warning: 'public' modifier is redundant for property declared in a public extension
226 | This flag is only here because some devices' names encode the presence of a GPS and we thought it'd be useful to translate that into a boolean. That's all.
227 | */
228 | public var hasGPS: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
229 | switch self {
230 | case .appleWatchSeries3_38mm_GPS,
/host/spi-builder-workspace/Sources/Defines/Defines+Features.swift:306:5: warning: 'public' modifier is redundant for property declared in a public extension
304 | This flag is only here because some devices' names encode the presence of a cellular module and we thought it'd be useful to translate that into a boolean. That's all.
305 | */
306 | public var hasCellular: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
307 | switch self {
308 | case .appleWatchSeries3_38mm_GPS_Cellular,
/host/spi-builder-workspace/Sources/Defines/Defines+Features.swift:380:5: warning: 'public' modifier is redundant for static property declared in a public extension
378 | Returns the year the model has been first released in.
379 | */
380 | public static let year: Int = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
381 | return Defines.Device.currentModel.year
382 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Features.swift:392:5: warning: 'public' modifier is redundant for static property declared in a public extension
390 | This flag is only here because some devices' names encode the presence of a GPS and we thought it'd be useful to translate that into a boolean. That's all.
391 | */
392 | public static let hasGPS: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
393 | return Defines.Device.currentModel.hasGPS
394 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Features.swift:404:5: warning: 'public' modifier is redundant for static property declared in a public extension
402 | This flag is only here because some devices' names encode the presence of a cellular module and we thought it'd be useful to translate that into a boolean. That's all.
403 | */
404 | public static let hasCellular: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
405 | return Defines.Device.currentModel.hasCellular
406 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+HomePod.swift:32:5: warning: 'public' modifier is redundant for property declared in a public extension
30 | Returns true if the model is a HomePod.
31 | */
32 | public var isHomePod: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
33 | switch self {
34 | case .homePod_1,
/host/spi-builder-workspace/Sources/Defines/Defines+HomePod.swift:50:5: warning: 'public' modifier is redundant for static property declared in a public extension
48 | Returns true if the model is a HomePod.
49 | */
50 | public static let isHomePod: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
51 | return Defines.Device.currentModel.isHomePod
52 | }()
[10/27] Compiling Defines Defines+Version.swift
/host/spi-builder-workspace/Sources/Defines/Defines+Version.swift:57:5: warning: 'public' modifier is redundant for initializer declared in a public extension
55 | - buildString: a string representing a build. Any string is accepted. Defaults to an empty string.
56 | */
57 | public init(versionString: String,
| `- warning: 'public' modifier is redundant for initializer declared in a public extension
58 | buildString: String? = nil)
59 | {
/host/spi-builder-workspace/Sources/Defines/Defines+Version.swift:103:5: warning: 'public' modifier is redundant for operator function declared in a public extension
101 | {
102 | /// Returns true if two `Version`s are equal.
103 | public static func == (lhs: Defines.Version,
| `- warning: 'public' modifier is redundant for operator function declared in a public extension
104 | rhs: Defines.Version) -> Bool
105 | {
/host/spi-builder-workspace/Sources/Defines/Defines+Version.swift:114:5: warning: 'public' modifier is redundant for operator function declared in a public extension
112 |
113 | /// Returns true if the left-side operand is lesser than the right-side.
114 | public static func < (lhs: Defines.Version,
| `- warning: 'public' modifier is redundant for operator function declared in a public extension
115 | rhs: Defines.Version) -> Bool
116 | {
/host/spi-builder-workspace/Sources/Defines/Defines+Version.swift:140:5: warning: 'public' modifier is redundant for property declared in a public extension
138 |
139 | /// Describes a `Version`.
140 | public var description: String {
| `- warning: 'public' modifier is redundant for property declared in a public extension
141 | return "Version: \(major).\(minor).\(patch) (\(build))"
142 | }
/host/spi-builder-workspace/Sources/Defines/Defines+iMac.swift:32:5: warning: 'public' modifier is redundant for property declared in a public extension
30 | Returns true if the model is an iMac.
31 | */
32 | public var isiMac: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
33 | switch self {
34 | case .iMac_Early_2009,
/host/spi-builder-workspace/Sources/Defines/Defines+iMac.swift:66:5: warning: 'public' modifier is redundant for static property declared in a public extension
64 | Returns true if the model is an iMac.
65 | */
66 | public static let isiMac: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
67 | return Defines.Device.currentModel.isiMac
68 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Device.swift:96:23: warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
94 | The `Defines.Device.Model` currently running your app.
95 | */
96 | public static let currentModel: Defines.Device.Model = {
| |- warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'currentModel' 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
97 | return Defines.Device.Model(rawValue: Sysctl.model)!
98 | }()
/host/spi-builder-workspace/Sources/Defines/Defines.swift:69:21: note: consider making enum 'Model' conform to the 'Sendable' protocol
67 | - [What does 'MM' mean?](//https://apple.stackexchange.com/a/101066)
68 | */
69 | public enum Model: String
| `- note: consider making enum 'Model' conform to the 'Sendable' protocol
70 | {
71 | //MARK: Default
/host/spi-builder-workspace/Sources/Defines/Defines+iPad.swift:32:5: warning: 'public' modifier is redundant for property declared in a public extension
30 | Returns true if the model is an iPad.
31 | */
32 | public var isiPad: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
33 | switch self {
34 | case .iPad_2,
/host/spi-builder-workspace/Sources/Defines/Defines+iPad.swift:89:5: warning: 'public' modifier is redundant for property declared in a public extension
87 | Returns true if the model is a regular iPad (eg. iPad 2, iPad (3rd Generation), iPad (4th Generation), iPad air, iPad air 2, iPad Pro 9.7", iPad (5th Generation) and iPad (6th Generation)).
88 | */
89 | public var isiPadRegular: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
90 | switch self {
91 | case .iPad_2,
/host/spi-builder-workspace/Sources/Defines/Defines+iPad.swift:121:5: warning: 'public' modifier is redundant for property declared in a public extension
119 | Returns true if the model is an iPad air (eg. iPad air and iPad air 2).
120 | */
121 | public var isiPadAir: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
122 | switch self {
123 | case .iPadAir,
/host/spi-builder-workspace/Sources/Defines/Defines+iPad.swift:137:5: warning: 'public' modifier is redundant for property declared in a public extension
135 | Returns true if the model is an iPad Pro (eg. iPad Pro 9.7", iPad Pro 10.5" and iPad Pro 12.9").
136 | */
137 | public var isiPadPro: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
138 | switch self {
139 | case .iPadPro_12_9_Inch,
/host/spi-builder-workspace/Sources/Defines/Defines+iPad.swift:164:5: warning: 'public' modifier is redundant for property declared in a public extension
162 | Returns true if the model is an iPad mini (eg. iPad mini, iPad mini 2, iPad mini 3 and iPad mini 4).
163 | */
164 | public var isiPadMini: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
165 | switch self {
166 | case .iPad_Mini,
/host/spi-builder-workspace/Sources/Defines/Defines+iPad.swift:191:5: warning: 'public' modifier is redundant for static property declared in a public extension
189 | Returns true if the model is an iPad.
190 | */
191 | public static let isiPad: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
192 | return Defines.Device.currentModel.isiPad
193 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+iPad.swift:198:5: warning: 'public' modifier is redundant for static property declared in a public extension
196 | Returns true if the model is a regular iPad (eg. iPad 2, iPad (3rd Generation), iPad (4th Generation), iPad air, iPad air 2, iPad Pro 9.7", iPad (5th Generation) and iPad (6th Generation)).
197 | */
198 | public static let isiPadRegular: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
199 | return Defines.Device.currentModel.isiPadRegular
200 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+iPad.swift:205:5: warning: 'public' modifier is redundant for static property declared in a public extension
203 | Returns true if the model is an iPad air (eg. iPad air and iPad air 2).
204 | */
205 | public static let isiPadAir: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
206 | return Defines.Device.currentModel.isiPadAir
207 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+iPad.swift:212:5: warning: 'public' modifier is redundant for static property declared in a public extension
210 | Returns true if the model is an iPad Pro (eg. iPad Pro 9.7", iPad Pro 10.5" and iPad Pro 12.9").
211 | */
212 | public static let isiPadPro: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
213 | return Defines.Device.currentModel.isiPadPro
214 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+iPad.swift:219:5: warning: 'public' modifier is redundant for static property declared in a public extension
217 | Returns true if the model is an iPad mini (eg. iPad mini, iPad mini 2, iPad mini 3 and iPad mini 4).
218 | */
219 | public static let isiPadMini: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
220 | return Defines.Device.currentModel.isiPadMini
221 | }()
[11/27] Compiling Defines Defines+iMac.swift
/host/spi-builder-workspace/Sources/Defines/Defines+Version.swift:57:5: warning: 'public' modifier is redundant for initializer declared in a public extension
55 | - buildString: a string representing a build. Any string is accepted. Defaults to an empty string.
56 | */
57 | public init(versionString: String,
| `- warning: 'public' modifier is redundant for initializer declared in a public extension
58 | buildString: String? = nil)
59 | {
/host/spi-builder-workspace/Sources/Defines/Defines+Version.swift:103:5: warning: 'public' modifier is redundant for operator function declared in a public extension
101 | {
102 | /// Returns true if two `Version`s are equal.
103 | public static func == (lhs: Defines.Version,
| `- warning: 'public' modifier is redundant for operator function declared in a public extension
104 | rhs: Defines.Version) -> Bool
105 | {
/host/spi-builder-workspace/Sources/Defines/Defines+Version.swift:114:5: warning: 'public' modifier is redundant for operator function declared in a public extension
112 |
113 | /// Returns true if the left-side operand is lesser than the right-side.
114 | public static func < (lhs: Defines.Version,
| `- warning: 'public' modifier is redundant for operator function declared in a public extension
115 | rhs: Defines.Version) -> Bool
116 | {
/host/spi-builder-workspace/Sources/Defines/Defines+Version.swift:140:5: warning: 'public' modifier is redundant for property declared in a public extension
138 |
139 | /// Describes a `Version`.
140 | public var description: String {
| `- warning: 'public' modifier is redundant for property declared in a public extension
141 | return "Version: \(major).\(minor).\(patch) (\(build))"
142 | }
/host/spi-builder-workspace/Sources/Defines/Defines+iMac.swift:32:5: warning: 'public' modifier is redundant for property declared in a public extension
30 | Returns true if the model is an iMac.
31 | */
32 | public var isiMac: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
33 | switch self {
34 | case .iMac_Early_2009,
/host/spi-builder-workspace/Sources/Defines/Defines+iMac.swift:66:5: warning: 'public' modifier is redundant for static property declared in a public extension
64 | Returns true if the model is an iMac.
65 | */
66 | public static let isiMac: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
67 | return Defines.Device.currentModel.isiMac
68 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Device.swift:96:23: warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
94 | The `Defines.Device.Model` currently running your app.
95 | */
96 | public static let currentModel: Defines.Device.Model = {
| |- warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'currentModel' 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
97 | return Defines.Device.Model(rawValue: Sysctl.model)!
98 | }()
/host/spi-builder-workspace/Sources/Defines/Defines.swift:69:21: note: consider making enum 'Model' conform to the 'Sendable' protocol
67 | - [What does 'MM' mean?](//https://apple.stackexchange.com/a/101066)
68 | */
69 | public enum Model: String
| `- note: consider making enum 'Model' conform to the 'Sendable' protocol
70 | {
71 | //MARK: Default
/host/spi-builder-workspace/Sources/Defines/Defines+iPad.swift:32:5: warning: 'public' modifier is redundant for property declared in a public extension
30 | Returns true if the model is an iPad.
31 | */
32 | public var isiPad: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
33 | switch self {
34 | case .iPad_2,
/host/spi-builder-workspace/Sources/Defines/Defines+iPad.swift:89:5: warning: 'public' modifier is redundant for property declared in a public extension
87 | Returns true if the model is a regular iPad (eg. iPad 2, iPad (3rd Generation), iPad (4th Generation), iPad air, iPad air 2, iPad Pro 9.7", iPad (5th Generation) and iPad (6th Generation)).
88 | */
89 | public var isiPadRegular: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
90 | switch self {
91 | case .iPad_2,
/host/spi-builder-workspace/Sources/Defines/Defines+iPad.swift:121:5: warning: 'public' modifier is redundant for property declared in a public extension
119 | Returns true if the model is an iPad air (eg. iPad air and iPad air 2).
120 | */
121 | public var isiPadAir: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
122 | switch self {
123 | case .iPadAir,
/host/spi-builder-workspace/Sources/Defines/Defines+iPad.swift:137:5: warning: 'public' modifier is redundant for property declared in a public extension
135 | Returns true if the model is an iPad Pro (eg. iPad Pro 9.7", iPad Pro 10.5" and iPad Pro 12.9").
136 | */
137 | public var isiPadPro: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
138 | switch self {
139 | case .iPadPro_12_9_Inch,
/host/spi-builder-workspace/Sources/Defines/Defines+iPad.swift:164:5: warning: 'public' modifier is redundant for property declared in a public extension
162 | Returns true if the model is an iPad mini (eg. iPad mini, iPad mini 2, iPad mini 3 and iPad mini 4).
163 | */
164 | public var isiPadMini: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
165 | switch self {
166 | case .iPad_Mini,
/host/spi-builder-workspace/Sources/Defines/Defines+iPad.swift:191:5: warning: 'public' modifier is redundant for static property declared in a public extension
189 | Returns true if the model is an iPad.
190 | */
191 | public static let isiPad: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
192 | return Defines.Device.currentModel.isiPad
193 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+iPad.swift:198:5: warning: 'public' modifier is redundant for static property declared in a public extension
196 | Returns true if the model is a regular iPad (eg. iPad 2, iPad (3rd Generation), iPad (4th Generation), iPad air, iPad air 2, iPad Pro 9.7", iPad (5th Generation) and iPad (6th Generation)).
197 | */
198 | public static let isiPadRegular: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
199 | return Defines.Device.currentModel.isiPadRegular
200 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+iPad.swift:205:5: warning: 'public' modifier is redundant for static property declared in a public extension
203 | Returns true if the model is an iPad air (eg. iPad air and iPad air 2).
204 | */
205 | public static let isiPadAir: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
206 | return Defines.Device.currentModel.isiPadAir
207 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+iPad.swift:212:5: warning: 'public' modifier is redundant for static property declared in a public extension
210 | Returns true if the model is an iPad Pro (eg. iPad Pro 9.7", iPad Pro 10.5" and iPad Pro 12.9").
211 | */
212 | public static let isiPadPro: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
213 | return Defines.Device.currentModel.isiPadPro
214 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+iPad.swift:219:5: warning: 'public' modifier is redundant for static property declared in a public extension
217 | Returns true if the model is an iPad mini (eg. iPad mini, iPad mini 2, iPad mini 3 and iPad mini 4).
218 | */
219 | public static let isiPadMini: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
220 | return Defines.Device.currentModel.isiPadMini
221 | }()
[12/27] Compiling Defines Defines+iPad.swift
/host/spi-builder-workspace/Sources/Defines/Defines+Version.swift:57:5: warning: 'public' modifier is redundant for initializer declared in a public extension
55 | - buildString: a string representing a build. Any string is accepted. Defaults to an empty string.
56 | */
57 | public init(versionString: String,
| `- warning: 'public' modifier is redundant for initializer declared in a public extension
58 | buildString: String? = nil)
59 | {
/host/spi-builder-workspace/Sources/Defines/Defines+Version.swift:103:5: warning: 'public' modifier is redundant for operator function declared in a public extension
101 | {
102 | /// Returns true if two `Version`s are equal.
103 | public static func == (lhs: Defines.Version,
| `- warning: 'public' modifier is redundant for operator function declared in a public extension
104 | rhs: Defines.Version) -> Bool
105 | {
/host/spi-builder-workspace/Sources/Defines/Defines+Version.swift:114:5: warning: 'public' modifier is redundant for operator function declared in a public extension
112 |
113 | /// Returns true if the left-side operand is lesser than the right-side.
114 | public static func < (lhs: Defines.Version,
| `- warning: 'public' modifier is redundant for operator function declared in a public extension
115 | rhs: Defines.Version) -> Bool
116 | {
/host/spi-builder-workspace/Sources/Defines/Defines+Version.swift:140:5: warning: 'public' modifier is redundant for property declared in a public extension
138 |
139 | /// Describes a `Version`.
140 | public var description: String {
| `- warning: 'public' modifier is redundant for property declared in a public extension
141 | return "Version: \(major).\(minor).\(patch) (\(build))"
142 | }
/host/spi-builder-workspace/Sources/Defines/Defines+iMac.swift:32:5: warning: 'public' modifier is redundant for property declared in a public extension
30 | Returns true if the model is an iMac.
31 | */
32 | public var isiMac: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
33 | switch self {
34 | case .iMac_Early_2009,
/host/spi-builder-workspace/Sources/Defines/Defines+iMac.swift:66:5: warning: 'public' modifier is redundant for static property declared in a public extension
64 | Returns true if the model is an iMac.
65 | */
66 | public static let isiMac: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
67 | return Defines.Device.currentModel.isiMac
68 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Device.swift:96:23: warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
94 | The `Defines.Device.Model` currently running your app.
95 | */
96 | public static let currentModel: Defines.Device.Model = {
| |- warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'currentModel' 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
97 | return Defines.Device.Model(rawValue: Sysctl.model)!
98 | }()
/host/spi-builder-workspace/Sources/Defines/Defines.swift:69:21: note: consider making enum 'Model' conform to the 'Sendable' protocol
67 | - [What does 'MM' mean?](//https://apple.stackexchange.com/a/101066)
68 | */
69 | public enum Model: String
| `- note: consider making enum 'Model' conform to the 'Sendable' protocol
70 | {
71 | //MARK: Default
/host/spi-builder-workspace/Sources/Defines/Defines+iPad.swift:32:5: warning: 'public' modifier is redundant for property declared in a public extension
30 | Returns true if the model is an iPad.
31 | */
32 | public var isiPad: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
33 | switch self {
34 | case .iPad_2,
/host/spi-builder-workspace/Sources/Defines/Defines+iPad.swift:89:5: warning: 'public' modifier is redundant for property declared in a public extension
87 | Returns true if the model is a regular iPad (eg. iPad 2, iPad (3rd Generation), iPad (4th Generation), iPad air, iPad air 2, iPad Pro 9.7", iPad (5th Generation) and iPad (6th Generation)).
88 | */
89 | public var isiPadRegular: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
90 | switch self {
91 | case .iPad_2,
/host/spi-builder-workspace/Sources/Defines/Defines+iPad.swift:121:5: warning: 'public' modifier is redundant for property declared in a public extension
119 | Returns true if the model is an iPad air (eg. iPad air and iPad air 2).
120 | */
121 | public var isiPadAir: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
122 | switch self {
123 | case .iPadAir,
/host/spi-builder-workspace/Sources/Defines/Defines+iPad.swift:137:5: warning: 'public' modifier is redundant for property declared in a public extension
135 | Returns true if the model is an iPad Pro (eg. iPad Pro 9.7", iPad Pro 10.5" and iPad Pro 12.9").
136 | */
137 | public var isiPadPro: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
138 | switch self {
139 | case .iPadPro_12_9_Inch,
/host/spi-builder-workspace/Sources/Defines/Defines+iPad.swift:164:5: warning: 'public' modifier is redundant for property declared in a public extension
162 | Returns true if the model is an iPad mini (eg. iPad mini, iPad mini 2, iPad mini 3 and iPad mini 4).
163 | */
164 | public var isiPadMini: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
165 | switch self {
166 | case .iPad_Mini,
/host/spi-builder-workspace/Sources/Defines/Defines+iPad.swift:191:5: warning: 'public' modifier is redundant for static property declared in a public extension
189 | Returns true if the model is an iPad.
190 | */
191 | public static let isiPad: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
192 | return Defines.Device.currentModel.isiPad
193 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+iPad.swift:198:5: warning: 'public' modifier is redundant for static property declared in a public extension
196 | Returns true if the model is a regular iPad (eg. iPad 2, iPad (3rd Generation), iPad (4th Generation), iPad air, iPad air 2, iPad Pro 9.7", iPad (5th Generation) and iPad (6th Generation)).
197 | */
198 | public static let isiPadRegular: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
199 | return Defines.Device.currentModel.isiPadRegular
200 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+iPad.swift:205:5: warning: 'public' modifier is redundant for static property declared in a public extension
203 | Returns true if the model is an iPad air (eg. iPad air and iPad air 2).
204 | */
205 | public static let isiPadAir: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
206 | return Defines.Device.currentModel.isiPadAir
207 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+iPad.swift:212:5: warning: 'public' modifier is redundant for static property declared in a public extension
210 | Returns true if the model is an iPad Pro (eg. iPad Pro 9.7", iPad Pro 10.5" and iPad Pro 12.9").
211 | */
212 | public static let isiPadPro: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
213 | return Defines.Device.currentModel.isiPadPro
214 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+iPad.swift:219:5: warning: 'public' modifier is redundant for static property declared in a public extension
217 | Returns true if the model is an iPad mini (eg. iPad mini, iPad mini 2, iPad mini 3 and iPad mini 4).
218 | */
219 | public static let isiPadMini: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
220 | return Defines.Device.currentModel.isiPadMini
221 | }()
[13/27] Compiling Defines Defines+AirPods.swift
/host/spi-builder-workspace/Sources/Defines/Defines+AirPods.swift:32:5: warning: 'public' modifier is redundant for property declared in a public extension
30 | Returns true if the model is an AirPod.
31 | */
32 | public var isAirPods: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
33 | switch self {
34 | case .airPods: return true
/host/spi-builder-workspace/Sources/Defines/Defines+AirPods.swift:47:5: warning: 'public' modifier is redundant for static property declared in a public extension
45 | Returns true if the model is an AirPod.
46 | */
47 | public static let isAirPods: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
48 | return Defines.Device.currentModel.isAirPods
49 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Device.swift:96:23: warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
94 | The `Defines.Device.Model` currently running your app.
95 | */
96 | public static let currentModel: Defines.Device.Model = {
| |- warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'currentModel' 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
97 | return Defines.Device.Model(rawValue: Sysctl.model)!
98 | }()
/host/spi-builder-workspace/Sources/Defines/Defines.swift:69:21: note: consider making enum 'Model' conform to the 'Sendable' protocol
67 | - [What does 'MM' mean?](//https://apple.stackexchange.com/a/101066)
68 | */
69 | public enum Model: String
| `- note: consider making enum 'Model' conform to the 'Sendable' protocol
70 | {
71 | //MARK: Default
/host/spi-builder-workspace/Sources/Defines/Defines+AppleTV.swift:32:5: warning: 'public' modifier is redundant for property declared in a public extension
30 | Returns true if the model is an TV.
31 | */
32 | public var isAppleTV: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
33 | switch self {
34 | case .appleTV_2ndGeneration,
/host/spi-builder-workspace/Sources/Defines/Defines+AppleTV.swift:53:5: warning: 'public' modifier is redundant for static property declared in a public extension
51 | Returns true if the model is an TV.
52 | */
53 | public static let isAppleTV: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
54 | return Defines.Device.currentModel.isAppleTV
55 | }()
[14/27] Compiling Defines Defines+App.swift
/host/spi-builder-workspace/Sources/Defines/Defines+AirPods.swift:32:5: warning: 'public' modifier is redundant for property declared in a public extension
30 | Returns true if the model is an AirPod.
31 | */
32 | public var isAirPods: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
33 | switch self {
34 | case .airPods: return true
/host/spi-builder-workspace/Sources/Defines/Defines+AirPods.swift:47:5: warning: 'public' modifier is redundant for static property declared in a public extension
45 | Returns true if the model is an AirPod.
46 | */
47 | public static let isAirPods: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
48 | return Defines.Device.currentModel.isAirPods
49 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Device.swift:96:23: warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
94 | The `Defines.Device.Model` currently running your app.
95 | */
96 | public static let currentModel: Defines.Device.Model = {
| |- warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'currentModel' 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
97 | return Defines.Device.Model(rawValue: Sysctl.model)!
98 | }()
/host/spi-builder-workspace/Sources/Defines/Defines.swift:69:21: note: consider making enum 'Model' conform to the 'Sendable' protocol
67 | - [What does 'MM' mean?](//https://apple.stackexchange.com/a/101066)
68 | */
69 | public enum Model: String
| `- note: consider making enum 'Model' conform to the 'Sendable' protocol
70 | {
71 | //MARK: Default
/host/spi-builder-workspace/Sources/Defines/Defines+AppleTV.swift:32:5: warning: 'public' modifier is redundant for property declared in a public extension
30 | Returns true if the model is an TV.
31 | */
32 | public var isAppleTV: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
33 | switch self {
34 | case .appleTV_2ndGeneration,
/host/spi-builder-workspace/Sources/Defines/Defines+AppleTV.swift:53:5: warning: 'public' modifier is redundant for static property declared in a public extension
51 | Returns true if the model is an TV.
52 | */
53 | public static let isAppleTV: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
54 | return Defines.Device.currentModel.isAppleTV
55 | }()
[15/27] Compiling Defines Defines+AppleTV.swift
/host/spi-builder-workspace/Sources/Defines/Defines+AirPods.swift:32:5: warning: 'public' modifier is redundant for property declared in a public extension
30 | Returns true if the model is an AirPod.
31 | */
32 | public var isAirPods: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
33 | switch self {
34 | case .airPods: return true
/host/spi-builder-workspace/Sources/Defines/Defines+AirPods.swift:47:5: warning: 'public' modifier is redundant for static property declared in a public extension
45 | Returns true if the model is an AirPod.
46 | */
47 | public static let isAirPods: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
48 | return Defines.Device.currentModel.isAirPods
49 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Device.swift:96:23: warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
94 | The `Defines.Device.Model` currently running your app.
95 | */
96 | public static let currentModel: Defines.Device.Model = {
| |- warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'currentModel' 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
97 | return Defines.Device.Model(rawValue: Sysctl.model)!
98 | }()
/host/spi-builder-workspace/Sources/Defines/Defines.swift:69:21: note: consider making enum 'Model' conform to the 'Sendable' protocol
67 | - [What does 'MM' mean?](//https://apple.stackexchange.com/a/101066)
68 | */
69 | public enum Model: String
| `- note: consider making enum 'Model' conform to the 'Sendable' protocol
70 | {
71 | //MARK: Default
/host/spi-builder-workspace/Sources/Defines/Defines+AppleTV.swift:32:5: warning: 'public' modifier is redundant for property declared in a public extension
30 | Returns true if the model is an TV.
31 | */
32 | public var isAppleTV: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
33 | switch self {
34 | case .appleTV_2ndGeneration,
/host/spi-builder-workspace/Sources/Defines/Defines+AppleTV.swift:53:5: warning: 'public' modifier is redundant for static property declared in a public extension
51 | Returns true if the model is an TV.
52 | */
53 | public static let isAppleTV: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
54 | return Defines.Device.currentModel.isAppleTV
55 | }()
[16/27] Compiling Defines Defines+AppleWatch.swift
/host/spi-builder-workspace/Sources/Defines/Defines+AppleWatch.swift:32:5: warning: 'public' modifier is redundant for property declared in a public extension
30 | Returns true if the model is an Watch.
31 | */
32 | public var isAppleWatch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
33 | switch self {
34 | case .appleWatch_1stGeneration_38mm,
/host/spi-builder-workspace/Sources/Defines/Defines+AppleWatch.swift:62:5: warning: 'public' modifier is redundant for static property declared in a public extension
60 | Returns true if the model is an Watch.
61 | */
62 | public static let isAppleWatch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
63 | return Defines.Device.currentModel.isAppleWatch
64 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Device.swift:96:23: warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
94 | The `Defines.Device.Model` currently running your app.
95 | */
96 | public static let currentModel: Defines.Device.Model = {
| |- warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'currentModel' 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
97 | return Defines.Device.Model(rawValue: Sysctl.model)!
98 | }()
/host/spi-builder-workspace/Sources/Defines/Defines.swift:69:21: note: consider making enum 'Model' conform to the 'Sendable' protocol
67 | - [What does 'MM' mean?](//https://apple.stackexchange.com/a/101066)
68 | */
69 | public enum Model: String
| `- note: consider making enum 'Model' conform to the 'Sendable' protocol
70 | {
71 | //MARK: Default
/host/spi-builder-workspace/Sources/Defines/Defines+CarPlay.swift:35:5: warning: 'public' modifier is redundant for property declared in a public extension
33 | Returns true if the app is running on CarPlay.
34 | */
35 | public var isCar: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
36 | #if os(iOS)
37 | return UIDevice.current.userInterfaceIdiom == .carPlay
/host/spi-builder-workspace/Sources/Defines/Defines+CarPlay.swift:51:5: warning: 'public' modifier is redundant for static property declared in a public extension
49 | Returns true if the app is running on CarPlay.
50 | */
51 | public static let isCar: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
52 | return Defines.Device.currentModel.isCar
53 | }()
[17/27] Compiling Defines Defines+Bundle.swift
/host/spi-builder-workspace/Sources/Defines/Defines+AppleWatch.swift:32:5: warning: 'public' modifier is redundant for property declared in a public extension
30 | Returns true if the model is an Watch.
31 | */
32 | public var isAppleWatch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
33 | switch self {
34 | case .appleWatch_1stGeneration_38mm,
/host/spi-builder-workspace/Sources/Defines/Defines+AppleWatch.swift:62:5: warning: 'public' modifier is redundant for static property declared in a public extension
60 | Returns true if the model is an Watch.
61 | */
62 | public static let isAppleWatch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
63 | return Defines.Device.currentModel.isAppleWatch
64 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Device.swift:96:23: warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
94 | The `Defines.Device.Model` currently running your app.
95 | */
96 | public static let currentModel: Defines.Device.Model = {
| |- warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'currentModel' 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
97 | return Defines.Device.Model(rawValue: Sysctl.model)!
98 | }()
/host/spi-builder-workspace/Sources/Defines/Defines.swift:69:21: note: consider making enum 'Model' conform to the 'Sendable' protocol
67 | - [What does 'MM' mean?](//https://apple.stackexchange.com/a/101066)
68 | */
69 | public enum Model: String
| `- note: consider making enum 'Model' conform to the 'Sendable' protocol
70 | {
71 | //MARK: Default
/host/spi-builder-workspace/Sources/Defines/Defines+CarPlay.swift:35:5: warning: 'public' modifier is redundant for property declared in a public extension
33 | Returns true if the app is running on CarPlay.
34 | */
35 | public var isCar: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
36 | #if os(iOS)
37 | return UIDevice.current.userInterfaceIdiom == .carPlay
/host/spi-builder-workspace/Sources/Defines/Defines+CarPlay.swift:51:5: warning: 'public' modifier is redundant for static property declared in a public extension
49 | Returns true if the app is running on CarPlay.
50 | */
51 | public static let isCar: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
52 | return Defines.Device.currentModel.isCar
53 | }()
[18/27] Compiling Defines Defines+CarPlay.swift
/host/spi-builder-workspace/Sources/Defines/Defines+AppleWatch.swift:32:5: warning: 'public' modifier is redundant for property declared in a public extension
30 | Returns true if the model is an Watch.
31 | */
32 | public var isAppleWatch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
33 | switch self {
34 | case .appleWatch_1stGeneration_38mm,
/host/spi-builder-workspace/Sources/Defines/Defines+AppleWatch.swift:62:5: warning: 'public' modifier is redundant for static property declared in a public extension
60 | Returns true if the model is an Watch.
61 | */
62 | public static let isAppleWatch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
63 | return Defines.Device.currentModel.isAppleWatch
64 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Device.swift:96:23: warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
94 | The `Defines.Device.Model` currently running your app.
95 | */
96 | public static let currentModel: Defines.Device.Model = {
| |- warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'currentModel' 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
97 | return Defines.Device.Model(rawValue: Sysctl.model)!
98 | }()
/host/spi-builder-workspace/Sources/Defines/Defines.swift:69:21: note: consider making enum 'Model' conform to the 'Sendable' protocol
67 | - [What does 'MM' mean?](//https://apple.stackexchange.com/a/101066)
68 | */
69 | public enum Model: String
| `- note: consider making enum 'Model' conform to the 'Sendable' protocol
70 | {
71 | //MARK: Default
/host/spi-builder-workspace/Sources/Defines/Defines+CarPlay.swift:35:5: warning: 'public' modifier is redundant for property declared in a public extension
33 | Returns true if the app is running on CarPlay.
34 | */
35 | public var isCar: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
36 | #if os(iOS)
37 | return UIDevice.current.userInterfaceIdiom == .carPlay
/host/spi-builder-workspace/Sources/Defines/Defines+CarPlay.swift:51:5: warning: 'public' modifier is redundant for static property declared in a public extension
49 | Returns true if the app is running on CarPlay.
50 | */
51 | public static let isCar: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
52 | return Defines.Device.currentModel.isCar
53 | }()
[19/27] Compiling Defines Defines+Mac.swift
/host/spi-builder-workspace/Sources/Defines/Defines+Mac.swift:32:5: warning: 'public' modifier is redundant for property declared in a public extension
30 | Returns true if the model is a Mac.
31 | */
32 | public var isMac: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
33 | return isMacBookAir || isMacBook || isMacBookPro || isMacMini || isiMac || isMacPro
34 | }
/host/spi-builder-workspace/Sources/Defines/Defines+Mac.swift:44:5: warning: 'public' modifier is redundant for static property declared in a public extension
42 | Returns true if the model is a Mac.
43 | */
44 | public static let isMac: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
45 | return Defines.Device.currentModel.isMac
46 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Device.swift:96:23: warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
94 | The `Defines.Device.Model` currently running your app.
95 | */
96 | public static let currentModel: Defines.Device.Model = {
| |- warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'currentModel' 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
97 | return Defines.Device.Model(rawValue: Sysctl.model)!
98 | }()
/host/spi-builder-workspace/Sources/Defines/Defines.swift:69:21: note: consider making enum 'Model' conform to the 'Sendable' protocol
67 | - [What does 'MM' mean?](//https://apple.stackexchange.com/a/101066)
68 | */
69 | public enum Model: String
| `- note: consider making enum 'Model' conform to the 'Sendable' protocol
70 | {
71 | //MARK: Default
/host/spi-builder-workspace/Sources/Defines/Defines+MacBook.swift:32:5: warning: 'public' modifier is redundant for property declared in a public extension
30 | Returns true if the model is a MacBook.
31 | */
32 | public var isMacBook: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
33 | switch self {
34 | case .macBook_Early_2009,
/host/spi-builder-workspace/Sources/Defines/Defines+MacBook.swift:54:5: warning: 'public' modifier is redundant for static property declared in a public extension
52 | Returns true if the model is a MacBook.
53 | */
54 | public static let isMacBook: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
55 | return Defines.Device.currentModel.isMacBook
56 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+MacBookAir.swift:32:5: warning: 'public' modifier is redundant for property declared in a public extension
30 | Returns true if the model is a MacBook air.
31 | */
32 | public var isMacBookAir: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
33 | switch self {
34 | case .macBookAir_2009,
/host/spi-builder-workspace/Sources/Defines/Defines+MacBookAir.swift:59:5: warning: 'public' modifier is redundant for static property declared in a public extension
57 | Returns true if the model is a MacBook air.
58 | */
59 | public static let isMacBookAir: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
60 | return Defines.Device.currentModel.isMacBookAir
61 | }()
[20/27] Compiling Defines Defines+MacBook.swift
/host/spi-builder-workspace/Sources/Defines/Defines+Mac.swift:32:5: warning: 'public' modifier is redundant for property declared in a public extension
30 | Returns true if the model is a Mac.
31 | */
32 | public var isMac: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
33 | return isMacBookAir || isMacBook || isMacBookPro || isMacMini || isiMac || isMacPro
34 | }
/host/spi-builder-workspace/Sources/Defines/Defines+Mac.swift:44:5: warning: 'public' modifier is redundant for static property declared in a public extension
42 | Returns true if the model is a Mac.
43 | */
44 | public static let isMac: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
45 | return Defines.Device.currentModel.isMac
46 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Device.swift:96:23: warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
94 | The `Defines.Device.Model` currently running your app.
95 | */
96 | public static let currentModel: Defines.Device.Model = {
| |- warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'currentModel' 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
97 | return Defines.Device.Model(rawValue: Sysctl.model)!
98 | }()
/host/spi-builder-workspace/Sources/Defines/Defines.swift:69:21: note: consider making enum 'Model' conform to the 'Sendable' protocol
67 | - [What does 'MM' mean?](//https://apple.stackexchange.com/a/101066)
68 | */
69 | public enum Model: String
| `- note: consider making enum 'Model' conform to the 'Sendable' protocol
70 | {
71 | //MARK: Default
/host/spi-builder-workspace/Sources/Defines/Defines+MacBook.swift:32:5: warning: 'public' modifier is redundant for property declared in a public extension
30 | Returns true if the model is a MacBook.
31 | */
32 | public var isMacBook: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
33 | switch self {
34 | case .macBook_Early_2009,
/host/spi-builder-workspace/Sources/Defines/Defines+MacBook.swift:54:5: warning: 'public' modifier is redundant for static property declared in a public extension
52 | Returns true if the model is a MacBook.
53 | */
54 | public static let isMacBook: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
55 | return Defines.Device.currentModel.isMacBook
56 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+MacBookAir.swift:32:5: warning: 'public' modifier is redundant for property declared in a public extension
30 | Returns true if the model is a MacBook air.
31 | */
32 | public var isMacBookAir: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
33 | switch self {
34 | case .macBookAir_2009,
/host/spi-builder-workspace/Sources/Defines/Defines+MacBookAir.swift:59:5: warning: 'public' modifier is redundant for static property declared in a public extension
57 | Returns true if the model is a MacBook air.
58 | */
59 | public static let isMacBookAir: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
60 | return Defines.Device.currentModel.isMacBookAir
61 | }()
[21/27] Compiling Defines Defines+MacBookAir.swift
/host/spi-builder-workspace/Sources/Defines/Defines+Mac.swift:32:5: warning: 'public' modifier is redundant for property declared in a public extension
30 | Returns true if the model is a Mac.
31 | */
32 | public var isMac: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
33 | return isMacBookAir || isMacBook || isMacBookPro || isMacMini || isiMac || isMacPro
34 | }
/host/spi-builder-workspace/Sources/Defines/Defines+Mac.swift:44:5: warning: 'public' modifier is redundant for static property declared in a public extension
42 | Returns true if the model is a Mac.
43 | */
44 | public static let isMac: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
45 | return Defines.Device.currentModel.isMac
46 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Device.swift:96:23: warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
94 | The `Defines.Device.Model` currently running your app.
95 | */
96 | public static let currentModel: Defines.Device.Model = {
| |- warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'currentModel' 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
97 | return Defines.Device.Model(rawValue: Sysctl.model)!
98 | }()
/host/spi-builder-workspace/Sources/Defines/Defines.swift:69:21: note: consider making enum 'Model' conform to the 'Sendable' protocol
67 | - [What does 'MM' mean?](//https://apple.stackexchange.com/a/101066)
68 | */
69 | public enum Model: String
| `- note: consider making enum 'Model' conform to the 'Sendable' protocol
70 | {
71 | //MARK: Default
/host/spi-builder-workspace/Sources/Defines/Defines+MacBook.swift:32:5: warning: 'public' modifier is redundant for property declared in a public extension
30 | Returns true if the model is a MacBook.
31 | */
32 | public var isMacBook: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
33 | switch self {
34 | case .macBook_Early_2009,
/host/spi-builder-workspace/Sources/Defines/Defines+MacBook.swift:54:5: warning: 'public' modifier is redundant for static property declared in a public extension
52 | Returns true if the model is a MacBook.
53 | */
54 | public static let isMacBook: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
55 | return Defines.Device.currentModel.isMacBook
56 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+MacBookAir.swift:32:5: warning: 'public' modifier is redundant for property declared in a public extension
30 | Returns true if the model is a MacBook air.
31 | */
32 | public var isMacBookAir: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
33 | switch self {
34 | case .macBookAir_2009,
/host/spi-builder-workspace/Sources/Defines/Defines+MacBookAir.swift:59:5: warning: 'public' modifier is redundant for static property declared in a public extension
57 | Returns true if the model is a MacBook air.
58 | */
59 | public static let isMacBookAir: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
60 | return Defines.Device.currentModel.isMacBookAir
61 | }()
[22/27] Compiling Defines Defines+Model.swift
/host/spi-builder-workspace/Sources/Defines/Defines+Model.swift:32:5: warning: 'public' modifier is redundant for property declared in a public extension
30 | Returns true if no model identifier has been retrieved for the device running your app.
31 | */
32 | public var isUnknown: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
33 | switch self {
34 | case .unknown: return true
/host/spi-builder-workspace/Sources/Defines/Defines+Model.swift:47:5: warning: 'public' modifier is redundant for static property declared in a public extension
45 | Returns true if no model identifier has been retrieved for the device running your app.
46 | */
47 | public static let isUnknown: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
48 | return Defines.Device.currentModel.isUnknown
49 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Device.swift:96:23: warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
94 | The `Defines.Device.Model` currently running your app.
95 | */
96 | public static let currentModel: Defines.Device.Model = {
| |- warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'currentModel' 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
97 | return Defines.Device.Model(rawValue: Sysctl.model)!
98 | }()
/host/spi-builder-workspace/Sources/Defines/Defines.swift:69:21: note: consider making enum 'Model' conform to the 'Sendable' protocol
67 | - [What does 'MM' mean?](//https://apple.stackexchange.com/a/101066)
68 | */
69 | public enum Model: String
| `- note: consider making enum 'Model' conform to the 'Sendable' protocol
70 | {
71 | //MARK: Default
/host/spi-builder-workspace/Sources/Defines/Defines+OS.swift:38:23: warning: static property 'version' is not concurrency-safe because non-'Sendable' type 'Defines.Version' may have shared mutable state; this is an error in the Swift 6 language mode
36 | {
37 | /// The version of the OS currently running your app (aka `UIDevice.current.systemVersion`)
38 | public static let version: Defines.Version = {
| |- warning: static property 'version' is not concurrency-safe because non-'Sendable' type 'Defines.Version' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'version' 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
39 | #if os(iOS) || os(tvOS)
40 | return Defines.Version(versionString: UIDevice.current.systemVersion)
/host/spi-builder-workspace/Sources/Defines/Defines.swift:473:19: note: consider making struct 'Version' conform to the 'Sendable' protocol
471 | ```
472 | */
473 | public struct Version: Equatable, Comparable, CustomStringConvertible {
| `- note: consider making struct 'Version' conform to the 'Sendable' protocol
474 | /// The version's major number: **major**.minor.patch (build)
475 | public let major: Int
/host/spi-builder-workspace/Sources/Defines/Defines+OS.swift:38:5: warning: 'public' modifier is redundant for static property declared in a public extension
36 | {
37 | /// The version of the OS currently running your app (aka `UIDevice.current.systemVersion`)
38 | public static let version: Defines.Version = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
39 | #if os(iOS) || os(tvOS)
40 | return Defines.Version(versionString: UIDevice.current.systemVersion)
/host/spi-builder-workspace/Sources/Defines/Defines+OS.swift:51:5: warning: 'public' modifier is redundant for static property declared in a public extension
49 |
50 | /// Returns true when running on iOS.
51 | public static let isiOS: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
52 | #if os(iOS)
53 | return true
/host/spi-builder-workspace/Sources/Defines/Defines+OS.swift:60:5: warning: 'public' modifier is redundant for static property declared in a public extension
58 |
59 | /// Returns true when running on watchOS.
60 | public static let isWatchOS: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
61 | #if os(watchOS)
62 | return true
/host/spi-builder-workspace/Sources/Defines/Defines+OS.swift:69:5: warning: 'public' modifier is redundant for static property declared in a public extension
67 |
68 | /// Returns true when running on tvOS.
69 | public static let istvOS: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
70 | #if os(tvOS)
71 | return true
/host/spi-builder-workspace/Sources/Defines/Defines+OS.swift:78:5: warning: 'public' modifier is redundant for static property declared in a public extension
76 |
77 | /// Returns true when running on macOS.
78 | public static let isMacOS: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
79 | #if os(macOS)
80 | return true
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:40:5: warning: 'public' modifier is redundant for property declared in a public extension
38 | Returns true if the device doesn't have a screen (eg. AirPods and HomePods).
39 | */
40 | public var noScreen: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
41 | switch self {
42 | case .airPods,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:54:5: warning: 'public' modifier is redundant for property declared in a public extension
52 | Returns true if the device has a 38mm screen (eg. Watch 38mm).
53 | */
54 | public var is_38_mm: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
55 | switch self {
56 | case .appleWatch_1stGeneration_38mm,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:70:5: warning: 'public' modifier is redundant for property declared in a public extension
68 | Returns true if the device has a 40mm screen (eg. Watch 40mm).
69 | */
70 | public var is_40_mm: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
71 | switch self {
72 | case .appleWatchSeries4_40mm_GPS,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:83:5: warning: 'public' modifier is redundant for property declared in a public extension
81 | Returns true if the device has a 42mm screen (eg. Watch 42mm).
82 | */
83 | public var is_42_mm: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
84 | switch self {
85 | case .appleWatch_1stGeneration_42mm,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:99:5: warning: 'public' modifier is redundant for property declared in a public extension
97 | Returns true if the device has a 44mm screen (eg. Watch 44mm).
98 | */
99 | public var is_44_mm: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
100 | switch self {
101 | case .appleWatchSeries4_44mm_GPS,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:112:5: warning: 'public' modifier is redundant for property declared in a public extension
110 | Returns true if the device has a 3.5" screen (eg. iPhone 4s).
111 | */
112 | public var is_3_5_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
113 | switch self {
114 | case .iPhone4s:
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:124:5: warning: 'public' modifier is redundant for property declared in a public extension
122 | Returns true if the device has a 4" screen (eg. iPhone 5c, iPhone 5, iPhone 5s, iPhone SE and iPod touch).
123 | */
124 | public var is_4_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
125 | if isiPhoneC {
126 | return true
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:148:5: warning: 'public' modifier is redundant for property declared in a public extension
146 | Returns true if the device has a 4.7" screen (eg. iPhone 6, iPhone 6s, iPhone 7 and iPhone 8).
147 | */
148 | public var is_4_7_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
149 | switch self {
150 | case .iPhone6,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:165:5: warning: 'public' modifier is redundant for property declared in a public extension
163 | Returns true if the device has a 5.5" screen (eg. iPhone Plus).
164 | */
165 | public var is_5_5_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
166 | return isiPhonePlus
167 | }
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:172:5: warning: 'public' modifier is redundant for property declared in a public extension
170 | Returns true if the device has a 5.8" screen (eg. iPhone X).
171 | */
172 | public var is_5_8_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
173 | switch self {
174 | case .iPhoneX,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:186:5: warning: 'public' modifier is redundant for property declared in a public extension
184 | Returns true if the device has a 6.1" screen (eg. iPhone XR).
185 | */
186 | public var is_6_1_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
187 | switch self {
188 | case .iPhoneXR:
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:198:5: warning: 'public' modifier is redundant for property declared in a public extension
196 | Returns true if the device has a 6.5" screen (eg. iPhone XS Max).
197 | */
198 | public var is_6_5_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
199 | switch self {
200 | case .iPhoneXS_Max,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:211:5: warning: 'public' modifier is redundant for property declared in a public extension
209 | Returns true if the device has a 7.9" screen (eg. iPad mini).
210 | */
211 | public var is_7_9_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
212 | return isiPadMini
213 | }
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:218:5: warning: 'public' modifier is redundant for property declared in a public extension
216 | Returns true if the device has a 9.7" screen (eg. regular iPad).
217 | */
218 | public var is_9_7_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
219 | return isiPadRegular
220 | }
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:225:5: warning: 'public' modifier is redundant for property declared in a public extension
223 | Returns true if the device has a 10.5" screen (eg. iPad Pro).
224 | */
225 | public var is_10_5_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
226 | switch self {
227 | case .iPadPro_10_5_Inch,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:238:5: warning: 'public' modifier is redundant for property declared in a public extension
236 | Returns true if the device has an 11" screen (eg. MacBook air).
237 | */
238 | public var is_11_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
239 | switch self {
240 | case .macBookAir_11_Inch_2010,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:258:5: warning: 'public' modifier is redundant for property declared in a public extension
256 | Returns true if the device has a 12" screen (eg. MacBook).
257 | */
258 | public var is_12_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
259 | switch self {
260 | case .macBook_2015,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:272:5: warning: 'public' modifier is redundant for property declared in a public extension
270 | Returns true if the device has a 12.9" screen (eg. iPad Pro).
271 | */
272 | public var is_12_9_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
273 | switch self {
274 | case .iPadPro_12_9_Inch,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:291:5: warning: 'public' modifier is redundant for property declared in a public extension
289 | Returns true if the device has a 13" screen (eg. MacBook air, MacBook, MacBook Pro).
290 | */
291 | public var is_13_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
292 | switch self {
293 | case .macBookAir_2009,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:323:5: warning: 'public' modifier is redundant for property declared in a public extension
321 | Returns true if the device has a 15" screen (eg. MacBook Pro).
322 | */
323 | public var is_15_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
324 | switch self {
325 | case .macBookPro_Late_2008,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:347:5: warning: 'public' modifier is redundant for property declared in a public extension
345 | Returns true if the device has a 17" screen (eg. MacBook Pro).
346 | */
347 | public var is_17_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
348 | switch self {
349 | case .macBookPro_17_Inch_2009,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:361:5: warning: 'public' modifier is redundant for property declared in a public extension
359 | Returns true if the device has a 21.5" screen (eg. iMac).
360 | */
361 | public var is_21_5_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
362 | switch self {
363 | case .iMac_21_5_Inch_2010,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:381:5: warning: 'public' modifier is redundant for property declared in a public extension
379 | Returns true if the device has a 27" screen (eg. iMac).
380 | */
381 | public var is_27_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
382 | switch self {
383 | case .iMac_27_Inch_2010,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:399:5: warning: 'public' modifier is redundant for property declared in a public extension
397 | Returns true if the device supports 4K screens (eg. TV and iMac).
398 | */
399 | public var is_4K: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
400 | switch self {
401 | case .appleTV_4K,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:413:5: warning: 'public' modifier is redundant for property declared in a public extension
411 | Returns true if the device supports 5K screens (eg. iMac).
412 | */
413 | public var is_5K: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
414 | switch self {
415 | case .iMac_27_Inch_5K_2014,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:433:5: warning: 'public' modifier is redundant for property declared in a public extension
431 | - `Defines.Screen`
432 | */
433 | public var undefinedScreen: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
434 | switch self {
435 | case .appleTV_2ndGeneration,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:472:31: error: cannot find type 'Rect' in scope
470 |
471 | /// The main screen's current bounds.
472 | public static let bounds: Rect = {
| `- error: cannot find type 'Rect' in scope
473 | #if os(iOS) || os(tvOS)
474 | return UIScreen.main.bounds
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:472:5: warning: 'public' modifier is redundant for static property declared in a public extension
470 |
471 | /// The main screen's current bounds.
472 | public static let bounds: Rect = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
473 | #if os(iOS) || os(tvOS)
474 | return UIScreen.main.bounds
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:489:37: error: cannot find type 'CGFloat' in scope
487 |
488 | /// The main screen's bounds' maxX (aka `UIScreen.main.bounds.maxX`).
489 | public static let currentWidth: CGFloat = {
| `- error: cannot find type 'CGFloat' in scope
490 | return Defines.Screen.bounds.maxX
491 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:489:5: warning: 'public' modifier is redundant for static property declared in a public extension
487 |
488 | /// The main screen's bounds' maxX (aka `UIScreen.main.bounds.maxX`).
489 | public static let currentWidth: CGFloat = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
490 | return Defines.Screen.bounds.maxX
491 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:494:38: error: cannot find type 'CGFloat' in scope
492 |
493 | /// The main screen's bounds' maxY (aka `UIScreen.main.bounds.maxY`).
494 | public static let currentHeight: CGFloat = {
| `- error: cannot find type 'CGFloat' in scope
495 | return Defines.Screen.bounds.maxY
496 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:494:5: warning: 'public' modifier is redundant for static property declared in a public extension
492 |
493 | /// The main screen's bounds' maxY (aka `UIScreen.main.bounds.maxY`).
494 | public static let currentHeight: CGFloat = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
495 | return Defines.Screen.bounds.maxY
496 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:499:34: error: cannot find type 'CGFloat' in scope
497 |
498 | /// The main screen's bounds' maximum between width and height (aka `max(UIScreen.width, UIScreen.height)`).
499 | public static let maxLength: CGFloat = {
| `- error: cannot find type 'CGFloat' in scope
500 | return max(Defines.Screen.currentWidth, Defines.Screen.currentHeight)
501 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:499:5: warning: 'public' modifier is redundant for static property declared in a public extension
497 |
498 | /// The main screen's bounds' maximum between width and height (aka `max(UIScreen.width, UIScreen.height)`).
499 | public static let maxLength: CGFloat = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
500 | return max(Defines.Screen.currentWidth, Defines.Screen.currentHeight)
501 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:504:34: error: cannot find type 'CGFloat' in scope
502 |
503 | /// The main screen's bounds' minimum between width and height (aka `min(UIScreen.width, UIScreen.height)`).
504 | public static let minLength: CGFloat = {
| `- error: cannot find type 'CGFloat' in scope
505 | return min(Defines.Screen.currentWidth, Defines.Screen.currentHeight)
506 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:504:5: warning: 'public' modifier is redundant for static property declared in a public extension
502 |
503 | /// The main screen's bounds' minimum between width and height (aka `min(UIScreen.width, UIScreen.height)`).
504 | public static let minLength: CGFloat = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
505 | return min(Defines.Screen.currentWidth, Defines.Screen.currentHeight)
506 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:509:30: error: cannot find type 'CGFloat' in scope
507 |
508 | /// The main screen's scale factor (aka `UIScreen.main.scale`)
509 | public static let scale: CGFloat = {
| `- error: cannot find type 'CGFloat' in scope
510 | #if os(iOS) || os(tvOS)
511 | return UIScreen.main.scale
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:509:5: warning: 'public' modifier is redundant for static property declared in a public extension
507 |
508 | /// The main screen's scale factor (aka `UIScreen.main.scale`)
509 | public static let scale: CGFloat = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
510 | #if os(iOS) || os(tvOS)
511 | return UIScreen.main.scale
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:526:5: warning: 'public' modifier is redundant for static property declared in a public extension
524 |
525 | /// The main screen's scale (aka `UIScreen.main.scale > 1`).
526 | public static let isRetina: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
527 | return Defines.Screen.scale > 1
528 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:531:5: warning: 'public' modifier is redundant for static property declared in a public extension
529 |
530 | /// If the device is an iPhone and it's scaled up, this returns `true`.
531 | public static let isScaledUp: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
532 | #if os(iOS)
533 | guard Defines.Device.isiPhone else { return false }
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:543:5: warning: 'public' modifier is redundant for static property declared in a public extension
541 | Returns true if the device doesn't have a screen (eg. AirPods and HomePods).
542 | */
543 | public static let noScreen: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
544 | return Defines.Device.currentModel.noScreen
545 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:550:5: warning: 'public' modifier is redundant for static property declared in a public extension
548 | Returns true if the device has a 38mm screen (eg. Watch 38mm).
549 | */
550 | public static let is_38_mm: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
551 | return Defines.Device.currentModel.is_38_mm
552 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:557:5: warning: 'public' modifier is redundant for static property declared in a public extension
555 | Returns true if the device has a 42mm screen (eg. Watch 42mm).
556 | */
557 | public static let is_42_mm: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
558 | return Defines.Device.currentModel.is_42_mm
559 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:564:5: warning: 'public' modifier is redundant for static property declared in a public extension
562 | Returns true if the device has a 3.5" screen (eg. iPhone 4s).
563 | */
564 | public static let is_3_5_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
565 | return Defines.Device.currentModel.is_3_5_Inch
566 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:571:5: warning: 'public' modifier is redundant for static property declared in a public extension
569 | Returns true if the device has a 4" screen (eg. iPhone 5c, iPhone 5, iPhone 5s, iPhone SE and iPod touch).
570 | */
571 | public static let is_4_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
572 | return Defines.Device.currentModel.is_4_Inch
573 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:578:5: warning: 'public' modifier is redundant for static property declared in a public extension
576 | Returns true if the device has a 4.7" screen (eg. iPhone 6, iPhone 6s, iPhone 7 and iPhone 8).
577 | */
578 | public static let is_4_7_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
579 | return Defines.Device.currentModel.is_4_7_Inch
580 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:585:5: warning: 'public' modifier is redundant for static property declared in a public extension
583 | Returns true if the device has a 5.5" screen (eg. iPhone Plus).
584 | */
585 | public static let is_5_5_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
586 | return Defines.Device.currentModel.is_5_5_Inch
587 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:592:5: warning: 'public' modifier is redundant for static property declared in a public extension
590 | Returns true if the device has a 5.8" screen (eg. iPhone X).
591 | */
592 | public static let is_5_8_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
593 | return Defines.Device.currentModel.is_5_8_Inch
594 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:599:5: warning: 'public' modifier is redundant for static property declared in a public extension
597 | Returns true if the device has a 7.9" screen (eg. iPad mini).
598 | */
599 | public static let is_7_9_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
600 | return Defines.Device.currentModel.is_7_9_Inch
601 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:606:5: warning: 'public' modifier is redundant for static property declared in a public extension
604 | Returns true if the device has a 9.7" screen (eg. regular iPad).
605 | */
606 | public static let is_9_7_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
607 | return Defines.Device.currentModel.is_9_7_Inch
608 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:613:5: warning: 'public' modifier is redundant for static property declared in a public extension
611 | Returns true if the device has a 10.5" screen (eg. iPad Pro).
612 | */
613 | public static let is_10_5_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
614 | return Defines.Device.currentModel.is_10_5_Inch
615 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:620:5: warning: 'public' modifier is redundant for static property declared in a public extension
618 | Returns true if the device has an 11" screen (eg. MacBook air).
619 | */
620 | public static let is_11_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
621 | return Defines.Device.currentModel.is_11_Inch
622 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:627:5: warning: 'public' modifier is redundant for static property declared in a public extension
625 | Returns true if the device has a 12" screen (eg. MacBook).
626 | */
627 | public static let is_12_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
628 | return Defines.Device.currentModel.is_12_Inch
629 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:634:5: warning: 'public' modifier is redundant for static property declared in a public extension
632 | Returns true if the device has a 12.9" screen (eg. iPad Pro).
633 | */
634 | public static let is_12_9_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
635 | return Defines.Device.currentModel.is_12_9_Inch
636 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:641:5: warning: 'public' modifier is redundant for static property declared in a public extension
639 | Returns true if the device has a 13" screen (eg. MacBook air, MacBook, MacBook Pro).
640 | */
641 | public static let is_13_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
642 | return Defines.Device.currentModel.is_13_Inch
643 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:648:5: warning: 'public' modifier is redundant for static property declared in a public extension
646 | Returns true if the device has a 15" screen (eg. MacBook Pro).
647 | */
648 | public static let is_15_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
649 | return Defines.Device.currentModel.is_15_Inch
650 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:655:5: warning: 'public' modifier is redundant for static property declared in a public extension
653 | Returns true if the device has a 17" screen (eg. MacBook Pro).
654 | */
655 | public static let is_17_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
656 | return Defines.Device.currentModel.is_17_Inch
657 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:662:5: warning: 'public' modifier is redundant for static property declared in a public extension
660 | Returns true if the device has a 21.5" screen (eg. iMac).
661 | */
662 | public static let is_21_5_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
663 | return Defines.Device.currentModel.is_21_5_Inch
664 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:669:5: warning: 'public' modifier is redundant for static property declared in a public extension
667 | Returns true if the device has a 27" screen (eg. iMac).
668 | */
669 | public static let is_27_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
670 | return Defines.Device.currentModel.is_27_Inch
671 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:676:5: warning: 'public' modifier is redundant for static property declared in a public extension
674 | Returns true if the device supports 4K screens (eg. TV and iMac).
675 | */
676 | public static let is_4K: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
677 | return Defines.Device.currentModel.is_4K
678 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:683:5: warning: 'public' modifier is redundant for static property declared in a public extension
681 | Returns true if the device supports 5K screens (eg. iMac).
682 | */
683 | public static let is_5K: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
684 | return Defines.Device.currentModel.is_5K
685 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:696:5: warning: 'public' modifier is redundant for static property declared in a public extension
694 | - `Defines.Screen`
695 | */
696 | public static let undefinedScreen: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
697 | return Defines.Device.currentModel.undefinedScreen
698 | }()
[23/27] Compiling Defines Defines+OS.swift
/host/spi-builder-workspace/Sources/Defines/Defines+Model.swift:32:5: warning: 'public' modifier is redundant for property declared in a public extension
30 | Returns true if no model identifier has been retrieved for the device running your app.
31 | */
32 | public var isUnknown: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
33 | switch self {
34 | case .unknown: return true
/host/spi-builder-workspace/Sources/Defines/Defines+Model.swift:47:5: warning: 'public' modifier is redundant for static property declared in a public extension
45 | Returns true if no model identifier has been retrieved for the device running your app.
46 | */
47 | public static let isUnknown: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
48 | return Defines.Device.currentModel.isUnknown
49 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Device.swift:96:23: warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
94 | The `Defines.Device.Model` currently running your app.
95 | */
96 | public static let currentModel: Defines.Device.Model = {
| |- warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'currentModel' 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
97 | return Defines.Device.Model(rawValue: Sysctl.model)!
98 | }()
/host/spi-builder-workspace/Sources/Defines/Defines.swift:69:21: note: consider making enum 'Model' conform to the 'Sendable' protocol
67 | - [What does 'MM' mean?](//https://apple.stackexchange.com/a/101066)
68 | */
69 | public enum Model: String
| `- note: consider making enum 'Model' conform to the 'Sendable' protocol
70 | {
71 | //MARK: Default
/host/spi-builder-workspace/Sources/Defines/Defines+OS.swift:38:23: warning: static property 'version' is not concurrency-safe because non-'Sendable' type 'Defines.Version' may have shared mutable state; this is an error in the Swift 6 language mode
36 | {
37 | /// The version of the OS currently running your app (aka `UIDevice.current.systemVersion`)
38 | public static let version: Defines.Version = {
| |- warning: static property 'version' is not concurrency-safe because non-'Sendable' type 'Defines.Version' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'version' 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
39 | #if os(iOS) || os(tvOS)
40 | return Defines.Version(versionString: UIDevice.current.systemVersion)
/host/spi-builder-workspace/Sources/Defines/Defines.swift:473:19: note: consider making struct 'Version' conform to the 'Sendable' protocol
471 | ```
472 | */
473 | public struct Version: Equatable, Comparable, CustomStringConvertible {
| `- note: consider making struct 'Version' conform to the 'Sendable' protocol
474 | /// The version's major number: **major**.minor.patch (build)
475 | public let major: Int
/host/spi-builder-workspace/Sources/Defines/Defines+OS.swift:38:5: warning: 'public' modifier is redundant for static property declared in a public extension
36 | {
37 | /// The version of the OS currently running your app (aka `UIDevice.current.systemVersion`)
38 | public static let version: Defines.Version = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
39 | #if os(iOS) || os(tvOS)
40 | return Defines.Version(versionString: UIDevice.current.systemVersion)
/host/spi-builder-workspace/Sources/Defines/Defines+OS.swift:51:5: warning: 'public' modifier is redundant for static property declared in a public extension
49 |
50 | /// Returns true when running on iOS.
51 | public static let isiOS: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
52 | #if os(iOS)
53 | return true
/host/spi-builder-workspace/Sources/Defines/Defines+OS.swift:60:5: warning: 'public' modifier is redundant for static property declared in a public extension
58 |
59 | /// Returns true when running on watchOS.
60 | public static let isWatchOS: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
61 | #if os(watchOS)
62 | return true
/host/spi-builder-workspace/Sources/Defines/Defines+OS.swift:69:5: warning: 'public' modifier is redundant for static property declared in a public extension
67 |
68 | /// Returns true when running on tvOS.
69 | public static let istvOS: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
70 | #if os(tvOS)
71 | return true
/host/spi-builder-workspace/Sources/Defines/Defines+OS.swift:78:5: warning: 'public' modifier is redundant for static property declared in a public extension
76 |
77 | /// Returns true when running on macOS.
78 | public static let isMacOS: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
79 | #if os(macOS)
80 | return true
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:40:5: warning: 'public' modifier is redundant for property declared in a public extension
38 | Returns true if the device doesn't have a screen (eg. AirPods and HomePods).
39 | */
40 | public var noScreen: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
41 | switch self {
42 | case .airPods,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:54:5: warning: 'public' modifier is redundant for property declared in a public extension
52 | Returns true if the device has a 38mm screen (eg. Watch 38mm).
53 | */
54 | public var is_38_mm: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
55 | switch self {
56 | case .appleWatch_1stGeneration_38mm,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:70:5: warning: 'public' modifier is redundant for property declared in a public extension
68 | Returns true if the device has a 40mm screen (eg. Watch 40mm).
69 | */
70 | public var is_40_mm: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
71 | switch self {
72 | case .appleWatchSeries4_40mm_GPS,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:83:5: warning: 'public' modifier is redundant for property declared in a public extension
81 | Returns true if the device has a 42mm screen (eg. Watch 42mm).
82 | */
83 | public var is_42_mm: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
84 | switch self {
85 | case .appleWatch_1stGeneration_42mm,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:99:5: warning: 'public' modifier is redundant for property declared in a public extension
97 | Returns true if the device has a 44mm screen (eg. Watch 44mm).
98 | */
99 | public var is_44_mm: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
100 | switch self {
101 | case .appleWatchSeries4_44mm_GPS,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:112:5: warning: 'public' modifier is redundant for property declared in a public extension
110 | Returns true if the device has a 3.5" screen (eg. iPhone 4s).
111 | */
112 | public var is_3_5_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
113 | switch self {
114 | case .iPhone4s:
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:124:5: warning: 'public' modifier is redundant for property declared in a public extension
122 | Returns true if the device has a 4" screen (eg. iPhone 5c, iPhone 5, iPhone 5s, iPhone SE and iPod touch).
123 | */
124 | public var is_4_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
125 | if isiPhoneC {
126 | return true
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:148:5: warning: 'public' modifier is redundant for property declared in a public extension
146 | Returns true if the device has a 4.7" screen (eg. iPhone 6, iPhone 6s, iPhone 7 and iPhone 8).
147 | */
148 | public var is_4_7_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
149 | switch self {
150 | case .iPhone6,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:165:5: warning: 'public' modifier is redundant for property declared in a public extension
163 | Returns true if the device has a 5.5" screen (eg. iPhone Plus).
164 | */
165 | public var is_5_5_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
166 | return isiPhonePlus
167 | }
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:172:5: warning: 'public' modifier is redundant for property declared in a public extension
170 | Returns true if the device has a 5.8" screen (eg. iPhone X).
171 | */
172 | public var is_5_8_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
173 | switch self {
174 | case .iPhoneX,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:186:5: warning: 'public' modifier is redundant for property declared in a public extension
184 | Returns true if the device has a 6.1" screen (eg. iPhone XR).
185 | */
186 | public var is_6_1_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
187 | switch self {
188 | case .iPhoneXR:
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:198:5: warning: 'public' modifier is redundant for property declared in a public extension
196 | Returns true if the device has a 6.5" screen (eg. iPhone XS Max).
197 | */
198 | public var is_6_5_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
199 | switch self {
200 | case .iPhoneXS_Max,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:211:5: warning: 'public' modifier is redundant for property declared in a public extension
209 | Returns true if the device has a 7.9" screen (eg. iPad mini).
210 | */
211 | public var is_7_9_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
212 | return isiPadMini
213 | }
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:218:5: warning: 'public' modifier is redundant for property declared in a public extension
216 | Returns true if the device has a 9.7" screen (eg. regular iPad).
217 | */
218 | public var is_9_7_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
219 | return isiPadRegular
220 | }
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:225:5: warning: 'public' modifier is redundant for property declared in a public extension
223 | Returns true if the device has a 10.5" screen (eg. iPad Pro).
224 | */
225 | public var is_10_5_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
226 | switch self {
227 | case .iPadPro_10_5_Inch,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:238:5: warning: 'public' modifier is redundant for property declared in a public extension
236 | Returns true if the device has an 11" screen (eg. MacBook air).
237 | */
238 | public var is_11_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
239 | switch self {
240 | case .macBookAir_11_Inch_2010,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:258:5: warning: 'public' modifier is redundant for property declared in a public extension
256 | Returns true if the device has a 12" screen (eg. MacBook).
257 | */
258 | public var is_12_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
259 | switch self {
260 | case .macBook_2015,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:272:5: warning: 'public' modifier is redundant for property declared in a public extension
270 | Returns true if the device has a 12.9" screen (eg. iPad Pro).
271 | */
272 | public var is_12_9_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
273 | switch self {
274 | case .iPadPro_12_9_Inch,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:291:5: warning: 'public' modifier is redundant for property declared in a public extension
289 | Returns true if the device has a 13" screen (eg. MacBook air, MacBook, MacBook Pro).
290 | */
291 | public var is_13_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
292 | switch self {
293 | case .macBookAir_2009,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:323:5: warning: 'public' modifier is redundant for property declared in a public extension
321 | Returns true if the device has a 15" screen (eg. MacBook Pro).
322 | */
323 | public var is_15_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
324 | switch self {
325 | case .macBookPro_Late_2008,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:347:5: warning: 'public' modifier is redundant for property declared in a public extension
345 | Returns true if the device has a 17" screen (eg. MacBook Pro).
346 | */
347 | public var is_17_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
348 | switch self {
349 | case .macBookPro_17_Inch_2009,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:361:5: warning: 'public' modifier is redundant for property declared in a public extension
359 | Returns true if the device has a 21.5" screen (eg. iMac).
360 | */
361 | public var is_21_5_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
362 | switch self {
363 | case .iMac_21_5_Inch_2010,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:381:5: warning: 'public' modifier is redundant for property declared in a public extension
379 | Returns true if the device has a 27" screen (eg. iMac).
380 | */
381 | public var is_27_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
382 | switch self {
383 | case .iMac_27_Inch_2010,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:399:5: warning: 'public' modifier is redundant for property declared in a public extension
397 | Returns true if the device supports 4K screens (eg. TV and iMac).
398 | */
399 | public var is_4K: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
400 | switch self {
401 | case .appleTV_4K,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:413:5: warning: 'public' modifier is redundant for property declared in a public extension
411 | Returns true if the device supports 5K screens (eg. iMac).
412 | */
413 | public var is_5K: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
414 | switch self {
415 | case .iMac_27_Inch_5K_2014,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:433:5: warning: 'public' modifier is redundant for property declared in a public extension
431 | - `Defines.Screen`
432 | */
433 | public var undefinedScreen: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
434 | switch self {
435 | case .appleTV_2ndGeneration,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:472:31: error: cannot find type 'Rect' in scope
470 |
471 | /// The main screen's current bounds.
472 | public static let bounds: Rect = {
| `- error: cannot find type 'Rect' in scope
473 | #if os(iOS) || os(tvOS)
474 | return UIScreen.main.bounds
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:472:5: warning: 'public' modifier is redundant for static property declared in a public extension
470 |
471 | /// The main screen's current bounds.
472 | public static let bounds: Rect = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
473 | #if os(iOS) || os(tvOS)
474 | return UIScreen.main.bounds
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:489:37: error: cannot find type 'CGFloat' in scope
487 |
488 | /// The main screen's bounds' maxX (aka `UIScreen.main.bounds.maxX`).
489 | public static let currentWidth: CGFloat = {
| `- error: cannot find type 'CGFloat' in scope
490 | return Defines.Screen.bounds.maxX
491 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:489:5: warning: 'public' modifier is redundant for static property declared in a public extension
487 |
488 | /// The main screen's bounds' maxX (aka `UIScreen.main.bounds.maxX`).
489 | public static let currentWidth: CGFloat = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
490 | return Defines.Screen.bounds.maxX
491 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:494:38: error: cannot find type 'CGFloat' in scope
492 |
493 | /// The main screen's bounds' maxY (aka `UIScreen.main.bounds.maxY`).
494 | public static let currentHeight: CGFloat = {
| `- error: cannot find type 'CGFloat' in scope
495 | return Defines.Screen.bounds.maxY
496 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:494:5: warning: 'public' modifier is redundant for static property declared in a public extension
492 |
493 | /// The main screen's bounds' maxY (aka `UIScreen.main.bounds.maxY`).
494 | public static let currentHeight: CGFloat = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
495 | return Defines.Screen.bounds.maxY
496 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:499:34: error: cannot find type 'CGFloat' in scope
497 |
498 | /// The main screen's bounds' maximum between width and height (aka `max(UIScreen.width, UIScreen.height)`).
499 | public static let maxLength: CGFloat = {
| `- error: cannot find type 'CGFloat' in scope
500 | return max(Defines.Screen.currentWidth, Defines.Screen.currentHeight)
501 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:499:5: warning: 'public' modifier is redundant for static property declared in a public extension
497 |
498 | /// The main screen's bounds' maximum between width and height (aka `max(UIScreen.width, UIScreen.height)`).
499 | public static let maxLength: CGFloat = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
500 | return max(Defines.Screen.currentWidth, Defines.Screen.currentHeight)
501 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:504:34: error: cannot find type 'CGFloat' in scope
502 |
503 | /// The main screen's bounds' minimum between width and height (aka `min(UIScreen.width, UIScreen.height)`).
504 | public static let minLength: CGFloat = {
| `- error: cannot find type 'CGFloat' in scope
505 | return min(Defines.Screen.currentWidth, Defines.Screen.currentHeight)
506 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:504:5: warning: 'public' modifier is redundant for static property declared in a public extension
502 |
503 | /// The main screen's bounds' minimum between width and height (aka `min(UIScreen.width, UIScreen.height)`).
504 | public static let minLength: CGFloat = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
505 | return min(Defines.Screen.currentWidth, Defines.Screen.currentHeight)
506 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:509:30: error: cannot find type 'CGFloat' in scope
507 |
508 | /// The main screen's scale factor (aka `UIScreen.main.scale`)
509 | public static let scale: CGFloat = {
| `- error: cannot find type 'CGFloat' in scope
510 | #if os(iOS) || os(tvOS)
511 | return UIScreen.main.scale
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:509:5: warning: 'public' modifier is redundant for static property declared in a public extension
507 |
508 | /// The main screen's scale factor (aka `UIScreen.main.scale`)
509 | public static let scale: CGFloat = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
510 | #if os(iOS) || os(tvOS)
511 | return UIScreen.main.scale
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:526:5: warning: 'public' modifier is redundant for static property declared in a public extension
524 |
525 | /// The main screen's scale (aka `UIScreen.main.scale > 1`).
526 | public static let isRetina: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
527 | return Defines.Screen.scale > 1
528 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:531:5: warning: 'public' modifier is redundant for static property declared in a public extension
529 |
530 | /// If the device is an iPhone and it's scaled up, this returns `true`.
531 | public static let isScaledUp: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
532 | #if os(iOS)
533 | guard Defines.Device.isiPhone else { return false }
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:543:5: warning: 'public' modifier is redundant for static property declared in a public extension
541 | Returns true if the device doesn't have a screen (eg. AirPods and HomePods).
542 | */
543 | public static let noScreen: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
544 | return Defines.Device.currentModel.noScreen
545 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:550:5: warning: 'public' modifier is redundant for static property declared in a public extension
548 | Returns true if the device has a 38mm screen (eg. Watch 38mm).
549 | */
550 | public static let is_38_mm: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
551 | return Defines.Device.currentModel.is_38_mm
552 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:557:5: warning: 'public' modifier is redundant for static property declared in a public extension
555 | Returns true if the device has a 42mm screen (eg. Watch 42mm).
556 | */
557 | public static let is_42_mm: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
558 | return Defines.Device.currentModel.is_42_mm
559 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:564:5: warning: 'public' modifier is redundant for static property declared in a public extension
562 | Returns true if the device has a 3.5" screen (eg. iPhone 4s).
563 | */
564 | public static let is_3_5_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
565 | return Defines.Device.currentModel.is_3_5_Inch
566 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:571:5: warning: 'public' modifier is redundant for static property declared in a public extension
569 | Returns true if the device has a 4" screen (eg. iPhone 5c, iPhone 5, iPhone 5s, iPhone SE and iPod touch).
570 | */
571 | public static let is_4_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
572 | return Defines.Device.currentModel.is_4_Inch
573 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:578:5: warning: 'public' modifier is redundant for static property declared in a public extension
576 | Returns true if the device has a 4.7" screen (eg. iPhone 6, iPhone 6s, iPhone 7 and iPhone 8).
577 | */
578 | public static let is_4_7_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
579 | return Defines.Device.currentModel.is_4_7_Inch
580 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:585:5: warning: 'public' modifier is redundant for static property declared in a public extension
583 | Returns true if the device has a 5.5" screen (eg. iPhone Plus).
584 | */
585 | public static let is_5_5_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
586 | return Defines.Device.currentModel.is_5_5_Inch
587 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:592:5: warning: 'public' modifier is redundant for static property declared in a public extension
590 | Returns true if the device has a 5.8" screen (eg. iPhone X).
591 | */
592 | public static let is_5_8_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
593 | return Defines.Device.currentModel.is_5_8_Inch
594 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:599:5: warning: 'public' modifier is redundant for static property declared in a public extension
597 | Returns true if the device has a 7.9" screen (eg. iPad mini).
598 | */
599 | public static let is_7_9_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
600 | return Defines.Device.currentModel.is_7_9_Inch
601 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:606:5: warning: 'public' modifier is redundant for static property declared in a public extension
604 | Returns true if the device has a 9.7" screen (eg. regular iPad).
605 | */
606 | public static let is_9_7_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
607 | return Defines.Device.currentModel.is_9_7_Inch
608 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:613:5: warning: 'public' modifier is redundant for static property declared in a public extension
611 | Returns true if the device has a 10.5" screen (eg. iPad Pro).
612 | */
613 | public static let is_10_5_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
614 | return Defines.Device.currentModel.is_10_5_Inch
615 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:620:5: warning: 'public' modifier is redundant for static property declared in a public extension
618 | Returns true if the device has an 11" screen (eg. MacBook air).
619 | */
620 | public static let is_11_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
621 | return Defines.Device.currentModel.is_11_Inch
622 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:627:5: warning: 'public' modifier is redundant for static property declared in a public extension
625 | Returns true if the device has a 12" screen (eg. MacBook).
626 | */
627 | public static let is_12_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
628 | return Defines.Device.currentModel.is_12_Inch
629 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:634:5: warning: 'public' modifier is redundant for static property declared in a public extension
632 | Returns true if the device has a 12.9" screen (eg. iPad Pro).
633 | */
634 | public static let is_12_9_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
635 | return Defines.Device.currentModel.is_12_9_Inch
636 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:641:5: warning: 'public' modifier is redundant for static property declared in a public extension
639 | Returns true if the device has a 13" screen (eg. MacBook air, MacBook, MacBook Pro).
640 | */
641 | public static let is_13_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
642 | return Defines.Device.currentModel.is_13_Inch
643 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:648:5: warning: 'public' modifier is redundant for static property declared in a public extension
646 | Returns true if the device has a 15" screen (eg. MacBook Pro).
647 | */
648 | public static let is_15_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
649 | return Defines.Device.currentModel.is_15_Inch
650 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:655:5: warning: 'public' modifier is redundant for static property declared in a public extension
653 | Returns true if the device has a 17" screen (eg. MacBook Pro).
654 | */
655 | public static let is_17_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
656 | return Defines.Device.currentModel.is_17_Inch
657 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:662:5: warning: 'public' modifier is redundant for static property declared in a public extension
660 | Returns true if the device has a 21.5" screen (eg. iMac).
661 | */
662 | public static let is_21_5_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
663 | return Defines.Device.currentModel.is_21_5_Inch
664 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:669:5: warning: 'public' modifier is redundant for static property declared in a public extension
667 | Returns true if the device has a 27" screen (eg. iMac).
668 | */
669 | public static let is_27_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
670 | return Defines.Device.currentModel.is_27_Inch
671 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:676:5: warning: 'public' modifier is redundant for static property declared in a public extension
674 | Returns true if the device supports 4K screens (eg. TV and iMac).
675 | */
676 | public static let is_4K: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
677 | return Defines.Device.currentModel.is_4K
678 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:683:5: warning: 'public' modifier is redundant for static property declared in a public extension
681 | Returns true if the device supports 5K screens (eg. iMac).
682 | */
683 | public static let is_5K: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
684 | return Defines.Device.currentModel.is_5K
685 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:696:5: warning: 'public' modifier is redundant for static property declared in a public extension
694 | - `Defines.Screen`
695 | */
696 | public static let undefinedScreen: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
697 | return Defines.Device.currentModel.undefinedScreen
698 | }()
[24/27] Compiling Defines Defines+Screen.swift
/host/spi-builder-workspace/Sources/Defines/Defines+Model.swift:32:5: warning: 'public' modifier is redundant for property declared in a public extension
30 | Returns true if no model identifier has been retrieved for the device running your app.
31 | */
32 | public var isUnknown: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
33 | switch self {
34 | case .unknown: return true
/host/spi-builder-workspace/Sources/Defines/Defines+Model.swift:47:5: warning: 'public' modifier is redundant for static property declared in a public extension
45 | Returns true if no model identifier has been retrieved for the device running your app.
46 | */
47 | public static let isUnknown: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
48 | return Defines.Device.currentModel.isUnknown
49 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Device.swift:96:23: warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
94 | The `Defines.Device.Model` currently running your app.
95 | */
96 | public static let currentModel: Defines.Device.Model = {
| |- warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'currentModel' 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
97 | return Defines.Device.Model(rawValue: Sysctl.model)!
98 | }()
/host/spi-builder-workspace/Sources/Defines/Defines.swift:69:21: note: consider making enum 'Model' conform to the 'Sendable' protocol
67 | - [What does 'MM' mean?](//https://apple.stackexchange.com/a/101066)
68 | */
69 | public enum Model: String
| `- note: consider making enum 'Model' conform to the 'Sendable' protocol
70 | {
71 | //MARK: Default
/host/spi-builder-workspace/Sources/Defines/Defines+OS.swift:38:23: warning: static property 'version' is not concurrency-safe because non-'Sendable' type 'Defines.Version' may have shared mutable state; this is an error in the Swift 6 language mode
36 | {
37 | /// The version of the OS currently running your app (aka `UIDevice.current.systemVersion`)
38 | public static let version: Defines.Version = {
| |- warning: static property 'version' is not concurrency-safe because non-'Sendable' type 'Defines.Version' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'version' 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
39 | #if os(iOS) || os(tvOS)
40 | return Defines.Version(versionString: UIDevice.current.systemVersion)
/host/spi-builder-workspace/Sources/Defines/Defines.swift:473:19: note: consider making struct 'Version' conform to the 'Sendable' protocol
471 | ```
472 | */
473 | public struct Version: Equatable, Comparable, CustomStringConvertible {
| `- note: consider making struct 'Version' conform to the 'Sendable' protocol
474 | /// The version's major number: **major**.minor.patch (build)
475 | public let major: Int
/host/spi-builder-workspace/Sources/Defines/Defines+OS.swift:38:5: warning: 'public' modifier is redundant for static property declared in a public extension
36 | {
37 | /// The version of the OS currently running your app (aka `UIDevice.current.systemVersion`)
38 | public static let version: Defines.Version = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
39 | #if os(iOS) || os(tvOS)
40 | return Defines.Version(versionString: UIDevice.current.systemVersion)
/host/spi-builder-workspace/Sources/Defines/Defines+OS.swift:51:5: warning: 'public' modifier is redundant for static property declared in a public extension
49 |
50 | /// Returns true when running on iOS.
51 | public static let isiOS: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
52 | #if os(iOS)
53 | return true
/host/spi-builder-workspace/Sources/Defines/Defines+OS.swift:60:5: warning: 'public' modifier is redundant for static property declared in a public extension
58 |
59 | /// Returns true when running on watchOS.
60 | public static let isWatchOS: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
61 | #if os(watchOS)
62 | return true
/host/spi-builder-workspace/Sources/Defines/Defines+OS.swift:69:5: warning: 'public' modifier is redundant for static property declared in a public extension
67 |
68 | /// Returns true when running on tvOS.
69 | public static let istvOS: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
70 | #if os(tvOS)
71 | return true
/host/spi-builder-workspace/Sources/Defines/Defines+OS.swift:78:5: warning: 'public' modifier is redundant for static property declared in a public extension
76 |
77 | /// Returns true when running on macOS.
78 | public static let isMacOS: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
79 | #if os(macOS)
80 | return true
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:40:5: warning: 'public' modifier is redundant for property declared in a public extension
38 | Returns true if the device doesn't have a screen (eg. AirPods and HomePods).
39 | */
40 | public var noScreen: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
41 | switch self {
42 | case .airPods,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:54:5: warning: 'public' modifier is redundant for property declared in a public extension
52 | Returns true if the device has a 38mm screen (eg. Watch 38mm).
53 | */
54 | public var is_38_mm: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
55 | switch self {
56 | case .appleWatch_1stGeneration_38mm,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:70:5: warning: 'public' modifier is redundant for property declared in a public extension
68 | Returns true if the device has a 40mm screen (eg. Watch 40mm).
69 | */
70 | public var is_40_mm: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
71 | switch self {
72 | case .appleWatchSeries4_40mm_GPS,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:83:5: warning: 'public' modifier is redundant for property declared in a public extension
81 | Returns true if the device has a 42mm screen (eg. Watch 42mm).
82 | */
83 | public var is_42_mm: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
84 | switch self {
85 | case .appleWatch_1stGeneration_42mm,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:99:5: warning: 'public' modifier is redundant for property declared in a public extension
97 | Returns true if the device has a 44mm screen (eg. Watch 44mm).
98 | */
99 | public var is_44_mm: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
100 | switch self {
101 | case .appleWatchSeries4_44mm_GPS,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:112:5: warning: 'public' modifier is redundant for property declared in a public extension
110 | Returns true if the device has a 3.5" screen (eg. iPhone 4s).
111 | */
112 | public var is_3_5_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
113 | switch self {
114 | case .iPhone4s:
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:124:5: warning: 'public' modifier is redundant for property declared in a public extension
122 | Returns true if the device has a 4" screen (eg. iPhone 5c, iPhone 5, iPhone 5s, iPhone SE and iPod touch).
123 | */
124 | public var is_4_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
125 | if isiPhoneC {
126 | return true
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:148:5: warning: 'public' modifier is redundant for property declared in a public extension
146 | Returns true if the device has a 4.7" screen (eg. iPhone 6, iPhone 6s, iPhone 7 and iPhone 8).
147 | */
148 | public var is_4_7_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
149 | switch self {
150 | case .iPhone6,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:165:5: warning: 'public' modifier is redundant for property declared in a public extension
163 | Returns true if the device has a 5.5" screen (eg. iPhone Plus).
164 | */
165 | public var is_5_5_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
166 | return isiPhonePlus
167 | }
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:172:5: warning: 'public' modifier is redundant for property declared in a public extension
170 | Returns true if the device has a 5.8" screen (eg. iPhone X).
171 | */
172 | public var is_5_8_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
173 | switch self {
174 | case .iPhoneX,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:186:5: warning: 'public' modifier is redundant for property declared in a public extension
184 | Returns true if the device has a 6.1" screen (eg. iPhone XR).
185 | */
186 | public var is_6_1_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
187 | switch self {
188 | case .iPhoneXR:
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:198:5: warning: 'public' modifier is redundant for property declared in a public extension
196 | Returns true if the device has a 6.5" screen (eg. iPhone XS Max).
197 | */
198 | public var is_6_5_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
199 | switch self {
200 | case .iPhoneXS_Max,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:211:5: warning: 'public' modifier is redundant for property declared in a public extension
209 | Returns true if the device has a 7.9" screen (eg. iPad mini).
210 | */
211 | public var is_7_9_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
212 | return isiPadMini
213 | }
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:218:5: warning: 'public' modifier is redundant for property declared in a public extension
216 | Returns true if the device has a 9.7" screen (eg. regular iPad).
217 | */
218 | public var is_9_7_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
219 | return isiPadRegular
220 | }
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:225:5: warning: 'public' modifier is redundant for property declared in a public extension
223 | Returns true if the device has a 10.5" screen (eg. iPad Pro).
224 | */
225 | public var is_10_5_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
226 | switch self {
227 | case .iPadPro_10_5_Inch,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:238:5: warning: 'public' modifier is redundant for property declared in a public extension
236 | Returns true if the device has an 11" screen (eg. MacBook air).
237 | */
238 | public var is_11_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
239 | switch self {
240 | case .macBookAir_11_Inch_2010,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:258:5: warning: 'public' modifier is redundant for property declared in a public extension
256 | Returns true if the device has a 12" screen (eg. MacBook).
257 | */
258 | public var is_12_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
259 | switch self {
260 | case .macBook_2015,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:272:5: warning: 'public' modifier is redundant for property declared in a public extension
270 | Returns true if the device has a 12.9" screen (eg. iPad Pro).
271 | */
272 | public var is_12_9_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
273 | switch self {
274 | case .iPadPro_12_9_Inch,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:291:5: warning: 'public' modifier is redundant for property declared in a public extension
289 | Returns true if the device has a 13" screen (eg. MacBook air, MacBook, MacBook Pro).
290 | */
291 | public var is_13_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
292 | switch self {
293 | case .macBookAir_2009,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:323:5: warning: 'public' modifier is redundant for property declared in a public extension
321 | Returns true if the device has a 15" screen (eg. MacBook Pro).
322 | */
323 | public var is_15_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
324 | switch self {
325 | case .macBookPro_Late_2008,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:347:5: warning: 'public' modifier is redundant for property declared in a public extension
345 | Returns true if the device has a 17" screen (eg. MacBook Pro).
346 | */
347 | public var is_17_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
348 | switch self {
349 | case .macBookPro_17_Inch_2009,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:361:5: warning: 'public' modifier is redundant for property declared in a public extension
359 | Returns true if the device has a 21.5" screen (eg. iMac).
360 | */
361 | public var is_21_5_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
362 | switch self {
363 | case .iMac_21_5_Inch_2010,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:381:5: warning: 'public' modifier is redundant for property declared in a public extension
379 | Returns true if the device has a 27" screen (eg. iMac).
380 | */
381 | public var is_27_Inch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
382 | switch self {
383 | case .iMac_27_Inch_2010,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:399:5: warning: 'public' modifier is redundant for property declared in a public extension
397 | Returns true if the device supports 4K screens (eg. TV and iMac).
398 | */
399 | public var is_4K: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
400 | switch self {
401 | case .appleTV_4K,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:413:5: warning: 'public' modifier is redundant for property declared in a public extension
411 | Returns true if the device supports 5K screens (eg. iMac).
412 | */
413 | public var is_5K: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
414 | switch self {
415 | case .iMac_27_Inch_5K_2014,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:433:5: warning: 'public' modifier is redundant for property declared in a public extension
431 | - `Defines.Screen`
432 | */
433 | public var undefinedScreen: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
434 | switch self {
435 | case .appleTV_2ndGeneration,
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:472:31: error: cannot find type 'Rect' in scope
470 |
471 | /// The main screen's current bounds.
472 | public static let bounds: Rect = {
| `- error: cannot find type 'Rect' in scope
473 | #if os(iOS) || os(tvOS)
474 | return UIScreen.main.bounds
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:472:5: warning: 'public' modifier is redundant for static property declared in a public extension
470 |
471 | /// The main screen's current bounds.
472 | public static let bounds: Rect = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
473 | #if os(iOS) || os(tvOS)
474 | return UIScreen.main.bounds
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:489:37: error: cannot find type 'CGFloat' in scope
487 |
488 | /// The main screen's bounds' maxX (aka `UIScreen.main.bounds.maxX`).
489 | public static let currentWidth: CGFloat = {
| `- error: cannot find type 'CGFloat' in scope
490 | return Defines.Screen.bounds.maxX
491 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:489:5: warning: 'public' modifier is redundant for static property declared in a public extension
487 |
488 | /// The main screen's bounds' maxX (aka `UIScreen.main.bounds.maxX`).
489 | public static let currentWidth: CGFloat = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
490 | return Defines.Screen.bounds.maxX
491 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:494:38: error: cannot find type 'CGFloat' in scope
492 |
493 | /// The main screen's bounds' maxY (aka `UIScreen.main.bounds.maxY`).
494 | public static let currentHeight: CGFloat = {
| `- error: cannot find type 'CGFloat' in scope
495 | return Defines.Screen.bounds.maxY
496 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:494:5: warning: 'public' modifier is redundant for static property declared in a public extension
492 |
493 | /// The main screen's bounds' maxY (aka `UIScreen.main.bounds.maxY`).
494 | public static let currentHeight: CGFloat = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
495 | return Defines.Screen.bounds.maxY
496 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:499:34: error: cannot find type 'CGFloat' in scope
497 |
498 | /// The main screen's bounds' maximum between width and height (aka `max(UIScreen.width, UIScreen.height)`).
499 | public static let maxLength: CGFloat = {
| `- error: cannot find type 'CGFloat' in scope
500 | return max(Defines.Screen.currentWidth, Defines.Screen.currentHeight)
501 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:499:5: warning: 'public' modifier is redundant for static property declared in a public extension
497 |
498 | /// The main screen's bounds' maximum between width and height (aka `max(UIScreen.width, UIScreen.height)`).
499 | public static let maxLength: CGFloat = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
500 | return max(Defines.Screen.currentWidth, Defines.Screen.currentHeight)
501 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:504:34: error: cannot find type 'CGFloat' in scope
502 |
503 | /// The main screen's bounds' minimum between width and height (aka `min(UIScreen.width, UIScreen.height)`).
504 | public static let minLength: CGFloat = {
| `- error: cannot find type 'CGFloat' in scope
505 | return min(Defines.Screen.currentWidth, Defines.Screen.currentHeight)
506 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:504:5: warning: 'public' modifier is redundant for static property declared in a public extension
502 |
503 | /// The main screen's bounds' minimum between width and height (aka `min(UIScreen.width, UIScreen.height)`).
504 | public static let minLength: CGFloat = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
505 | return min(Defines.Screen.currentWidth, Defines.Screen.currentHeight)
506 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:509:30: error: cannot find type 'CGFloat' in scope
507 |
508 | /// The main screen's scale factor (aka `UIScreen.main.scale`)
509 | public static let scale: CGFloat = {
| `- error: cannot find type 'CGFloat' in scope
510 | #if os(iOS) || os(tvOS)
511 | return UIScreen.main.scale
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:509:5: warning: 'public' modifier is redundant for static property declared in a public extension
507 |
508 | /// The main screen's scale factor (aka `UIScreen.main.scale`)
509 | public static let scale: CGFloat = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
510 | #if os(iOS) || os(tvOS)
511 | return UIScreen.main.scale
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:526:5: warning: 'public' modifier is redundant for static property declared in a public extension
524 |
525 | /// The main screen's scale (aka `UIScreen.main.scale > 1`).
526 | public static let isRetina: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
527 | return Defines.Screen.scale > 1
528 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:531:5: warning: 'public' modifier is redundant for static property declared in a public extension
529 |
530 | /// If the device is an iPhone and it's scaled up, this returns `true`.
531 | public static let isScaledUp: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
532 | #if os(iOS)
533 | guard Defines.Device.isiPhone else { return false }
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:543:5: warning: 'public' modifier is redundant for static property declared in a public extension
541 | Returns true if the device doesn't have a screen (eg. AirPods and HomePods).
542 | */
543 | public static let noScreen: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
544 | return Defines.Device.currentModel.noScreen
545 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:550:5: warning: 'public' modifier is redundant for static property declared in a public extension
548 | Returns true if the device has a 38mm screen (eg. Watch 38mm).
549 | */
550 | public static let is_38_mm: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
551 | return Defines.Device.currentModel.is_38_mm
552 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:557:5: warning: 'public' modifier is redundant for static property declared in a public extension
555 | Returns true if the device has a 42mm screen (eg. Watch 42mm).
556 | */
557 | public static let is_42_mm: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
558 | return Defines.Device.currentModel.is_42_mm
559 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:564:5: warning: 'public' modifier is redundant for static property declared in a public extension
562 | Returns true if the device has a 3.5" screen (eg. iPhone 4s).
563 | */
564 | public static let is_3_5_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
565 | return Defines.Device.currentModel.is_3_5_Inch
566 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:571:5: warning: 'public' modifier is redundant for static property declared in a public extension
569 | Returns true if the device has a 4" screen (eg. iPhone 5c, iPhone 5, iPhone 5s, iPhone SE and iPod touch).
570 | */
571 | public static let is_4_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
572 | return Defines.Device.currentModel.is_4_Inch
573 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:578:5: warning: 'public' modifier is redundant for static property declared in a public extension
576 | Returns true if the device has a 4.7" screen (eg. iPhone 6, iPhone 6s, iPhone 7 and iPhone 8).
577 | */
578 | public static let is_4_7_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
579 | return Defines.Device.currentModel.is_4_7_Inch
580 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:585:5: warning: 'public' modifier is redundant for static property declared in a public extension
583 | Returns true if the device has a 5.5" screen (eg. iPhone Plus).
584 | */
585 | public static let is_5_5_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
586 | return Defines.Device.currentModel.is_5_5_Inch
587 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:592:5: warning: 'public' modifier is redundant for static property declared in a public extension
590 | Returns true if the device has a 5.8" screen (eg. iPhone X).
591 | */
592 | public static let is_5_8_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
593 | return Defines.Device.currentModel.is_5_8_Inch
594 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:599:5: warning: 'public' modifier is redundant for static property declared in a public extension
597 | Returns true if the device has a 7.9" screen (eg. iPad mini).
598 | */
599 | public static let is_7_9_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
600 | return Defines.Device.currentModel.is_7_9_Inch
601 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:606:5: warning: 'public' modifier is redundant for static property declared in a public extension
604 | Returns true if the device has a 9.7" screen (eg. regular iPad).
605 | */
606 | public static let is_9_7_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
607 | return Defines.Device.currentModel.is_9_7_Inch
608 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:613:5: warning: 'public' modifier is redundant for static property declared in a public extension
611 | Returns true if the device has a 10.5" screen (eg. iPad Pro).
612 | */
613 | public static let is_10_5_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
614 | return Defines.Device.currentModel.is_10_5_Inch
615 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:620:5: warning: 'public' modifier is redundant for static property declared in a public extension
618 | Returns true if the device has an 11" screen (eg. MacBook air).
619 | */
620 | public static let is_11_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
621 | return Defines.Device.currentModel.is_11_Inch
622 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:627:5: warning: 'public' modifier is redundant for static property declared in a public extension
625 | Returns true if the device has a 12" screen (eg. MacBook).
626 | */
627 | public static let is_12_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
628 | return Defines.Device.currentModel.is_12_Inch
629 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:634:5: warning: 'public' modifier is redundant for static property declared in a public extension
632 | Returns true if the device has a 12.9" screen (eg. iPad Pro).
633 | */
634 | public static let is_12_9_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
635 | return Defines.Device.currentModel.is_12_9_Inch
636 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:641:5: warning: 'public' modifier is redundant for static property declared in a public extension
639 | Returns true if the device has a 13" screen (eg. MacBook air, MacBook, MacBook Pro).
640 | */
641 | public static let is_13_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
642 | return Defines.Device.currentModel.is_13_Inch
643 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:648:5: warning: 'public' modifier is redundant for static property declared in a public extension
646 | Returns true if the device has a 15" screen (eg. MacBook Pro).
647 | */
648 | public static let is_15_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
649 | return Defines.Device.currentModel.is_15_Inch
650 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:655:5: warning: 'public' modifier is redundant for static property declared in a public extension
653 | Returns true if the device has a 17" screen (eg. MacBook Pro).
654 | */
655 | public static let is_17_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
656 | return Defines.Device.currentModel.is_17_Inch
657 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:662:5: warning: 'public' modifier is redundant for static property declared in a public extension
660 | Returns true if the device has a 21.5" screen (eg. iMac).
661 | */
662 | public static let is_21_5_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
663 | return Defines.Device.currentModel.is_21_5_Inch
664 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:669:5: warning: 'public' modifier is redundant for static property declared in a public extension
667 | Returns true if the device has a 27" screen (eg. iMac).
668 | */
669 | public static let is_27_Inch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
670 | return Defines.Device.currentModel.is_27_Inch
671 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:676:5: warning: 'public' modifier is redundant for static property declared in a public extension
674 | Returns true if the device supports 4K screens (eg. TV and iMac).
675 | */
676 | public static let is_4K: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
677 | return Defines.Device.currentModel.is_4K
678 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:683:5: warning: 'public' modifier is redundant for static property declared in a public extension
681 | Returns true if the device supports 5K screens (eg. iMac).
682 | */
683 | public static let is_5K: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
684 | return Defines.Device.currentModel.is_5K
685 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Screen.swift:696:5: warning: 'public' modifier is redundant for static property declared in a public extension
694 | - `Defines.Screen`
695 | */
696 | public static let undefinedScreen: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
697 | return Defines.Device.currentModel.undefinedScreen
698 | }()
[25/27] Compiling Defines Defines+iPhone.swift
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:32:5: warning: 'public' modifier is redundant for property declared in a public extension
30 | Returns true if the model is an iPhone.
31 | */
32 | public var isiPhone: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
33 | switch self {
34 | case .iPhone4s,
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:69:5: warning: 'public' modifier is redundant for property declared in a public extension
67 | Returns true if the model is an iPhone S (eg. iPhone 4s, iPhone 5s and iPhone 6s).
68 | */
69 | public var isiPhoneS: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
70 | switch self {
71 | case .iPhone4s,
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:85:5: warning: 'public' modifier is redundant for property declared in a public extension
83 | Returns true if the model is an iPhone C (eg. iPhone 5c).
84 | */
85 | public var isiPhoneC: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
86 | switch self {
87 | case .iPhone5c_NorthAmerica_Japan,
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:98:5: warning: 'public' modifier is redundant for property declared in a public extension
96 | Returns true if the model is an iPhone Plus (eg. iPhone 6 Plus, iPhone 7 Plus and iPhone 8 Plus).
97 | */
98 | public var isiPhonePlus: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
99 | switch self {
100 | case .iPhone6Plus,
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:115:5: warning: 'public' modifier is redundant for property declared in a public extension
113 | Returns true if the model is an iPhone SE (eg. iPhone SE).
114 | */
115 | public var isiPhoneSE: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
116 | switch self {
117 | case .iPhoneSE:
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:127:5: warning: 'public' modifier is redundant for property declared in a public extension
125 | Returns true if the model is an iPhone X (eg. iPhone X).
126 | */
127 | public var isiPhoneX: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
128 | switch self {
129 | case .iPhoneX,
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:144:5: warning: 'public' modifier is redundant for property declared in a public extension
142 | Returns true if the model is an iPhone Max (eg. iPhone XS Max).
143 | */
144 | public var isiPhoneMax: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
145 | switch self {
146 | case .iPhoneXS_Max,
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:162:5: warning: 'public' modifier is redundant for static property declared in a public extension
160 | Returns true if the model is an iPhone.
161 | */
162 | public static let isiPhone: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
163 | return Defines.Device.currentModel.isiPhone
164 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Device.swift:96:23: warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
94 | The `Defines.Device.Model` currently running your app.
95 | */
96 | public static let currentModel: Defines.Device.Model = {
| |- warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'currentModel' 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
97 | return Defines.Device.Model(rawValue: Sysctl.model)!
98 | }()
/host/spi-builder-workspace/Sources/Defines/Defines.swift:69:21: note: consider making enum 'Model' conform to the 'Sendable' protocol
67 | - [What does 'MM' mean?](//https://apple.stackexchange.com/a/101066)
68 | */
69 | public enum Model: String
| `- note: consider making enum 'Model' conform to the 'Sendable' protocol
70 | {
71 | //MARK: Default
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:169:5: warning: 'public' modifier is redundant for static property declared in a public extension
167 | Returns true if the model is an iPhone S (eg. iPhone 4s, iPhone 5s and iPhone 6s).
168 | */
169 | public static let isiPhoneS: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
170 | return Defines.Device.currentModel.isiPhoneS
171 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:176:5: warning: 'public' modifier is redundant for static property declared in a public extension
174 | Returns true if the model is an iPhone C (eg. iPhone 5c).
175 | */
176 | public static let isiPhoneC: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
177 | return Defines.Device.currentModel.isiPhoneC
178 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:183:5: warning: 'public' modifier is redundant for static property declared in a public extension
181 | Returns true if the model is an iPhone Plus (eg. iPhone 6 Plus, iPhone 7 Plus and iPhone 8 Plus).
182 | */
183 | public static let isiPhonePlus: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
184 | return Defines.Device.currentModel.isiPhonePlus
185 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:190:5: warning: 'public' modifier is redundant for static property declared in a public extension
188 | Returns true if the model is an iPhone SE (eg. iPhone SE).
189 | */
190 | public static let isiPhoneSE: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
191 | return Defines.Device.currentModel.isiPhoneSE
192 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:197:5: warning: 'public' modifier is redundant for static property declared in a public extension
195 | Returns true if the model is an iPhone X (eg. iPhone X).
196 | */
197 | public static let isiPhoneX: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
198 | return Defines.Device.currentModel.isiPhoneX
199 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:204:5: warning: 'public' modifier is redundant for static property declared in a public extension
202 | Returns true if the model is an iPhone Max (eg. iPhone XS Max).
203 | */
204 | public static let isiPhoneMax: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
205 | return Defines.Device.currentModel.isiPhoneMax
206 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+iPod.swift:32:5: warning: 'public' modifier is redundant for property declared in a public extension
30 | Returns true if the model is an iPod touch.
31 | */
32 | public var isiPodTouch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
33 | switch self {
34 | case .iPodTouch_5thGeneration,
/host/spi-builder-workspace/Sources/Defines/Defines+iPod.swift:50:5: warning: 'public' modifier is redundant for static property declared in a public extension
48 | Returns true if the model is an iPod touch.
49 | */
50 | public static let isiPodTouch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
51 | return Defines.Device.currentModel.isiPodTouch
52 | }()
[26/27] Compiling Defines Defines+iPod.swift
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:32:5: warning: 'public' modifier is redundant for property declared in a public extension
30 | Returns true if the model is an iPhone.
31 | */
32 | public var isiPhone: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
33 | switch self {
34 | case .iPhone4s,
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:69:5: warning: 'public' modifier is redundant for property declared in a public extension
67 | Returns true if the model is an iPhone S (eg. iPhone 4s, iPhone 5s and iPhone 6s).
68 | */
69 | public var isiPhoneS: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
70 | switch self {
71 | case .iPhone4s,
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:85:5: warning: 'public' modifier is redundant for property declared in a public extension
83 | Returns true if the model is an iPhone C (eg. iPhone 5c).
84 | */
85 | public var isiPhoneC: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
86 | switch self {
87 | case .iPhone5c_NorthAmerica_Japan,
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:98:5: warning: 'public' modifier is redundant for property declared in a public extension
96 | Returns true if the model is an iPhone Plus (eg. iPhone 6 Plus, iPhone 7 Plus and iPhone 8 Plus).
97 | */
98 | public var isiPhonePlus: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
99 | switch self {
100 | case .iPhone6Plus,
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:115:5: warning: 'public' modifier is redundant for property declared in a public extension
113 | Returns true if the model is an iPhone SE (eg. iPhone SE).
114 | */
115 | public var isiPhoneSE: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
116 | switch self {
117 | case .iPhoneSE:
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:127:5: warning: 'public' modifier is redundant for property declared in a public extension
125 | Returns true if the model is an iPhone X (eg. iPhone X).
126 | */
127 | public var isiPhoneX: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
128 | switch self {
129 | case .iPhoneX,
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:144:5: warning: 'public' modifier is redundant for property declared in a public extension
142 | Returns true if the model is an iPhone Max (eg. iPhone XS Max).
143 | */
144 | public var isiPhoneMax: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
145 | switch self {
146 | case .iPhoneXS_Max,
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:162:5: warning: 'public' modifier is redundant for static property declared in a public extension
160 | Returns true if the model is an iPhone.
161 | */
162 | public static let isiPhone: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
163 | return Defines.Device.currentModel.isiPhone
164 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Device.swift:96:23: warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
94 | The `Defines.Device.Model` currently running your app.
95 | */
96 | public static let currentModel: Defines.Device.Model = {
| |- warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'currentModel' 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
97 | return Defines.Device.Model(rawValue: Sysctl.model)!
98 | }()
/host/spi-builder-workspace/Sources/Defines/Defines.swift:69:21: note: consider making enum 'Model' conform to the 'Sendable' protocol
67 | - [What does 'MM' mean?](//https://apple.stackexchange.com/a/101066)
68 | */
69 | public enum Model: String
| `- note: consider making enum 'Model' conform to the 'Sendable' protocol
70 | {
71 | //MARK: Default
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:169:5: warning: 'public' modifier is redundant for static property declared in a public extension
167 | Returns true if the model is an iPhone S (eg. iPhone 4s, iPhone 5s and iPhone 6s).
168 | */
169 | public static let isiPhoneS: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
170 | return Defines.Device.currentModel.isiPhoneS
171 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:176:5: warning: 'public' modifier is redundant for static property declared in a public extension
174 | Returns true if the model is an iPhone C (eg. iPhone 5c).
175 | */
176 | public static let isiPhoneC: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
177 | return Defines.Device.currentModel.isiPhoneC
178 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:183:5: warning: 'public' modifier is redundant for static property declared in a public extension
181 | Returns true if the model is an iPhone Plus (eg. iPhone 6 Plus, iPhone 7 Plus and iPhone 8 Plus).
182 | */
183 | public static let isiPhonePlus: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
184 | return Defines.Device.currentModel.isiPhonePlus
185 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:190:5: warning: 'public' modifier is redundant for static property declared in a public extension
188 | Returns true if the model is an iPhone SE (eg. iPhone SE).
189 | */
190 | public static let isiPhoneSE: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
191 | return Defines.Device.currentModel.isiPhoneSE
192 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:197:5: warning: 'public' modifier is redundant for static property declared in a public extension
195 | Returns true if the model is an iPhone X (eg. iPhone X).
196 | */
197 | public static let isiPhoneX: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
198 | return Defines.Device.currentModel.isiPhoneX
199 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:204:5: warning: 'public' modifier is redundant for static property declared in a public extension
202 | Returns true if the model is an iPhone Max (eg. iPhone XS Max).
203 | */
204 | public static let isiPhoneMax: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
205 | return Defines.Device.currentModel.isiPhoneMax
206 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+iPod.swift:32:5: warning: 'public' modifier is redundant for property declared in a public extension
30 | Returns true if the model is an iPod touch.
31 | */
32 | public var isiPodTouch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
33 | switch self {
34 | case .iPodTouch_5thGeneration,
/host/spi-builder-workspace/Sources/Defines/Defines+iPod.swift:50:5: warning: 'public' modifier is redundant for static property declared in a public extension
48 | Returns true if the model is an iPod touch.
49 | */
50 | public static let isiPodTouch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
51 | return Defines.Device.currentModel.isiPodTouch
52 | }()
[27/27] Compiling Defines Defines.swift
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:32:5: warning: 'public' modifier is redundant for property declared in a public extension
30 | Returns true if the model is an iPhone.
31 | */
32 | public var isiPhone: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
33 | switch self {
34 | case .iPhone4s,
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:69:5: warning: 'public' modifier is redundant for property declared in a public extension
67 | Returns true if the model is an iPhone S (eg. iPhone 4s, iPhone 5s and iPhone 6s).
68 | */
69 | public var isiPhoneS: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
70 | switch self {
71 | case .iPhone4s,
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:85:5: warning: 'public' modifier is redundant for property declared in a public extension
83 | Returns true if the model is an iPhone C (eg. iPhone 5c).
84 | */
85 | public var isiPhoneC: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
86 | switch self {
87 | case .iPhone5c_NorthAmerica_Japan,
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:98:5: warning: 'public' modifier is redundant for property declared in a public extension
96 | Returns true if the model is an iPhone Plus (eg. iPhone 6 Plus, iPhone 7 Plus and iPhone 8 Plus).
97 | */
98 | public var isiPhonePlus: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
99 | switch self {
100 | case .iPhone6Plus,
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:115:5: warning: 'public' modifier is redundant for property declared in a public extension
113 | Returns true if the model is an iPhone SE (eg. iPhone SE).
114 | */
115 | public var isiPhoneSE: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
116 | switch self {
117 | case .iPhoneSE:
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:127:5: warning: 'public' modifier is redundant for property declared in a public extension
125 | Returns true if the model is an iPhone X (eg. iPhone X).
126 | */
127 | public var isiPhoneX: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
128 | switch self {
129 | case .iPhoneX,
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:144:5: warning: 'public' modifier is redundant for property declared in a public extension
142 | Returns true if the model is an iPhone Max (eg. iPhone XS Max).
143 | */
144 | public var isiPhoneMax: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
145 | switch self {
146 | case .iPhoneXS_Max,
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:162:5: warning: 'public' modifier is redundant for static property declared in a public extension
160 | Returns true if the model is an iPhone.
161 | */
162 | public static let isiPhone: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
163 | return Defines.Device.currentModel.isiPhone
164 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+Device.swift:96:23: warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
94 | The `Defines.Device.Model` currently running your app.
95 | */
96 | public static let currentModel: Defines.Device.Model = {
| |- warning: static property 'currentModel' is not concurrency-safe because non-'Sendable' type 'Defines.Device.Model' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'currentModel' 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
97 | return Defines.Device.Model(rawValue: Sysctl.model)!
98 | }()
/host/spi-builder-workspace/Sources/Defines/Defines.swift:69:21: note: consider making enum 'Model' conform to the 'Sendable' protocol
67 | - [What does 'MM' mean?](//https://apple.stackexchange.com/a/101066)
68 | */
69 | public enum Model: String
| `- note: consider making enum 'Model' conform to the 'Sendable' protocol
70 | {
71 | //MARK: Default
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:169:5: warning: 'public' modifier is redundant for static property declared in a public extension
167 | Returns true if the model is an iPhone S (eg. iPhone 4s, iPhone 5s and iPhone 6s).
168 | */
169 | public static let isiPhoneS: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
170 | return Defines.Device.currentModel.isiPhoneS
171 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:176:5: warning: 'public' modifier is redundant for static property declared in a public extension
174 | Returns true if the model is an iPhone C (eg. iPhone 5c).
175 | */
176 | public static let isiPhoneC: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
177 | return Defines.Device.currentModel.isiPhoneC
178 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:183:5: warning: 'public' modifier is redundant for static property declared in a public extension
181 | Returns true if the model is an iPhone Plus (eg. iPhone 6 Plus, iPhone 7 Plus and iPhone 8 Plus).
182 | */
183 | public static let isiPhonePlus: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
184 | return Defines.Device.currentModel.isiPhonePlus
185 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:190:5: warning: 'public' modifier is redundant for static property declared in a public extension
188 | Returns true if the model is an iPhone SE (eg. iPhone SE).
189 | */
190 | public static let isiPhoneSE: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
191 | return Defines.Device.currentModel.isiPhoneSE
192 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:197:5: warning: 'public' modifier is redundant for static property declared in a public extension
195 | Returns true if the model is an iPhone X (eg. iPhone X).
196 | */
197 | public static let isiPhoneX: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
198 | return Defines.Device.currentModel.isiPhoneX
199 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+iPhone.swift:204:5: warning: 'public' modifier is redundant for static property declared in a public extension
202 | Returns true if the model is an iPhone Max (eg. iPhone XS Max).
203 | */
204 | public static let isiPhoneMax: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
205 | return Defines.Device.currentModel.isiPhoneMax
206 | }()
/host/spi-builder-workspace/Sources/Defines/Defines+iPod.swift:32:5: warning: 'public' modifier is redundant for property declared in a public extension
30 | Returns true if the model is an iPod touch.
31 | */
32 | public var isiPodTouch: Bool {
| `- warning: 'public' modifier is redundant for property declared in a public extension
33 | switch self {
34 | case .iPodTouch_5thGeneration,
/host/spi-builder-workspace/Sources/Defines/Defines+iPod.swift:50:5: warning: 'public' modifier is redundant for static property declared in a public extension
48 | Returns true if the model is an iPod touch.
49 | */
50 | public static let isiPodTouch: Bool = {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
51 | return Defines.Device.currentModel.isiPodTouch
52 | }()
BUILD FAILURE 6.0 linux