The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build FlagAndCountryCode, reference 1.1.2 (1a7d7e), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 08:57:03 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/exyte/FlagAndCountryCode.git
Reference: 1.1.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/exyte/FlagAndCountryCode
 * tag               1.1.2      -> FETCH_HEAD
HEAD is now at 1a7d7ef Update readme
Cloned https://github.com/exyte/FlagAndCountryCode.git
Revision (git rev-parse @):
1a7d7efa11bc1a73aec119acf0c3d902c62cdca6
SUCCESS checkout https://github.com/exyte/FlagAndCountryCode.git at 1.1.2
========================================
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/1568] Fetching flagandcountrycode
Fetched https://github.com/exyte/FlagAndCountryCode.git from cache (1.25s)
Creating working copy for https://github.com/exyte/FlagAndCountryCode.git
Working copy of https://github.com/exyte/FlagAndCountryCode.git resolved at 1.1.2 (1a7d7ef)
warning: '.resolve-product-dependencies': dependency 'flagandcountrycode' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/exyte/FlagAndCountryCode.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/4] Write sources
[0/4] Copying country-codes.json
[2/4] Write swift-version--7754E27361AE5C74.txt
[3/4] Copying CountryFlags.xcassets
[5/11] Compiling FlagAndCountryCode BundleToken.swift
[6/11] Compiling FlagAndCountryCode resource_bundle_accessor.swift
[7/11] Compiling FlagAndCountryCode CountryFlagsParser.swift
[8/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:
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/11] Compiling FlagAndCountryCode FlagType.swift
[10/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 |     }
[11/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 {
BUILD FAILURE 6.0 macosSpm