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, reference 3.0.0 (739413), with Swift 6.0 for macOS (SPM) on 27 Nov 2024 11:28:09 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/arturgrigor/IPAPI.git
Reference: 3.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/arturgrigor/IPAPI
 * tag               3.0.0      -> FETCH_HEAD
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 3.0.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "ipapi",
      "name": "IPAPI",
      "url": "https://github.com/arturgrigor/IPAPI.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/IPAPI",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/arturgrigor/IPAPI.git
[1/405] Fetching ipapi
Fetched https://github.com/arturgrigor/IPAPI.git from cache (0.88s)
Creating working copy for https://github.com/arturgrigor/IPAPI.git
Working copy of https://github.com/arturgrigor/IPAPI.git resolved at 3.0.0 (7394135)
warning: '.resolve-product-dependencies': dependency 'ipapi' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/arturgrigor/IPAPI.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/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()
[4/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.
Build complete! (5.71s)
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.