The Swift Package Index logo.Swift Package Index

Build Information

Failed to build FlagAndCountryCode, reference 1.1.3 (5e44b1), with Swift 6.2 for macOS (SPM) on 23 Jun 2025 11:43:19 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/exyte/FlagAndCountryCode.git
Reference: 1.1.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/exyte/FlagAndCountryCode
 * tag               1.1.3      -> FETCH_HEAD
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 1.1.3
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/exyte/FlagAndCountryCode.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/4] Write sources
[0/4] Copying country-codes.json
[2/4] Write swift-version-1EA4D86E10B52AF.txt
[3/4] Copying CountryFlags.xcassets
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/11] Compiling FlagAndCountryCode FlagType.swift
[6/11] Compiling FlagAndCountryCode CountryFlagsParser.swift
[7/11] Compiling FlagAndCountryCode BundleToken.swift
[8/11] Compiling FlagAndCountryCode resource_bundle_accessor.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 |     }
BUILD FAILURE 6.2 macosSpm