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

Build Command

bash -c docker run --rm -v "checkouts-4609320-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/arturgrigor/IPAPI.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/arturgrigor/IPAPI
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 7394135 Merge pull request #4 from arturgrigor/develop
Submodule path 'Carthage/Checkouts/OHHTTPStubs': checked out 'a5f9693dbf7a98e91cd7b72fff02bdd291ac66e0'
Submodule 'Carthage/Checkouts/OHHTTPStubs' (https://github.com/AliSoftware/OHHTTPStubs.git) registered for path 'Carthage/Checkouts/OHHTTPStubs'
Cloning into '/host/spi-builder-workspace/Carthage/Checkouts/OHHTTPStubs'...
Cloned https://github.com/arturgrigor/IPAPI.git
Revision (git rev-parse @):
7394135f9162ab7127a5ebd94d48e797dc516414
SUCCESS checkout https://github.com/arturgrigor/IPAPI.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/arturgrigor/IPAPI.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-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
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Sources/Sources/Info.plist': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Sources/Sources/IPAPI.h': File not found.
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module IPAPI
/host/spi-builder-workspace/Sources/Service.swift:185:29: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
183 |
184 |     /// Returns the session configuration of the receiver.
185 |     open var configuration: URLSessionConfiguration
    |                             `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 |
187 |     // MARK: - Initialization -
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Service.swift:190:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Service' may have shared mutable state; this is an error in the Swift 6 language mode
 17 | /// Our system will automatically ban any IP addresses doing over 150 requests per minute. To unban your IP click [here](http://ip-api.com/docs/unban).
 18 | /// You are free to use ip-api.com for non-commercial use. **We do not allow commercial use without prior approval**.
 19 | open class Service {
    |            `- note: class 'Service' does not conform to the 'Sendable' protocol
 20 |
 21 |     // MARK: - Types -
    :
188 |
189 |     /// The default instance of `Service` initialized with default values.
190 |     public static let `default` = Service()
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Service' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'default' 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
191 |
192 |     /// Initializes the `Service` instance with the given timeout interval.
/host/spi-builder-workspace/Sources/Service.swift:203:74: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
201 |         pricingPlan: PricingPlan = .free,
202 |         timeoutInterval: TimeInterval = 15,
203 |         configuration: URLSessionConfiguration = URLSessionConfiguration.default
    |                                                                          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
204 |     ) {
205 |         self.pricingPlan = pricingPlan
/host/spi-builder-workspace/Sources/Service.swift:203:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
201 |         pricingPlan: PricingPlan = .free,
202 |         timeoutInterval: TimeInterval = 15,
203 |         configuration: URLSessionConfiguration = URLSessionConfiguration.default
    |                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
204 |     ) {
205 |         self.pricingPlan = pricingPlan
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Service.swift:221:162: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
219 |     /// - Returns: The new `URLSessionDataTask` instance.
220 |     @discardableResult
221 |     open func fetch(query: String? = nil, fields: [Result.Field]? = nil, language: String? = nil, completion: ((Swift.Result<Result, Swift.Error>) -> Void)?) -> URLSessionDataTask? {
    |                                                                                                                                                                  `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
222 |         var urlComponents: URLComponents
223 |         do {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Service.swift:280:108: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
278 |     /// - Returns: The new `URLSessionDataTask` instance.
279 |     @discardableResult
280 |     open func batch(_ queries: [Request], completion: ((Swift.Result<[Result], Swift.Error>) -> Void)?) -> URLSessionDataTask? {
    |                                                                                                            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
281 |         var urlComponents: URLComponents
282 |         do {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
[4/4] Compiling IPAPI Service.swift
/host/spi-builder-workspace/Sources/Service.swift:185:29: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
183 |
184 |     /// Returns the session configuration of the receiver.
185 |     open var configuration: URLSessionConfiguration
    |                             `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 |
187 |     // MARK: - Initialization -
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Service.swift:190:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Service' may have shared mutable state; this is an error in the Swift 6 language mode
 17 | /// Our system will automatically ban any IP addresses doing over 150 requests per minute. To unban your IP click [here](http://ip-api.com/docs/unban).
 18 | /// You are free to use ip-api.com for non-commercial use. **We do not allow commercial use without prior approval**.
 19 | open class Service {
    |            `- note: class 'Service' does not conform to the 'Sendable' protocol
 20 |
 21 |     // MARK: - Types -
    :
188 |
189 |     /// The default instance of `Service` initialized with default values.
190 |     public static let `default` = Service()
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Service' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'default' 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
191 |
192 |     /// Initializes the `Service` instance with the given timeout interval.
/host/spi-builder-workspace/Sources/Service.swift:203:74: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
201 |         pricingPlan: PricingPlan = .free,
202 |         timeoutInterval: TimeInterval = 15,
203 |         configuration: URLSessionConfiguration = URLSessionConfiguration.default
    |                                                                          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
204 |     ) {
205 |         self.pricingPlan = pricingPlan
/host/spi-builder-workspace/Sources/Service.swift:203:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
201 |         pricingPlan: PricingPlan = .free,
202 |         timeoutInterval: TimeInterval = 15,
203 |         configuration: URLSessionConfiguration = URLSessionConfiguration.default
    |                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
204 |     ) {
205 |         self.pricingPlan = pricingPlan
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Service.swift:221:162: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
219 |     /// - Returns: The new `URLSessionDataTask` instance.
220 |     @discardableResult
221 |     open func fetch(query: String? = nil, fields: [Result.Field]? = nil, language: String? = nil, completion: ((Swift.Result<Result, Swift.Error>) -> Void)?) -> URLSessionDataTask? {
    |                                                                                                                                                                  `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
222 |         var urlComponents: URLComponents
223 |         do {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Service.swift:280:108: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
278 |     /// - Returns: The new `URLSessionDataTask` instance.
279 |     @discardableResult
280 |     open func batch(_ queries: [Request], completion: ((Swift.Result<[Result], Swift.Error>) -> Void)?) -> URLSessionDataTask? {
    |                                                                                                            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
281 |         var urlComponents: URLComponents
282 |         do {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Service.swift:250:23: error: cannot find 'URLRequest' in scope
248 |         }
249 |
250 |         let request = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData, timeoutInterval: self.timeoutInterval)
    |                       `- error: cannot find 'URLRequest' in scope
251 |         let config = self.configuration
252 |         let session = URLSession(configuration: config)
/host/spi-builder-workspace/Sources/Service.swift:250:58: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
248 |         }
249 |
250 |         let request = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData, timeoutInterval: self.timeoutInterval)
    |                                                          `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
251 |         let config = self.configuration
252 |         let session = URLSession(configuration: config)
/host/spi-builder-workspace/Sources/Service.swift:252:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
250 |         let request = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData, timeoutInterval: self.timeoutInterval)
251 |         let config = self.configuration
252 |         let session = URLSession(configuration: config)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
253 |
254 |         let task = session.dataTask(with: request, completionHandler: { data, response, error in
/host/spi-builder-workspace/Sources/Service.swift:309:23: error: cannot find 'URLRequest' in scope
307 |         }
308 |
309 |         var request = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData, timeoutInterval: self.timeoutInterval)
    |                       `- error: cannot find 'URLRequest' in scope
310 |         request.httpMethod = "POST"
311 |         request.httpBody = jsonBody
/host/spi-builder-workspace/Sources/Service.swift:309:58: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
307 |         }
308 |
309 |         var request = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData, timeoutInterval: self.timeoutInterval)
    |                                                          `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
310 |         request.httpMethod = "POST"
311 |         request.httpBody = jsonBody
/host/spi-builder-workspace/Sources/Service.swift:313:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
311 |         request.httpBody = jsonBody
312 |         let config = self.configuration
313 |         let session = URLSession(configuration: config)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
314 |
315 |         let task = session.dataTask(with: request, completionHandler: { data, response, error in
BUILD FAILURE 6.0 linux
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.