The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of Nextbike, reference master (4066a8), with Swift 6.0 for macOS (SPM) on 1 Dec 2024 14:33:06 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.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kiliankoe/Nextbike.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kiliankoe/Nextbike
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 4066a8f Add links to API documentations
Cloned https://github.com/kiliankoe/Nextbike.git
Revision (git rev-parse @):
4066a8f2a466703803590a1cd347d4aa8876c1e9
SUCCESS checkout https://github.com/kiliankoe/Nextbike.git at master
Fetching https://github.com/Flight-School/AnyCodable
[1/782] Fetching anycodable
Fetched https://github.com/Flight-School/AnyCodable from cache (0.85s)
Computing version for https://github.com/Flight-School/AnyCodable
Computed https://github.com/Flight-School/AnyCodable at 0.6.7 (0.52s)
Creating working copy for https://github.com/Flight-School/AnyCodable
Working copy of https://github.com/Flight-School/AnyCodable resolved at 0.6.7
========================================
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": "nextbike",
      "name": "Nextbike",
      "url": "https://github.com/kiliankoe/Nextbike.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Nextbike",
      "dependencies": [
        {
          "identity": "anycodable",
          "name": "AnyCodable",
          "url": "https://github.com/Flight-School/AnyCodable",
          "version": "0.6.7",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/AnyCodable",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/kiliankoe/Nextbike.git
[1/194] Fetching nextbike
Fetched https://github.com/kiliankoe/Nextbike.git from cache (0.77s)
Fetching https://github.com/Flight-School/AnyCodable from cache
Fetched https://github.com/Flight-School/AnyCodable from cache (0.45s)
Computing version for https://github.com/Flight-School/AnyCodable
Computed https://github.com/Flight-School/AnyCodable at 0.6.7 (0.02s)
Creating working copy for https://github.com/Flight-School/AnyCodable
Working copy of https://github.com/Flight-School/AnyCodable resolved at 0.6.7
Creating working copy for https://github.com/kiliankoe/Nextbike.git
Working copy of https://github.com/kiliankoe/Nextbike.git resolved at master (4066a8f)
warning: '.resolve-product-dependencies': dependency 'nextbike' is not used by any target
Found 1 product dependencies
  - AnyCodable
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/kiliankoe/Nextbike.git
{
  "dependencies" : [
    {
      "identity" : "anycodable",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.6.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Flight-School/AnyCodable"
    }
  ],
  "manifest_display_name" : "Nextbike",
  "name" : "Nextbike",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "Nextbike",
      "targets" : [
        "Nextbike"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "NextbikeTests",
      "module_type" : "SwiftTarget",
      "name" : "NextbikeTests",
      "path" : "Tests/NextbikeTests",
      "sources" : [
        "NextbikeTests.swift"
      ],
      "target_dependencies" : [
        "Nextbike"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Nextbike",
      "module_type" : "SwiftTarget",
      "name" : "Nextbike",
      "path" : "Sources/Nextbike",
      "product_dependencies" : [
        "AnyCodable"
      ],
      "product_memberships" : [
        "Nextbike"
      ],
      "sources" : [
        "Endpoints/Bikes.swift",
        "Endpoints/Maps.swift",
        "Models/City.swift",
        "Models/Country.swift",
        "Models/FlexzoneResponse.swift",
        "Models/Place.swift",
        "Network/Endpoint.swift",
        "Network/NetworkManager.swift",
        "Nextbike.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
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/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/7] Compiling AnyCodable AnyCodable.swift
[5/7] Compiling AnyCodable AnyDecodable.swift
[6/7] Emitting module AnyCodable
[7/7] Compiling AnyCodable AnyEncodable.swift
[8/17] Compiling Nextbike Endpoint.swift
[9/17] Compiling Nextbike NetworkManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/Nextbike/Network/NetworkManager.swift:15:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkManager' may have shared mutable state; this is an error in the Swift 6 language mode
12 | }
13 |
14 | final class NetworkManager {
   |             `- note: class 'NetworkManager' does not conform to the 'Sendable' protocol
15 |     static let shared = NetworkManager()
   |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkManager' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'shared' 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
16 |
17 |     private init() {}
/Users/admin/builder/spi-builder-workspace/Sources/Nextbike/Network/NetworkManager.swift:35:17: warning: capture of 'completion' with non-sendable type '(Result<T, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
33 |         let task = session.dataTask(with: request) { data, response, error in
34 |             guard error == nil, let data = data else {
35 |                 completion(.failure(error!))
   |                 |- warning: capture of 'completion' with non-sendable type '(Result<T, 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'
36 |                 return
37 |             }
[10/17] Compiling Nextbike Nextbike.swift
/Users/admin/builder/spi-builder-workspace/Sources/Nextbike/Nextbike.swift:26:17: warning: capture of 'completion' with non-sendable type '(Result<[Country], any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 |                   let data = data
25 |             else {
26 |                 completion(.failure(error!))
   |                 |- warning: capture of 'completion' with non-sendable type '(Result<[Country], 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'
27 |                 return
28 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Nextbike/Nextbike.swift:53:17: warning: capture of 'completion' with non-sendable type '(Result<[Place], any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
51 |                   let data = data
52 |             else {
53 |                 completion(.failure(error!))
   |                 |- warning: capture of 'completion' with non-sendable type '(Result<[Place], 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'
54 |                 return
55 |             }
[11/17] Compiling Nextbike Place.swift
[12/17] Compiling Nextbike City.swift
[13/17] Compiling Nextbike Maps.swift
/Users/admin/builder/spi-builder-workspace/Sources/Nextbike/Network/NetworkManager.swift:15:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkManager' may have shared mutable state; this is an error in the Swift 6 language mode
12 | }
13 |
14 | final class NetworkManager {
   |             `- note: class 'NetworkManager' does not conform to the 'Sendable' protocol
15 |     static let shared = NetworkManager()
   |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkManager' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'shared' 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
16 |
17 |     private init() {}
[14/17] Compiling Nextbike Bikes.swift
[15/17] Emitting module Nextbike
/Users/admin/builder/spi-builder-workspace/Sources/Nextbike/Network/NetworkManager.swift:15:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkManager' may have shared mutable state; this is an error in the Swift 6 language mode
12 | }
13 |
14 | final class NetworkManager {
   |             `- note: class 'NetworkManager' does not conform to the 'Sendable' protocol
15 |     static let shared = NetworkManager()
   |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkManager' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'shared' 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
16 |
17 |     private init() {}
[16/17] Compiling Nextbike FlexzoneResponse.swift
[17/17] Compiling Nextbike Country.swift
Build complete! (12.60s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "anycodable",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.6.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Flight-School/AnyCodable"
    }
  ],
  "manifest_display_name" : "Nextbike",
  "name" : "Nextbike",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "Nextbike",
      "targets" : [
        "Nextbike"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "NextbikeTests",
      "module_type" : "SwiftTarget",
      "name" : "NextbikeTests",
      "path" : "Tests/NextbikeTests",
      "sources" : [
        "NextbikeTests.swift"
      ],
      "target_dependencies" : [
        "Nextbike"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Nextbike",
      "module_type" : "SwiftTarget",
      "name" : "Nextbike",
      "path" : "Sources/Nextbike",
      "product_dependencies" : [
        "AnyCodable"
      ],
      "product_memberships" : [
        "Nextbike"
      ],
      "sources" : [
        "Endpoints/Bikes.swift",
        "Endpoints/Maps.swift",
        "Models/City.swift",
        "Models/Country.swift",
        "Models/FlexzoneResponse.swift",
        "Models/Place.swift",
        "Network/Endpoint.swift",
        "Network/NetworkManager.swift",
        "Nextbike.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Done.