This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 GoogleStaticMapsKit with Swift 6.0 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" 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 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/PoissonBallon/GoogleStaticMapsKit.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/PoissonBallon/GoogleStaticMapsKit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 85f5da3 fix misspelling
Cloned https://github.com/PoissonBallon/GoogleStaticMapsKit.git
Revision (git rev-parse @):
85f5da396f7ebc404cfd6c678206483ffe385f9c
SUCCESS checkout https://github.com/PoissonBallon/GoogleStaticMapsKit.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/PoissonBallon/GoogleStaticMapsKit.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" 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 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/12] Compiling GoogleStaticMapsKit StylesImport.swift
[4/13] Compiling GoogleStaticMapsKit Parameters.swift
[5/13] Compiling GoogleStaticMapsKit Style.swift
[6/13] Compiling GoogleStaticMapsKit Query.swift
/host/spi-builder-workspace/Sources/Query.swift:55:41: error: cannot find 'CFBooleanGetTypeID' in scope
53 |
54 | extension NSNumber {
55 |   fileprivate var isBool: Bool { return CFBooleanGetTypeID() == CFGetTypeID(self) }
   |                                         `- error: cannot find 'CFBooleanGetTypeID' in scope
56 | }
57 |
/host/spi-builder-workspace/Sources/Query.swift:55:65: error: cannot find 'CFGetTypeID' in scope
53 |
54 | extension NSNumber {
55 |   fileprivate var isBool: Bool { return CFBooleanGetTypeID() == CFGetTypeID(self) }
   |                                                                 `- error: cannot find 'CFGetTypeID' in scope
56 | }
57 |
[7/13] Compiling GoogleStaticMapsKit Marker.swift
[8/13] Compiling GoogleStaticMapsKit GoogleStaticMaps.swift
/host/spi-builder-workspace/Sources/GoogleStaticMaps.swift:39:14: warning: var 'intern_google_static_maps_api_key' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
37 | }
38 |
39 | internal var intern_google_static_maps_api_key: String?
   |              |- warning: var 'intern_google_static_maps_api_key' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: convert 'intern_google_static_maps_api_key' to a 'let' constant to make 'Sendable' shared state immutable
   |              |- note: annotate 'intern_google_static_maps_api_key' 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
40 |
41 | public extension GoogleStaticMaps {
/host/spi-builder-workspace/Sources/GoogleStaticMaps.swift:42:3: warning: 'public' modifier is redundant for static method declared in a public extension
40 |
41 | public extension GoogleStaticMaps {
42 |   public static func setAPIKey(apiKey: String) {
   |   `- warning: 'public' modifier is redundant for static method declared in a public extension
43 |     intern_google_static_maps_api_key = apiKey
44 |   }
[9/13] Compiling GoogleStaticMapsKit Location.swift
/host/spi-builder-workspace/Sources/GoogleStaticMaps.swift:39:14: warning: var 'intern_google_static_maps_api_key' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
37 | }
38 |
39 | internal var intern_google_static_maps_api_key: String?
   |              |- warning: var 'intern_google_static_maps_api_key' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: convert 'intern_google_static_maps_api_key' to a 'let' constant to make 'Sendable' shared state immutable
   |              |- note: annotate 'intern_google_static_maps_api_key' 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
40 |
41 | public extension GoogleStaticMaps {
/host/spi-builder-workspace/Sources/GoogleStaticMaps.swift:42:3: warning: 'public' modifier is redundant for static method declared in a public extension
40 |
41 | public extension GoogleStaticMaps {
42 |   public static func setAPIKey(apiKey: String) {
   |   `- warning: 'public' modifier is redundant for static method declared in a public extension
43 |     intern_google_static_maps_api_key = apiKey
44 |   }
[10/13] Emitting module GoogleStaticMapsKit
/host/spi-builder-workspace/Sources/GoogleStaticMaps.swift:39:14: warning: var 'intern_google_static_maps_api_key' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
37 | }
38 |
39 | internal var intern_google_static_maps_api_key: String?
   |              |- warning: var 'intern_google_static_maps_api_key' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: convert 'intern_google_static_maps_api_key' to a 'let' constant to make 'Sendable' shared state immutable
   |              |- note: annotate 'intern_google_static_maps_api_key' 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
40 |
41 | public extension GoogleStaticMaps {
/host/spi-builder-workspace/Sources/GoogleStaticMaps.swift:42:3: warning: 'public' modifier is redundant for static method declared in a public extension
40 |
41 | public extension GoogleStaticMaps {
42 |   public static func setAPIKey(apiKey: String) {
   |   `- warning: 'public' modifier is redundant for static method declared in a public extension
43 |     intern_google_static_maps_api_key = apiKey
44 |   }
[11/13] Compiling GoogleStaticMapsKit Error.swift
[12/13] Compiling GoogleStaticMapsKit Feature.swift
[13/13] Compiling GoogleStaticMapsKit URL.swift
/host/spi-builder-workspace/Sources/URL.swift:54:8: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
52 |     let centerItem = try self.location.asDictionary()
53 |       .flatMap { queryComponents(fromKey: $0.key, value: $0.value) }
54 |       .flatMap { URLQueryItem(name: $0.0, value: $0.1) }
   |        |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
   |        `- note: use 'compactMap(_:)' instead
55 |
56 |     let settingsItem = try self.parameters.asDictionary()
/host/spi-builder-workspace/Sources/URL.swift:58:8: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
56 |     let settingsItem = try self.parameters.asDictionary()
57 |       .flatMap { queryComponents(fromKey: $0.key, value: $0.value) }
58 |       .flatMap { URLQueryItem(name: $0.0, value: $0.1) }
   |        |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
   |        `- note: use 'compactMap(_:)' instead
59 |
60 |     let componentsItem = try self.feature?.asArray()
/host/spi-builder-workspace/Sources/URL.swift:63:8: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
61 |       .flatMap { $0 }
62 |       .flatMap { queryComponents(fromKey: $0.key, value: $0.value) }
63 |       .flatMap { URLQueryItem(name: $0.0, value: $0.1) } ?? [URLQueryItem]()
   |        |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
   |        `- note: use 'compactMap(_:)' instead
64 |
65 |     let items = [centerItem, settingsItem, componentsItem, [keyItem]].flatMap { $0 }
/host/spi-builder-workspace/Sources/GoogleStaticMaps.swift:39:14: warning: var 'intern_google_static_maps_api_key' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
37 | }
38 |
39 | internal var intern_google_static_maps_api_key: String?
   |              |- warning: var 'intern_google_static_maps_api_key' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: convert 'intern_google_static_maps_api_key' to a 'let' constant to make 'Sendable' shared state immutable
   |              |- note: annotate 'intern_google_static_maps_api_key' 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
40 |
41 | public extension GoogleStaticMaps {
/host/spi-builder-workspace/Sources/URL.swift:77:21: error: missing argument for parameter 'coder' in call
75 |     let data = try JSONEncoder().encode(self)
76 |     guard let dictionary = try JSONSerialization.jsonObject(with: data, options: .allowFragments) as? [String: Any] else {
77 |       throw NSError()
   |                     `- error: missing argument for parameter 'coder' in call
78 |     }
79 |     return dictionary
Foundation.NSError:5:21: note: 'init(coder:)' declared here
 3 |     open var _code: Int
 4 |     public init(domain: String, code: Int, userInfo dict: [String : Any]? = nil)
 5 |     required public init?(coder aDecoder: NSCoder)
   |                     `- note: 'init(coder:)' declared here
 6 |     public static var supportsSecureCoding: Bool { get }
 7 |     open func encode(with aCoder: NSCoder)
/host/spi-builder-workspace/Sources/URL.swift:77:13: error: thrown expression type 'NSError?' does not conform to 'Error'
75 |     let data = try JSONEncoder().encode(self)
76 |     guard let dictionary = try JSONSerialization.jsonObject(with: data, options: .allowFragments) as? [String: Any] else {
77 |       throw NSError()
   |             `- error: thrown expression type 'NSError?' does not conform to 'Error'
78 |     }
79 |     return dictionary
/host/spi-builder-workspace/Sources/URL.swift:85:21: error: missing argument for parameter 'coder' in call
83 |     let data = try JSONEncoder().encode(self)
84 |     guard let array = try JSONSerialization.jsonObject(with: data, options: .allowFragments) as? [[String: Any]] else {
85 |       throw NSError()
   |                     `- error: missing argument for parameter 'coder' in call
86 |     }
87 |     return array
Foundation.NSError:5:21: note: 'init(coder:)' declared here
 3 |     open var _code: Int
 4 |     public init(domain: String, code: Int, userInfo dict: [String : Any]? = nil)
 5 |     required public init?(coder aDecoder: NSCoder)
   |                     `- note: 'init(coder:)' declared here
 6 |     public static var supportsSecureCoding: Bool { get }
 7 |     open func encode(with aCoder: NSCoder)
/host/spi-builder-workspace/Sources/URL.swift:85:13: error: thrown expression type 'NSError?' does not conform to 'Error'
83 |     let data = try JSONEncoder().encode(self)
84 |     guard let array = try JSONSerialization.jsonObject(with: data, options: .allowFragments) as? [[String: Any]] else {
85 |       throw NSError()
   |             `- error: thrown expression type 'NSError?' does not conform to 'Error'
86 |     }
87 |     return array
BUILD FAILURE 6.0 linux
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.