Build Information
Failed to build FlagAndCountryCode, reference main (5e44b1
), with Swift 6.1 for macOS (SPM) on 1 May 2025 02:52:37 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.61.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/exyte/FlagAndCountryCode.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/exyte/FlagAndCountryCode
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 5e44b1d Merge commit '5ae2002b273513b20553bad9e544cb911652eb34'
Cloned https://github.com/exyte/FlagAndCountryCode.git
Revision (git rev-parse @):
5e44b1d2f1ccd901c3ff9889f16ab1f991c63d4b
SUCCESS checkout https://github.com/exyte/FlagAndCountryCode.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "flagandcountrycode",
"name": "FlagAndCountryCode",
"url": "https://github.com/exyte/FlagAndCountryCode.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/FlagAndCountryCode",
"dependencies": [
]
}
]
}
Fetching https://github.com/exyte/FlagAndCountryCode.git
[1/1590] Fetching flagandcountrycode
Fetched https://github.com/exyte/FlagAndCountryCode.git from cache (1.11s)
Creating working copy for https://github.com/exyte/FlagAndCountryCode.git
Working copy of https://github.com/exyte/FlagAndCountryCode.git resolved at main (5e44b1d)
warning: '.resolve-product-dependencies': dependency 'flagandcountrycode' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/exyte/FlagAndCountryCode.git
https://github.com/exyte/FlagAndCountryCode.git
{
"dependencies" : [
],
"manifest_display_name" : "FlagAndCountryCode",
"name" : "FlagAndCountryCode",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
}
],
"products" : [
{
"name" : "FlagAndCountryCode",
"targets" : [
"FlagAndCountryCode"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "FlagAndCountryCode",
"module_type" : "SwiftTarget",
"name" : "FlagAndCountryCode",
"path" : "Sources/FlagAndCountryCode",
"product_memberships" : [
"FlagAndCountryCode"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Resources/CountryFlags.xcassets",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Resources/country-codes.json",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"CountryFlagInfo.swift",
"FlagType.swift",
"Helpers/BundleToken.swift",
"Helpers/CountryFlagsParser.swift",
"Helpers/ImageRenderer.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/4] Write sources
[0/4] Copying country-codes.json
[2/4] Write swift-version-2F0A5646E1D333AE.txt
[3/4] Copying CountryFlags.xcassets
[5/11] Compiling FlagAndCountryCode resource_bundle_accessor.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/11] Compiling FlagAndCountryCode CountryFlagsParser.swift
[7/11] Compiling FlagAndCountryCode BundleToken.swift
[8/11] Compiling FlagAndCountryCode FlagType.swift
[9/11] Emitting module FlagAndCountryCode
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/CountryFlagInfo.swift:17:77: error: 'View' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | extension CountryFlagInfo {
| `- note: add @available attribute to enclosing extension
14 | /// Get a specific image from the assets depending on the image type
15 | /// - Parameter type: Image display type: FlagType
16 | /// - Returns: SwiftUI flag image
17 | public func getCountryImage(with type: FlagType = .roundedRect) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
18 | let image = Image(code, bundle: Bundle.current)
19 | return image.applyFlagType(type)
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:56:50: error: 'View' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:55:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
56 | func applyFlagType(_ type: FlagType) -> some View {
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:54:20: error: 'Image' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
[10/11] Compiling FlagAndCountryCode ImageRenderer.swift
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:56:50: error: 'View' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:55:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
56 | func applyFlagType(_ type: FlagType) -> some View {
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:54:20: error: 'Image' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:60:18: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
59 | self
60 | .frame(width: type.size.width, height: type.size.height)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | .clipShape(Circle())
62 | case .square:
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:61:18: error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
59 | self
60 | .frame(width: type.size.width, height: type.size.height)
61 | .clipShape(Circle())
| |- error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
62 | case .square:
63 | self
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:61:28: error: 'Circle' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
59 | self
60 | .frame(width: type.size.width, height: type.size.height)
61 | .clipShape(Circle())
| |- error: 'Circle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
62 | case .square:
63 | self
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:59:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
59 | self
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | .frame(width: type.size.width, height: type.size.height)
61 | .clipShape(Circle())
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:59:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
59 | self
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | .frame(width: type.size.width, height: type.size.height)
61 | .clipShape(Circle())
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:64:18: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
:
62 | case .square:
63 | self
64 | .frame(width: type.size.width, height: type.size.height)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | .clipShape(Rectangle())
66 | case .roundedRect:
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:65:18: error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
:
63 | self
64 | .frame(width: type.size.width, height: type.size.height)
65 | .clipShape(Rectangle())
| |- error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | case .roundedRect:
67 | self
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:65:28: error: 'Rectangle' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
:
63 | self
64 | .frame(width: type.size.width, height: type.size.height)
65 | .clipShape(Rectangle())
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | case .roundedRect:
67 | self
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:63:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
:
61 | .clipShape(Circle())
62 | case .square:
63 | self
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
64 | .frame(width: type.size.width, height: type.size.height)
65 | .clipShape(Rectangle())
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:63:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
:
61 | .clipShape(Circle())
62 | case .square:
63 | self
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
64 | .frame(width: type.size.width, height: type.size.height)
65 | .clipShape(Rectangle())
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:68:18: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
:
66 | case .roundedRect:
67 | self
68 | .frame(width: type.size.width, height: type.size.height)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .clipShape(RoundedRectangle(cornerRadius: 2))
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:69:18: error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
:
67 | self
68 | .frame(width: type.size.width, height: type.size.height)
69 | .clipShape(RoundedRectangle(cornerRadius: 2))
| |- error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | }
71 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:69:28: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
:
67 | self
68 | .frame(width: type.size.width, height: type.size.height)
69 | .clipShape(RoundedRectangle(cornerRadius: 2))
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | }
71 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:67:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
:
65 | .clipShape(Rectangle())
66 | case .roundedRect:
67 | self
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | .frame(width: type.size.width, height: type.size.height)
69 | .clipShape(RoundedRectangle(cornerRadius: 2))
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:56:55: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
[11/11] Compiling FlagAndCountryCode CountryFlagInfo.swift
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/CountryFlagInfo.swift:17:77: error: 'View' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | extension CountryFlagInfo {
| `- note: add @available attribute to enclosing extension
14 | /// Get a specific image from the assets depending on the image type
15 | /// - Parameter type: Image display type: FlagType
16 | /// - Returns: SwiftUI flag image
17 | public func getCountryImage(with type: FlagType = .roundedRect) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
18 | let image = Image(code, bundle: Bundle.current)
19 | return image.applyFlagType(type)
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/CountryFlagInfo.swift:18:21: error: 'Image' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | extension CountryFlagInfo {
| `- note: add @available attribute to enclosing extension
14 | /// Get a specific image from the assets depending on the image type
15 | /// - Parameter type: Image display type: FlagType
16 | /// - Returns: SwiftUI flag image
17 | public func getCountryImage(with type: FlagType = .roundedRect) -> some View {
| `- note: add @available attribute to enclosing instance method
18 | let image = Image(code, bundle: Bundle.current)
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | return image.applyFlagType(type)
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/CountryFlagInfo.swift:18:21: error: 'init(_:bundle:)' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | extension CountryFlagInfo {
| `- note: add @available attribute to enclosing extension
14 | /// Get a specific image from the assets depending on the image type
15 | /// - Parameter type: Image display type: FlagType
16 | /// - Returns: SwiftUI flag image
17 | public func getCountryImage(with type: FlagType = .roundedRect) -> some View {
| `- note: add @available attribute to enclosing instance method
18 | let image = Image(code, bundle: Bundle.current)
| |- error: 'init(_:bundle:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | return image.applyFlagType(type)
20 | }
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/8] Compiling FlagAndCountryCode resource_bundle_accessor.swift
[3/8] Compiling FlagAndCountryCode ImageRenderer.swift
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:56:50: error: 'View' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:55:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
56 | func applyFlagType(_ type: FlagType) -> some View {
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:54:20: error: 'Image' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:60:18: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
59 | self
60 | .frame(width: type.size.width, height: type.size.height)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | .clipShape(Circle())
62 | case .square:
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:61:18: error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
59 | self
60 | .frame(width: type.size.width, height: type.size.height)
61 | .clipShape(Circle())
| |- error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
62 | case .square:
63 | self
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:61:28: error: 'Circle' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
59 | self
60 | .frame(width: type.size.width, height: type.size.height)
61 | .clipShape(Circle())
| |- error: 'Circle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
62 | case .square:
63 | self
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:59:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
59 | self
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | .frame(width: type.size.width, height: type.size.height)
61 | .clipShape(Circle())
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:59:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
59 | self
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | .frame(width: type.size.width, height: type.size.height)
61 | .clipShape(Circle())
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:64:18: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
:
62 | case .square:
63 | self
64 | .frame(width: type.size.width, height: type.size.height)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | .clipShape(Rectangle())
66 | case .roundedRect:
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:65:18: error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
:
63 | self
64 | .frame(width: type.size.width, height: type.size.height)
65 | .clipShape(Rectangle())
| |- error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | case .roundedRect:
67 | self
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:65:28: error: 'Rectangle' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
:
63 | self
64 | .frame(width: type.size.width, height: type.size.height)
65 | .clipShape(Rectangle())
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | case .roundedRect:
67 | self
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:63:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
:
61 | .clipShape(Circle())
62 | case .square:
63 | self
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
64 | .frame(width: type.size.width, height: type.size.height)
65 | .clipShape(Rectangle())
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:63:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
:
61 | .clipShape(Circle())
62 | case .square:
63 | self
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
64 | .frame(width: type.size.width, height: type.size.height)
65 | .clipShape(Rectangle())
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:68:18: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
:
66 | case .roundedRect:
67 | self
68 | .frame(width: type.size.width, height: type.size.height)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .clipShape(RoundedRectangle(cornerRadius: 2))
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:69:18: error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
:
67 | self
68 | .frame(width: type.size.width, height: type.size.height)
69 | .clipShape(RoundedRectangle(cornerRadius: 2))
| |- error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | }
71 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:69:28: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
:
67 | self
68 | .frame(width: type.size.width, height: type.size.height)
69 | .clipShape(RoundedRectangle(cornerRadius: 2))
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | }
71 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:67:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
:
65 | .clipShape(Rectangle())
66 | case .roundedRect:
67 | self
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | .frame(width: type.size.width, height: type.size.height)
69 | .clipShape(RoundedRectangle(cornerRadius: 2))
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:56:55: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
[4/8] Compiling FlagAndCountryCode BundleToken.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/8] Compiling FlagAndCountryCode FlagType.swift
[6/8] Compiling FlagAndCountryCode CountryFlagsParser.swift
[7/8] Emitting module FlagAndCountryCode
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/CountryFlagInfo.swift:17:77: error: 'View' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | extension CountryFlagInfo {
| `- note: add @available attribute to enclosing extension
14 | /// Get a specific image from the assets depending on the image type
15 | /// - Parameter type: Image display type: FlagType
16 | /// - Returns: SwiftUI flag image
17 | public func getCountryImage(with type: FlagType = .roundedRect) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
18 | let image = Image(code, bundle: Bundle.current)
19 | return image.applyFlagType(type)
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:56:50: error: 'View' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:55:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
56 | func applyFlagType(_ type: FlagType) -> some View {
| `- note: add @available attribute to enclosing instance method
57 | switch type {
58 | case .circle:
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/Helpers/ImageRenderer.swift:54:20: error: 'Image' is only available in macOS 10.15 or newer
52 | import SwiftUI
53 |
54 | internal extension Image {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
55 | @ViewBuilder
56 | func applyFlagType(_ type: FlagType) -> some View {
[8/8] Compiling FlagAndCountryCode CountryFlagInfo.swift
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/CountryFlagInfo.swift:17:77: error: 'View' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | extension CountryFlagInfo {
| `- note: add @available attribute to enclosing extension
14 | /// Get a specific image from the assets depending on the image type
15 | /// - Parameter type: Image display type: FlagType
16 | /// - Returns: SwiftUI flag image
17 | public func getCountryImage(with type: FlagType = .roundedRect) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
18 | let image = Image(code, bundle: Bundle.current)
19 | return image.applyFlagType(type)
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/CountryFlagInfo.swift:18:21: error: 'Image' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | extension CountryFlagInfo {
| `- note: add @available attribute to enclosing extension
14 | /// Get a specific image from the assets depending on the image type
15 | /// - Parameter type: Image display type: FlagType
16 | /// - Returns: SwiftUI flag image
17 | public func getCountryImage(with type: FlagType = .roundedRect) -> some View {
| `- note: add @available attribute to enclosing instance method
18 | let image = Image(code, bundle: Bundle.current)
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | return image.applyFlagType(type)
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/FlagAndCountryCode/CountryFlagInfo.swift:18:21: error: 'init(_:bundle:)' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | extension CountryFlagInfo {
| `- note: add @available attribute to enclosing extension
14 | /// Get a specific image from the assets depending on the image type
15 | /// - Parameter type: Image display type: FlagType
16 | /// - Returns: SwiftUI flag image
17 | public func getCountryImage(with type: FlagType = .roundedRect) -> some View {
| `- note: add @available attribute to enclosing instance method
18 | let image = Image(code, bundle: Bundle.current)
| |- error: 'init(_:bundle:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | return image.applyFlagType(type)
20 | }
BUILD FAILURE 6.1 macosSpm