The Swift Package Index logo.Swift Package Index

Build Information

Failed to build GoogleStaticMapsKit with Swift 5.7 for Linux.

Build Command

docker run --rm -v "checkouts-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.7-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.22.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/PoissonBallon/GoogleStaticMapsKit.git
Reference: 1.2.0
Cloned https://github.com/PoissonBallon/GoogleStaticMapsKit.git into spi-builder-workspace
SUCCESS checkout https://github.com/PoissonBallon/GoogleStaticMapsKit.git at 1.2.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.7
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.7-latest swift build 2>&1
Building for debugging...
[1/10] 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) {
  ^~~~~~~
  
[2/11] Compiling GoogleStaticMapsKit StylesImport.swift
[3/11] Compiling GoogleStaticMapsKit Error.swift
[4/11] Compiling GoogleStaticMapsKit Feature.swift
[5/11] 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) {
  ^~~~~~~
  
[6/11] 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) {
  ^~~~~~~
  
[7/11] Compiling GoogleStaticMapsKit Parameters.swift
[8/11] Compiling GoogleStaticMapsKit Marker.swift
[9/11] Compiling GoogleStaticMapsKit Style.swift
[10/11] 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) }
                                                                ^~~~~~~~~~~
[11/11] 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()
            ^~~~~~~~~
BUILD FAILURE 5.7 linux

Build Machine: Linux 1