The Swift Package Index logo.Swift Package Index

Build Information

Failed to build GoogleStaticMapsKit with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/PoissonBallon/GoogleStaticMapsKit.git
Reference: 1.2.0
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
 * tag               1.2.0      -> FETCH_HEAD
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 1.2.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
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-5.10-latest swift build 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 Marker.swift
[6/13] Compiling GoogleStaticMapsKit Style.swift
[7/13] Compiling GoogleStaticMapsKit Query.swift
/host/spi-builder-workspace/Sources/Query.swift:55:41: error: cannot find 'CFBooleanGetTypeID' in scope
  fileprivate var isBool: Bool { return CFBooleanGetTypeID() == CFGetTypeID(self) }
                                        ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Query.swift:55:65: error: cannot find 'CFGetTypeID' in scope
  fileprivate var isBool: Bool { return CFBooleanGetTypeID() == CFGetTypeID(self) }
                                                                ^~~~~~~~~~~
[8/13] Emitting module GoogleStaticMapsKit
/host/spi-builder-workspace/Sources/GoogleStaticMaps.swift:42:3: warning: 'public' modifier is redundant for static method declared in a public extension
  public static func setAPIKey(apiKey: String) {
  ^~~~~~~

[9/13] Compiling GoogleStaticMapsKit GoogleStaticMaps.swift
/host/spi-builder-workspace/Sources/GoogleStaticMaps.swift:42:3: warning: 'public' modifier is redundant for static method declared in a public extension
  public static func setAPIKey(apiKey: String) {
  ^~~~~~~

[10/13] Compiling GoogleStaticMapsKit Location.swift
/host/spi-builder-workspace/Sources/GoogleStaticMaps.swift:42:3: warning: 'public' modifier is redundant for static method declared in a public extension
  public static func setAPIKey(apiKey: String) {
  ^~~~~~~

[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
      .flatMap { URLQueryItem(name: $0.0, value: $0.1) }
       ^
/host/spi-builder-workspace/Sources/URL.swift:54:8: note: use 'compactMap(_:)' instead
      .flatMap { URLQueryItem(name: $0.0, value: $0.1) }
       ^~~~~~~
       compactMap
/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
      .flatMap { URLQueryItem(name: $0.0, value: $0.1) }
       ^
/host/spi-builder-workspace/Sources/URL.swift:58:8: note: use 'compactMap(_:)' instead
      .flatMap { URLQueryItem(name: $0.0, value: $0.1) }
       ^~~~~~~
       compactMap
/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
      .flatMap { URLQueryItem(name: $0.0, value: $0.1) } ?? [URLQueryItem]()
       ^
/host/spi-builder-workspace/Sources/URL.swift:63:8: note: use 'compactMap(_:)' instead
      .flatMap { URLQueryItem(name: $0.0, value: $0.1) } ?? [URLQueryItem]()
       ^~~~~~~
       compactMap
/host/spi-builder-workspace/Sources/URL.swift:77:21: error: missing argument for parameter 'coder' in call
      throw NSError()
                    ^
                    coder: <#NSCoder#>
Foundation.NSError:5:21: note: 'init(coder:)' declared here
    required public init?(coder aDecoder: NSCoder)
                    ^
/host/spi-builder-workspace/Sources/URL.swift:77:13: error: thrown expression type 'NSError?' does not conform to 'Error'
      throw NSError()
            ^~~~~~~~~
/host/spi-builder-workspace/Sources/URL.swift:85:21: error: missing argument for parameter 'coder' in call
      throw NSError()
                    ^
                    coder: <#NSCoder#>
Foundation.NSError:5:21: note: 'init(coder:)' declared here
    required public init?(coder aDecoder: NSCoder)
                    ^
/host/spi-builder-workspace/Sources/URL.swift:85:13: error: thrown expression type 'NSError?' does not conform to 'Error'
      throw NSError()
            ^~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/4] 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
      .flatMap { URLQueryItem(name: $0.0, value: $0.1) }
       ^
/host/spi-builder-workspace/Sources/URL.swift:54:8: note: use 'compactMap(_:)' instead
      .flatMap { URLQueryItem(name: $0.0, value: $0.1) }
       ^~~~~~~
       compactMap
/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
      .flatMap { URLQueryItem(name: $0.0, value: $0.1) }
       ^
/host/spi-builder-workspace/Sources/URL.swift:58:8: note: use 'compactMap(_:)' instead
      .flatMap { URLQueryItem(name: $0.0, value: $0.1) }
       ^~~~~~~
       compactMap
/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
      .flatMap { URLQueryItem(name: $0.0, value: $0.1) } ?? [URLQueryItem]()
       ^
/host/spi-builder-workspace/Sources/URL.swift:63:8: note: use 'compactMap(_:)' instead
      .flatMap { URLQueryItem(name: $0.0, value: $0.1) } ?? [URLQueryItem]()
       ^~~~~~~
       compactMap
/host/spi-builder-workspace/Sources/URL.swift:77:21: error: missing argument for parameter 'coder' in call
      throw NSError()
                    ^
                    coder: <#NSCoder#>
Foundation.NSError:5:21: note: 'init(coder:)' declared here
    required public init?(coder aDecoder: NSCoder)
                    ^
/host/spi-builder-workspace/Sources/URL.swift:77:13: error: thrown expression type 'NSError?' does not conform to 'Error'
      throw NSError()
            ^~~~~~~~~
/host/spi-builder-workspace/Sources/URL.swift:85:21: error: missing argument for parameter 'coder' in call
      throw NSError()
                    ^
                    coder: <#NSCoder#>
Foundation.NSError:5:21: note: 'init(coder:)' declared here
    required public init?(coder aDecoder: NSCoder)
                    ^
/host/spi-builder-workspace/Sources/URL.swift:85:13: error: thrown expression type 'NSError?' does not conform to 'Error'
      throw NSError()
            ^~~~~~~~~
[3/4] Compiling GoogleStaticMapsKit Query.swift
/host/spi-builder-workspace/Sources/Query.swift:55:41: error: cannot find 'CFBooleanGetTypeID' in scope
  fileprivate var isBool: Bool { return CFBooleanGetTypeID() == CFGetTypeID(self) }
                                        ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Query.swift:55:65: error: cannot find 'CFGetTypeID' in scope
  fileprivate var isBool: Bool { return CFBooleanGetTypeID() == CFGetTypeID(self) }
                                                                ^~~~~~~~~~~
[4/4] Emitting module GoogleStaticMapsKit
/host/spi-builder-workspace/Sources/GoogleStaticMaps.swift:42:3: warning: 'public' modifier is redundant for static method declared in a public extension
  public static func setAPIKey(apiKey: String) {
  ^~~~~~~

error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 1