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

Successful build of IPAPI with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

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 /Users/admin/builder/spi-builder-workspace/.git/
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 '/Users/admin/builder/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:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/arturgrigor/IPAPI.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/4] Emitting module IPAPI
/Users/admin/builder/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.
[4/4] Compiling IPAPI Service.swift
/Users/admin/builder/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.
/Users/admin/builder/spi-builder-workspace/Sources/Service.swift:256:17: warning: capture of 'completion' with non-sendable type '((Result<Service.Result, any Error>) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
254 |         let task = session.dataTask(with: request, completionHandler: { data, response, error in
255 |             if let error = error {
256 |                 completion?(.failure(error))
    |                 |- warning: capture of 'completion' with non-sendable type '((Result<Service.Result, any Error>) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
257 |             } else {
258 |                 let decoder = JSONDecoder()
/Users/admin/builder/spi-builder-workspace/Sources/Service.swift:317:17: warning: capture of 'completion' with non-sendable type '((Result<[Service.Result], any Error>) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
315 |         let task = session.dataTask(with: request, completionHandler: { data, response, error in
316 |             if let error = error {
317 |                 completion?(.failure(error))
    |                 |- warning: capture of 'completion' with non-sendable type '((Result<[Service.Result], any Error>) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
318 |             } else {
319 |                 let decoder = JSONDecoder()
Build complete! (17.00s)
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/Sources/Info.plist': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/Sources/IPAPI.h': File not found.
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "IPAPI",
  "name" : "IPAPI",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "8.0"
    },
    {
      "name" : "macos",
      "version" : "10.10"
    },
    {
      "name" : "tvos",
      "version" : "9.0"
    },
    {
      "name" : "watchos",
      "version" : "2.0"
    }
  ],
  "products" : [
    {
      "name" : "IPAPI",
      "targets" : [
        "IPAPI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "IPAPI",
      "module_type" : "SwiftTarget",
      "name" : "IPAPI",
      "path" : "Sources",
      "product_memberships" : [
        "IPAPI"
      ],
      "sources" : [
        "Service.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/Sources/Info.plist': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/Sources/IPAPI.h': File not found.
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.